/* ==========================================================================
   Corporación El Faro — Hoja de estilos principal
   Estructura:
   1. Variables (paleta, tipografía, espaciado)
   2. Base / reset
   3. Utilidades y layout
   4. Botones
   5. Header / navegación
   6. Hero
   7. Secciones (en orden de aparición)
   8. Modal, WhatsApp flotante, footer
   9. Animaciones y accesibilidad
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  --navy-900: #0b1f33;
  --navy-800: #0f2a44;
  --navy-700: #16395a;
  --petrol-700: #1a5266;
  --petrol-600: #1f5f74;
  --petrol-500: #2c7890;
  --blue-200: #cfe2ea;
  --blue-100: #e6f0f4;
  --blue-50: #f2f7f9;
  --cream: #faf7f2;
  --cream-200: #f3ede3;
  --white: #ffffff;
  --gold-500: #e8b04a;
  --gold-400: #f0c56f;
  --gold-100: #fbf0d9;
  --gold-700: #8a5a0b; /* texto dorado accesible sobre fondos claros */
  --text: #1c2b3a;
  --text-muted: #4a5b6b;
  --border: #dfe6ec;
  --whatsapp: #1f9e57;
  --error: #b42318;
  --success: #1e7a4c;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, 0.06), 0 2px 8px rgba(15, 42, 68, 0.05);
  --shadow: 0 4px 12px rgba(15, 42, 68, 0.06), 0 12px 32px rgba(15, 42, 68, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 42, 68, 0.16);

  --container: 1180px;
  --header-h: 76px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy-800);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--petrol-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--navy-800);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 1.125rem; height: 1.125rem; }
.icon--fill { fill: currentColor; stroke: none; }

/* 3. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--tint { background: var(--blue-50); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* 4. Botones -------------------------------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.125rem; height: 1.125rem; }

.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(232, 176, 74, 0.35);
}
.btn--primary:hover { background: var(--gold-400); color: var(--navy-900); }

.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); color: var(--white); }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); color: var(--white); }

.btn--outline {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: transparent;
}
.btn--outline:hover { background: var(--navy-800); color: var(--white); }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: #188a4b; color: var(--white); }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--petrol-600);
  cursor: pointer;
  text-decoration: none;
}
.link-arrow .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--navy-800); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(15, 42, 68, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-800);
  flex-shrink: 0;
}
.logo:hover { color: var(--navy-800); }
.logo__mark { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--petrol-600);
}
.logo__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo--light { color: var(--white); }
.logo--light:hover { color: var(--white); }
.logo--light .logo__small { color: var(--gold-400); }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; list-style: none; gap: 0.25rem; }
.nav-list a {
  white-space: nowrap;
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.2rem;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-list a:hover { color: var(--petrol-600); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--navy-800); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-cta-mobile { display: none; }

@media (max-width: 1280px) {
  .nav-list a { padding-inline: 0.5rem; font-size: 0.9rem; }
  .nav-list a::after { left: 0.5rem; right: 0.5rem; }
  .main-nav { gap: 1rem; }
}

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 2rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    padding: 1rem 0.25rem;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-list a::after { display: none; }
  .nav-cta-mobile { display: flex; }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(232, 176, 74, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(31, 95, 116, 0.1), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero__title { margin-bottom: 1.25rem; }
.hero__title em {
  font-style: italic;
  color: var(--petrol-600);
  background: linear-gradient(transparent 68%, rgba(232, 176, 74, 0.38) 68%);
  padding-inline: 0.1em;
}

.hero__lead {
  font-size: clamp(1.075rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2.25rem; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust .icon { width: 1.1rem; height: 1.1rem; color: var(--petrol-600); stroke-width: 2.25; }

.hero__visual { position: relative; }
.hero__art {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 270px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--navy-800); font-size: 0.9875rem; line-height: 1.3; }
.float-card span { font-size: 0.8375rem; color: var(--text-muted); line-height: 1.4; display: block; }
.float-card--a { left: -1.75rem; bottom: 2.25rem; }
.float-card--b { right: -1.25rem; top: 1.75rem; animation-delay: -3.5s; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--petrol-600);
  flex-shrink: 0;
}
.icon-badge--gold { background: var(--gold-100); color: var(--gold-700); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 600px; margin-inline: auto; width: 100%; }
  .float-card--a { left: 0.75rem; }
  .float-card--b { right: 0.75rem; }
}
@media (max-width: 520px) {
  .float-card { max-width: 220px; padding: 0.7rem 0.85rem; }
  .float-card .icon-badge { width: 36px; height: 36px; }
  .float-card--a { bottom: 0.75rem; left: 0.5rem; }
  .float-card--b { top: 0.75rem; right: 0.5rem; }
  .hero__actions .btn { width: 100%; }
}

/* 7a. No estás solo ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.split__intro p { color: var(--text-muted); font-size: 1.1rem; }
.split__intro .note {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--gold-500);
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy-800);
  font-size: 1.025rem;
}

.feelings { list-style: none; display: grid; gap: 0.875rem; }
.feeling {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.feeling:hover { background: var(--white); border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.feeling h3 { font-family: var(--font-body); font-size: 1.025rem; font-weight: 600; margin: 0 0 0.2rem; }
.feeling p { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* 7b. Capacitaciones ------------------------------------------------------ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.85rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.card .icon-badge { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.35rem; }
.card .icon-badge .icon { width: 1.6rem; height: 1.6rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.99rem; flex-grow: 1; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.25rem 0 1.35rem;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--petrol-700);
  background: var(--blue-100);
  border-radius: 999px;
}
.tag--gold { color: var(--gold-700); background: var(--gold-100); }
.card__footer { padding-top: 1.1rem; border-top: 1px solid var(--border); }

.programs-note {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
}
.programs-note p { margin: 0; max-width: 680px; }
.programs-note strong { color: var(--white); }

/* 7c. Para familias ------------------------------------------------------- */
.audience {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.audience__lead { font-size: 1.15rem; color: var(--text-muted); }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
}
.audience__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
}
.audience__item .icon-badge { width: 42px; height: 42px; }
.audience__item--wide { grid-column: 1 / -1; }

