/* ==========================================================================
   ITHAKON — Landing Page
   Sistema de diseño basado en ithakon-design.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Marca */
  --color-navy-900: #0b132b;
  --color-navy-800: #13224a;
  --color-blue-500: #0066ff;
  --color-teal-500: #00b7a7;
  --color-teal-600: #009e91;
  /* Teal para TEXTO sobre fondo claro: #00B7A7 solo da 3.3:1 y no cumple
     WCAG AA (§10 del design system). Este tono da 5.4:1 sobre blanco. */
  --color-teal-700: #00776c;
  --color-slate-600: #4d5566;
  --color-gray-100: #e6ebf1;
  --color-gray-050: #f7fafc;
  --color-white: #ffffff;

  /* Derivados para fondos oscuros */
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #c7d0de;

  /* Funcionales */
  --color-success: #16a085;
  --color-warning: #f3a712;
  --color-danger: #e5484d;
  --color-info: #3b82f6;

  /* Gradientes */
  --gradient-brand: linear-gradient(135deg, #0066ff 0%, #00b7a7 100%);
  --gradient-dark: linear-gradient(135deg, #0b132b 0%, #13224a 100%);
  --gradient-soft: linear-gradient(135deg, #f7fafc 0%, #eafbf8 100%);

  /* Tipografía */
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Escala tipográfica fluida (base: tabla §4 del design system) */
  --text-display: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem); /* 34 → 56 */
  --text-h1: clamp(2rem, 1.4rem + 3vw, 3rem); /* 32 → 48 */
  --text-h2: clamp(1.625rem, 1.25rem + 1.9vw, 2.25rem); /* 26 → 36 */
  --text-h3: clamp(1.375rem, 1.15rem + 1.1vw, 1.75rem); /* 22 → 28 */
  --text-h4: 1.375rem; /* 22 */
  --text-body-lg: 1.125rem; /* 18 */
  --text-body: 1rem; /* 16 */
  --text-sm: 0.875rem; /* 14 */
  --text-caption: 0.75rem; /* 12 */

  /* Espaciado — escala base 4px */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Separación entre secciones: 96–144px (padding superior + inferior) */
  --section-y: clamp(3rem, 1.75rem + 4.5vw, 4.5rem);

  /* Contenedor */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 0.75rem + 2vw, 3rem);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Bordes */
  --border-subtle: 1px solid #e6ebf1;
  --border-brand: 1px solid rgba(0, 183, 167, 0.35);

  /* Sombras */
  --shadow-sm: 0 4px 12px rgba(11, 19, 43, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 19, 43, 0.1);
  --shadow-lg: 0 24px 64px rgba(11, 19, 43, 0.14);

  /* Header */
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-slate-600);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-navy-900);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-h4);
  line-height: 1.25;
  font-weight: 600;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-blue-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Utilidades de layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--gradient-soft);
}

.section--gray {
  background: var(--color-gray-050);
}

.section--dark {
  background: var(--gradient-dark);
  color: var(--color-on-dark-muted);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-on-dark);
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-12);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-body-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-700);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-teal-500);
}

/* Sobre navy se invierte: el teal claro es el que cumple contraste */
.section--dark .eyebrow,
.hero .eyebrow {
  color: var(--color-teal-500);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--color-navy-900);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Logo
   -------------------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-navy-900);
}

.logo__mark {
  width: 34px;
  height: auto;
  flex: none;
}

.logo__mark .iso-shape {
  fill: currentColor;
}

