/* ============================================================
   AAPAS Landing Page V2 — Mobile-First CSS
   ============================================================ */

/* ---------- CUSTOM FONTS ---------- */
@font-face {
  font-family: 'Neo Sans STD';
  src: url('media/fonts/neo-sans-std-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neo Sans STD';
  src: url('media/fonts/neo-sans-std.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neo Sans STD';
  src: url('media/fonts/neo-sans-std-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neo Sans STD';
  src: url('media/fonts/neo-sans-std-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neo Sans STD';
  src: url('media/fonts/neo-sans-std-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --primary: #004f92;
  --primary-dark: #003b6e;
  --primary-light: #2a7abf;
  --primary-bg: #e8f4ff;
  --secondary: #00c2ff;
  --secondary-dark: #00a2d5;
  --secondary-light: #5dd8ff;
  --accent: #00c2ff;
  --success: #38b000;
  --warning: #ffb703;
  --danger: #e63946;

  --text-dark: #1a1a2e;
  --text-body: #333333;
  --text-muted: #6c757d;
  --text-white: #ffffff;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-alt: #f0f8ff;
  --bg-dark: #0a1628;

  /* Superficies planas del rediseno visual 2026.
     Valores muestreados del prototipo de Figma; reemplazan a los gradientes. */
  --surface-blue: #01407d;
  --surface-sky: #ccf3ff;

  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.08);

  --transition-fast: .15s cubic-bezier(.4,0,.2,1);
  --transition-normal: .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: .5s cubic-bezier(.4,0,.2,1);

  --header-h: 72px;
  --container-pad: 1.25rem;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Neo Sans STD', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ---------- CONTAINER ---------- */
.container {
  width: min(1200px, 100% - var(--container-pad) * 2);
  margin-inline: auto;
}

/* ---------- SECTION SHARED ---------- */
.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  scroll-margin-top: var(--header-h);
}

.section__eyebrow {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-dark);
  margin-bottom: 0.5rem;
}

.section__title {
  text-align: center;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--surface-blue);
  color: var(--text-white);
  border-color: transparent;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary {
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

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

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

@media (hover: hover) {
  .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 79, 146, .35);
  }
  .btn--outline:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
  }
  .btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 194, 255, .35);
  }
}

/* ---------- TEXT UTILITIES ---------- */
.text-gradient {
  color: var(--primary);
}

/* ---------- VIDEO WRAPPER ---------- */
.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: var(--shadow-lg);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================================
   URGENCY BAR
   ============================================================ */
.urgency-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--primary);
  color: var(--text-white);
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  transition: transform var(--transition-normal);
}
.urgency-bar.hidden {
  transform: translateY(-100%);
}

.urgency-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.urgency-bar__inner p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.urgency-bar__inner a {
  color: var(--secondary);
  font-weight: 700;
  transition: opacity var(--transition-fast);
}
.urgency-bar__inner a:hover {
  opacity: .8;
}
.urgency-bar__sep {
  opacity: .4;
}
.urgency-bar__close {
  color: rgba(255, 255, 255, .6);
  font-size: 1rem;
  padding: 0.25rem;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}
.urgency-bar__close:hover {
  color: var(--text-white);
}

/* Offset header when bar is visible */
body:has(.urgency-bar:not(.hidden)) .header {
  top: var(--urgency-h, 36px);
}
body:has(.urgency-bar:not(.hidden)) .hero {
  padding-top: calc(var(--header-h) + var(--urgency-h, 36px) + 2rem);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition-normal), background var(--transition-normal);
}
.header--scrolled {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__nav {
  display: none;
  margin-left: auto;
}

.header__menu {
  display: flex;
  gap: 0.25rem;
}

.header__link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.header__link:hover,
.header__link--active {
  color: var(--primary);
  background: var(--primary-bg);
}

.header__link--campus {
  color: var(--secondary-dark);
  font-weight: 600;
}
.header__link--campus i {
  font-size: 0.7em;
  margin-left: 0.125rem;
}

.header__cta {
  display: none;
  margin-left: 1rem;
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

/* Hamburger */
.header__toggle {
  margin-left: auto;
  width: 32px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.header__toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}
.header__toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.header__toggle.active span:nth-child(2) {
  opacity: 0;
}
.header__toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile Nav */
.header__nav.mobile-open {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-white);
  z-index: 1001;
  flex-direction: column;
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
  overflow-y: auto;
}
.header__nav.mobile-open .header__menu {
  flex-direction: column;
  gap: 0.25rem;
}
.header__nav.mobile-open .header__link {
  font-size: 1.0625rem;
  padding: 0.75rem 1rem;
}

/* Desktop */
@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
  }
  .header__toggle {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  background: var(--bg-white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.hero__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.hero__stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
}
.hero__stat-pill strong {
  color: var(--primary);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  /* Ajustado al ancho de la imagen para que los badges circulares
     se posicionen contra el borde del circulo y no de la columna. */
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.hero__image {
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero__floating-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: clamp(96px, 24vw, 122px);
  height: clamp(96px, 24vw, 122px);
  padding: 0.5rem;
  background: var(--surface-blue);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-white);
  white-space: normal;
}
/* El diseno usa los badges solo con texto. */
.hero__floating-badge i {
  display: none;
}
/* En mobile los badges quedan dentro del circulo: .hero tiene overflow:hidden
   y si sobresalen se recortan contra el borde de la pantalla. */
.hero__floating-badge--top {
  top: 2%;
  right: 0;
}
.hero__floating-badge--bottom {
  bottom: 6%;
  left: 0;
}

@media (min-width: 768px) {
  .hero__floating-badge--top {
    right: -4%;
  }
  .hero__floating-badge--bottom {
    left: -4%;
  }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.social-proof {
  background: var(--surface-blue);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.social-proof__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.social-proof__number {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}
.social-proof__number::after {
  content: attr(data-suffix);
}

.social-proof__label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .social-proof__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   CAMPUS VIRTUAL
   ============================================================ */
.campus {
  background: var(--bg-light);
}

.campus__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.campus__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.campus__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campus__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.campus__feature i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
}
.campus__feature strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.125rem;
}
.campus__feature span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .campus__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ============================================================
   PROGRAMA
   ============================================================ */
.program {
  background: var(--surface-blue);
}

.program .section__eyebrow {
  color: var(--secondary);
}
.program .section__title {
  color: var(--text-white);
}
.program .section__subtitle {
  color: rgba(255, 255, 255, .65);
}

.program__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .program__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .program__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.program__card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (hover: hover) {
  .program__card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
  }
}

.program__card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.program__card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.program__card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-dark);
}

.program__card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.program__card-topics {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.program__card-topics li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.program__card-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

.program__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.program__card-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.program__card-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.program__card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ============================================================
   PROCESO / TIMELINE
   ============================================================ */
.process {
  background: var(--surface-sky);
}

.process__timeline {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.process__step {
  text-align: center;
  position: relative;
}

.process__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(0, 79, 146, .3);
}

.process__connector {
  display: none;
}

.process__step-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.process__step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

.process__badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  /* Pastilla blanca: sobre el celeste saturado los tintes translucidos se ensucian. */
  background: var(--bg-white);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.process__badge--accent {
  background: var(--bg-white);
  color: var(--primary);
}

@media (min-width: 768px) {
  .process__timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .process__connector {
    display: block;
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: .3;
  }
  .process__step:last-child .process__connector {
    display: none;
  }
}

/* ============================================================
   MODALIDADES
   ============================================================ */
.modalities {
  background: var(--bg-white);
}

.modalities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  /* auto-fit + justify-content centra las tarjetas cualquiera sea su cantidad.
     Antes era repeat(5, 1fr): con 2 modalidades quedaban angostas y pegadas a la izquierda. */
  .modalities__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
    justify-content: center;
  }
}

.modality-card {
  background: var(--bg-white);
  border: 1px solid var(--surface-sky);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (hover: hover) {
  .modality-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
}

.modality-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin: 0 auto 1rem;
}

.modality-card__shift {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary-dark);
  margin-bottom: 0.125rem;
}

.modality-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.modality-card__schedule {
  padding: 0.5rem 0.75rem;
  background: var(--surface-sky);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  width: 100%;
}

.modality-card__time {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.modality-card__start {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.modality-card .btn {
  margin-top: auto;
}

.modalities__note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--primary-bg);
  border: 1px solid rgba(0, 79, 146, .15);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}
.modalities__note i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.modalities__note p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  background: var(--surface-sky);
}

.pricing__toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 420px;
  margin-inline: auto;
}

.pricing__toggle-btn {
  flex: 1;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  color: var(--text-muted);
}
.pricing__toggle-btn--active {
  background: var(--surface-blue);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.pricing__plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.pricing__plans--hidden {
  display: none;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.pricing-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-card__ribbon {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 194, 255, .3);
}

@media (hover: hover) {
  .pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
}

.pricing-card__header {
  padding: 1.5rem 1.5rem 0;
}

.pricing-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.pricing-card__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-card__body {
  padding: 1.25rem 1.5rem;
}

.pricing-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
}
.pricing-card__row span {
  color: var(--text-muted);
}
.pricing-card__row strong {
  color: var(--text-dark);
  font-size: 1.0625rem;
}

.pricing-card__row--highlight {
  background: var(--primary-bg);
  margin: 0 -1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
}

.pricing-card__divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.75rem 0;
}

.pricing-card__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
}
.pricing-card__total strong {
  font-size: 1.375rem;
  color: var(--primary);
}

.pricing-card__option {
  padding: 0.5rem 0;
}

.pricing-card__option-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-card__option-label i {
  color: var(--primary);
}

.pricing-card__option-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.625rem;
}
.pricing-card__option-detail strong {
  font-size: 1.25rem;
  color: var(--primary);
}
.pricing-card__option-detail span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-card__discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: rgba(56, 176, 0, .12);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.pricing-card__old-price {
  text-decoration: line-through;
  color: var(--text-muted) !important;
  font-size: 0.9375rem !important;
}

.pricing-card__new-price {
  font-size: 1.5rem !important;
  color: var(--success) !important;
}

.pricing-card__savings {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--success) !important;
  font-weight: 600;
  font-size: 0.8125rem !important;
}

.pricing-card__footer {
  padding: 0 1.5rem 1.5rem;
}

.pricing__disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 183, 3, .1);
  border: 1px solid rgba(255, 183, 3, .3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  grid-column: 1 / -1;
}
.pricing__disclaimer i {
  color: var(--warning);
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.pricing__disclaimer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing__familiar-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-bg);
  border: 1px solid rgba(0, 79, 146, .15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  grid-column: 1 / -1;
}
.pricing__familiar-note > i {
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.pricing__familiar-note p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.pricing__familiar-note .btn {
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .pricing__plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   BENEFICIOS
   ============================================================ */
.benefits {
  background: var(--surface-blue);
}

.benefits .section__eyebrow {
  color: var(--secondary);
}
.benefits .section__title {
  color: var(--text-white);
}
.benefits .section__subtitle {
  color: rgba(255, 255, 255, .65);
}

.benefits__grid {
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
}

@media (hover: hover) {
  .benefit-card:hover {
    box-shadow: var(--shadow-md);
  }
}

.benefit-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.benefit-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.375rem;
}

.benefit-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.benefit-card__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(56, 176, 0, .1);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   TESTIMONIOS / CAROUSEL
   ============================================================ */
.testimonials {
  background: var(--bg-white);
}

.carousel {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel__slide {
  min-width: 100%;
  padding: 0 0.5rem;
}

.carousel__caption {
  text-align: center;
  padding: 1.25rem 0.5rem 0;
}

.carousel__quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.carousel__author {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-body);
  transition: all var(--transition-fast);
  background: var(--bg-white);
}
.carousel__btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.carousel__dot--active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--surface-sky);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}
.faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__question::marker {
  display: none;
  content: '';
}

.faq__icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__item[open] .faq__question {
  color: var(--primary);
}

.faq__answer {
  padding: 0 1.25rem 1rem;
}
.faq__answer p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   CTA FINAL / CONTACTO
   ============================================================ */
.cta-final {
  background: var(--surface-blue);
  color: var(--text-white);
}

.cta-final__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final__title {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.cta-final__text {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.cta-final__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.cta-final__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, .12);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  color: var(--text-white);
  transition: background var(--transition-fast);
}
.cta-final__contact:hover {
  background: rgba(255, 255, 255, .22);
}

.cta-final .btn--primary {
  background: var(--text-white);
  color: var(--primary);
  border-color: var(--text-white);
}
.cta-final .btn--primary:hover {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .7);
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

.footer__inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 0.75rem;
  filter: brightness(0) invert(1);
}

.footer__about {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links li,
.footer__links a {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}
.footer__links a:hover {
  color: var(--text-white);
}
.footer__links i {
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.footer__social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
  z-index: 900;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: wa-pulse 3s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, .4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, .6); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}

/* ============================================================
   Sticky Mobile CTA + WhatsApp contextual  (mejora CRO)
   ============================================================ */
.pricing-card__wa {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #128C4A;
  text-decoration: none;
}
.pricing-card__wa:hover { text-decoration: underline; }

.mobile-cta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0.6rem 0.9rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.14);
}
.mobile-cta__btn { flex: 1; justify-content: center; }
.mobile-cta__wa {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
}
@media (min-width: 1024px) {
  .mobile-cta { display: none; }
}
@media (max-width: 1023px) {
  .whatsapp-float { display: none; }
  body { padding-bottom: 74px; }
}
