/* ═══════════════════════════════════════════════════════════════════
   AnimLib v2.0.0 — Styles
   Professional scroll-based animation library styles
   ═══════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ────────────────────────────────────────────── */
:root {
  /* Spacing scale */
  --al-space-xs:   0.5rem;
  --al-space-sm:   1rem;
  --al-space-md:   1.5rem;
  --al-space-lg:   2rem;
  --al-space-xl:   3rem;
  --al-space-2xl:  4rem;
  --al-space-3xl:  8rem;
  --al-space-4xl:  12rem;

  /* Layout */
  --al-container-max:    1400px;
  --al-container-sm-max: 900px;
  --al-container-pad:    clamp(1.5rem, 4vw, 4rem);

  /* Offset total del navbar fijo = top + height del site-header.
     top: 20px + height: 80px = 100px. Sobreescribir si cambia. */
  --al-nav-height: 10px;

  /* Motion */
  --al-duration-fast:   0.25s;
  --al-duration-base:   0.35s;
  --al-duration-slow:   0.6s;
  --al-ease-default:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --al-ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --al-ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);

  /* Radius */
  --al-radius-sm:   0.5rem;
  --al-radius-md:   1rem;
  --al-radius-lg:   1.2rem;
  --al-radius-xl:   1.5rem;
  --al-radius-pill: 100px;

  /* Surface & borders */
  --al-border-subtle:  rgba(255, 255, 255, 0.06);
  --al-border-light:   rgba(255, 255, 255, 0.08);
  --al-border-medium:  rgba(255, 255, 255, 0.2);
  --al-surface-card:   #141414;

  /* Z-index ladder */
  --al-z-base:    1;
  --al-z-mid:     2;
  --al-z-overlay: 3;
  --al-z-cursor:  9999;
}

/* ─── CSS RESET & BASE ─────────────────────────────────────────────
   Nota: los estilos críticos (*, html, body, .al-hero, .lenis)
   están inlineados en functions/critical.php para el first paint.
   Aquí se mantiene solo lo necesario para la cascada posterior.
   ─────────────────────────────────────────────────────────────── */

/* Proteger de doble scroll-behavior si Lenis carga tarde */
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────
   .al-heading-xl / .al-heading-lg / .al-heading-md están definidos
   con sus valores finales (px exactos + font-family) en styles.css.
   Eliminar re-definición genérica de aquí evita conflictos de cascada.
   ─────────────────────────────────────────────────────────────── */

.al-text-lg {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.7;
  color: #999;
}

.al-text-md {
  font-size: 1rem;
  line-height: 1.6;
  color: #888;
}

.al-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
}

/* ─── LAYOUT / CONTAINERS ──────────────────────────────────────── */
.al-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.al-container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.al-container-full {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.al-container-no-padding {
  padding: 0;
}

@media (min-width: 768px) {
  .al-container-full {
    max-width: 1400px;
  }
}

/* ─── SPACERS ──────────────────────────────────────────────────── */
.al-spacer-xs  { height: 2rem; }
.al-spacer-sm  { height: 4rem; }
.al-spacer-md  { height: 8rem; }
.al-spacer-lg  { height: 12rem; }
.al-spacer-xl  { height: 20rem; }
.al-spacer-2xl { height: 30rem; }

/* ─── SECTION ──────────────────────────────────────────────────── */
.al-section {
  padding: clamp(4rem, 10vw, 5rem) 0;
  position: relative;
}

.al-section--dark {
  background: #0a0a0a;
}

.al-section--darker {
  background: #050505;
}

.al-section--gradient {
  background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
}

.al-section--accent {
  background: linear-gradient(135deg, #0f1923 0%, #0a0a0a 100%);
}

/* ─── HERO ─────────────────────────────────────────────────────── */
.al-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vh, 5.5rem);
}