@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .audience__grid { grid-template-columns: 1fr; } }

/* 7d. Metodología --------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 0.5rem; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-200);
  color: var(--petrol-600);
  box-shadow: 0 0 0 8px var(--blue-50);
}
.step__num .icon { width: 1.75rem; height: 1.75rem; }
.step__num::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -6px; right: -6px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--gold-500);
  border-radius: 50%;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.975rem; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; text-align: left; }
  .step__num { margin: 0; width: 58px; height: 58px; }
}

/* 7e. Quiénes somos ------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__art { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; }
.about__text > p { color: var(--text-muted); font-size: 1.075rem; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 1.75rem; }
.mv__item {
  padding: 1.4rem 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.mv__item h3 {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--petrol-600);
  margin-bottom: 0.6rem;
}
.mv__item p { margin: 0; font-size: 0.975rem; color: var(--text); }

.values { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.values li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy-800);
}
.values li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
}
@media (max-width: 520px) { .mv { grid-template-columns: 1fr; } }

/* 7f. Mensaje destacado --------------------------------------------------- */
.quote-band {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  background:
    radial-gradient(600px 380px at 50% 0%, rgba(232, 176, 74, 0.22), transparent 70%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--petrol-700) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.quote-band::before {
  /* haz de luz sutil del faro */
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 140%;
  height: 120%;
  transform: translateX(-50%);
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(240, 197, 111, 0.1) 20deg, transparent 40deg);
  pointer-events: none;
}
.quote-band .container { position: relative; }
.quote-band__mark { width: 56px; height: 56px; margin: 0 auto 1.75rem; color: var(--blue-200); }
.quote-band blockquote { margin: 0 auto 2.5rem; max-width: 900px; }
.quote-band blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--white);
  margin: 0;
}
.quote-band blockquote em { color: var(--gold-400); font-style: italic; }

/* 7g. Recursos ------------------------------------------------------------ */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card__cover {
  position: relative;
  aspect-ratio: 16 / 8;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}
