/* GLS Seguimiento — diseño propio siguiendo la estructura de gls-spain.es:
   cabecera blanca fina + héroe de seguimiento a todo lo ancho, franja de
   cifras, dos tarjetas de audiencia, línea de estados y fila de ayuda.
   Azul GLS (#003da5) + amarillo (#ffc72c). Sin relación con la plantilla
   naranja de una sola columna de los otros sitios. */
:root{
  --brand:#003da5; --brand-dark:#002a73; --brand-soft:#e8f0fe;
  --accent:#ffc72c; --accent-dark:#e0a800;
  --ink:#0f1f38; --muted:#5a6b84; --bg:#ffffff; --surface:#f2f6fc;
  --border:#dbe4f0; --navy:#0a2540; --radius:14px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.65;overflow-x:hidden}
img,video,iframe,table{max-width:100%}
img{height:auto}
table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.wrap.narrow{max-width:720px}

/* ---------- Cabecera: franja legal fina + barra blanca ---------- */
.site-header{background:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid var(--border);box-shadow:0 1px 6px rgba(10,37,64,.06)}
.topbar{background:var(--navy);color:#c3d2e8}
.topbar-inner{display:flex;align-items:center;gap:16px;min-height:34px;padding-top:4px;padding-bottom:4px;flex-wrap:wrap}
.topbar-note{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-legal{display:flex;gap:2px;margin-left:auto;flex-wrap:wrap;flex-shrink:1;min-width:0}
.topbar-legal::-webkit-scrollbar{display:none}
.topbar-legal a{color:#c3d2e8;font-size:12.5px;padding:4px 8px;border-radius:6px;white-space:nowrap}
.topbar-legal a:hover{color:#fff;background:rgba(255,255,255,.12);text-decoration:none}
.header-inner{display:flex;align-items:center;gap:14px;min-height:64px;padding-left:16px;padding-right:16px}
.brand{color:var(--brand);font-weight:800;font-size:20px;letter-spacing:-.02em;display:flex;align-items:center;gap:9px;white-space:nowrap}
.brand-logo{flex-shrink:0;border-radius:9px}
.footer-logo{flex-shrink:0;border-radius:6px}
.footer-col strong{display:flex;align-items:center;gap:8px}
.brand:hover{text-decoration:none}
.brand-mark{display:inline-flex;width:34px;height:34px;border-radius:9px;background:var(--brand);align-items:center;justify-content:center;flex-shrink:0}
.nav-toggle{display:none;background:none;border:1px solid var(--border);color:var(--brand);border-radius:8px;padding:6px 10px;cursor:pointer;margin-left:auto;font-size:17px}
.site-nav{display:flex;gap:2px;flex-wrap:wrap;flex:1 1 auto;justify-content:flex-end;min-width:0}
.site-nav a{color:var(--ink);padding:8px 7px;border-radius:8px;font-size:14px;font-weight:600;white-space:nowrap}
.site-nav a:hover{background:var(--brand-soft);text-decoration:none}
.site-nav a.active{color:var(--brand);background:var(--brand-soft)}
.header-cta{background:var(--brand);color:#fff!important;font-weight:700;font-size:14px;padding:10px 15px;border-radius:999px;white-space:nowrap}
.header-cta:hover{background:var(--brand-dark);text-decoration:none}

/* ---------- Héroe de seguimiento (a todo lo ancho) ---------- */
.hero{background:linear-gradient(115deg,var(--brand-dark) 0%,var(--brand) 55%,#0057d9 100%);color:#fff}
.hero-inner{padding:56px 20px 52px}
.hero-eyebrow{display:inline-block;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#0a2540;background:var(--accent);border-radius:999px;padding:6px 14px;margin:0 0 18px}
.hero h1{color:#fff;font-size:clamp(30px,4.6vw,46px);line-height:1.12;letter-spacing:-.02em;margin:0 0 14px;max-width:760px}
.hero-lead{font-size:18px;color:#dbe7fb;max-width:680px;margin:0 0 26px}
.hero-form{display:flex;gap:10px;background:#fff;border-radius:16px;padding:12px;max-width:860px;box-shadow:0 12px 32px rgba(0,20,60,.35)}
.hero-field{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.hero-field-cp{flex:0 0 190px}
.hero-field span{font-size:12.5px;font-weight:700;color:var(--muted);padding-left:4px}
.hero-field input{width:100%;padding:12px 13px;border:1px solid var(--border);border-radius:10px;font-size:16px;color:var(--ink);background:#fff}
.hero-field input:focus{outline:2px solid var(--brand);outline-offset:1px}
.hero-form button{flex:0 0 auto;background:var(--accent);color:#0a2540;border:0;border-radius:10px;padding:0 26px;font-size:16px;font-weight:800;cursor:pointer;align-self:flex-end;height:48px}
.hero-form button:hover{background:#ffd75e}
.hero-result{max-width:860px}
.hero-result:empty{display:none}
.hero-verdict{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35);border-radius:12px;padding:14px 18px;margin-top:16px;font-size:15.5px}
.hero-verdict.ok{border-color:var(--accent)}
.hero-verdict a{color:#fff;text-decoration:underline}
.hero-verdict .btn-oficial{margin-top:8px}
.hero-note{font-size:14px;color:#b9cdf0;max-width:860px;margin:18px 0 0}
.hero-note a{color:#fff;text-decoration:underline}

/* ---------- Franja de cifras ---------- */
.stats-band{background:var(--surface);border-bottom:1px solid var(--border)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding-top:26px;padding-bottom:26px}
.stat{text-align:center;padding:0 8px}
.stat strong{display:block;font-size:clamp(26px,3.4vw,36px);font-weight:800;color:var(--brand);letter-spacing:-.02em;line-height:1.1}
.stat span{font-size:14px;color:var(--muted)}

/* ---------- Dos tarjetas de audiencia ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:36px;padding-bottom:8px}
.split-card{background:#fff;border:1px solid var(--border);border-top:5px solid var(--brand);border-radius:var(--radius);padding:24px 26px}
.split-card:nth-child(2){border-top-color:var(--accent)}
.split-card h2{margin:0 0 8px;border:0;padding:0;font-size:22px}
.split-card p{color:var(--muted);margin:0 0 14px}
.split-card ul{margin:0;padding-left:18px}
.split-card li{margin:7px 0}
.split-card a{font-weight:600}

/* ---------- Línea de estados ---------- */
.journey{padding-top:34px;padding-bottom:10px}
.journey h2{margin:0 0 6px;border:0;padding:0}
.journey-intro{color:var(--muted);margin:0 0 22px;max-width:640px}
.journey-steps{list-style:none;margin:0;padding:0;display:flex;gap:0}
.journey-steps li{flex:1;position:relative;text-align:center}
.journey-steps li::before{content:"";position:absolute;top:21px;left:-50%;width:100%;height:3px;background:var(--brand-soft);z-index:0}
.journey-steps li:first-child::before{display:none}
.journey-steps a{display:flex;flex-direction:column;align-items:center;gap:10px;position:relative;z-index:1;padding:0 6px}
.journey-steps a:hover{text-decoration:none}
.journey-steps strong{width:44px;height:44px;border-radius:50%;background:var(--brand);color:#fff;font-size:18px;font-weight:800;display:flex;align-items:center;justify-content:center;border:3px solid #fff;box-shadow:0 0 0 2px var(--brand-soft)}
.journey-steps li:last-child strong{background:#16a34a}
.journey-steps span{font-size:14.5px;font-weight:700;color:var(--ink)}
.journey-steps a:hover span{color:var(--brand)}

/* ---------- Héroe de página interior ---------- */
.page-hero{background:linear-gradient(115deg,var(--brand-dark),var(--brand));color:#fff}
.page-hero .wrap{padding-top:34px;padding-bottom:30px}
.crumbs{font-size:13.5px;color:#b9cdf0;margin:0 0 8px}
.crumbs a{color:#fff;text-decoration:underline}
.page-hero h1{color:#fff;font-size:clamp(26px,3.6vw,36px);line-height:1.2;letter-spacing:-.02em;margin:0}

/* ---------- Artículo ---------- */
main{padding:30px 0 44px}
.article-wrap{max-width:820px}
h1{font-size:clamp(26px,4vw,38px);line-height:1.2;letter-spacing:-.02em}
h2{font-size:clamp(21px,3vw,27px);margin-top:36px;border-bottom:2px solid var(--brand-soft);padding-bottom:6px}
h3{font-size:19px;margin-top:28px}
.lead{font-size:18px;color:#374151}
.toc{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;margin:20px 0}
.toc h2{margin:0 0 8px;border:0;padding:0;font-size:17px}
.toc ol{margin:0;padding-left:22px}
.box{border:1px solid var(--border);border-left:4px solid var(--accent);background:#fffbeb;border-radius:10px;padding:14px 18px;margin:20px 0}
.box.info{border-left-color:var(--brand);background:var(--brand-soft)}
.box.warn{border-left-color:#dc2626;background:#fef2f2}
.tool-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;margin:24px 0}
.tool-card label{display:block;font-weight:600;margin:10px 0 4px}
.tool-card input,.tool-card select{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:9px;font-size:16px;background:#fff}
.tool-card button{background:var(--brand);color:#fff;border:0;border-radius:9px;padding:12px 20px;font-size:16px;font-weight:700;cursor:pointer;margin-top:14px}
.tool-card button:hover{background:var(--brand-dark)}
.result{background:#fff;border:2px solid var(--brand);border-radius:var(--radius);padding:18px;margin-top:18px;font-size:18px}
.result .big{font-size:30px;font-weight:800;color:var(--brand-dark)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin:20px 0}
.card{border:1px solid var(--border);border-radius:var(--radius);padding:16px;background:#fff}
.card h3{margin-top:0}
.card p{color:var(--muted);font-size:15px}
.muted{color:var(--muted);font-size:14px}
.alert{padding:12px;border-radius:9px;margin:12px 0}
.alert.error{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b}

/* ---------- Fila de ayuda (portada) ---------- */
.help-row{padding-top:8px;padding-bottom:44px}
.help-row>h2{margin:0 0 18px;border:0;padding:0}
.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.help-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px 22px}
.help-card h3{margin:0 0 6px}
.help-card p{color:var(--muted);font-size:15px;margin:0}

/* ---------- Pie ---------- */
.site-footer{background:var(--navy);color:#c3d2e8;margin-top:0}
.footer-inner{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:28px;padding:40px 20px 28px}
.site-footer a{color:#c3d2e8}
.site-footer a:hover{color:#fff}
.site-footer h3{color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 12px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:7px 0}
.footer-brand strong{color:#fff;font-size:19px}
.footer-brand p{font-size:14.5px;margin:10px 0}
.footer-disclaimer{font-size:13px;color:#8fa6c4}
.footer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid rgba(255,255,255,.14);font-size:14px}
.footer-bottom a{color:#c3d2e8}

/* ---------- Botones oficiales y flujo de estados ---------- */
.btn-oficial{display:inline-block;background:var(--brand);color:#fff!important;font-weight:700;padding:12px 20px;border-radius:9px;margin:10px 0}
.btn-oficial:hover{background:var(--brand-dark);text-decoration:none}
ol.flujo{counter-reset:paso;list-style:none;padding-left:0}
ol.flujo li{counter-increment:paso;position:relative;padding:10px 10px 10px 48px;border:1px solid var(--border);border-radius:10px;margin:8px 0;background:#fff}
ol.flujo li::before{content:counter(paso);position:absolute;left:10px;top:10px;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800;text-align:center;line-height:26px;font-size:14px}
.tool-card textarea{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:9px;font-size:16px}

/* Images: responsive, no overflow, no layout shift */
figure{margin:24px 0}
figure img{display:block;width:100%;height:auto;border-radius:10px}
figcaption{font-size:14px;color:var(--muted);margin-top:6px}
.img-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:20px 0}
.img-grid figure{margin:0}
.hero-img{border-radius:var(--radius)}

@media (max-width:1400px){
  .topbar-note{display:none}
  .topbar-legal{margin-left:0}
}
@media (max-width:860px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .footer-inner{grid-template-columns:1fr 1fr}
  .help-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .topbar-note{display:none}
  .topbar-legal{margin-left:0}
  .nav-toggle{display:block}
  .header-cta{display:none}
  .site-nav{display:none;width:100%;flex-direction:column;padding-bottom:10px;order:3;margin-left:0}
  .site-nav.open{display:flex}
  .site-nav a{padding:10px 4px}
  .header-inner{flex-wrap:wrap;min-height:56px}
  .hero-inner{padding:40px 20px}
  .hero-form{flex-direction:column;padding:14px}
  .hero-field-cp{flex:1}
  .hero-form button{width:100%;align-self:stretch}
  .split{grid-template-columns:1fr}
  .journey-steps{flex-direction:column;gap:0;align-items:stretch}
  .journey-steps li{text-align:left}
  .journey-steps li::before{top:-2px;left:21px;width:3px;height:100%}
  .journey-steps li:first-child::before{display:none}
  .journey-steps a{flex-direction:row;align-items:center;gap:14px;padding:10px 0}
  .journey-steps strong{flex:0 0 44px}
  main{padding:20px 0 36px}
  .tool-card{padding:16px}
  .footer-inner{grid-template-columns:1fr}
}

.related ul{margin:10px 0 0;padding-left:22px}
.related li{margin:4px 0}

.ad-slot{margin:18px auto;max-width:100%;overflow:hidden;text-align:center}
.ad-slot.ad-article{margin:24px 0}
@media (max-width:720px){.brand-logo{max-height:34px;max-width:140px}}