.al-hero__content {
  position: relative;
  z-index: 2;
  width: min(96vw, 1800px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100svh - var(--al-nav-height, 0px));
  padding: clamp(2.75rem, 8vh, 6rem) clamp(0.5rem, 2vw, 2rem);
}

.al-hero__title {
  font-size: clamp(3.2rem, min(14vw, 20vh), 12.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  width: 100%;
  max-width: none;
  white-space: normal;
  text-wrap: pretty;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  will-change: opacity;
}

.al-hero__line {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.al-hero__title--outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: transparent;
}

.al-hero__overlay--scroll {
  background: rgba(30, 30, 30, 0);
  transition: none;
}

@media (max-width: 1024px) {
  .al-hero {
    padding-block: clamp(2.25rem, 5.5vh, 4.5rem);
  }

  .al-hero__content {
    width: min(96vw, 1200px);
    justify-content: center;
    padding-block: clamp(2.5rem, 7vh, 5rem);
  }

  .al-hero__title {
    font-size: clamp(2.9rem, min(14vw, 18vh), 9.5rem);
    line-height: 0.9;
  }
}

@media (max-width: 767px) {
  .al-hero {
    padding-block: clamp(1.25rem, 3vh, 2.25rem);
  }

  .al-hero__content {
    width: 100%;
    min-height: 100svh;
    padding: clamp(1.5rem, 4vh, 2.5rem) clamp(0.65rem, 4vw, 1.2rem);
  }

  .al-hero__title {
    font-size: clamp(3.4rem, 20vw, 7.8rem);
    line-height: 0.86;
    letter-spacing: -0.03em;
  }
}

body.admin-bar .al-hero__content {
  min-height: calc(100svh - var(--al-nav-height, 0px) - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .al-hero__content {
    min-height: calc(100svh - var(--al-nav-height, 0px) - 46px);
  }
}

.al-hero__text {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: #666;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.al-hero__bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.al-hero__bg img,
.al-hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.al-hero__bg--full img,
.al-hero__bg--full video {
  opacity: 1;
}

.al-hero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.al-hero__overlay--dark {
  background: rgba(0,0,0,0.5);
}

.al-hero__overlay--gradient {
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.6) 100%);
}

.al-hero__overlay--radial {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.al-hero__gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.al-hero__gradient--1 {
  background: #4a9eff;
  top: -200px;
  right: -100px;
}

.al-hero__gradient--2 {
  background: #ff4a8d;
  bottom: -200px;
  left: -100px;
}

/* ─── BUTTONS ──────────────────────────────────────────────────── */
.al-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--al-radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all var(--al-duration-base) var(--al-ease-default);
  position: relative;
  overflow: hidden;
}

.al-btn--primary {
  background: #fff;
  color: #0a0a0a;
}

.al-btn--primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255,255,255,0.15);
}

.al-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.al-btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.al-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── BADGES ───────────────────────────────────────────────────── */
.al-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.9em;
  border-radius: var(--al-radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.al-badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: al-pulse 2s ease-in-out infinite;
}

.al-badge--subtle {
  background: rgba(255,255,255,0.06);
  border-color: var(--al-border-light);
  color: #999;
}

@keyframes al-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── CARDS ────────────────────────────────────────────────────── */
.al-card {
  background: var(--al-surface-card);
  border: 1px solid var(--al-border-subtle);
  border-radius: var(--al-radius-lg);
  overflow: hidden;
  transition: transform var(--al-duration-base) ease,
              box-shadow var(--al-duration-base) ease;
}

.al-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.al-card__image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.al-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--al-duration-slow) ease;
}

.al-card:hover .al-card__image img {
  transform: scale(1.05);
}

.al-card__body {
  padding: 1.8rem;
}

.al-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a9eff;
  margin-bottom: 0.8rem;
  display: inline-block;
}

.al-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

.al-card__text {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.6;
}

/* ─── GLASSMORPHISM CARD ───────────────────────────────────────── */
.al-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--al-radius-xl);
  padding: var(--al-space-xl) var(--al-space-2xl);
  position: relative;
  overflow: hidden;
}

.al-glass--strong {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
}

.al-glass--noise::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.5;
}

/* ─── CARD GRID ────────────────────────────────────────────────── */
.al-grid {
  display: grid;
  gap: 2rem;
}

.al-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.al-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.al-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .al-grid--3, .al-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .al-grid--2, .al-grid--3, .al-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ─── PRICING CARDS ────────────────────────────────────────────── */
.al-pricing-grid {
  display: grid;
  gap: var(--al-space-lg);
  grid-template-columns: repeat(3, 1fr);
}

.al-pricing-card {
  background: var(--al-surface-card);
  border: 1px solid var(--al-border-subtle);
  border-radius: var(--al-radius-xl);
  padding: var(--al-space-2xl) var(--al-space-xl);
  position: relative;
  transition: transform var(--al-duration-base) var(--al-ease-default),
              box-shadow var(--al-duration-base) var(--al-ease-default);
  display: flex;
  flex-direction: column;
}

.al-pricing-card--featured {
  border-color: var(--al-border-medium);
  transform: translateY(-8px);
}

.al-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.al-pricing-card--featured:hover {
  transform: translateY(-12px);
}

.al-pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.al-pricing-card__plan {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  margin-bottom: 0.8rem;
}

.al-pricing-card__price {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: var(--al-space-sm) 0 0.3rem;
  color: #fff;
}

.al-pricing-card__price sup {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 600;
}

.al-pricing-card__period {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: var(--al-space-xl);
}

.al-pricing-card__divider {
  height: 1px;
  background: var(--al-border-light);
  margin-bottom: var(--al-space-xl);
}

.al-pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--al-space-sm);
  margin-bottom: var(--al-space-xl);
  flex: 1;
}

.al-pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--al-space-xs);
  font-size: 0.9rem;
  color: #666;
}

.al-pricing-card__feature--included {
  color: #e8e8e8;
}

.al-pricing-card__feature-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .al-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .al-pricing-card--featured {
    transform: none;
  }
}

/* ─── STATS / METRICS ──────────────────────────────────────────── */
.al-stats-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
}

.al-stat {
  text-align: center;
  padding: var(--al-space-xl) var(--al-space-lg);
  border-left: 1px solid var(--al-border-light);
}

.al-stat:first-child {
  border-left: none;
}

.al-stat__value {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--al-space-xs);
  color: #fff;
}

.al-stat__suffix {
  font-size: 0.6em;
  vertical-align: super;
}

.al-stat__label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .al-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .al-stat {
    border-left: none;
    border-top: 1px solid var(--al-border-light);
  }
  .al-stat:nth-child(-n+2) {
    border-top: none;
  }
}

/* ─── FEATURE ROWS ─────────────────────────────────────────────── */
.al-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.al-feature-row--reverse {
  direction: rtl;
}

.al-feature-row--reverse > * {
  direction: ltr;
}

.al-feature-row__media {
  border-radius: var(--al-radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--al-surface-card);
}

.al-feature-row__media img,
.al-feature-row__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.al-feature-row__content {
  display: flex;
  flex-direction: column;
  gap: var(--al-space-lg);
}

.al-feature-row__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--al-radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--al-border-light);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .al-feature-row,
  .al-feature-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ─── PROGRESS BARS ────────────────────────────────────────────── */
.al-progress-list {
  display: flex;
  flex-direction: column;
  gap: var(--al-space-lg);
}

.al-progress-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.al-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.al-progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8e8e8;
}

.al-progress-value {
  font-size: 0.8rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.al-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--al-radius-pill);
  overflow: hidden;
}

.al-progress-fill {
  height: 100%;
  border-radius: var(--al-radius-pill);
  background: #fff;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* ─── TICKER / MARQUEE ─────────────────────────────────────────── */
.al-ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: var(--al-space-md) 0;
}