.article-card__cover .icon { width: 44px; height: 44px; stroke-width: 1.4; position: relative; }
.article-card__cover::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -60px; top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cover--1 { background: linear-gradient(135deg, var(--navy-800), var(--petrol-600)); }
.cover--2 { background: linear-gradient(135deg, var(--petrol-700), var(--petrol-500)); }
.cover--3 { background: linear-gradient(135deg, #274b6d, var(--navy-800)); }
.cover--4 { background: linear-gradient(135deg, #7a5310, #b9811b); }
.cover--5 { background: linear-gradient(135deg, var(--petrol-600), #3d8aa3); }
.article-card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.5rem 1.6rem 1.6rem; }
.article-card__meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.article-card h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.article-card p { color: var(--text-muted); font-size: 0.96rem; flex-grow: 1; }

.article-card--featured { grid-column: span 2; flex-direction: row; }
.article-card--featured .article-card__cover { aspect-ratio: auto; width: 42%; flex-shrink: 0; min-height: 260px; }
.article-card--featured h3 { font-size: 1.5rem; }
@media (max-width: 760px) {
  .article-card--featured { grid-column: auto; flex-direction: column; }
  .article-card--featured .article-card__cover { width: 100%; aspect-ratio: 16 / 8; }
}

/* 7h. FAQ ----------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-aside p { color: var(--text-muted); }
.disclaimer {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--gold-100);
  border: 1px solid #efd9a8;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--navy-800);
}
.disclaimer .icon { color: var(--gold-700); margin-top: 0.15rem; }
.disclaimer p { margin: 0; color: var(--navy-800); }

.accordion { display: grid; gap: 0.875rem; }
.accordion__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.accordion__item.is-open { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.accordion__item h3 { margin: 0; font-size: 1rem; }
.accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  color: var(--navy-800);
  cursor: pointer;
  border-radius: var(--radius);
}
.accordion__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--petrol-600);
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.accordion__icon .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.25; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); background: var(--gold-500); color: var(--navy-900); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.accordion__panel > div { overflow: hidden; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__content { padding: 0 1.4rem 1.35rem; color: var(--text-muted); font-size: 0.99rem; }
.accordion__content p:last-child { margin-bottom: 0; }
.accordion__content strong { color: var(--navy-800); }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}

/* 7i. Testimonios --------------------------------------------------------- */
.testimonials-placeholder {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
  background: var(--white);
  border: 1.5px dashed var(--blue-200);
  border-radius: var(--radius-lg);
}
.testimonials-placeholder .icon-badge { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1.25rem; }
.testimonials-placeholder .icon-badge .icon { width: 1.75rem; height: 1.75rem; }
.testimonials-placeholder p.lead {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--navy-800);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.testimonials-placeholder p { color: var(--text-muted); margin-bottom: 0; }

/* 7j. Contacto ------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.contact__info > p { color: var(--text-muted); font-size: 1.1rem; }
.contact-list { list-style: none; display: grid; gap: 1rem; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list small { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list a, .contact-list span.value { font-weight: 600; color: var(--navy-800); text-decoration: none; }
.contact-list a:hover { color: var(--petrol-600); text-decoration: underline; }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.925rem; font-weight: 600; color: var(--navy-800); }
.field label .req { color: var(--error); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7d8b98; }
.field input:hover, .field textarea:hover { border-color: #c4d0da; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--petrol-500);
  box-shadow: 0 0 0 4px rgba(44, 120, 144, 0.15);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--error); background: #fff8f7; }
.field-error { min-height: 0; font-size: 0.85rem; color: var(--error); font-weight: 500; }
.field-error:empty { display: none; }

.checkbox { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.checkbox input {
  width: 22px; height: 22px;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--petrol-600);
  cursor: pointer;
}
.checkbox label { font-weight: 400; cursor: pointer; }

.form-foot { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; }
.form-foot small { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

.form-status {
  display: none;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.975rem;
}
.form-status.is-visible { display: flex; }
.form-status--success { background: #e8f5ee; color: var(--success); border: 1px solid #bfe3cf; }
.form-status--error { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form-status p { margin: 0; }

.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.emergency-note {
  margin-top: 1.75rem;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--blue-50);
  border-radius: 12px;
}
.emergency-note strong { color: var(--navy-800); }

/* 8a. Modal --------------------------------------------------------------- */
.modal {
  width: min(720px, calc(100% - 2rem));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  background: var(--white);
}
.modal::backdrop { background: rgba(11, 31, 51, 0.6); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn 0.3s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__inner { padding: clamp(1.75rem, 4vw, 2.75rem); }
.modal__close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem 0 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--navy-800);
  cursor: pointer;
  z-index: 2;
}
.modal__close:hover { background: var(--blue-200); }
.modal h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 2rem; }
.modal h3 { font-size: 1.1rem; margin-top: 1.5rem; font-family: var(--font-body); font-weight: 700; }
.modal p, .modal li { color: var(--text-muted); }
.modal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.modal li { margin-bottom: 0.4rem; }
.modal .modal__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.modal .modal__cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
}
.modal .modal__cta p { margin: 0; font-size: 0.95rem; }

/* 8b. WhatsApp flotante --------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 58px;
  padding: 0 1.25rem 0 1rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(31, 158, 87, 0.38);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-2px); background: #188a4b; color: var(--white); }
.whatsapp-float .icon { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .whatsapp-float { width: 58px; padding: 0; justify-content: center; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* 8c. Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand p { margin-top: 1.25rem; max-width: 340px; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: 0.6rem; list-style: none; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold-400); color: var(--white); }
.social .icon { width: 1.2rem; height: 1.2rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 5rem; } /* espacio para el botón flotante */
}

/* 8d. Páginas legales ----------------------------------------------------- */
.legal { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 5rem; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal .updated { font-size: 0.9rem; color: var(--text-muted); }

/* 9. Animaciones ---------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }
