/* ===================================================================
   HERO DEL HOME · diapositiva de la tarjeta física y controles del carrusel (desde el 2026-12-04)
   «Aumenta lo que recibe tu equipo, no lo que le cuesta a tu empresa.»
   La escena y la diapositiva de Navidad están en css/hero-navidad.css; el carrusel lo mueve js/hero-navidad.js
   (pone .is-activa en la diapositiva visible y aria-current en su punto).
   Jerarquías del hero: H1 en Batica Sans 400, bajada en la fuente de cuerpo, botón .btn--primary .btn--lg.
   Fuente de la foto: Bink/contenido/banner-web-tarjeta-fisica/ (Seedream 5.0 Pro, tarjeta oficial).
   =================================================================== */

/* ---------- Diapositiva de la tarjeta ---------- */
.xt { background: #2f7fd6; }
.xt__foto { position: absolute; inset: 0; z-index: -2; display: block; }
.xt__foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* Velo a la izquierda: el texto va sobre el cielo y los edificios */
.xt__velo { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(30, 4, 10, 0.5) 0%, rgba(30, 4, 10, 0.3) 34%, rgba(30, 4, 10, 0) 56%); }
.xt__copy { position: absolute; top: 50%; translate: 0 -50%; left: 0; width: min(41vw, 780px);
  padding-left: clamp(24px, 6vw, 104px); display: flex; flex-direction: column; align-items: flex-start; }
.xt__h1 { margin: 0; font: 400 clamp(2.2rem, 3.7vw, 4.2rem)/1.06 "Batica Sans", var(--font-display);
  letter-spacing: -0.01em; text-wrap: balance; }
.xt__resalte { color: var(--rosado); }
.xt__lede { margin: clamp(1.1rem, 2.2vw, 1.8rem) 0 0; max-width: 34ch; font: 400 clamp(1.02rem, 1.25vw, 1.3rem)/1.55 var(--font-body);
  color: rgba(255, 255, 255, 0.92); text-wrap: pretty; }
.xt__boton { margin-top: clamp(1.3rem, 2.4vw, 2rem); }
/* El botón de esta diapositiva conserva el degradado de marca (sobre el cielo se lee bien) */
.xh .xt .btn--primary { background: linear-gradient(120deg, #030303 0%, #dd034d 115%); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(221, 3, 77, 0.5); }
.xh .xt .btn--primary:hover { box-shadow: 0 20px 44px -12px rgba(221, 3, 77, 0.6); }

/* ---------- Diapositiva 2: tarjeta Visa («Olvídate de las redes cerradas.») ----------
   La foto tiene calle, gente y edificios a la izquierda: el velo es más denso que en la diapositiva 1. */
.xt--visa { background: #1b2a3a; }
.xt--visa .xt__foto img { object-position: 70% 50%; }
.xt--visa .xt__velo { background: linear-gradient(90deg, rgba(12, 4, 8, 0.78) 0%, rgba(12, 4, 8, 0.6) 30%, rgba(12, 4, 8, 0.22) 50%, rgba(12, 4, 8, 0) 62%); }
.xt--visa .xt__copy { width: min(40vw, 720px); }

/* Entrada cada vez que la diapositiva se vuelve visible. Anima translate y no transform (efecto magnético del botón). */
.xt.is-activa .xt__foto img { animation: xt-foto 7s ease-out both; }
.xt.is-activa .xt__h1 { animation: xt-sube 0.9s var(--xh-ease) 0.15s both; }
.xt.is-activa .xt__lede { animation: xt-sube 0.9s var(--xh-ease) 0.3s both; }
.xt.is-activa .xt__boton { animation: xt-sube 0.9s var(--xh-ease) 0.45s both; }
@keyframes xt-sube { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes xt-foto { from { scale: 1.04; } to { scale: 1; } }

/* ---------- Puntos del carrusel ---------- */
/* El punto activo es una píldora que se llena en el tiempo de la diapositiva (--dur la pone el JS) */
.xh__puntos { position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; display: flex; gap: 2px; }
.xh__punto { display: grid; place-items: center; width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.xh__punto span { position: relative; display: block; width: 8px; height: 8px; border-radius: 99px; overflow: hidden;
  background: rgba(255, 255, 255, 0.45); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); transition: width 0.4s var(--xh-ease), background 0.3s; }
.xh__punto:hover span { background: rgba(255, 255, 255, 0.75); }
.xh__punto[aria-current="true"] span { width: 34px; background: rgba(255, 255, 255, 0.35); }
.xh__punto[aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%;
  animation: xh-llena var(--dur, 7s) linear both; }
.xh--pausa .xh__punto[aria-current="true"] span::after { animation-play-state: paused; }
.xh--quieto .xh__punto[aria-current="true"] span::after { animation: none; }
.xh__punto:focus-visible { outline: none; }
.xh__punto:focus-visible span { box-shadow: 0 0 0 3px rgba(253, 149, 193, 0.7); }
@keyframes xh-llena { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Celular y pantallas verticales: texto arriba sobre tinta, foto abajo ----------
   (la franja de cookies aparece abajo en la primera visita y así no tapa el texto) */
@media (max-aspect-ratio: 5/4) {
  /* La foto de celular es vertical (9:16, extendida hacia arriba con cielo y edificios) y ocupa toda la diapositiva,
     anclada abajo. El texto va encima, sobre una gradación que oscurece solo lo necesario para leerlo. */
  .xt { background: #030303; }
  .xt__foto { position: absolute; inset: 0; z-index: -2; }
  /* Al ancho y anclada abajo (no «cover»): así la tarjeta no sube hasta el botón en pantallas largas.
     Lo que sobra arriba es el fondo, y el borde de la foto se desvanece hacia él. */
  .xt__foto img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; object-fit: initial;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
  .xt__velo, .xt--visa .xt__velo { display: block;
    background: linear-gradient(180deg, rgba(3, 3, 3, 0.78) 0%, rgba(3, 3, 3, 0.62) 38%, rgba(3, 3, 3, 0.25) 56%, rgba(3, 3, 3, 0) 70%); }
  .xt__copy, .xt--visa .xt__copy { position: relative; top: auto; translate: none; width: auto; padding: var(--xh-arriba, 84px) 20px 26px; }
  .xt__h1 { font-size: clamp(1.9rem, 8.1vw, 3.2rem); }
  .xt__lede { font-size: 1.02rem; margin-top: 0.95rem; }
  .xt__boton { margin-top: 1.1rem; }
  .xh__puntos { bottom: 14px; }
}
@media (max-aspect-ratio: 5/4) and (min-width: 700px) {
  .xt__copy { padding-left: 8vw; padding-right: 8vw; }
  .xt__h1, .xt__lede { max-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  .xt.is-activa .xt__foto img, .xt.is-activa .xt__h1, .xt.is-activa .xt__lede, .xt.is-activa .xt__boton { animation: none; }
  .xh__diapo { transition-duration: 0.01s; }
}
