/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --color-primary:    #7B5EA7;
  --color-secondary:  #F4A7C3;
  --color-bg:         #FFFFFF;
  --color-bg-alt:     #F9F6FB;
  --color-text:       #2D2D2D;
  --color-accent:     #9B72CF;
  --color-wa:         #25D366;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-card: 12px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);

  --section-v: 96px;
  --container-max: 1200px;
  --container-px: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

ol, ul {
  list-style: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 56px;
}

.section-title--white {
  color: #ffffff;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}

.btn--white {
  background: #ffffff;
  color: var(--color-primary);
}

.btn--white:hover {
  background: #f0e8fa;
  transform: scale(1.03);
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: #6a4e93;
  transform: scale(1.03);
}

.btn--lg {
  font-size: 1.1rem;
  padding: 16px 36px;
}

.btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28vh;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(123, 94, 167, 0.50);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding-inline: var(--container-px);
  max-width: 700px;
}

.hero__subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title-text {
  display: inline-block;
  opacity: 1;
  overflow: visible;
}

.hero__desc {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 36px;
}

/* ============================================================
   SECTION 2 — ABOUT
   ============================================================ */
.about {
  padding-block: var(--section-v);
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about__img {
  width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-card);
  background: var(--color-bg-alt);
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.about__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 28px;
}

.about__badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.about__badges .badge {
  width: fit-content;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  background: #f3eefb;
  padding: 8px 16px;
  border-radius: 50px;
  opacity: 0;
  transform: translateX(-30px);
}

.badge.animate {
  animation: badgeSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.badge:nth-child(1).animate { animation-delay: 0s;    }
.badge:nth-child(2).animate { animation-delay: 0.4s;  }
.badge:nth-child(3).animate { animation-delay: 0.8s;  }

@keyframes badgeSlideIn {
  0%   { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0);     }
}

.badge svg {
  opacity: 0;
  transform: scale(0);
}

.badge.animate svg {
  animation: checkPop 0.3s ease forwards;
}

.badge:nth-child(1).animate svg { animation-delay: 0.8s;  }
.badge:nth-child(2).animate svg { animation-delay: 1.2s;  }
.badge:nth-child(3).animate svg { animation-delay: 1.6s;  }

@keyframes checkPop {
  0%   { opacity: 0; transform: scale(0);   }
  70%  { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1);   }
}

.badge__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.badge--full {
  width: 100%;
}

.about__cedula-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #7B5EA7;
  border-radius: 50px;
  color: #7B5EA7;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease;
  cursor: pointer;
}

.about__cedula-btn:hover {
  background: #7B5EA7;
  color: #FFFFFF;
}

.badge__cedula-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 150ms ease;
}

.badge__cedula-link:hover {
  opacity: 0.75;
}

@media (max-width: 767px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__img {
    width: 200px;
  }
}

/* ============================================================
   SECTION 3 — SERVICES
   ============================================================ */
.services {
  padding-block: var(--section-v);
  background: var(--color-bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-secondary);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text);
}

.card__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* ── SERVICES CARD FLIP ANIMATION ──────────────────────────── */
.services__grid {
  perspective: 1000px;
}

/* Estado oculto inicial (clase aplicada por JS antes del observer) */
.services__grid--hidden .card,
.services__grid--animate .card {
  transform: rotateY(90deg);
  transition: transform 600ms ease-out;
}

.services__grid--hidden .card__icon,
.services__grid--hidden .card__title,
.services__grid--hidden .card__desc,
.services__grid--animate .card__icon,
.services__grid--animate .card__title,
.services__grid--animate .card__desc {
  opacity: 0;
  transition: opacity 200ms ease-out;
}

/* Flip de entrada — escalonado por card */
.services__grid--animate .card:nth-child(1) { transform: rotateY(0deg); transition-delay: 0ms; }
.services__grid--animate .card:nth-child(2) { transform: rotateY(0deg); transition-delay: 200ms; }
.services__grid--animate .card:nth-child(3) { transform: rotateY(0deg); transition-delay: 400ms; }
.services__grid--animate .card:nth-child(4) { transform: rotateY(0deg); transition-delay: 600ms; }