.al-ticker__track {
  display: inline-flex;
  gap: var(--al-space-2xl);
  will-change: transform;
  align-items: center;
}

.al-ticker__item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--al-space-lg);
}

.al-ticker__separator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  flex-shrink: 0;
}

/* Gradient edge fade */
.al-ticker::before,
.al-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 8vw, 6rem);
  z-index: var(--al-z-mid);
  pointer-events: none;
}

.al-ticker::before {
  left: 0;
  background: linear-gradient(90deg, #0a0a0a, transparent);
}

.al-ticker::after {
  right: 0;
  background: linear-gradient(270deg, #0a0a0a, transparent);
}

/* ─── CINEMATIC CARD ───────────────────────────────────────────── */
.al-cinematic-card {
  width: 100%;
  max-width: 100vw;
  /* overflow VISIBLE: el título sale hacia arriba y el CTA hacia abajo */
  overflow: visible;
  position: relative;
  /* Espacio reducido — el CTA ocupa ~50px más abajo */
  margin-bottom: 50px;
}

/* El media (img/video) es quien se recorta, no el container */
.al-cinematic-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  height: min(81svh, 900px);
  max-height: calc(100svh - var(--al-nav-height, 0px));
}

/* Soft gradient overlay for better text readability */
.al-cinematic-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(8, 8, 10, 0.22) 0%,
      rgba(8, 8, 10, 0.14) 35%,
      rgba(8, 8, 10, 0.28) 65%,
      rgba(8, 8, 10, 0.56) 100%
    );
}

.al-cinematic-card img,
.al-cinematic-card video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .al-cinematic-card {
    width: calc(100vw - 2rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
  }

  .al-cinematic-card__media {
    height: min(70svh, 640px);
  }

  .al-cinematic-card img,
  .al-cinematic-card video {
    height: 100%;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .al-cinematic-card {
    width: 100vw;
  }

  .al-cinematic-card__media {
    width: min(96vw, 1800px);
    margin-inline: auto;
  }
}

.al-cinematic-card__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--al-z-overlay);
  text-align: center;
  line-height: 1.05;
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.al-cinematic-card__desc {
  position: absolute;
  bottom: clamp(86px, 12vh, 150px);
  left: 0;
  right: 0;
  text-align: center;
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 142%;
  letter-spacing: 0;
  color: rgba(255,255,255,0.85);
  z-index: var(--al-z-overlay);
  width: min(88vw, 560px);
  margin-inline: auto;
  padding: 0;
}

.al-cinematic-card__cta {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translate(-50%, 100%);
  z-index: var(--al-z-overlay);
}

.al-cinematic-card__cta-link {
  display: inline-block;
  padding: 0.8rem 3.2rem;
  min-width: 243px;
  background: #F8F32B;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  border-radius: var(--al-radius-pill);
  transition: transform var(--al-duration-base) ease,
              box-shadow var(--al-duration-base) ease;
}

.al-cinematic-card__cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.3);
}

.al-cinematic-card__cta-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 197, 24, 0.3);
  outline: 2px solid #F8F32B;
  outline-offset: 3px;
}

/* ─── CINEMATIC CARD PIN WRAPPER ──────────────────────────────── */
.al-cinematic-pin-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--vh, 1vh) * 100);
}

.al-cinematic-pin-wrap .al-cinematic-card {
  margin: 0 auto;
}

/* ─── STACK CARDS ──────────────────────────────────────────────── */
.al-stack {
  position: relative;
}

.stack-card {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--al-radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  will-change: transform;
}

