/* =============================================================================
   TU PRIMER EMPLEADO IA · Web V1
   styles.css — mobile-first, custom properties
   ============================================================================= */

/* -----------------------------------------------------------------------------
   01 · TOKENS — toda la paleta y tipografía vive aquí
   Cambia un valor y se actualiza toda la web.
   ----------------------------------------------------------------------------- */
:root {
  /* Paleta IA al Día */
  --color-navy-deep:    #15214B;
  --color-brand-blue:   #048BCD;
  --color-brand-cyan:   #0497E1;
  --color-warm-gray:    #938582;
  --color-cool-gray:    #75747E;

  /* Superficies */
  --color-canvas:       #FAFAF7;
  --color-paper:        #FFFFFF;
  --color-soft-blue:    #F4F6FB;
  --color-soft-cream:   #FBF8F0;

  /* Acentos funcionales */
  --color-success:      #10B981;
  --color-warning:      #F0B83E;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

  --shadow-soft:   0 4px 16px rgba(21, 33, 75, 0.06);
  --shadow-medium: 0 8px 30px rgba(21, 33, 75, 0.10);
  --shadow-cta:    0 8px 24px rgba(4, 139, 205, 0.25);

  /* Layout */
  --max-width: 1120px;
  --pad-x: 20px;

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-medium: 250ms ease;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 32px;
  }
}


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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-navy-deep);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--color-brand-cyan);
}

ul, ol {
  list-style: none;
}

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


/* -----------------------------------------------------------------------------
   03 · UTILIDADES base
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  color: var(--color-navy-deep);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 16px;
  color: var(--color-cool-gray);
  margin-bottom: 48px;
  max-width: 640px;
}


/* -----------------------------------------------------------------------------
   04 · BOTONES
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: transform var(--t-fast), box-shadow var(--t-medium), background var(--t-medium);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-brand-blue);
  color: var(--color-paper);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--color-brand-cyan);
  color: var(--color-paper);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(4, 139, 205, 0.35);
}

.btn--secondary {
  background: var(--color-paper);
  color: var(--color-navy-deep);
  border: 1.5px solid var(--color-navy-deep);
}

.btn--secondary:hover {
  background: var(--color-navy-deep);
  color: var(--color-paper);
}

.btn--large {
  padding: 18px 36px;
  font-size: 17px;
}

.btn--small {
  padding: 10px 18px;
  font-size: 14px;
}


/* -----------------------------------------------------------------------------
   05 · STICKY NAV
   ----------------------------------------------------------------------------- */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 33, 75, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 300ms ease, opacity 200ms ease;
}

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

.sticky-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.sticky-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy-deep);
}

.sticky-nav__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sticky-nav__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy-deep);
}

@media (max-width: 600px) {
  .sticky-nav__title { display: none; }
}


/* -----------------------------------------------------------------------------
   06 · HERO
   ----------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(40px, 8vw, 90px);
  padding-bottom: clamp(60px, 10vw, 120px);
  background: var(--color-canvas);
}

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

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
  }
}

.hero__copy {
  /* Orden natural en DOM = texto arriba en mobile, izquierda en desktop */
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--color-navy-deep);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: italic;
  color: var(--color-brand-blue);
}

.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--color-cool-gray);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__micro {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-warm-gray);
  letter-spacing: 0.3px;
}

.hero__media {
  display: flex;
  justify-content: center;
}

.hero__photo-frame {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-cyan));
  box-shadow: var(--shadow-medium);
  position: relative;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* -----------------------------------------------------------------------------
   07 · PAIN (dolor)
   ----------------------------------------------------------------------------- */
.pain {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--color-paper);
}

.pain__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .pain__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (min-width: 900px) {
  .pain__grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
}

.pain-card {
  position: relative;
  background: var(--color-canvas);
  padding: 32px 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 33, 75, 0.06);
  transition: transform var(--t-medium), box-shadow var(--t-medium);
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.pain-card__mark {
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--color-brand-blue);
  opacity: 0.25;
}

.pain-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-navy-deep);
  margin-bottom: 16px;
}

.pain-card__attr {
  font-size: 13px;
  color: var(--color-warm-gray);
  font-weight: 500;
}


/* -----------------------------------------------------------------------------
   08 · TRANSFORMATION (antes / después)
   ----------------------------------------------------------------------------- */
.transformation {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--color-soft-blue);
}

.transformation__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .transformation__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: start;
  }
}