.logo__mark .iso-dot {
  fill: var(--color-teal-500);
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

.logo--light {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.button:active {
  transform: translateY(1px);
}

.button svg {
  flex: none;
}

/* El design system pide teal #00B7A7 + texto blanco, pero esa combinación da
   2.5:1 y choca con su propia regla de contraste AA (§10). Se conserva el teal
   de marca y se usa navy para el texto: 7.3:1. */
.button--primary {
  background: var(--color-teal-500);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-sm);
}

.button--primary:hover {
  background: var(--color-teal-600);
  box-shadow: var(--shadow-md);
}

.button--secondary {
  background: var(--color-white);
  color: var(--color-navy-900);
  border-color: #d8e0e8;
}

.button--secondary:hover {
  border-color: var(--color-navy-900);
}

.button--ghost {
  background: transparent;
  color: var(--color-on-dark);
  border-color: rgba(255, 255, 255, 0.32);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.button--lg {
  padding: 15px 28px;
  font-size: var(--text-body-lg);
  min-height: 52px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-stuck {
  border-bottom-color: var(--color-gray-100);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin: 0;
}

.nav__link {
  color: var(--color-slate-600);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-navy-900);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-sm);
  color: var(--color-navy-900);
}

.nav__toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav__toggle-bars::before {
  top: -6px;
}

.nav__toggle-bars::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-6) var(--container-pad) var(--space-8);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--text-body-lg);
    border-bottom: 1px solid var(--color-gray-100);
  }

  .nav .button {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--gradient-dark);
  color: var(--color-on-dark-muted);
  padding-block: clamp(4rem, 2rem + 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  right: -12%;
  top: -28%;
  background: radial-gradient(
    circle,
    rgba(0, 183, 167, 0.28) 0%,
    rgba(0, 102, 255, 0.14) 42%,
    rgba(0, 183, 167, 0) 70%
  );
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.06);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

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

.hero h1 {
  font-size: var(--text-display);
  color: var(--color-on-dark);
  line-height: 1.05;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-teal-500);
}

/* En escritorio el remate del titular no se parte a media frase */
@media (min-width: 901px) {
  .hero h1 em {
    white-space: nowrap;
  }
}

.hero__lead {
  margin-top: var(--space-6);
  font-size: var(--text-body-lg);
  max-width: 56ch;
  color: var(--color-on-dark-muted);
}

.hero .button-row {
  margin-top: var(--space-8);
}

.hero__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(199, 208, 222, 0.8);
}

/* Panel visual del hero */
.hero__panel {
  position: relative;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__panel-title {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-500);
  margin-bottom: var(--space-6);
}

.hero__stats {
  display: grid;
  gap: var(--space-6);
}

.hero__stat {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.hero__stat-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(0, 183, 167, 0.14);
  color: var(--color-teal-500);
}

.hero__stat h3 {
  font-size: var(--text-body-lg);
  color: var(--color-on-dark);
  font-weight: 600;
}

.hero__stat p {
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   8. Franja de confianza
   -------------------------------------------------------------------------- */

.trust {
  border-bottom: var(--border-subtle);
  background: var(--color-white);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-10);
  margin: 0;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy-900);
}

.trust__item svg {
  flex: none;
  color: var(--color-teal-500);
}

/* --------------------------------------------------------------------------
   9. Tarjetas
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 183, 167, 0.35);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border: var(--border-brand);
  color: var(--color-teal-600);
  margin-bottom: var(--space-6);
}

.card h3 {
  margin-bottom: var(--space-3);
}

.card__lead {
  margin-bottom: var(--space-6);
}

.card__list {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
}

.card__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.card__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--color-teal-500);
}

.card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-blue-500);
  text-decoration: none;
  padding-block: var(--space-2);
}

.card__link:hover {
  text-decoration: underline;
}

.card__link svg {
  transition: transform 0.2s ease;
}

.card__link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   10. Problemas que resolvemos
   -------------------------------------------------------------------------- */

.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin: 0;
}

.problem {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.problem:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 183, 167, 0.35);
}

/* Mismo lenguaje que .card__icon, un paso más pequeño para marcar jerarquía */
.problem__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border: var(--border-brand);
  color: var(--color-teal-600);
  margin-bottom: var(--space-6);
}

.problem__pain {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-body-lg);
  color: var(--color-navy-900);
  margin-bottom: var(--space-4);
}

.problem__pain::before {
  content: "“";
}

.problem__pain::after {
  content: "”";
}

.problem__fix {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-body);
}

