/* PACVO · estilos comunes */
:root{
  --bg:#f7f6f3;
  --surface:#ffffff;
  --text:#1f2933;
  --muted:#52606d;
  --line:#e1ddd5;
  --accent:#1d5c63;
  --accent-dark:#144349;
  --accent-soft:#e6f0f0;
  --warn-bg:#fff7e0;
  --warn-line:#e8c66a;
  --radius:10px;
  --max:1080px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);font-size:1.0625rem;line-height:1.65;color:var(--text);background:var(--bg)}
img{max-width:100%;display:block}
a{color:var(--accent)}
a:hover{color:var(--accent-dark)}
:focus-visible{outline:3px solid #f0a500;outline-offset:2px}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:#fff;padding:.6rem 1rem;z-index:10}
.skip:focus{left:1rem;top:1rem}
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 16px}
h1,h2,h3{line-height:1.25;color:#111b24}
h1{font-size:clamp(1.75rem,5.5vw,2.75rem);margin:.2em 0 .5em}
h2{font-size:clamp(1.4rem,4vw,1.9rem);margin:0 0 .75em}
h3{font-size:1.15rem;margin:0 0 .4em}

/* Cabecera */
.site-header{background:var(--surface);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.8rem;padding-bottom:.8rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--text);font-weight:700}
.brand-mark{min-width:38px;height:38px;padding:0 .55rem;border-radius:8px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:.75rem;font-weight:700;letter-spacing:.04em;white-space:nowrap;flex:none}
.brand small{display:block;font-weight:400;color:var(--muted);font-size:.78rem}
.nav{display:flex;gap:1rem;flex-wrap:wrap;font-size:.95rem}
.nav a{text-decoration:none;color:var(--muted)}
.nav a:hover,.nav a[aria-current="page"]{color:var(--accent)}

/* Botones */
.btn{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;font-weight:600;padding:.85rem 1.4rem;border-radius:8px;border:0;cursor:pointer;font-size:1rem;font-family:inherit}
.btn:hover{background:var(--accent-dark);color:#fff}
.btn-ghost{background:transparent;color:var(--accent);border:2px solid var(--accent)}
.btn-ghost:hover{background:var(--accent-soft);color:var(--accent-dark)}

/* Secciones */
section{padding:3rem 0}
section.alt{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;font-weight:700;color:var(--accent);margin:0}
.lead{font-size:1.15rem;color:var(--muted);max-width:60ch}
.hero{padding:3.5rem 0 3rem;background:linear-gradient(180deg,var(--accent-soft),var(--bg))}
.hero .cta-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem}
.prose{max-width:70ch}
.note{background:var(--warn-bg);border-left:4px solid var(--warn-line);padding:1rem 1.1rem;border-radius:6px;font-size:.95rem}

/* Rejillas */
.grid{display:grid;gap:1rem;align-content:start}
@media(min-width:700px){.grid-2{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.grid-3{grid-template-columns:repeat(3,1fr)}}

/* Tarjetas */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;display:flex;flex-direction:column;gap:.4rem}
.alt .card{background:var(--bg)}
.card .media{font-weight:700;color:var(--accent);font-size:.9rem;text-transform:uppercase;letter-spacing:.04em}
.card .date{color:var(--muted);font-size:.9rem}
.card .headline{font-size:1.05rem;font-weight:600;margin:0}
.card .pending{color:var(--muted);font-style:italic;font-size:.95rem;margin:0}
.card .read{margin-top:auto;padding-top:.5rem;font-weight:600}

/* Figuras con fallback */
.figure{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.figure .img-box{position:relative;aspect-ratio:16/10;background:#dfe5e6;display:grid;place-items:center}
.figure .img-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.figure .fallback{color:var(--muted);text-align:center;font-size:.9rem;padding:1rem}
.figure .fallback svg{display:block;width:48px;height:48px;margin:0 auto .4rem;opacity:.6}
.figure figcaption{padding:.7rem 1rem;font-size:.85rem;color:var(--muted)}

/* Pasos */
.steps{list-style:none;counter-reset:s;padding:0;margin:0;display:grid;gap:1rem}
.steps li{counter-increment:s;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1rem 1rem 3.6rem;position:relative}
.steps li::before{content:counter(s);position:absolute;left:1rem;top:1rem;width:1.9rem;height:1.9rem;border-radius:50%;background:var(--accent);color:#fff;font-weight:700;display:grid;place-items:center;font-size:.95rem}

/* Prensa */
.press{background:var(--accent);color:#fff;border-radius:var(--radius);padding:1.6rem}
.press h2{color:#fff}
.press a{color:#fff;font-weight:700}

/* Formulario */
.form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;display:grid;gap:1.1rem}
.field label,.field legend{display:block;font-weight:600;margin-bottom:.3rem}
.field .hint{display:block;font-weight:400;color:var(--muted);font-size:.88rem}
.field input[type=text],.field input[type=email],.field input[type=tel],.field select,.field textarea{width:100%;padding:.75rem .8rem;border:1px solid #b9b3a8;border-radius:8px;font:inherit;background:#fff;color:var(--text)}
.field textarea{min-height:140px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);outline:3px solid var(--accent-soft)}
.check{display:flex;gap:.6rem;align-items:flex-start}
.check input{width:1.2rem;height:1.2rem;margin-top:.25rem;flex:none}
.req{color:#a4262c}
.hp{position:absolute;left:-9999px}
.status{border-radius:8px;padding:1rem;display:none}
.status.ok{display:block;background:#e7f4ea;border:1px solid #8cc79a}
.status.err{display:block;background:#fdecec;border:1px solid #e09a9a}

/* Legal */
.legal h2{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--line)}
.legal h2:first-of-type{border-top:0;margin-top:0}
.ph{background:#fff1b8;padding:0 .3em;border-radius:3px;font-weight:600}
.toc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1rem 1.2rem}

/* Pie */
.site-footer{background:#18242c;color:#cfd6dc;padding:2rem 0;font-size:.95rem}
.site-footer a{color:#fff}
.site-footer .wrap{display:grid;gap:.6rem}
.site-footer .disclaimer{font-size:.85rem;color:#9aa5ae;max-width:75ch}