.stack-card:nth-child(1) {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.stack-card:nth-child(2) {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

.stack-card:nth-child(3) {
  background: linear-gradient(135deg, #533483 0%, #0f3460 100%);
}

.stack-card:nth-child(4) {
  background: linear-gradient(135deg, #e94560 0%, #533483 100%);
}

.stack-card__content {
  text-align: center;
  max-width: 700px;
}

.stack-card__number {
  font-size: 8rem;
  font-weight: 900;
  opacity: 0.1;
  line-height: 1;
  margin-bottom: -2rem;
}

/* ─── HORIZONTAL SCROLL ───────────────────────────────────────── */
.al-horizontal {
  overflow: hidden;
  position: relative;
}

.hs-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.hs-panel {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.hs-panel:nth-child(1) {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hs-panel:nth-child(2) {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f1923 100%);
}

.hs-panel:nth-child(3) {
  background: linear-gradient(135deg, #0f1923 0%, #1a0f23 100%);
}

.hs-panel:nth-child(4) {
  background: linear-gradient(135deg, #1a0f23 0%, #231a0f 100%);
}

.hs-panel__content {
  max-width: 600px;
}

/* ─── REVEAL MASK ──────────────────────────────────────────────── */
.al-reveal {
  overflow: hidden;
  position: relative;
}

.al-reveal img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── GALLERY ──────────────────────────────────────────────────── */
.al-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--al-radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--al-duration-slow) ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }

@media (max-width: 768px) {
  .al-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-item:nth-child(1) { grid-row: span 1; aspect-ratio: 4/3; }
}

/* ─── PARALLAX IMAGE ───────────────────────────────────────────── */
.al-parallax-wrap {
  overflow: hidden;
  position: relative;
  border-radius: var(--al-radius-md);
}

.al-parallax-wrap img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

/* ─── SPLIT TEXT ───────────────────────────────────────────────── */
[data-split] .char,
[data-split] .word,
[data-split] .line {
  display: inline-block;
  will-change: transform, opacity;
}

[data-split] .line {
  overflow: hidden;
}

/* ─── SECTION HEADERS ──────────────────────────────────────────── */
.al-section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.al-section-header .al-label {
  margin-bottom: 1rem;
}

.al-section-header .al-heading-lg {
  margin-bottom: 1rem;
}

.al-section-header .al-text-lg {
  max-width: 600px;
  margin: 0 auto;
}

/* ─── DIVIDER ──────────────────────────────────────────────────── */
.al-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

/* ─── HOVER ACCORDION ──────────────────────────────────────────── */
.al-hover-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.al-hover-item {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--al-border-light);
  cursor: pointer;
  transition: background var(--al-duration-base) ease;
}

.al-hover-item:first-child {
  border-top: 1px solid var(--al-border-light);
}

.al-hover-item:hover,
.al-hover-item:focus-within {
  background: rgba(255,255,255,0.03);
}

.al-hover-item__header {
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity var(--al-duration-base) ease,
              transform var(--al-duration-base) ease;
}

.al-hover-item:hover .al-hover-item__header {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.al-hover-item__title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #fff;
}

.al-hover-item__index {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a9eff;
}

.al-hover-item__body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--al-duration-base) ease,
              transform var(--al-duration-base) ease;
  pointer-events: none;
}

.al-hover-item:hover .al-hover-item__body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.al-hover-item__desc {
  font-size: 1rem;
  color: #999;
  line-height: 1.6;
  max-width: 80%;
}

.al-hover-item__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--al-duration-slow) ease,
              transform var(--al-duration-slow) ease;
}

.al-hover-item:hover .al-hover-item__image {
  opacity: 1;
  transform: scale(1);
}