/* Contenido fade — últimos 200ms del flip de cada card (card_delay + 400ms) */
.services__grid--animate .card:nth-child(1) .card__icon,
.services__grid--animate .card:nth-child(1) .card__title,
.services__grid--animate .card:nth-child(1) .card__desc { opacity: 1; transition-delay: 400ms; }

.services__grid--animate .card:nth-child(2) .card__icon,
.services__grid--animate .card:nth-child(2) .card__title,
.services__grid--animate .card:nth-child(2) .card__desc { opacity: 1; transition-delay: 600ms; }

.services__grid--animate .card:nth-child(3) .card__icon,
.services__grid--animate .card:nth-child(3) .card__title,
.services__grid--animate .card:nth-child(3) .card__desc { opacity: 1; transition-delay: 800ms; }

.services__grid--animate .card:nth-child(4) .card__icon,
.services__grid--animate .card:nth-child(4) .card__title,
.services__grid--animate .card:nth-child(4) .card__desc { opacity: 1; transition-delay: 1000ms; }

@media (max-width: 1023px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   SECTION 4 — EXPERIENCE (TIMELINE)
   ============================================================ */
.experience {
  padding-block: var(--section-v);
  background: var(--color-bg);
}

.timeline {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-primary);
  opacity: 0.3;
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
  margin-top: 2px;
  z-index: 1;
}

.timeline__body {
  padding-top: 2px;
}

.timeline__year {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.timeline__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
}

/* ── TIMELINE ANIMATION ─────────────────────────────────────── */
/* Estado inicial oculto */
.timeline::before {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 2500ms ease-out;
}

.timeline__dot {
  transform: scale(0);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 500ms ease-out;
}

.timeline__year,
.timeline__role,
.timeline__desc {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

/* Estado animado — la línea */
.timeline--animate::before {
  transform: scaleY(1);
}

/* Item 1 — base: 100ms */
.timeline--animate .timeline__item:nth-child(1) .timeline__dot  { transform: scale(1); opacity: 1; transition-delay: 100ms; }
.timeline--animate .timeline__item:nth-child(1) .timeline__year { opacity: 1; transform: translateX(0); transition-delay: 200ms; }
.timeline--animate .timeline__item:nth-child(1) .timeline__role { opacity: 1; transform: translateX(0); transition-delay: 500ms; }
.timeline--animate .timeline__item:nth-child(1) .timeline__desc { opacity: 1; transform: translateX(0); transition-delay: 800ms; }

/* Item 2 — base: 500ms */
.timeline--animate .timeline__item:nth-child(2) .timeline__dot  { transform: scale(1); opacity: 1; transition-delay: 500ms; }
.timeline--animate .timeline__item:nth-child(2) .timeline__year { opacity: 1; transform: translateX(0); transition-delay: 600ms; }
.timeline--animate .timeline__item:nth-child(2) .timeline__role { opacity: 1; transform: translateX(0); transition-delay: 900ms; }
.timeline--animate .timeline__item:nth-child(2) .timeline__desc { opacity: 1; transform: translateX(0); transition-delay: 1200ms; }

/* Item 3 — base: 900ms */
.timeline--animate .timeline__item:nth-child(3) .timeline__dot  { transform: scale(1); opacity: 1; transition-delay: 900ms; }
.timeline--animate .timeline__item:nth-child(3) .timeline__year { opacity: 1; transform: translateX(0); transition-delay: 1000ms; }
.timeline--animate .timeline__item:nth-child(3) .timeline__role { opacity: 1; transform: translateX(0); transition-delay: 1300ms; }
.timeline--animate .timeline__item:nth-child(3) .timeline__desc { opacity: 1; transform: translateX(0); transition-delay: 1600ms; }

/* Item 4 — base: 1300ms */
.timeline--animate .timeline__item:nth-child(4) .timeline__dot  { transform: scale(1); opacity: 1; transition-delay: 1300ms; }
.timeline--animate .timeline__item:nth-child(4) .timeline__year { opacity: 1; transform: translateX(0); transition-delay: 1400ms; }
.timeline--animate .timeline__item:nth-child(4) .timeline__role { opacity: 1; transform: translateX(0); transition-delay: 1700ms; }
.timeline--animate .timeline__item:nth-child(4) .timeline__desc { opacity: 1; transform: translateX(0); transition-delay: 2000ms; }

/* ============================================================
   SECTION 5 — TESTIMONIALS
   ============================================================ */
.testimonials {
  padding-block: var(--section-v);
  background: var(--color-primary);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  position: relative;
  transition: transform 200ms ease;
}

.testimonial:hover {
  transform: scale(1.02);
}

.testimonial__quote {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-secondary);
  margin-bottom: 8px;
  opacity: 0.8;
}