.problem__fix svg {
  flex: none;
  margin-top: 3px;
  color: var(--color-teal-500);
}

/* --------------------------------------------------------------------------
   11. Cursos
   -------------------------------------------------------------------------- */

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.course {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.course--highlight {
  background: var(--gradient-dark);
  border-color: transparent;
  color: var(--color-on-dark-muted);
}

.course--highlight h3 {
  color: var(--color-on-dark);
}

.course__tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(0, 183, 167, 0.12);
  color: var(--color-teal-700);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.course--highlight .course__tag {
  background: rgba(0, 183, 167, 0.2);
  color: var(--color-teal-500);
}

.course h3 {
  margin-bottom: var(--space-3);
}

.course__list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  font-size: var(--text-sm);
}

.course__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.course__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--color-teal-500);
}

.courses-modes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: var(--border-brand);
  background: var(--gradient-soft);
  align-items: center;
  justify-content: space-between;
}

.courses-modes p {
  font-size: var(--text-body-lg);
  color: var(--color-navy-900);
  font-family: var(--font-display);
  font-weight: 500;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   12. Proceso
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
  margin: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 2px solid rgba(255, 255, 255, 0.14);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-teal-500);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.step h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-3);
}

.step p {
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   13. Por qué ITHAKON
   -------------------------------------------------------------------------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

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

.why__list {
  display: grid;
  gap: var(--space-6);
  margin: 0;
}

.why__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--color-white);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
}

.why__item-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 102, 255, 0.08);
  color: var(--color-blue-500);
}

.why__item h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-2);
}

.why__item p {
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   14. Fundadores
   -------------------------------------------------------------------------- */

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.founder {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  background: var(--color-white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.founder__avatar {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-dark);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h4);
  letter-spacing: 0.05em;
  object-fit: cover;
}

.founder h3 {
  font-size: var(--text-h4);
}

.founder__role {
  font-size: var(--text-sm);
  color: var(--color-teal-700);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.founder__bio {
  font-size: var(--text-sm);
}

.founder__links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.founder__links a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: var(--border-subtle);
  color: var(--color-slate-600);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.founder__links a:hover {
  color: var(--color-navy-900);
  border-color: var(--color-navy-900);
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: var(--border-subtle);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-body-lg);
  color: var(--color-navy-900);
  min-height: 44px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-teal-500);
  border-bottom: 2px solid var(--color-teal-500);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq__answer {
  padding-bottom: var(--space-6);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   16. CTA final
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cta__glow {
  position: absolute;
  z-index: -1;
  inset: auto 50% -40% auto;
  transform: translateX(50%);
  width: min(900px, 120vw);
  aspect-ratio: 2 / 1;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 183, 167, 0.3) 0%,
    rgba(0, 183, 167, 0) 68%
  );
  pointer-events: none;
}

.cta h2 {
  font-size: var(--text-h1);
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  margin-top: var(--space-5);
  font-size: var(--text-body-lg);
  max-width: 56ch;
  margin-inline: auto;
}

.cta .button-row {
  margin-top: var(--space-10);
  justify-content: center;
}

.cta__meta {
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: rgba(199, 208, 222, 0.75);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--color-navy-900);
  color: var(--color-on-dark-muted);
  padding-block: var(--space-16) var(--space-8);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__about {
  max-width: 42ch;
  font-size: var(--text-sm);
  margin-top: var(--space-5);
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__col ul {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  font-size: var(--text-sm);
}

.footer__col a {
  color: var(--color-on-dark-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--color-teal-500);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  font-size: var(--text-sm);
  color: rgba(199, 208, 222, 0.7);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-on-dark-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer__social a:hover {
  color: var(--color-white);
  border-color: var(--color-teal-500);
  background: rgba(0, 183, 167, 0.12);
}

/* --------------------------------------------------------------------------
   18. Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-teal-500);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-float:hover {
  background: var(--color-teal-600);
  transform: scale(1.06);
  color: var(--color-navy-900);
}

/* --------------------------------------------------------------------------
   19. Animación de entrada
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