.al-hover-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── MOBILE: body fluye debajo del header, no encima ── */
@media (max-width: 768px) {
  /* Cancelar el absolute — GSAP maneja height y opacity */
  .al-hover-item__body {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0 2rem;
    height: 0;
    overflow: hidden;
    transform: none;
  }

  /* El header nunca se oculta en mobile (el body va debajo) */
  .al-hover-item:hover .al-hover-item__header,
  .al-hover-item.is-open .al-hover-item__header {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  /* Thumbnail ocupa ancho completo en mobile */
  .al-hover-item__image {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 180px;
    transform: none;
    margin-top: 1rem;
  }
}

/* Variant: with expanding height */
.al-hover-accordion--expand .al-hover-item__body {
  position: relative;
  max-height: 0;
  padding: 0 2rem;
  transition: max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity var(--al-duration-base) ease,
              padding var(--al-duration-base) ease,
              transform var(--al-duration-base) ease;
}

.al-hover-accordion--expand .al-hover-item:hover .al-hover-item__header {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.al-hover-accordion--expand .al-hover-item:hover .al-hover-item__body {
  max-height: 200px;
  padding: 0 2rem 1.8rem;
}

/* ─── OUTLINE ACCORDION ───────────────────────────────────────── */
.al-outline-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Centrado horizontal en cualquier resolución */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.al-outline-item {
  position: relative;
  border-bottom: 1px solid var(--al-border-light);
  cursor: pointer;
  /* overflow: clip clips geometrically without creating a BFC —
     prevents title's GSAP y-offset from leaking outside the row
     while allowing the desc to expand the item height naturally */
  overflow: clip;
  min-height: 80px;
}

.al-outline-item:first-child {
  border-top: 1px solid var(--al-border-light);
}

.al-outline-item__title {
  padding: 1.5rem 2rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  color: transparent;
  /* Spring para el cambio de color — iPhone-style (cubic overshoot)
     El transform lo maneja GSAP con elastic para la respuesta física */
  transition: -webkit-text-fill-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              -webkit-text-stroke     0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              color                   0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: var(--al-z-mid);
  will-change: transform;
}

.al-outline-item__desc {
  position: relative;
  width: 95%;
  box-sizing: border-box;
  padding: 0;
  font-size: 1rem;
  color: #bbb;
  line-height: 1.7;
  /* Estado inicial — GSAP controla height/opacity/transform */
  height: 0;
  opacity: 0;
  overflow: hidden;
  /* Sin transiciones CSS para no pelear con GSAP */
}

.al-outline-item__arrow {
  display: none;
}

/* ── DESKTOP ── */
@media (min-width: 769px) {
  /* Color cambia con spring CSS — el transform y lo maneja GSAP */
  .al-outline-item.is-open .al-outline-item__title {
    -webkit-text-fill-color: #F8F32B;
    -webkit-text-stroke: 0px transparent;
    color: #F8F32B;
  }

  .al-outline-item.is-open {
    padding-bottom: 40px;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .al-outline-item__title {
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 0;
    color: #fff;
    padding-bottom: 0.5rem;
    text-align: center;
  }

  .al-outline-item__arrow {
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
  }

  .al-outline-item__arrow svg {
    width: 20px;
    height: 20px;
    stroke: #666;
    transition: transform var(--al-duration-base) ease;
  }

  .al-outline-item.is-open .al-outline-item__title {
    -webkit-text-fill-color: #F8F32B;
    color: #F8F32B;
  }

  .al-outline-item.is-open .al-outline-item__arrow svg {
    transform: rotate(180deg);
  }

  /* Padding visible cuando está abierto — height lo maneja GSAP */
  .al-outline-item.is-open .al-outline-item__desc {
    padding-bottom: 1.5rem;
  }
}

/* ─── FOUNDER STORY ────────────────────────────────────────────── */
.al-founder {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  gap: clamp(3rem, 6vw, 6rem);
}

.al-founder__profile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.al-founder__avatar {
  width: 242px;
  height: 242px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.1);
}

.al-founder__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.al-founder__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.al-founder__role {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.al-founder__content {
  flex: 1;
}

.al-founder__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #4a9eff;
  margin-bottom: 0.8rem;
}

.al-founder__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.al-founder__desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #888;
  margin-bottom: 2rem;
  max-width: 560px;
}

.al-founder__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F8F32B;
  transition: gap var(--al-duration-base) ease,
              color var(--al-duration-base) ease;
}

.al-founder__cta:hover {
  gap: 1rem;
  color: #ffd84d;
}