.testimonial__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(155, 114, 207, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.testimonial__avatar svg {
  width: 28px;
  height: 28px;
}

.testimonial__footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.testimonial__star {
  font-size: 1rem;
  display: inline-block;
}

/* ── TESTIMONIALS ANIMATION ─────────────────────────────────── */
/* Estado oculto inicial */
.testimonials__grid--hidden .testimonial,
.testimonials__grid--animate .testimonial {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.testimonials__grid--hidden .testimonial__star,
.testimonials__grid--animate .testimonial__star {
  opacity: 0;
  transform: scale(0);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

/* Cards entrada */
.testimonials__grid--animate .testimonial:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay:   0ms; }
.testimonials__grid--animate .testimonial:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.testimonials__grid--animate .testimonial:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }

/* Estrellas — card 1 (card termina en 500ms) */
.testimonials__grid--animate .testimonial:nth-child(1) .testimonial__star:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: 500ms; }
.testimonials__grid--animate .testimonial:nth-child(1) .testimonial__star:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: 580ms; }
.testimonials__grid--animate .testimonial:nth-child(1) .testimonial__star:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 660ms; }
.testimonials__grid--animate .testimonial:nth-child(1) .testimonial__star:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: 740ms; }
.testimonials__grid--animate .testimonial:nth-child(1) .testimonial__star:nth-child(5) { opacity: 1; transform: scale(1); transition-delay: 820ms; }

/* Estrellas — card 2 (card termina en 700ms) */
.testimonials__grid--animate .testimonial:nth-child(2) .testimonial__star:nth-child(1) { opacity: 1; transform: scale(1); transition-delay:  700ms; }
.testimonials__grid--animate .testimonial:nth-child(2) .testimonial__star:nth-child(2) { opacity: 1; transform: scale(1); transition-delay:  780ms; }
.testimonials__grid--animate .testimonial:nth-child(2) .testimonial__star:nth-child(3) { opacity: 1; transform: scale(1); transition-delay:  860ms; }
.testimonials__grid--animate .testimonial:nth-child(2) .testimonial__star:nth-child(4) { opacity: 1; transform: scale(1); transition-delay:  940ms; }
.testimonials__grid--animate .testimonial:nth-child(2) .testimonial__star:nth-child(5) { opacity: 1; transform: scale(1); transition-delay: 1020ms; }

/* Estrellas — card 3 (card termina en 900ms) */
.testimonials__grid--animate .testimonial:nth-child(3) .testimonial__star:nth-child(1) { opacity: 1; transform: scale(1); transition-delay:  900ms; }
.testimonials__grid--animate .testimonial:nth-child(3) .testimonial__star:nth-child(2) { opacity: 1; transform: scale(1); transition-delay:  980ms; }
.testimonials__grid--animate .testimonial:nth-child(3) .testimonial__star:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 1060ms; }
.testimonials__grid--animate .testimonial:nth-child(3) .testimonial__star:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: 1140ms; }
.testimonials__grid--animate .testimonial:nth-child(3) .testimonial__star:nth-child(5) { opacity: 1; transform: scale(1); transition-delay: 1220ms; }

@media (max-width: 1023px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ============================================================
   SECTION 6 — ZONES
   ============================================================ */
.zones {
  padding-block: var(--section-v);
  background: var(--color-bg-alt);
}

.zones__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.zones__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.zones__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 32px;
}

.zones__desc strong {
  color: var(--color-primary);
  font-weight: 600;
}

