/* ============================================================
   Laboratorio Raffo — Design System v2 "Herencia editorial"
   Display: Newsreader (serif óptico) · UI/Body: Archivo
   Marfil cálido + tinta azul-noche + teal clínico
   ============================================================ */

:root {
  /* Tinta y papel */
  --ink: #14273a;
  --ink-deep: #0c1a29;
  --ink-soft: #4d6070;
  --paper: #faf7f2;
  --paper-warm: #f3eee5;
  --paper-card: #fffdf9;
  --surface-dark: #0e1c2b;

  /* Acentos */
  --teal: #0e7c74;
  --teal-deep: #0a5f59;
  --teal-wash: #e3f0ee;
  --gold: #b8863b;

  /* Alias heredados */
  --brand-primary: var(--ink);
  --brand-primary-dark: var(--ink-deep);
  --brand-primary-light: var(--teal-wash);
  --brand-accent: var(--teal);
  --brand-accent-dark: var(--teal-deep);
  --surface: var(--paper);
  --surface-alt: var(--paper-warm);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --text-inverse: #f6f2ea;

  --border: #e5ddcf;
  --border-strong: #cfc4b0;

  --danger: #b03a3a;
  --success: #2e7d52;
  --whatsapp: #1faa55;

  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-heading: var(--font-display);
  --font-body: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 2px rgba(20, 39, 58, 0.05);
  --shadow-md: 0 10px 28px -12px rgba(20, 39, 58, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(20, 39, 58, 0.28);

  --container: 1200px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--teal); color: #fff; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grano de papel sutilísimo */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.12 0 0 0 0 0.16 0 0 0 .03 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 450; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--teal-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  height: var(--header-h);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: auto; height: 52px; object-fit: contain; flex-shrink: 0; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.04); }

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: .55rem .8rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 1px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; background: none; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); background: none; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
  padding: .5rem .9rem;
  cursor: pointer;
}

/* ============================================================
   Hero (portada)
   ============================================================ */
.hero {
  position: relative;
  background: var(--surface-dark);
  color: var(--text-inverse);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 15%, rgba(14, 124, 116, .22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(184, 134, 59, .10), transparent 55%),
    linear-gradient(180deg, #0e1c2b 0%, #12243a 100%);
}
/* filete doble estilo papelería */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 0 4px / 100% 3px no-repeat;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem clamp(4rem, 8vw, 7rem);
  text-align: left;
}
.hero-logo { height: 64px; width: auto; margin-bottom: 2.2rem; opacity: .95; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: #9fc4bd;
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: ""; width: 42px; height: 1px; background: var(--gold);
}
.hero h1 {
  color: var(--text-inverse);
  max-width: 16ch;
  margin-bottom: 1.2rem;
}
.hero h1 em, .hero h1 i {
  font-style: italic; font-weight: 400; color: #8fd0c8;
}
.hero p.lead {
  font-size: 1.12rem;
  color: #b9c6d0;
  max-width: 56ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero .btn-ghost {
  border-color: rgba(246, 242, 234, .35); color: var(--text-inverse);
}
.hero .btn-ghost:hover { background: rgba(246, 242, 234, .1); border-color: rgba(246, 242, 234, .6); }

/* ============================================================
   Page hero (páginas interiores)
   ============================================================ */
.page-hero {
  background: var(--surface-dark);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% 0%, rgba(14, 124, 116, .2), transparent 55%),
    linear-gradient(180deg, #0e1c2b, #13253c);
}
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 0 4px / 100% 3px no-repeat;
}
.page-hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.2rem, 6vw, 5rem) 1.5rem;
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: #9fc4bd;
  margin-bottom: 1rem; background: none; padding: 0;
}
.page-hero .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.page-hero h1 { color: var(--text-inverse); margin-bottom: .75rem; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-hero p { color: #b9c6d0; max-width: 62ch; font-size: 1.05rem; margin-bottom: 0; }

/* ============================================================
   Secciones
   ============================================================ */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 1.5rem;
  position: relative;
}
.section-alt {
  max-width: none;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section-dark {
  max-width: none;
  background: var(--surface-dark);
  color: var(--text-inverse);
}
.section-dark > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section-dark h2, .section-dark h3 { color: var(--text-inverse); }
.section-dark p { color: #b9c6d0; }

.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head p { font-size: 1.05rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }

.lead { font-size: 1.12rem; }

/* ============================================================
   Grillas y tarjetas
   ============================================================ */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column;
  position: relative;
  color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute; top: -1px; left: 1.4rem; right: 1.4rem; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
a.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  text-decoration: none; color: inherit;
}
a.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; margin-bottom: 0; flex: 1; }

.card-highlight {
  border-color: var(--teal);
  background: linear-gradient(180deg, var(--teal-wash), var(--paper-card) 55%);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal-wash);
  border: 1px solid rgba(14, 124, 116, .25);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.card-icon svg { width: 24px; height: 24px; }
a.card:hover .card-icon { background: var(--teal); color: #fff; transform: rotate(-6deg) scale(1.05); }

.card-link {
  margin-top: 1.1rem;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: .45rem;
}
.card-link::after { content: "→"; transition: transform .3s var(--ease); }
a.card:hover .card-link::after { transform: translateX(5px); }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 1rem 2.1rem; font-size: .86rem; }

.btn-primary { background: var(--ink); color: var(--text-inverse); }
.btn-primary:hover { background: var(--ink-deep); color: #fff; box-shadow: var(--shadow-md); }

.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-deep); color: #fff; box-shadow: 0 12px 28px -10px rgba(14, 124, 116, .55); }

.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; box-shadow: 0 12px 28px -10px rgba(31, 170, 85, .5); }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--paper-warm);
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  margin-bottom: .6rem;
}
.badge-accent { background: var(--teal-wash); border-color: rgba(14, 124, 116, .3); color: var(--teal-deep); }