.al-founder__cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--al-duration-base) ease;
}

.al-founder__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .al-founder {
    flex-direction: column;
    text-align: center;
  }

  .al-founder__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .al-founder__desc {
    text-align: center;
  }

  .al-founder__avatar {
    width: 180px;
    height: 180px;
  }
}

/* ─── CONTACT FORM 7 ───────────────────────────────────────────────────── */
.al-cf7-form {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  flex-direction: column;

  .al-heading-lg {
    font-style: normal;
    font-weight: 900;
    font-size: 64px;
    line-height: 125%;
    text-align: center;
    color: #FFFFFF;
  }

  @media (min-width: 768px) {
    .al-heading-lg {
      font-size: 96px;
    }
  }

  .al-cf7-form__body__tag__container {
    margin-bottom: 20px;
  }

  .al-cf7-row p {
    display: flex;
    gap: 20px;
    margin: 0;
  }

  .al-cf7-row br {
    display: none;
  }

  .al-cf7-row .wpcf7-form-control-wrap {
    flex: 1;
  }

  .al-cf7-row input,
  .al-cf7-row textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.15);
  }

  .al-cf7-row textarea {
    min-height: 140px;
  }

  .al-submit p {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .al-submit input[type="submit"] {
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .al-cf7-row p {
      flex-direction: column;
    }
  }
}

/* ─── SCROLL PROGRESS INDICATOR ───────────────────────────────── */
.al-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: var(--al-z-cursor);
  pointer-events: none;
}

.al-scroll-progress__fill {
  height: 100%;
  background: #fff;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────────────── */
.al-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--al-z-cursor);
  mix-blend-mode: difference;
}

.al-cursor__dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.al-cursor__ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  transition: width var(--al-duration-fast) var(--al-ease-out),
              height var(--al-duration-fast) var(--al-ease-out),
              border-color var(--al-duration-fast) ease;
}

.al-cursor--hover .al-cursor__ring {
  width: 60px;
  height: 60px;
  border-color: rgba(255,255,255,0.3);
}

.al-cursor--text .al-cursor__ring {
  width: 80px;
  height: 80px;
  border-color: rgba(255,255,255,0.2);
}

body.al-custom-cursor,
body.al-custom-cursor * {
  cursor: none !important;
}

/* ─── FOOTER ───────────────────────────────────────────────────── */
.al-footer {
  padding: 4rem 0;
  text-align: center;
  color: #444;
  font-size: 0.9rem;
}

/* ─── UTILITY ──────────────────────────────────────────────────── */
.al-overflow-hidden { overflow: hidden; }
.al-relative        { position: relative; }
.al-z-1             { z-index: 1; }
.al-z-2             { z-index: 2; }
.al-text-center     { text-align: center; }
.al-text-left       { text-align: left; }
.al-flex            { display: flex; }
.al-flex-center     { display: flex; align-items: center; justify-content: center; }
.al-flex-col        { flex-direction: column; }
.al-gap-1           { gap: 0.5rem; }
.al-gap-2           { gap: 1rem; }
.al-gap-3           { gap: 1.5rem; }
.al-gap-4           { gap: 2rem; }
.al-mb-1            { margin-bottom: 0.5rem; }
.al-mb-2            { margin-bottom: 1rem; }
.al-mb-3            { margin-bottom: 1.5rem; }
.al-mb-4            { margin-bottom: 2rem; }
.al-mt-2            { margin-top: 1rem; }
.al-w-full          { width: 100%; }

/* ─── ELEMENTOR COMPATIBILITY ──────────────────────────────────── */
/*
 * Añade la clase "al-unclip" a la SECCIÓN de Elementor que envuelve
 * el widget heroReveal (y cualquier otro widget con animaciones que
 * se salgan de sus límites). Esto evita que Elementor recorte el
 * canvas o los elementos animados.
 *
 * En Elementor: selecciona la Sección/Contenedor → Avanzado → CSS Classes → "al-unclip"
 */