.zones__map-wrap {
  position: relative;
  height: 420px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.zones__map-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zones__map-wrap > svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* legacy — kept for fallback */
.zones__map svg {
  display: block;
}

@media (max-width: 767px) {
  .zones__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   SECTION 7 — CTA FINAL
   ============================================================ */
.cta {
  padding-block: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.cta__inner {
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  padding-block: 30px;
}

.footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.8;
}

.footer__copy-link {
  color: rgba(255, 255, 255, 0.5);
  transition: color 150ms ease;
}

.footer__copy-link:hover {
  color: var(--color-secondary);
}

/* ============================================================
   MODAL WHATSAPP — CREDENCIAL MÉDICA
   ============================================================ */
.wa-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.wa-modal.active {
  display: flex;
}

.wa-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.wa-modal__card {
  position: relative;
  z-index: 1;
  perspective: 1000px;
  background: transparent;
  box-shadow: none;
  width: 300px;
}

.wa-modal__card-inner {
  position: relative;
  width: 300px;
  min-height: 520px;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.wa-modal__card-inner.flipped {
  transform: rotateY(180deg);
}

.wa-modal__back,
.wa-modal__front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 520px;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.wa-modal__back {
  background: linear-gradient(135deg, #7B5EA7, #9B72CF);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: rotateY(0deg);
}

.wa-modal__back-cross {
  font-size: 80px;
  color: rgba(244, 167, 195, 0.35);
  line-height: 1;
}

.wa-modal__back-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #FFFFFF;
  margin: 0;
  text-align: center;
}

.wa-modal__back-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wa-modal__front {
  background: #FFFFFF;
  transform: rotateY(180deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.wa-modal__header {
  background: linear-gradient(135deg, #7B5EA7, #9B72CF);
  padding: 32px 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wa-modal__header-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.wa-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.wa-modal__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.wa-modal__badge {
  background: #f3eefb;
  color: #7B5EA7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid #d4bff0;
  position: relative;
  z-index: 2;
}

.wa-modal__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 16px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.wa-modal__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(123, 94, 167, 0.3);
  margin-bottom: 12px;
}

.wa-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.wa-modal__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #2D2D2D;
  margin: 0 0 4px;
}

.wa-modal__specialty {
  font-size: 11px;
  color: #999;
  margin: 0;
  letter-spacing: 0.3px;
}

.wa-modal__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 16px;
}

.wa-modal__divider::before,
.wa-modal__divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: #eee;
}

.wa-modal__cross {
  color: #F4A7C3;
  font-size: 14px;
}

.wa-modal__qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  gap: 10px;
}

.wa-modal__qr-label {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.wa-modal__qr {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #F4A7C3;
  padding: 6px;
  background: #fff;
}

.wa-modal__qr img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
}

.wa-modal__footer {
  padding: 16px 24px 24px;
}

.wa-modal__web-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 200ms ease, transform 200ms ease;
  box-sizing: border-box;
}

.wa-modal__web-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

/* ============================================================
   LANG TOGGLE — CAMBIO DE IDIOMA
   ============================================================ */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #2D2D2D;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.lang-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.lang-toggle__flag {
  display: none;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
}

.lang-toggle[data-lang="es"] .lang-toggle__flag--mx {
  display: block;
}

.lang-toggle[data-lang="en"] .lang-toggle__flag--us {
  display: block;
}

/* ============================================================
   FAB — WHATSAPP FLOTANTE
   ============================================================ */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.fab-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.50);
}

/* ============================================================
   SCROLL HINT
   ============================================================ */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.scroll-hint.visible {
  opacity: 1;
}

.scroll-hint__arrow {
  color: #ffffff;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
  animation: bounceArrow 1.5s ease-in-out infinite;
}

.scroll-hint__text {
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}


@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(123, 94, 167, 0.15);
  border: 1px solid rgba(123, 94, 167, 0.3);
  color: #7B5EA7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease, background 200ms ease, transform 200ms ease;
  z-index: 998;
  backdrop-filter: blur(4px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(123, 94, 167, 0.3);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE — GENERAL
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --section-v: 64px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .timeline::before {
    left: 11px;
  }

  .timeline__dot {
    width: 24px;
    height: 24px;
  }
}

.hero__mobile-bg {
  display: none;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 100vh;
  }
  .hero__video {
    display: none;
  }
  .hero__mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}
