:root{--navy:#090d14;--navy2:#151922;--blue:#e31b23;--blue2:#ff3b30;--text:#172033;--muted:#687386;--line:#e5eaf1;--bg:#f7f9fc;--white:#fff;--green:#2fa766}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.wrap{width:min(1180px,calc(100% - 36px));margin:auto}.site-header{height:76px;background:var(--navy);color:white;display:flex;align-items:center}.header-inner{display:flex;align-items:center;justify-content:space-between}.brand img{height:44px;width:auto}.header-inner nav{display:flex;gap:28px;font-size:14px;font-weight:700}.header-inner nav a{opacity:.9}.home-hero{background:linear-gradient(135deg,#11151d 0%,#070a0f 68%,#251014 100%);color:white;padding:64px 0}.hero-layout{display:grid;grid-template-columns:minmax(0,1.5fr) .65fr;align-items:center;gap:50px}.hero-kicker,.small-label{color:#ff3b30;font-size:12px;font-weight:900;letter-spacing:.11em}.hero-copy h1{font-size:clamp(40px,5.4vw,66px);line-height:1.03;max-width:760px;margin:12px 0 20px}.hero-copy>p{font-size:20px;line-height:1.55;color:#eef0f3;max-width:700px}.hero-search{display:grid;grid-template-columns:1.1fr 1fr auto;gap:12px;margin-top:28px}.hero-search select,.hero-search button{height:54px;border-radius:7px;border:0;padding:0 16px}.hero-search select{background:white;color:#344054}.hero-search button{background:var(--blue);color:white;font-weight:800;padding:0 24px}.popular-searches{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;color:#c5c8ce;font-size:13px}.popular-searches a{background:#251b20;padding:7px 13px;border-radius:7px;color:white}.hero-device{text-align:center}.hero-device img{height:360px;max-width:100%;filter:drop-shadow(0 20px 26px rgba(0,0,0,.35))}.public-section{padding:42px 0}.section-head,.admin-toolbar,.card-title-row,.detail-heading,.brand-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-head h2,.page-heading h1{margin:5px 0 0}.text-link{color:var(--blue);font-weight:700}.brand-logo-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:14px;margin-top:22px}.brand-logo-card{background:white;border:1px solid var(--line);border-radius:8px;padding:18px 10px;text-align:center;min-height:105px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}.brand-wordmark{font-weight:900;color:#171a20;letter-spacing:.02em}.brand-logo-card span{font-size:12px;color:var(--muted)}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding-top:10px}.trust-card{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;gap:14px}.trust-icon{width:38px;height:38px;border-radius:8px;background:#fff0f1;color:var(--blue);display:grid;place-items:center;font-size:20px;font-weight:900}.trust-card p{margin:6px 0 0;color:var(--muted);font-size:14px}.brand-top{background:white;border-bottom:1px solid var(--line);padding:20px 0 26px}.breadcrumbs{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:13px;margin-bottom:22px}.brand-title-row h1{font-size:38px;margin:0 0 6px}.brand-title-row p{margin:0;color:var(--muted)}.big-brand-name{font-size:28px;font-weight:950;color:#e31b23;letter-spacing:.04em}.brand-content-layout,.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.brand-main h2{margin-top:0}.device-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:14px 0 18px}.device-tabs button{background:white;border:1px solid var(--line);border-radius:7px;padding:16px 8px;min-height:84px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;color:#344054}.device-tabs button.active,.digit-tabs button.active{border-color:var(--blue);color:var(--blue);background:#fff6f6}.device-tabs span{font-size:12px}.digit-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.digit-tabs button{background:white;border:1px solid var(--line);border-radius:6px;padding:10px 14px;font-size:13px;font-weight:700}.digit-tabs.compact button{padding:8px 12px}.brand-code-table{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.code-table-head,.code-table-row{display:grid;grid-template-columns:1.3fr 1fr 1fr 40px;gap:12px;align-items:center;padding:13px 16px}.code-table-head{background:#f8fafc;font-size:12px;color:var(--muted);font-weight:800}.code-table-row{border-top:1px solid var(--line);font-size:14px}.code-table-row:hover{background:#fbfdff}.brand-aside,.detail-aside{display:grid;gap:16px}.side-card,.content-card{background:white;border:1px solid var(--line);border-radius:9px;padding:20px}.side-card h3,.content-card h2{margin-top:0}.side-card ol{padding-left:18px;line-height:1.7;color:#46546a}.side-card.soft,.info-soft{background:#fff8f8}.detail-heading{margin-bottom:20px}.detail-heading h1{font-size:34px;margin:0 0 6px}.detail-heading p{margin:0;color:var(--muted)}.favorite-btn{background:white;border:1px solid var(--line);border-radius:7px;padding:10px 14px;font-weight:700}.detail-main{display:grid;gap:16px}.codes-panel h2{margin-bottom:12px}.code-chip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.code-chip{display:flex;align-items:center;justify-content:space-between;background:white;border:1px solid var(--line);border-radius:6px;padding:11px 12px;font-weight:800}.code-chip:hover{border-color:#ff9a9f}.code-chip small{color:#9aa4b2}.prose{line-height:1.75;color:#344054}.info-card dl{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;font-size:13px}.info-card dt{color:var(--muted)}.info-card dd{margin:0;font-weight:700}.device-visual{background:white;border:1px solid var(--line);border-radius:9px;padding:18px;text-align:center}.device-visual img{width:100%;height:190px;object-fit:contain}.code-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.code-card{background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.code-card h3{font-size:17px}.code-card p{color:var(--muted)}.pill{display:inline-block;background:#fff0f1;color:#d9161f;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900}.page-heading{margin-bottom:24px}.site-footer{background:var(--navy);color:#d8e4f2;padding:46px 0;margin-top:50px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1.4fr;gap:28px}.footer-grid a,.footer-grid strong{display:block;margin:8px 0}.footer-logo{height:42px}.button{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);color:white;border:0;border-radius:7px;padding:12px 18px;font-weight:800;cursor:pointer}.button.secondary{background:#fff0f1;color:#d9161f}.button.ghost{background:white;color:#344054;border:1px solid var(--line)}.button.full{width:100%}.secondary-btn{border:1px solid var(--line);background:white;padding:10px 14px;border-radius:7px}.admin-login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#071a33,#260f13)}.login-card{width:min(430px,calc(100% - 32px));background:white;padding:34px;border-radius:12px;display:grid;gap:14px;box-shadow:0 25px 70px rgba(0,0,0,.28)}.login-card img{height:50px;max-width:100%}.login-label{color:var(--blue);font-size:11px;font-weight:900;letter-spacing:.1em}.login-card label,.admin-form label,.admin-editor label{display:grid;gap:7px;font-weight:700;font-size:13px}.login-card input,.admin-form input,.admin-form textarea,.admin-form select,.admin-editor input,.admin-editor textarea,.admin-editor select,.filter-bar input,.filter-bar select{width:100%;border:1px solid #dbe2ec;border-radius:7px;padding:11px 12px;background:white}.admin-body{display:flex;min-height:100vh;background:#f5f7fb}.sidebar{width:220px;background:var(--navy);color:#dce7f5;padding:22px 12px;position:fixed;left:0;top:0;bottom:0}.admin-logo{display:block;padding:0 8px 22px}.admin-logo img{width:155px;height:auto}.side-section{display:grid;gap:4px;margin-bottom:24px}.side-section>span{font-size:10px;letter-spacing:.1em;color:#a7adb6;padding:8px 10px}.side-section a{padding:10px 12px;border-radius:6px;font-size:14px}.side-section a.active,.side-section a:hover{background:#3a161a;color:white}.admin-shell{margin-left:220px;min-height:100vh;width:calc(100% - 220px)}.admin-topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.admin-search{width:460px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:0 12px;background:#fbfcfe}.admin-search input{border:0;background:transparent;outline:0;width:100%;padding:12px}.admin-user{display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:var(--blue);color:white;display:grid;place-items:center;font-weight:800}.admin-user small{display:block;color:var(--muted)}.admin-main{padding:28px}.admin-heading{margin-bottom:20px}.admin-heading h1{margin:5px 0 0;font-size:28px}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.admin-stats>div{background:white;border:1px solid var(--line);border-radius:9px;padding:20px;display:grid;grid-template-columns:auto 1fr;column-gap:12px}.admin-stats strong{font-size:28px}.admin-stats small{grid-column:2;color:var(--muted)}.stat-icon{grid-row:1/3;width:42px;height:42px;background:#fff0f1;color:var(--blue);border-radius:8px;display:grid;place-items:center}.admin-card{background:white;border:1px solid var(--line);border-radius:9px;padding:20px;margin-bottom:16px}.admin-card h2,.admin-card h3{margin-top:0}.quick{display:flex;gap:10px;flex-wrap:wrap}.admin-toolbar{margin-bottom:14px}.tab-counts{font-size:13px;color:var(--muted)}.filter-bar{display:grid;grid-template-columns:auto auto 1fr 1fr 1fr 1.3fr;gap:10px;background:white;border:1px solid var(--line);border-radius:8px 8px 0 0;padding:14px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:0 0 8px 8px}.admin-table{width:100%;border-collapse:collapse;font-size:13px}.admin-table th,.admin-table td{padding:13px 12px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.admin-table th{background:#f8fafc;color:#566174;font-size:11px}.title-link{color:#d9161f;font-weight:800}.edit-link{color:#d9161f}.status{display:inline-block;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800}.status.publicado{background:#e7f7ed;color:#1d8048}.status.borrador{background:#fff4da;color:#9b6500}.admin-brand-grid{grid-template-columns:repeat(4,1fr)}.admin-editor{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:16px;align-items:start}.editor-main{min-width:0}.editor-side{display:grid;gap:16px}.sticky-card{position:sticky;top:88px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.three-code-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.three-code-cols textarea{min-height:150px}.admin-editor textarea{resize:vertical}.editor-toolbar{display:flex;gap:5px;padding:8px;border:1px solid var(--line);border-bottom:0;border-radius:7px 7px 0 0;background:#fafbfc}.editor-toolbar button{width:34px;height:30px;border:1px solid var(--line);background:white;border-radius:5px}.editor-toolbar+textarea{border-radius:0 0 7px 7px}.image-placeholder{height:190px;border:1px dashed #cad3df;border-radius:8px;background:#f9fbfd;display:grid;place-items:center;margin-bottom:12px}.image-placeholder img{width:100%;height:100%;object-fit:contain;padding:14px}.admin-form{max-width:900px;display:grid;gap:14px;background:white;border:1px solid var(--line);border-radius:9px;padding:20px}.admin-form.flat{border:0;padding:0}.alert{background:#feecec;color:#a72626;padding:12px;border-radius:7px}.success{background:#e8f8ef;color:#16663d;padding:12px;border-radius:7px;margin-bottom:16px}@media(max-width:1000px){.brand-logo-grid{grid-template-columns:repeat(4,1fr)}.device-tabs{grid-template-columns:repeat(3,1fr)}.admin-stats{grid-template-columns:repeat(2,1fr)}.filter-bar{grid-template-columns:1fr 1fr}.admin-editor{grid-template-columns:1fr}.sticky-card{position:static}}@media(max-width:760px){.site-header{height:auto;padding:14px 0}.header-inner nav{display:none}.hero-layout{grid-template-columns:1fr}.hero-device{display:none}.hero-search{grid-template-columns:1fr}.brand-logo-grid,.trust-grid,.code-grid,.brand-content-layout,.detail-layout,.footer-grid{grid-template-columns:1fr 1fr}.device-tabs{grid-template-columns:repeat(2,1fr)}.brand-title-row,.detail-heading,.section-head{align-items:flex-start;flex-direction:column}.big-brand-name{font-size:20px}.code-chip-grid{grid-template-columns:repeat(2,1fr)}.sidebar{position:static;width:100%;display:flex;overflow:auto;align-items:center;padding:10px}.admin-logo{display:none}.side-section{display:flex;margin:0}.side-section>span{display:none}.side-section a{white-space:nowrap}.admin-shell{margin-left:0;width:100%}.admin-body{display:block}.admin-topbar{padding:0 14px}.admin-search{width:60%}.admin-main{padding:16px}.three-code-cols,.form-grid,.admin-stats{grid-template-columns:1fr}.filter-bar{grid-template-columns:1fr}.admin-brand-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.brand-logo-grid,.trust-grid,.footer-grid{grid-template-columns:1fr}.hero-copy h1{font-size:38px}.wrap{width:min(100% - 24px,1180px)}.code-table-head{display:none}.code-table-row{grid-template-columns:1fr auto}.code-table-row span:nth-child(2),.code-table-row span:nth-child(3){display:none}}

/* Opción 6 — identidad roja/negra */
.site-header{box-shadow:0 1px 0 rgba(255,255,255,.06)}
.brand img{height:48px}
.home-hero{position:relative;overflow:hidden}
.home-hero:after{content:"";position:absolute;right:-160px;top:-210px;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(227,27,35,.22),rgba(227,27,35,0) 67%);pointer-events:none}
.hero-search button,.button{box-shadow:0 7px 18px rgba(227,27,35,.22)}
.hero-search button:hover,.button:hover{background:#c9141c;transform:translateY(-1px)}
.popular-searches a:hover{background:#3a161a}
.brand-logo-card:hover,.code-card:hover{border-color:#f0a8ac;box-shadow:0 10px 28px rgba(227,27,35,.08);transform:translateY(-2px)}
.brand-logo-card,.code-card,.button,.hero-search button{transition:.18s ease}
.big-brand-name,.text-link,.title-link,.edit-link{color:#d9161f}
.device-tabs button.active,.digit-tabs button.active{border-color:#e31b23;color:#d9161f;background:#fff3f3}
.code-chip:hover{border-color:#ef8c91}
.pill{background:#fff0f1;color:#c9141c}
.site-footer{background:#080b10}
.sidebar{background:#090d14}
.side-section a.active,.side-section a:hover{background:linear-gradient(90deg,#e31b23,#b90f17);color:#fff}
.avatar{background:#e31b23}
.stat-icon{background:#fff0f1;color:#e31b23}
.login-label{color:#e31b23}
.admin-login{background:radial-gradient(circle at 75% 10%,#45151a 0,#171018 34%,#090d14 72%)}
.admin-logo img{width:174px}
.editor-toolbar button:hover{border-color:#e31b23;color:#e31b23;background:#fff5f5}

.notice{padding:13px 16px;border-radius:12px;margin:0 0 18px}.notice.success{background:#e9f9ef;color:#17643c;border:1px solid #bce8ca}.notice.error{background:#ffeded;color:#9f1d22;border:1px solid #ffc9cb}.block{display:block;color:#7b8494;margin-top:4px}.bulk-row{display:flex;gap:10px;margin:12px 0}.bulk-row select{min-width:240px}.seo-stats{grid-template-columns:repeat(4,1fr)}.media-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:18px}.media-item{background:#fff;border:1px solid #e6ebf2;border-radius:14px;padding:10px;display:grid;gap:8px}.media-item img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#f8fafc;border-radius:9px}.media-item code{font-size:11px;word-break:break-all}.diagnostic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.diagnostic-card,.tool-card{background:#fff;border:1px solid #e6ebf2;border-radius:16px;padding:20px}.diagnostic-card{display:flex;justify-content:space-between;gap:14px}.diagnostic-card .ok{color:#16864c}.diagnostic-card .bad{color:#c62931}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.tool-card{display:block}.settings-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.google-preview{border:1px solid #dfe5ed;border-radius:12px;padding:16px;background:#fff;margin-top:10px}.google-preview small,.google-preview span{display:block;color:#5f6b7a}.google-preview strong{display:block;color:#1a0dab;font-size:19px;margin:6px 0}.google-preview p{margin:6px 0;color:#4d5156}.admin-form.flat{padding:0;border:0;background:transparent}.status.publicado{background:#e8f8ef;color:#167444}.status.borrador{background:#fff2cf;color:#8b6000}
@media(max-width:1000px){.media-grid{grid-template-columns:repeat(3,1fr)}.diagnostic-grid,.tool-grid{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.seo-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.media-grid,.diagnostic-grid,.tool-grid,.seo-stats{grid-template-columns:1fr}.bulk-row{flex-direction:column}.bulk-row select{min-width:0}}

.brand-logo{width:100%;height:72px;object-fit:contain;display:block;margin:0 auto 12px}.cdn-preview{padding:12px;border:1px solid #e6ebf2;border-radius:12px;background:#f8fafc}

/* v4.3 - tarjetas de marcas con logo CDN */
.brand-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.brand-logo-card{
  min-height:168px;
  padding:18px 18px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:#fff;
  border:1px solid #e4e8ee;
  border-radius:16px;
  box-shadow:0 3px 14px rgba(17,24,39,.035);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.brand-logo-card:hover{
  transform:translateY(-3px);
  border-color:#d2d8e1;
  box-shadow:0 12px 28px rgba(17,24,39,.09);
}
.brand-logo-box{
  width:100%;
  height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px 12px 12px;
}
.brand-logo-card .brand-logo{
  width:auto;
  max-width:92%;
  height:auto;
  max-height:68px;
  object-fit:contain;
  display:block;
  margin:0;
}
.brand-logo-card strong{
  margin-top:7px;
  font-size:17px;
  line-height:1.2;
  color:#151a24;
  font-weight:650;
}
@media (max-width:900px){
  .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:480px){
  .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .brand-logo-card{min-height:130px;padding:12px 8px;}
  .brand-logo-box{height:72px;padding:2px 8px 8px;}
  .brand-logo-card .brand-logo{max-height:52px;}
  .brand-logo-card strong{font-size:14px;}
}

/* v4.4 - administración de marcas: filtro + lista en 3 columnas */
.brand-filter-bar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 190px auto auto;
  gap:12px;
  align-items:center;
  margin:0 0 20px;
  padding:16px;
  background:#fff;
  border:1px solid #e3e8ef;
  border-radius:16px;
  box-shadow:0 4px 16px rgba(15,23,42,.035);
}
.brand-search-wrap{position:relative;display:flex;align-items:center}.brand-search-wrap>span{position:absolute;left:14px;color:#758096;font-size:18px}.brand-search-wrap input{width:100%;padding-left:42px}.brand-filter-bar select{width:100%}.filter-clear{font-weight:700;color:#64748b;padding:10px 6px}.filter-clear:hover{color:#111827}
.admin-brand-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.admin-brand-item{
  min-width:0;
  display:grid;
  grid-template-columns:74px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  background:#fff;
  border:1px solid #e3e8ef;
  border-radius:15px;
  padding:14px;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.admin-brand-item:hover{border-color:#d5dce6;box-shadow:0 9px 24px rgba(15,23,42,.07);transform:translateY(-1px)}
.admin-brand-logo{width:74px;height:58px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid #edf0f4;border-radius:11px;padding:8px}.admin-brand-logo img{max-width:100%;max-height:42px;width:auto;height:auto;object-fit:contain;display:block}.admin-brand-info{min-width:0;display:flex;flex-direction:column;gap:3px}.admin-brand-info strong{font-size:16px;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-brand-info span{font-size:12px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-brand-info small{font-size:13px;color:#64748b}.brand-edit-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid #dce2ea;border-radius:10px;font-size:13px;font-weight:750;color:#1f2937;background:#fff}.brand-edit-btn:hover{border-color:#ef3131;color:#d71920;background:#fff7f7}.empty-state{text-align:center;margin-top:16px}
@media(max-width:1180px){.admin-brand-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.brand-filter-bar{grid-template-columns:1fr 1fr}.brand-search-wrap{grid-column:1/-1}.admin-brand-list{grid-template-columns:1fr}}
@media(max-width:480px){.brand-filter-bar{grid-template-columns:1fr}.brand-search-wrap{grid-column:auto}.admin-brand-item{grid-template-columns:60px minmax(0,1fr) auto;gap:10px;padding:11px}.admin-brand-logo{width:60px;height:52px}.brand-edit-btn{padding:0 9px}}

/* v4.5 - logo de marca en todos los contextos visuales */
.brand-logo-card{gap:4px}.brand-logo-card>span{font-size:12px;color:#7b8494;margin-top:4px}
.brand-page-logo{width:230px;height:112px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(17,24,39,.05)}
.brand-page-logo img{max-width:100%;max-height:76px;width:auto;height:auto;object-fit:contain}
.brand-breadcrumb{display:inline-flex!important;align-items:center;gap:7px}.brand-breadcrumb img{width:30px;height:20px;object-fit:contain;background:#fff;border-radius:4px;padding:2px}
.code-card-brand{height:38px;display:flex;align-items:center;gap:9px;margin-bottom:12px;color:#667085;font-size:12px;font-weight:750}.code-card-brand img{width:72px;height:30px;object-fit:contain;object-position:left center}
.info-brand-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}.info-brand-head img{width:88px;height:46px;object-fit:contain;object-position:left center}.info-brand-head small{display:block;color:var(--muted);font-size:11px}.info-brand-head strong{display:block;margin-top:2px}
.admin-inline-brand{display:inline-flex;align-items:center;gap:9px}.admin-inline-brand img{width:58px;height:28px;object-fit:contain;object-position:left center;background:#fff;border-radius:5px;padding:2px;border:1px solid #edf0f4}
@media(max-width:760px){.brand-page-logo{width:180px;height:90px}.brand-page-logo img{max-height:58px}}

/* v4.7 - bloque SITIO del panel */
.site-menu-section{margin-top:auto}
.site-status-card{
  margin:10px 0 8px;
  padding:12px 13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.045);
}
.site-status-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}
.site-status-row i{
  display:block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#27d17f;
  box-shadow:0 0 0 4px rgba(39,209,127,.12);
}
.site-status-row small{color:#9aa9bb;font-size:11px}
.site-status-card strong{
  display:block;
  color:#fff;
  font-size:12px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.logout-link{margin-top:2px}

/* v5 - arquitectura por tipo de dispositivo */
.device-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.device-card{
  min-height:120px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  background:#fff;
  border:1px solid #e3e8ef;
  border-radius:16px;
  padding:20px;
  transition:.18s ease;
}
.device-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(15,23,42,.07);
  border-color:#d3dae5;
}
.device-card strong{font-size:18px}
.device-card span{font-size:13px;color:#738096}
.brand-title-row{
  display:flex;
  align-items:center;
  gap:22px;
  margin:16px 0 28px;
}
.brand-page-logo{
  width:150px;
  height:80px;
  object-fit:contain;
  background:#fff;
  border:1px solid #e4e8ee;
  border-radius:14px;
  padding:12px;
}
@media(max-width:900px){
  .device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .device-grid{grid-template-columns:1fr}
  .brand-title-row{align-items:flex-start;flex-direction:column}
  .brand-page-logo{width:130px;height:70px}
}

/* sidebar scroll from v4.8 */
@media (min-width:761px){
  .sidebar{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#34445a #090d14;padding-bottom:20px}
  .sidebar::-webkit-scrollbar{width:7px}
  .sidebar::-webkit-scrollbar-track{background:#090d14}
  .sidebar::-webkit-scrollbar-thumb{background:#34445a;border-radius:999px}
  .site-menu-section{margin-top:auto;padding-bottom:6px}
  .admin-logo,.side-section{flex-shrink:0}
}

/* v5.2 - diseño público unificado con el estilo aprobado */
.device-directory-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}
.device-directory-card{
  min-height:128px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:20px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:7px;
  transition:.18s ease;
}
.device-directory-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(17,24,39,.07);
  border-color:#d6dde6;
}
.device-directory-icon{
  width:42px;height:42px;border-radius:9px;
  display:grid;place-items:center;
  background:#fff0f0;color:var(--blue);
  font-size:20px;font-weight:900;
}
.device-directory-card strong{font-size:16px;color:#151922}
.device-directory-card small{font-size:12px;color:var(--muted)}
.device-directory-grid.large{grid-template-columns:repeat(3,minmax(0,1fr))}

.device-choice-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.device-choice-card{
  min-height:118px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
}
.device-choice-card:hover{border-color:#ef3131;box-shadow:0 8px 22px rgba(17,24,39,.06)}
.device-choice-card>span{color:var(--blue);font-size:20px}
.device-choice-card strong{font-size:15px}
.device-choice-card small{color:var(--muted);font-size:12px}

/* El logo de página vuelve a ser un contenedor, como en la v4.5 */
.brand-page-logo{
  width:230px!important;
  height:112px!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  padding:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 8px 24px rgba(17,24,39,.05)!important;
  object-fit:initial!important;
}
.brand-page-logo img{
  max-width:100%!important;
  max-height:76px!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
}

@media(max-width:900px){
  .device-directory-grid,.device-directory-grid.large{grid-template-columns:repeat(2,minmax(0,1fr))}
  .device-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .device-directory-grid,.device-directory-grid.large,.device-choice-grid{grid-template-columns:1fr}
  .brand-page-logo{width:180px!important;height:90px!important}
  .brand-page-logo img{max-height:58px!important}
}

/* v5.3 - iconos identificables por dispositivo */
.device-directory-icon{
  width:54px;
  height:54px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#fff0f0;
  color:#e31c25;
  margin-bottom:3px;
}
.device-directory-icon svg{
  width:30px;
  height:30px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.device-choice-icon{
  width:46px;
  height:46px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#fff0f0;
  color:#e31c25;
  margin-bottom:4px;
}
.device-choice-icon svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.device-directory-card:hover .device-directory-icon,
.device-choice-card:hover .device-choice-icon{
  background:#e31c25;
  color:#fff;
}

/* v5.4 - asignación obligatoria por tipo de dispositivo */
.url-preview-box{
  margin:4px 0 8px;
  padding:14px 16px;
  border:1px solid #e3e8ef;
  border-radius:12px;
  background:#f8fafc;
}
.url-preview-box span{
  display:block;
  margin-bottom:5px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7a8698;
}
.url-preview-box strong{
  display:block;
  color:#d71920;
  font-size:14px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.url-preview-box small{
  display:block;
  margin-top:5px;
  color:#7b8494;
  font-weight:400;
}
#device_select,#brand_select,#slug_input{width:100%}

/* v5.8 */
.muted-note{font-size:12px;line-height:1.5;color:#7a8493;margin:10px 0 14px}

/* v5.9 - sección Códigos sin scroll horizontal */
.codes-list-wrap{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.codes-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed;
}
.codes-table th,
.codes-table td{
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
  vertical-align:middle;
  padding:12px 8px;
}
.codes-table .col-check{width:4%}
.codes-table th:nth-child(2){width:25%}
.codes-table th:nth-child(3){width:13%}
.codes-table th:nth-child(4){width:14%}
.codes-table th:nth-child(5){width:13%}
.codes-table th:nth-child(6){width:14%}
.codes-table th:nth-child(7){width:10%}
.codes-table .col-action{width:7%;text-align:right}
.codes-table .admin-inline-brand{
  min-width:0;
  gap:7px;
}
.codes-table .admin-inline-brand img{
  width:34px!important;
  height:24px!important;
  flex:0 0 34px;
  object-fit:contain;
}
.codes-table .admin-inline-brand span{
  min-width:0;
  overflow-wrap:anywhere;
}
.codes-filter-bar{
  display:grid!important;
  grid-template-columns:minmax(180px,1.4fr) minmax(120px,.8fr) minmax(145px,.9fr) minmax(120px,.7fr) auto auto;
  gap:9px;
  align-items:center;
}
.codes-filter-bar>*{min-width:0;width:100%}
.codes-filter-bar a{width:auto}

/* Bajo 1050px los registros se convierten en tarjetas y nunca hacen scroll lateral */
@media(max-width:1050px){
  .codes-filter-bar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .codes-filter-bar button,
  .codes-filter-bar a{width:100%}

  .codes-table,
  .codes-table thead,
  .codes-table tbody,
  .codes-table tr,
  .codes-table th,
  .codes-table td{
    display:block;
    width:100%!important;
  }
  .codes-table thead{
    position:absolute;
    width:1px!important;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
  }
  .codes-table tbody{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .codes-table tr{
    position:relative;
    border:1px solid #e4e8ee;
    border-radius:14px;
    padding:14px 14px 12px;
    background:#fff;
  }
  .codes-table td{
    border:0!important;
    padding:5px 0!important;
    text-align:left!important;
  }
  .codes-table td[data-label]::before{
    content:attr(data-label);
    display:block;
    margin-bottom:2px;
    font-size:10px;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:#8792a2;
    font-weight:800;
  }
  .codes-table .col-check{
    position:absolute;
    top:12px;
    right:12px;
    width:auto!important;
  }
  .codes-table td:nth-child(2){
    padding-right:34px!important;
  }
  .codes-table .col-action{
    margin-top:7px;
    border-top:1px solid #edf0f4!important;
    padding-top:10px!important;
  }
}
@media(max-width:680px){
  .codes-filter-bar{grid-template-columns:1fr}
  .codes-table tbody{grid-template-columns:1fr}
}

/* Acción masiva: editar seleccionados */
.bulk-edit-card{max-width:1000px}
.bulk-edit-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.bulk-edit-head h2{margin:4px 0 5px}
.bulk-edit-head p{margin:0;color:#768194}
.bulk-edit-list{display:grid;gap:8px}
.bulk-edit-item{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  border:1px solid #e5e9ef;
  border-radius:10px;
  padding:11px 13px;
  background:#fafbfc;
}
.bulk-edit-item span{
  font-size:12px;
  color:#657184;
  overflow-wrap:anywhere;
}
.bulk-edit-item strong{
  white-space:nowrap;
  color:#d71920;
  font-size:12px;
}
@media(max-width:650px){
  .bulk-edit-head{flex-direction:column}
  .bulk-edit-item{align-items:flex-start;flex-direction:column}
}

/* v6 - seguridad global contra scroll horizontal */
html,body,.admin-body{max-width:100%;overflow-x:hidden!important}
.admin-shell{flex:1 1 auto;width:auto!important;min-width:0!important;max-width:calc(100vw - 240px)!important;overflow-x:hidden!important}
.admin-main{width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:hidden!important}
.admin-main>*{min-width:0!important;max-width:100%!important;box-sizing:border-box}
@media(max-width:760px){.admin-shell{max-width:100vw!important;width:100%!important}}

/* v6 FAQ SEO */
.faq-list{display:grid;gap:10px}
.faq-list details{border:1px solid #e5e9ef;border-radius:10px;background:#fff;padding:0 14px}
.faq-list summary{cursor:pointer;font-weight:800;padding:14px 0}
.faq-list p{margin:0 0 14px;color:#626e7f;line-height:1.65}

/* v6.2 - códigos separados por control/proveedor */
.remote-code-groups{display:grid;gap:14px;margin:14px 0 20px}
.remote-code-group{border:1px solid #e4e8ee;border-radius:12px;padding:15px;background:#fafbfc}
.remote-group-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:11px}
.remote-group-head strong{display:block;font-size:15px}
.remote-group-head small{display:block;color:#788496;margin-top:2px}
.remote-group-head a{font-size:12px;color:#d71920;white-space:nowrap}
.group-note{font-size:12px;color:#707c8d;margin:10px 0 0}
.all-codes-title{font-size:14px;margin:18px 0 10px;color:#515d6d}
.remote-groups-review{margin:12px 0}
.admin-remote-group{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(120px,.8fr) minmax(220px,1.5fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f4}
.admin-remote-group:last-child{border-bottom:0}
.admin-remote-group span{font-size:12px;color:#768194}
.admin-remote-group code{white-space:normal;overflow-wrap:anywhere;font-size:12px}
.admin-remote-group a{font-size:12px;color:#d71920}
@media(max-width:800px){.admin-remote-group{grid-template-columns:1fr}.remote-group-head{flex-direction:column}}

/* v6.3 - códigos por marca de control en /dispositivo/marca */
.section-head.compact{
  margin-bottom:16px;
}
.section-intro{
  margin:6px 0 0;
  color:#6f7b8c;
  line-height:1.6;
}
.control-brand-groups{
  display:grid;
  gap:14px;
}
.control-brand-card{
  background:#fff;
  border:1px solid #e4e8ee;
  border-radius:14px;
  padding:18px;
  box-shadow:0 4px 16px rgba(17,24,39,.035);
}
.control-brand-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:12px;
}
.control-brand-kicker{
  display:block;
  font-size:10px;
  font-weight:800;
  letter-spacing:.10em;
  color:#8a95a5;
  margin-bottom:4px;
}
.control-brand-head h3{
  margin:0;
  font-size:20px;
  color:#161b24;
}
.control-brand-head p{
  margin:4px 0 0;
  font-size:12px;
  color:#798596;
}
.control-brand-head>a{
  font-size:12px;
  color:#d71920;
  white-space:nowrap;
}
.control-brand-title{
  margin:12px 0 10px;
  font-size:13px;
  font-weight:800;
  color:#3d4755;
}
.code-chip-grid.grouped{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.no-codes-note{
  margin:8px 0 0;
  padding:11px 12px;
  background:#f7f8fa;
  border-radius:9px;
  color:#6c7788;
  font-size:13px;
}
.group-detail-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #edf0f4;
}
.group-detail-links a{
  font-size:12px;
  font-weight:700;
  color:#d71920;
}
.empty-public-card{
  padding:22px;
  border:1px dashed #d9dfe7;
  border-radius:14px;
  background:#fafbfc;
}
.empty-public-card h3{margin:0 0 6px}
.empty-public-card p{margin:0;color:#778292}

@media(max-width:700px){
  .control-brand-head{
    flex-direction:column;
  }
  .control-brand-head>a{
    white-space:normal;
  }
}

/* v6.4 Diseño 1 */
.design-one-main{width:100%;max-width:none!important}.d1-section-title{border-bottom:1px solid #e6e9ee;margin-bottom:14px}.d1-section-title h2{display:inline-block;margin:0;padding:0 0 11px;font-size:16px;text-transform:uppercase;position:relative}.d1-section-title h2:after{content:"";position:absolute;left:0;bottom:-1px;width:34px;height:2px;background:#ef2b2d}.d1-control-list{display:grid;gap:12px}.d1-control-row{display:grid;grid-template-columns:235px minmax(0,1fr) 100px;gap:18px;align-items:center;background:#fff;border:1px solid #dfe5ec;border-radius:10px;padding:16px 14px}.d1-control-info{display:flex;align-items:center;gap:12px;min-width:0}.d1-control-badge{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0d376d;color:#fff;font-size:9px;font-weight:900}.d1-control-info h3{font-size:17px;margin:0;color:#111827}.d1-control-info p{font-size:12px;color:#647184;margin:3px 0 0}.d1-code-list{display:flex;flex-wrap:wrap;gap:7px;min-width:0}.d1-code{background:#fff;border:1px solid #dce3eb;border-radius:6px;min-width:49px;padding:7px 9px;font:inherit;font-size:12px;color:#182230;cursor:pointer}.d1-code:hover{border-color:#ef2b2d;background:#fff8f8}.d1-source{text-align:right}.d1-source a{display:inline-block;border:1px solid #dbe2ea;border-radius:6px;padding:7px 9px;font-size:11px;color:#273444;background:#fff;white-space:nowrap}.d1-howto{margin-top:16px;border:1px solid #f2c9ad;border-radius:10px;background:#fff7f1;padding:16px 18px;display:flex;gap:12px;align-items:flex-start}.d1-howto-icon{width:24px;height:24px;border:2px solid #e64a19;color:#e64a19;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 24px}.d1-howto h2{font-size:16px;margin:0 0 8px}.d1-howto ol{margin:0;padding-left:20px;columns:2;column-gap:44px}.d1-howto li{font-size:13px;line-height:1.55;margin-bottom:5px;break-inside:avoid}@media(max-width:900px){.d1-control-row{grid-template-columns:190px minmax(0,1fr)}.d1-source{grid-column:2;text-align:left}}@media(max-width:650px){.d1-control-row{grid-template-columns:1fr}.d1-source{grid-column:1}.d1-howto ol{columns:1}}

/* v6.5 - seguridad de renderizado de grupos */
.d1-control-info p{overflow-wrap:anywhere;max-width:100%}
.d1-no-code{font-size:12px;color:#788496;padding:7px 0}

/* v6.6 - clasificación global de controles */
.control-type-block{margin:0 0 24px}
.control-type-heading{margin:0 0 11px}
.control-type-heading span{
  display:block;font-size:12px;font-weight:900;letter-spacing:.06em;
  color:#263445;margin-bottom:3px
}
.control-type-heading p{margin:0;color:#798596;font-size:12px;line-height:1.5}


/* ============================================================
   DISEÑO INTERNO APROBADO — /dispositivo/marca
   ============================================================ */
.internal-pro-page{background:#fff;color:#111827}
.pro-hero{padding:18px 0 24px;background:#fff}
.pro-breadcrumbs{margin-bottom:18px;font-size:12px}
.pro-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:42px;align-items:center}
.pro-hero h1{font-size:38px;line-height:1.08;margin:0 0 8px;max-width:900px;letter-spacing:-.025em}
.pro-hero h1 span{color:#1757bb}
.pro-hero p{max-width:800px;margin:0;color:#536174;font-size:14px;line-height:1.6}
.pro-brand-logo{height:122px;border:1px solid #e1e6ed;border-radius:13px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 18px rgba(15,23,42,.035)}
.pro-brand-logo img{max-width:78%;max-height:70px;object-fit:contain}
.trust-badges{display:flex;flex-wrap:wrap;gap:16px;margin-top:19px}
.trust-badge{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:8px;background:#f8fafc}
.trust-badge b{width:27px;height:27px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:15px}
.trust-badge span{display:grid;gap:1px}.trust-badge strong{font-size:11px}.trust-badge small{font-size:10px;color:#6f7b8c}
.trust-badge.blue b{background:#e9f2ff;color:#1163d3}.trust-badge.green b{background:#e8faf1;color:#118653}.trust-badge.purple b{background:#f2eaff;color:#7137cb}

.pro-tabs-wrap{border-bottom:1px solid #dfe5ed}
.pro-tabs{display:flex;gap:8px;overflow-x:auto}
.pro-tabs a{padding:12px 18px 11px;font-size:12px;font-weight:800;color:#303b4b;white-space:nowrap;border-bottom:2px solid transparent}
.pro-tabs a.active{color:#145ec4;border-color:#145ec4}

.pro-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:28px;padding-top:14px;padding-bottom:26px}
.pro-main-column{min-width:0}
.pro-code-section{margin-bottom:17px}
.pro-section-title{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.pro-section-title span{width:23px;height:23px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:900}
.pro-section-title h2{font-size:16px;margin:0}
.pro-section-title.blue span{background:#e9f2ff;color:#1765c8}
.pro-section-title.purple span{background:#f0e6ff;color:#7a38ca}
.pro-section-title.gray span{background:#edf0f4;color:#667487}

.pro-code-cards{display:grid;gap:5px}
.pro-code-card{display:grid;grid-template-columns:36px 190px minmax(0,1fr) 92px;gap:12px;align-items:center;border:1px solid #dde4ed;border-radius:8px;padding:8px 9px;background:#fff}
.remote-visual{width:23px;height:58px;border-radius:6px;background:#161b22;display:grid;place-content:start center;gap:4px;padding-top:8px;box-shadow:inset 0 0 0 1px #303844}
.remote-visual i{display:block;width:4px;height:4px;border-radius:50%;background:#aeb6c1}.remote-visual i:first-child{background:#e73333}
.control-identity{display:grid;grid-template-columns:60px minmax(0,1fr);gap:9px;align-items:center;min-width:0}
.control-logo-text{font-size:11px;font-weight:900;color:#1456b8;text-align:center;overflow:hidden;text-overflow:ellipsis}
.control-identity h3{margin:0;font-size:14px;line-height:1.2}.control-identity p{margin:1px 0 0;font-size:10px;color:#667386}
.pro-codes{min-width:0}.pro-code-chips{display:flex;flex-wrap:wrap;gap:5px}
.pro-code-chips button{border:1px solid #bad2f5;background:#f3f8ff;color:#1859b5;border-radius:4px;padding:4px 8px;font-size:10px;font-weight:800;cursor:pointer}
.pro-code-section:nth-of-type(2) .pro-code-chips button{border-color:#d7c4f5;background:#faf5ff;color:#7331b3}
.show-all-codes{border:0;background:transparent;padding:4px 0 0;color:#155dbd;font-size:10px;font-weight:800;cursor:pointer}
.pro-source{text-align:right}.pro-source a{display:inline-block;border:1px solid #8cb8ef;border-radius:5px;padding:6px 8px;color:#145dbd;font-size:10px;font-weight:800;background:#fff}.pro-source small{display:block;margin-top:4px;font-size:9px;color:#8490a0}

.pro-sidebar{display:grid;align-content:start;gap:10px;position:sticky;top:82px}
.pro-side-card{border:1px solid #dfe5ec;border-radius:9px;background:#fff;padding:14px}
.pro-side-card h3{font-size:14px;margin:0 0 10px}
.toc-card{display:grid;gap:7px}.toc-card h3{margin-bottom:4px}.toc-card a{font-size:11px;color:#374356}
.number-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.number-steps li{display:flex;gap:8px}.number-steps li>b{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;flex:0 0 18px;background:#175fc4;color:#fff;font-size:9px}
.number-steps span{display:grid;gap:2px}.number-steps strong{font-size:10px}.number-steps small{font-size:9px;color:#687589;line-height:1.4}
.tips-card{background:#fff9ec;border-color:#f0dba2}.tips-card h3{color:#754d08}.tips-card p{font-size:10px;line-height:1.5;color:#49586a;margin:7px 0}
.help-card{background:#edf9f2;border-color:#bee6cf}.help-card h3{color:#17643a}.help-card p{font-size:10px;color:#425d4f;line-height:1.55}.help-card a{display:block;text-align:center;border:1px solid #64bd89;border-radius:5px;padding:7px;color:#147241;font-size:10px;font-weight:800}

.pro-faq{margin-top:10px;border:1px solid #e0e5eb;border-radius:8px;padding:10px}
.pro-faq .pro-section-title{margin-bottom:4px}
.pro-faq details{border-top:1px solid #edf0f4}.pro-faq details:first-of-type{border-top:0}
.pro-faq summary{cursor:pointer;padding:8px 2px;font-size:11px;font-weight:700}.pro-faq details p{margin:0 2px 10px;font-size:10px;line-height:1.6;color:#627084}

.other-device-cta{margin-bottom:12px;border:1px solid #c9ddf8;background:#f3f8ff;border-radius:8px;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.other-device-cta strong{color:#1259b8;font-size:14px}.other-device-cta p{margin:2px 0 0;font-size:10px;color:#65758a}.other-device-cta>a{background:#1159b8;color:#fff;border-radius:5px;padding:9px 26px;font-size:10px;font-weight:800;text-align:center}

.modern-footer{padding:0;background:#08111f;color:#d7dfeb}.modern-footer-grid{display:grid;grid-template-columns:1.2fr .8fr .9fr 1fr 1.1fr;gap:34px;padding-top:25px;padding-bottom:20px}.modern-footer-grid>div{display:flex;flex-direction:column;gap:7px}.modern-footer-grid strong{color:#fff;font-size:12px}.modern-footer-grid a{color:#c5cfdd;font-size:10px}.modern-footer-grid p{font-size:10px;line-height:1.55;color:#aeb9c8;margin:0}.footer-bottom{border-top:1px solid #223047;padding:9px 0 12px;text-align:center;font-size:9px;color:#8592a5}

@media(max-width:1050px){
 .pro-hero-grid{grid-template-columns:minmax(0,1fr) 220px}
 .pro-content-grid{grid-template-columns:1fr}
 .pro-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
 .toc-card{grid-column:1/-1}
 .pro-code-card{grid-template-columns:32px 170px minmax(0,1fr) 85px}
 .modern-footer-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
 .pro-hero-grid{grid-template-columns:1fr}.pro-brand-logo{width:180px;height:85px}
 .pro-hero h1{font-size:30px}.trust-badges{gap:7px}
 .pro-code-card{grid-template-columns:30px minmax(0,1fr);gap:8px}
 .control-identity{grid-template-columns:55px minmax(0,1fr)}
 .pro-codes,.pro-source{grid-column:2}.pro-source{text-align:left}
 .pro-sidebar{grid-template-columns:1fr}
 .other-device-cta{flex-direction:column;align-items:flex-start}.other-device-cta>a{width:100%}
 .modern-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:500px){
 .pro-hero h1{font-size:26px}.trust-badge{width:100%}
 .pro-tabs a{padding-left:10px;padding-right:10px}
 .pro-code-card{grid-template-columns:1fr}.remote-visual{display:none}.control-identity,.pro-codes,.pro-source{grid-column:1}
 .modern-footer-grid{grid-template-columns:1fr}
}

.verification-note{display:block!important;margin-top:2px!important;font-size:8px!important;color:#748196!important}

/* GUIA BOTONES CONTROL UNIVERSAL */
.buttons-guide-page{background:#fff;color:#111827}.buttons-guide-hero{padding:18px 0 20px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}.buttons-guide-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:38px;align-items:center}.buttons-guide-hero h1{font-size:46px;line-height:1.08;letter-spacing:-.035em;margin:8px 0 14px;max-width:760px;color:#0e2743}.buttons-guide-hero p{font-size:17px;line-height:1.65;color:#2f3e50;max-width:780px;margin:0}.guide-remote-image{height:330px;display:flex;align-items:center;justify-content:center;overflow:hidden}.guide-remote-image img{max-height:390px;max-width:100%;object-fit:contain;transform:rotate(-8deg)}.guide-important{margin-top:22px;display:flex;gap:12px;align-items:center;padding:15px 18px;border-radius:10px;background:#eaf4ff;color:#12263e;max-width:790px}.guide-important>b{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:0 0 32px;background:#1766b8;color:#fff;font-size:20px}.guide-important span{font-size:13px;line-height:1.55}.buttons-table-section{padding-top:8px;padding-bottom:30px}.buttons-table{border:1px solid #dce4ec;border-radius:8px;overflow:hidden;background:#fff}.buttons-table-head,.button-guide-row{display:grid;grid-template-columns:150px 190px 220px minmax(0,1fr)}.buttons-table-head{background:#09243b;color:#fff;font-weight:900;font-size:13px}.buttons-table-head>div{padding:13px 16px;border-right:1px solid rgba(255,255,255,.12)}.button-guide-row{min-height:88px;border-top:1px solid #e0e6ed;align-items:center}.button-guide-row>div{height:100%;display:flex;align-items:center;padding:10px 16px;border-right:1px solid #e0e6ed;font-size:13px;line-height:1.5}.button-guide-row>div:last-child{border-right:0}.button-name{font-weight:900;color:#12243b;font-size:15px!important}.button-guide-row:first-of-type .button-name{color:#e3262e}.button-image{justify-content:center;background:#fbfcfd}.button-image img{width:115px;height:66px;object-fit:contain}.button-meaning{font-weight:800;color:#16263b}.button-purpose{color:#25364a}.guide-tip{margin-top:16px;display:flex;gap:13px;align-items:flex-start;padding:15px 18px;border-radius:9px;background:#edf9f1;border:1px solid #d0ebd9}.guide-tip>b{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;flex:0 0 31px;background:#3caf69;color:#fff}.guide-tip p{margin:2px 0 0;font-size:13px;line-height:1.55;color:#254838}.guide-tip strong{color:#14713f}.guide-feature-card{margin:18px 0;display:flex;gap:18px;align-items:center;border:1px solid #dce4ec;border-radius:12px;padding:18px;background:#fff}.guide-feature-card img{width:110px;height:72px;object-fit:contain}.guide-feature-card h2{margin:0 0 5px;font-size:19px}.guide-feature-card p{margin:0 0 8px;color:#657184;font-size:13px}.guide-feature-card a{font-size:12px;font-weight:800;color:#1760ba}@media(max-width:900px){.buttons-guide-hero-grid{grid-template-columns:1fr 250px}.buttons-guide-hero h1{font-size:38px}.buttons-table-head,.button-guide-row{grid-template-columns:130px 150px 180px minmax(0,1fr)}}@media(max-width:700px){.buttons-guide-hero-grid{grid-template-columns:1fr}.guide-remote-image{height:230px}.buttons-guide-hero h1{font-size:32px}.buttons-table-head{display:none}.button-guide-row{display:grid;grid-template-columns:115px minmax(0,1fr);padding:10px}.button-guide-row>div{border:0!important;padding:7px 9px;height:auto}.button-image{grid-row:1/3;grid-column:1}.button-name{grid-column:2}.button-meaning{grid-column:2}.button-purpose{grid-column:1/-1;border-top:1px solid #edf0f3!important;padding-top:10px!important}.button-image img{width:95px;height:58px}}

/* MODULO GUIAS */
.guides-filter{display:grid!important;grid-template-columns:minmax(220px,1fr) 180px auto auto;gap:9px;align-items:center}
.guides-admin-list{display:grid;gap:8px}.guide-admin-row{display:grid;grid-template-columns:34px minmax(0,1fr) 110px 70px 70px;gap:12px;align-items:center;background:#fff;border:1px solid #e2e7ed;border-radius:10px;padding:12px 14px}.guide-admin-main{display:grid;gap:3px}.guide-admin-main>a{font-weight:800;color:#d71920}.guide-admin-main small{color:#7c8796}.guide-content-editor{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.55;min-height:420px}.url-preview{padding:9px 11px;background:#f6f8fa;border-radius:7px;font-size:12px;color:#687487;margin:-5px 0 12px}
.guides-public-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.public-guide-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:17px;border:1px solid #dfe5ec;border-radius:12px;background:#fff;padding:14px}.public-guide-image{height:120px;border-radius:9px;background:#f7f9fb;display:flex;align-items:center;justify-content:center;overflow:hidden}.public-guide-image img{width:100%;height:100%;object-fit:contain}.public-guide-card h2{font-size:18px;margin:4px 0 6px}.public-guide-card p{font-size:12px;line-height:1.6;color:#657184;margin:0 0 9px}.guide-read-more{font-size:12px;font-weight:800;color:#1760ba}
.public-guide-detail{background:#fff}.guide-detail-hero{padding-top:24px;padding-bottom:24px}.guide-detail-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:38px;align-items:center}.guide-detail-hero h1{font-size:42px;line-height:1.1;margin:6px 0 10px;color:#0e2743}.guide-detail-hero p{font-size:16px;line-height:1.65;color:#526175}.guide-detail-image{height:240px;border:1px solid #e1e6ec;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fafbfd}.guide-detail-image img{max-width:100%;max-height:100%;object-fit:contain}.guide-detail-body{max-width:930px;padding-bottom:40px}.guide-content-html{font-size:16px;line-height:1.75;color:#26374a}.guide-content-html h2{font-size:27px;color:#102b48;margin:30px 0 10px}.guide-content-html h3{font-size:21px;color:#173758;margin:24px 0 8px}.guide-content-html p{margin:0 0 16px}.guide-content-html ul,.guide-content-html ol{margin:0 0 18px;padding-left:25px}.guide-content-html img{max-width:100%;height:auto;border-radius:10px;margin:12px 0}.guide-content-html blockquote{border-left:4px solid #1760ba;background:#f3f8ff;margin:18px 0;padding:13px 16px;color:#3e536b}
@media(max-width:850px){.guides-filter{grid-template-columns:1fr}.guide-admin-row{grid-template-columns:30px minmax(0,1fr)}.guide-admin-row>.status,.guide-admin-row>a{grid-column:2}.guides-public-grid{grid-template-columns:1fr}.guide-detail-hero-grid{grid-template-columns:1fr}}
@media(max-width:560px){.public-guide-card{grid-template-columns:1fr}.public-guide-image{height:160px}.guide-detail-hero h1{font-size:32px}}


/* HOTFIX: logos en directorios de dispositivos */
.public-section .brand-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}

.public-section .brand-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  min-width:0;
  overflow:hidden;
  padding:18px 16px;
  border:1px solid #dfe5ec;
  border-radius:12px;
  background:#fff;
}

.public-section .brand-card .brand-logo{
  width:100%;
  height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  margin-bottom:10px;
}

.public-section .brand-card .brand-logo img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:82% !important;
  max-height:72px !important;
  object-fit:contain !important;
  object-position:center !important;
  flex:none !important;
}

.public-section .brand-card h3{
  margin:0 0 6px;
  font-size:17px;
  line-height:1.25;
}

.public-section .brand-card p{
  margin:0;
  font-size:12px;
  line-height:1.45;
  color:#657184;
}

@media(max-width:1000px){
  .public-section .brand-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .public-section .brand-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:480px){
  .public-section .brand-grid{
    grid-template-columns:1fr;
  }

  .public-section .brand-card .brand-logo{
    height:82px;
  }

  .public-section .brand-card .brand-logo img{
    max-height:64px !important;
  }
}

/* FIX AUX + INICIO + ESTADO DE MARCAS */
.hero-device img{
  display:block;
  max-width:100%;
  max-height:360px;
  width:auto;
  height:auto;
  object-fit:contain;
  margin:auto;
}
.brand-logo-card .published-count{
  display:block;
  margin-top:4px;
  font-size:10px;
  font-weight:700;
  color:#168052;
}
.brand-publication-status{
  display:inline-block;
  margin-top:6px;
  padding:4px 7px;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
}
.brand-publication-status.published{background:#eaf8f0;color:#147143}
.brand-publication-status.review{background:#f1f3f6;color:#778293}


/* Conteos editoriales: solo panel */
.public-section .brand-publication-status,
.public-section .published-count{
  display:none !important;
}

.panel-brand-stats{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#6f7b8c;
  font-weight:600;
}