.transformation__col {
  background: var(--color-paper);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.transformation__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.transformation__col--before .transformation__label {
  background: rgba(147, 133, 130, 0.15);
  color: var(--color-warm-gray);
}

.transformation__col--after .transformation__label {
  background: rgba(4, 139, 205, 0.12);
  color: var(--color-brand-blue);
}

.transformation__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-navy-deep);
}

.transformation__list li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-warm-gray);
}

.transformation__list--check li::before {
  content: '✓';
  color: var(--color-success);
}

.transformation__separator {
  display: none;
}

@media (min-width: 768px) {
  .transformation__separator {
    display: block;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--color-brand-blue), transparent);
    align-self: stretch;
  }
}

.transformation__cta {
  display: flex;
  justify-content: center;
}


/* -----------------------------------------------------------------------------
   09 · SESSIONS (las 4 sesiones)
   ----------------------------------------------------------------------------- */
.sessions {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--color-paper);
}

.sessions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

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

.session-card {
  position: relative;
  background: var(--color-canvas);
  padding: 36px 32px 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 33, 75, 0.06);
  transition: transform var(--t-medium), box-shadow var(--t-medium);
}

.session-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.session-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--color-brand-blue);
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.session-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-navy-deep);
  margin-bottom: 8px;
}

.session-card__teaser {
  font-size: 15px;
  color: var(--color-cool-gray);
  margin-bottom: 20px;
  line-height: 1.55;
}

.session-card__bullets li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-navy-deep);
  margin-bottom: 8px;
}

.session-card__bullets strong {
  color: var(--color-navy-deep);
  font-weight: 600;
}

.sessions__cta {
  display: flex;
  justify-content: center;
}


/* -----------------------------------------------------------------------------
   10 · LETTER (carta de Pablo)
   ----------------------------------------------------------------------------- */
.letter {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--color-soft-cream);
}

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

@media (min-width: 900px) {
  .letter__grid {
    grid-template-columns: 320px 1fr;
    gap: 60px;
  }
}

.letter__media {
  display: flex;
  justify-content: center;
}

.letter__photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
}

@media (min-width: 900px) {
  .letter__media {
    position: sticky;
    top: 100px;
  }
}

.letter__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--color-navy-deep);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.letter__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-navy-deep);
  margin-bottom: 16px;
}

.letter__body strong {
  color: var(--color-navy-deep);
  font-weight: 600;
}

.letter__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--color-brand-blue);
  margin-top: 24px;
}


/* -----------------------------------------------------------------------------
   11 · TESTIMONIALS
   ----------------------------------------------------------------------------- */
.testimonials {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--color-canvas);
}

/* Carrusel: scroll-snap nativo. Swipeable a dedo en mobile, auto-advance vía JS.
   El contenedor sí hace scroll horizontal; el track es un flex normal. */
.testimonials__carousel {
  position: relative;
  margin-bottom: 48px;
  margin-left: calc(var(--pad-x) * -1);
  margin-right: calc(var(--pad-x) * -1);
  padding: 4px var(--pad-x);
  overflow-x: auto;
  overflow-y: hidden;
  /* sin scroll-snap: la marquee continua necesita scroll libre y fluido */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials__carousel::-webkit-scrollbar {
  display: none;
}

.testimonials__track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.testimonial-card {
  flex: 0 0 280px;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-medium), box-shadow var(--t-medium);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .testimonial-card { flex: 0 0 320px; }
  .testimonials__track { gap: 24px; }
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* Variante VÍDEO */
.testimonial-card--video {
  cursor: pointer;
}

.testimonial-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-navy-deep), var(--color-brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.testimonial-card__play {
  position: relative;
  z-index: 1;
}

.testimonial-card__badge {
  z-index: 1;
}

.testimonial-card__play {
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform var(--t-fast);
}

.testimonial-card__play:hover {
  transform: scale(1.1);
}

.testimonial-card__badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.testimonial-card--video .testimonial-card__meta {
  padding: 16px 20px 20px;
}

.testimonial-card__meta strong {
  display: block;
  font-size: 14px;
  color: var(--color-navy-deep);
}

.testimonial-card__meta span {
  font-size: 13px;
  color: var(--color-warm-gray);
}

/* Variante TEXTO */
.testimonial-card--text {
  position: relative;
  padding: 36px 28px 24px;
}

.testimonial-card--text .pain-card__mark {
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--color-brand-blue);
  opacity: 0.2;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--color-navy-deep);
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-card__meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-brand-blue), var(--color-brand-cyan));
  flex-shrink: 0;
}