/* ============================================================
   Info strip
   ============================================================ */
.info-strip {
  background: var(--surface-dark);
  color: var(--text-inverse);
  position: relative;
}
.info-strip::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--gold); opacity: .5;
}
.info-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.9rem 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.info-strip-item { display: flex; align-items: flex-start; gap: .9rem; }
.info-strip-item svg { width: 24px; height: 24px; color: #8fd0c8; flex-shrink: 0; margin-top: 2px; }
.info-strip-item strong {
  display: block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #9fc4bd; margin-bottom: .2rem;
}
.info-strip-item span, .info-strip-item div { font-size: .95rem; color: #d8e0e7; }
.info-strip-item a { color: #fff; }
.info-strip-item a:hover { color: #8fd0c8; }

/* ============================================================
   Logos de coberturas
   ============================================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-grid-item {
  background: var(--paper-card);
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem 1.2rem;
  min-height: 96px;
}
.logo-grid-item img {
  max-height: 52px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.logo-grid-item:hover img { filter: grayscale(0) opacity(1); transform: scale(1.06); }

/* ============================================================
   Split
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ============================================================
   Listas / stacks
   ============================================================ */
.list-clean { list-style: none; margin: 0 0 1em; padding: 0; }
.list-clean li {
  padding: .5rem 0 .5rem 1.6rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}
.list-clean li:last-child { border-bottom: none; }
.list-clean li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.list-clean strong { color: var(--ink); }

.stack > * + * { margin-top: 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .45rem 0; color: var(--text-muted); }

/* ============================================================
   Acordeones
   ============================================================ */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-card); }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-header {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: var(--ink);
  padding: 1.15rem 1.4rem;
  cursor: pointer; text-align: left;
  transition: background .25s var(--ease);
}
.accordion-header:hover { background: var(--paper-warm); }
.accordion-chevron { width: 20px; height: 20px; transition: transform .3s var(--ease); flex-shrink: 0; color: var(--teal-deep); }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 1.4rem 1.3rem; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body p, .accordion-body li { font-size: .95rem; }

/* ============================================================
   Formularios
   ============================================================ */
.form { display: grid; gap: 1.1rem; }
.form-group { display: grid; gap: .35rem; }
.form-group label {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.form input, .form textarea, .form select {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: .8rem 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 116, .15);
}

/* ============================================================
   Mapa
   ============================================================ */
.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { display: block; width: 100%; }

/* ============================================================
   Director / perfil
   ============================================================ */
.director {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 2.5rem; align-items: start;
}
.director img { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.director-info h3 { margin-bottom: .25rem; }
.director-info .role {
  display: inline-block;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}
.director-info { max-width: 720px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--surface-dark);
  color: #b9c6d0;
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 7px;
  background:
    linear-gradient(var(--teal), var(--teal)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 6px / 100% 1px no-repeat;
}
.footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer-brand img { height: 58px; width: auto; margin-bottom: 1.1rem; opacity: .92; }
.footer-brand p { font-size: .95rem; color: #93a4b2; }
.footer-acred {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #8fd0c8;
  border: 1px solid rgba(143, 208, 200, .3);
  border-radius: 999px;
  padding: .35rem .8rem;
  margin-top: .4rem;
}
.site-footer h4 {
  color: #f6f2ea;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .3rem 0; font-size: .92rem; }
.site-footer a { color: #b9c6d0; }
.site-footer a:hover { color: #8fd0c8; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(185, 198, 208, .15);
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-size: .82rem; color: #7b8d9c;
}

/* ============================================================
   FAB WhatsApp
   ============================================================ */
.fab-whatsapp {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(31, 170, 85, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab-whatsapp:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ============================================================
   Reveals progresivos (sólo si el JS los activa)
   ============================================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Utilidades
   ============================================================ */
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: .75rem; } .mt-4 { margin-top: 1.75rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: .75rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: .5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 1.5rem; font-size: .9rem; }
  .nav-links a::after { display: none; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .info-strip-inner { grid-template-columns: 1fr; gap: 1.1rem; }
  .director { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Celdas de cobertura sin logo (tipográficas) */
.logo-texto {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 500;
  color: var(--ink-soft);
  opacity: .55;
  transition: opacity .35s var(--ease), color .35s var(--ease);
}
.logo-grid-item:hover .logo-texto { opacity: 1; color: var(--ink); }
