/*
 * Hero de Navidad del home (LCT128532 - CHRISTMAS TAKEOVER).
 * Basado en el banner animado de diseño (LCT_Christmas_Banner_Web_Mobile),
 * adaptado para llenar el hero .height-100--hero en lugar del video.
 * Todo va dentro de .lct-christmas para no chocar con los estilos del sitio.
 */
.lct-christmas-hero {
  background: #343b2e;
}

.lct-christmas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  container-type: size;
  /* arriba deja espacio para el header fijo */
  padding: 96px 16px 32px;
  text-align: center;
  color: #e8d6b3;
  font-family: Arial, sans-serif;
  background: #343b2e url("../images/christmas/christmas-background.jpg") center / cover no-repeat;
}

/* Ancho del arte: proporcional al hero, sin pasarse de alto en pantallas bajas */
.lct-christmas .art {
  width: min(49vw, 1200px);
  width: min(49cqw, 1200px, 125cqh);
}

/* Neutraliza los estilos globales de h1/p/span del sitio */
.lct-christmas h1 {
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}
.lct-christmas h1 svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
}
.lct-christmas .subtitle {
  display: block;
  margin-top: .5em;
  padding-left: .62em;
  letter-spacing: .62em;
  font-size: clamp(13px, 1.33cqw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}
.lct-christmas .services {
  margin-top: 5cqw;
  font-size: clamp(15px, 1.73cqw, 36px);
  line-height: 1.18;
  font-weight: 700;
}
.lct-christmas .services p {
  margin: 0;
  font: inherit;
  line-height: inherit;
  color: inherit;
  text-transform: none;
}
.lct-christmas .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@container (max-width: 850px) {
  .lct-christmas .art { width: min(88cqw, 640px, 150cqh); }
  .lct-christmas .services { margin-top: clamp(28px, 8cqw, 52px); }
}

/* Animación (una sola vez al cargar). Con "reducir movimiento" se muestra todo fijo. */
@media (prefers-reduced-motion: no-preference) {
  .lct-christmas.playing .pen-complete { animation: lct-complete 1s step-end both; }
  .lct-christmas.playing .pen-line { stroke-dasharray: 1; animation: lct-draw 1s linear both; }
  .lct-christmas.playing .letter:not(:first-of-type) {
    animation: lct-reveal .72s cubic-bezier(.33, .05, .24, 1) calc(.57s + var(--delay)) both;
    transform-box: fill-box;
  }
  .lct-christmas.playing .subtitle { animation: lct-arrive .5s ease-out 2.28s both; }
  .lct-christmas.playing .services { animation: lct-arrive .55s ease-out 2.58s both; }
}
@keyframes lct-complete { from { opacity: 0; } to { opacity: 1; } }
@keyframes lct-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lct-reveal {
  from { clip-path: inset(-2px 100% -2px -2px); opacity: .28; }
  to { clip-path: inset(-2px); opacity: 1; }
}
@keyframes lct-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