.al-unclip,
.al-unclip > .elementor-container,
.al-unclip > .elementor-container > .elementor-row,
.al-unclip > .elementor-container > .elementor-row > .elementor-column,
.al-unclip .elementor-column-wrap,
.al-unclip .elementor-widget-wrap,
.al-unclip .elementor-widget,
.al-unclip .elementor-widget-container {
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

/* Elementor Flexbox Containers (e-con) — zeroes out all spacing vars */
.al-unclip.e-con,
.al-unclip > .e-con,
.al-unclip > .e-con > .e-con-inner,
.al-unclip.e-con > .e-con-inner {
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  --e-con-gap: 0px !important;
  --padding-top: 0px !important;
  --padding-bottom: 0px !important;
  --padding-left: 0px !important;
  --padding-right: 0px !important;
  --margin-top: 0px !important;
  --margin-bottom: 0px !important;
}

/* ─── PREFERS-REDUCED-MOTION ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Disable transitions */
  .al-btn,
  .al-card,
  .al-card__image img,
  .al-hover-item,
  .al-hover-item__header,
  .al-hover-item__body,
  .al-hover-item__image,
  .al-outline-item__title,
  .al-outline-item__desc,
  .al-founder__cta,
  .al-founder__cta svg,
  .al-progress-fill,
  .al-cursor__ring,
  .al-badge--dot::before,
  .al-cinematic-card__cta-link,
  .al-pricing-card {
    transition: none !important;
    animation: none !important;
  }

  /* Ensure animated elements are immediately visible */
  [data-anim],
  [data-split],
  [data-stagger],
  [data-timeline] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  /* Hide decorative elements */
  .al-scroll-progress,
  .al-cursor {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   GPU PROMOTION — AnimLib performance optimizations
   ═══════════════════════════════════════════════════════════════════ */

/*
 * Promover elementos animados a sus propias capas GPU.
 * Scoping intencional: solo selectores que realmente se animan.
 * Evitar will-change en contenedores grandes (.al-hero, body, etc.)
 * para no exceder el presupuesto de memoria de la GPU.
 */

/* Animaciones de transform + opacity (fadeUp, fadeLeft, zoomIn, etc.) */
[data-anim]:not([data-anim="cursor"]):not([data-anim="scrollProgress"]):not([data-anim="marquee"]) {
  will-change: transform, opacity;
}

/* Blur animations — GPU layer propio para filtros */
[data-anim="blurIn"],
[data-anim="blurOut"],
[data-blur-from] {
  will-change: filter, opacity;
}

/* Cinematic cards — entrada cinemática con scale + opacity */
.al-cinematic-card {
  will-change: transform, opacity;
}

/* Marquee track — solo transform (desplazamiento horizontal continuo) */
.al-ticker__track {
  will-change: transform;
}

/* Custom cursor — movimiento de alta frecuencia, necesita su propia capa */
.al-cursor__dot,
.al-cursor__ring {
  will-change: transform;
  contain: layout style;
}

/* ── Prevención de jank en mobile (section-nav swipe) ──────────── */

/*
 * touch-action: pan-y permite el scroll vertical nativo dentro de cada sección
 * pero bloquea el zoom de pellizco y el scroll horizontal en contenedores sin permiso.
 * Si una sección contiene un carrusel horizontal, ese elemento necesita
 * touch-action: pan-x explícito para no romper el swipe lateral.
 */
.al-section,
.al-hero,
.elementor-top-section,
.e-con.e-parent {
  touch-action: pan-y;
  overflow-x: hidden;
}

/*
 * Durante la animación de navegación por secciones, bloquear
 * interacciones táctiles adicionales para evitar doble-salto.
 */
body.section-nav--animating .al-section,
body.section-nav--animating .al-hero,
body.section-nav--animating .elementor-top-section,
body.section-nav--animating .e-con.e-parent {
  pointer-events: none;
}