.testimonials__cta {
  display: flex;
  justify-content: center;
}


/* -----------------------------------------------------------------------------
   12 · FAQ + GUARANTEE
   ----------------------------------------------------------------------------- */
.faq {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--color-paper);
}

.faq__container { max-width: 780px; }

.faq__list {
  margin-bottom: 56px;
}

.faq__item {
  border-bottom: 1px solid rgba(21, 33, 75, 0.1);
  padding: 8px 0;
}

.faq__question {
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy-deep);
  position: relative;
  list-style: none;
  transition: color var(--t-fast);
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--color-brand-blue);
  transition: transform var(--t-medium);
  line-height: 1;
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__question:hover {
  color: var(--color-brand-blue);
}

.faq__answer {
  padding: 0 0 20px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-cool-gray);
  max-width: 660px;
}

.faq__answer p { margin-bottom: 10px; }

/* Garantía */
.guarantee {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  background: var(--color-soft-blue);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border-left: 4px solid var(--color-success);
}

.guarantee__icon {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.guarantee__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 10px;
}

.guarantee__body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-navy-deep);
  margin-bottom: 10px;
}

.guarantee__small {
  font-size: 13px !important;
  color: var(--color-cool-gray) !important;
  margin-top: 6px;
}


/* -----------------------------------------------------------------------------
   13 · APPLY (CTA final + form Tally)
   ----------------------------------------------------------------------------- */
.apply {
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(80px, 10vw, 120px);
  background: linear-gradient(180deg, var(--color-canvas) 0%, var(--color-soft-blue) 100%);
}

.apply__container {
  max-width: 720px;
  text-align: center;
}

.apply__eyebrow {
  display: block;
  margin: 0 auto 16px;
}

.apply__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  color: var(--color-navy-deep);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.apply__sub {
  font-size: 16px;
  color: var(--color-cool-gray);
  margin-bottom: 40px;
}

.apply__form {
  background: var(--color-paper);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-medium);
}

.apply__iframe {
  border: none;
  width: 100%;
  min-height: 600px;
  display: block;
}

.apply__fallback {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 33, 75, 0.08);
}

.apply__fallback p {
  font-size: 14px;
  color: var(--color-cool-gray);
  margin-bottom: 12px;
}


/* -----------------------------------------------------------------------------
   14 · FOOTER
   ----------------------------------------------------------------------------- */
.footer {
  padding: 32px 0;
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 700px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--t-fast);
}

.footer__nav a:hover { color: var(--color-paper); }


/* -----------------------------------------------------------------------------
   15 · VIDEO MODAL
   ----------------------------------------------------------------------------- */
/* Los testimonios son vídeos verticales (9:16). El modal se adapta al vídeo,
   sin barras negras: ancho automático según una altura máxima. */
.video-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: fit-content;
  height: fit-content;
  max-width: 96vw;
  margin: auto;            /* centra el dialog modal */
  background: transparent;
  overflow: visible;
}

.video-modal::backdrop {
  background: rgba(13, 23, 48, 0.88);
  backdrop-filter: blur(8px);
}

.video-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-navy-deep);
  font-size: 24px;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform var(--t-fast);
}

.video-modal__close:hover {
  transform: scale(1.1);
}

.video-modal__inner {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.video-modal__video {
  display: block;
  height: min(85vh, 720px);
  max-width: 96vw;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .video-modal__video { height: auto; width: 92vw; max-height: 86vh; }
  .video-modal__close { top: -52px; right: 0; }
}


/* -----------------------------------------------------------------------------
   16 · REVEAL ON SCROLL (animación sutil de entrada)
   ----------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Pequeño stagger entre hijos cuando aparezcan a la vez */
.reveal-stagger > * { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }


/* -----------------------------------------------------------------------------
   17 · HERO · glow sutil pulsante alrededor de la foto
   ----------------------------------------------------------------------------- */
.hero__photo-frame {
  animation: hero-glow 5s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% {
    box-shadow:
      0 8px 30px rgba(21, 33, 75, 0.10),
      0 0 0 rgba(4, 139, 205, 0);
  }
  50% {
    box-shadow:
      0 8px 30px rgba(21, 33, 75, 0.12),
      0 0 80px rgba(4, 139, 205, 0.30);
  }
}


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