/*
 * Rediseño de la portada (15/10/2026): cinta de datos, hero de ondas magnéticas, capítulos de
 * tratamientos y reseñas con cifra grande. Todo con prefijo «lp-» para no chocar con style.css.
 * Sin estilos en línea (CSP style-src 'self'): el movimiento lo calculan landing-ondas.js y
 * landing-capitulos.js, que solo cambian propiedades por CSSOM.
 */
.lp-body {
    /* Los colores salen del tema del paquete (variables de :root en style.css o en el tema.css del paquete):
       cambiar de marca es cambiar esas variables, no este fichero. */
    --lp-teal: var(--color-primary);
    --lp-teal-claro: var(--color-mint);
    --lp-noche: var(--color-dark);
    --lp-cabecera: color-mix(in srgb, var(--color-primary) 70%, var(--color-dark));
    --lp-claro: color-mix(in srgb, var(--color-primary) 5%, #fff);
    --lp-fuerte: var(--color-realce);          /* color de realce (líneas, puntos, botones) */
    --lp-suave: var(--color-acento);
    /* Accesibilidad (contraste WCAG AA): el realce intenso queda para líneas, puntos y fondos de botón; cuando es LETRA
       se usa un tono más oscuro sobre fondo claro y uno más claro sobre el color principal. */
    --lp-naranja-texto: var(--color-realce-texto);
    --lp-naranja-sobre-azul: var(--color-realce-sobre-oscuro);
    --lp-tinta-boton: var(--color-dark);
    --lp-onda: var(--color-onda);
    --lp-haz: var(--color-haz);
}

/* ---------------------------------------------------------------- Cinta de datos */
.lp-cinta {
    background: var(--lp-teal); color: #fff; overflow: hidden; white-space: nowrap;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    border-bottom: 3px solid var(--lp-suave);
}
.lp-cinta-pista { display: inline-block; padding: 10px 0; animation: lp-cinta 48s linear infinite; }
.lp-cinta-pista span { margin: 0 22px; }
.lp-cinta-pista i { color: var(--lp-suave); font-style: normal; }
@keyframes lp-cinta { to { transform: translateX(-50%); } }

/* Línea fina ondulada que se traza al bajar (con punta naranja) */
.lp-linea { display: block; width: 100%; height: 60px; background: var(--color-bg, #f6f9fa); }
.lp-linea path { fill: none; stroke: var(--lp-teal); stroke-width: 1.6; stroke-linecap: round; }
.lp-linea circle { fill: var(--lp-suave); }

/* ---------------------------------------------------------------- Hero de ondas */
.lp-hero {
    position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center;
    background: radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--lp-teal) 55%, var(--lp-noche)) 0%, var(--lp-noche) 70%); color: #fff;
}
.lp-ondas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-hero-texto { position: relative; z-index: 2; max-width: 640px; padding: 60px 8vw; }
.lp-hero-texto h1, .lp-hero-texto p { text-shadow: 0 1px 14px color-mix(in srgb, var(--lp-noche) 95%, transparent), 0 0 3px color-mix(in srgb, var(--lp-noche) 80%, transparent); }
.lp-hero .hero-badge { margin-bottom: 18px; }
.lp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; color: #fff; }
.lp-hero p { font-size: 1.1rem; max-width: 46ch; opacity: .92; color: #fff; }
.lp-botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lp-hero .btn-primary-link { background: var(--lp-fuerte); border-color: var(--lp-fuerte); color: var(--lp-tinta-boton); font-weight: 700; }
.lp-hero .btn-primary-link:hover { background: var(--lp-fuerte); color: var(--lp-tinta-boton); filter: brightness(1.08); }
.lp-hero .hero-cta svg { stroke: currentColor; }
.lp-btn-sec {
    display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
    border: 2px solid currentColor; color: #fff;
}

/* ---------------------------------------------------------------- Transiciones onduladas */
.lp-sep { display: block; width: 100%; height: 70px; }
.lp-sep--puente { background: var(--lp-cabecera); }
.lp-sep--puente .lp-sep-relleno { fill: var(--lp-noche); }
.lp-sep-linea { fill: none; stroke: var(--lp-fuerte); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lp-sep--a-claro { background: var(--color-bg, #f6f9fa); }
.lp-sep--a-claro .lp-sep-relleno { fill: var(--lp-noche); }
.lp-sep--a-noche { background: var(--lp-noche); }
.lp-sep--a-noche .lp-sep-relleno { fill: var(--color-bg, #f6f9fa); }

/* ---------------------------------------------------------------- Capítulos de tratamientos */
.lp-capitulos { background: var(--lp-claro); overflow-x: clip; }
.lp-solo-lectores {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.lp-cabecera { background: var(--lp-cabecera); padding: .9rem 0 1.5rem; }
.lp-palabras {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.lp-palabras-pista {
    display: flex; align-items: center; width: max-content;
    transition: transform .7s cubic-bezier(.22, .7, .2, 1); will-change: transform;
}
.lp-palabras-pista.lp-sin-anim { transition: none; }
.lp-pal-item {
    flex: none; border: 0; background: none; color: rgba(255, 255, 255, .55); font: inherit;
    font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 300; letter-spacing: -.01em; cursor: pointer;
    padding: .2rem 0; transition: color .4s, font-weight .4s;
}
.lp-pal-item::after { content: "•"; margin: 0 1.1em; color: var(--lp-fuerte); font-size: .7em; vertical-align: .12em; }
.lp-pal-item.lp-on { color: #fff; font-weight: 800; }
.lp-pal-item.lp-on .lp-pal-texto { border-bottom: 3px solid var(--lp-fuerte); padding-bottom: 2px; }
.lp-onda-bajo { display: block; width: 100%; height: 56px; margin-top: -1px; background: var(--lp-claro); }
.lp-onda-bajo .lp-sep-relleno { fill: var(--lp-cabecera); }

.lp-capitulo {
    position: sticky; top: 0; min-height: 92vh; display: flex; align-items: center;
    border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px color-mix(in srgb, var(--lp-noche) 22%, transparent);
}
.lp-capitulo--primero { border-radius: 0; box-shadow: none; }
.lp-capitulo--claro { background: var(--lp-claro); color: var(--color-text, #12313c); }
.lp-capitulo--oscuro { background: var(--lp-teal); color: #fff; }
.lp-capitulo-dentro {
    width: 100%; max-width: 68rem; margin: 0 auto; padding: 4rem 1.5rem;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center;
}
.lp-contador { font-family: ui-monospace, Menlo, monospace; font-size: 2rem; margin: 0 0 .4rem; opacity: .8; }
.lp-etiqueta { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; letter-spacing: .04em; margin: 0 0 1rem; color: var(--lp-naranja-texto); }
.lp-capitulo--oscuro .lp-etiqueta { color: #fff; }
.lp-rev-titulo { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; line-height: 1.1; margin: 0 0 1.2rem; }
.lp-rev-titulo .lp-pal:last-child { font-weight: 800; color: var(--lp-naranja-texto); }
.lp-capitulo--oscuro .lp-rev-titulo .lp-pal:last-child { color: var(--lp-naranja-sobre-azul); }
.lp-rev-texto { font-size: 1.1rem; max-width: 32rem; margin: 0 0 1.6rem; opacity: .88; }
.lp-capitulo--oscuro .lp-rev-texto { opacity: 1; }
.lp-capitulo .btn-primary-link { background: var(--lp-fuerte); border-color: var(--lp-fuerte); color: var(--lp-tinta-boton); font-weight: 700; }
.lp-capitulo .btn-primary-link:hover { background: var(--lp-fuerte); color: var(--lp-tinta-boton); filter: brightness(1.08); }
.lp-capitulo-arte { transform: translateY(var(--py, 0px)); }
.lp-foto {
    width: 100%; max-width: 380px; aspect-ratio: 1 / 1; object-fit: cover; display: block; margin: 0 auto;
    border-radius: 32px; border: 6px solid rgba(255, 255, 255, .55); box-shadow: 0 14px 36px color-mix(in srgb, var(--lp-noche) 35%, transparent);
}
/* Con JavaScript, lo que se revela parte casi oculto y gana opacidad con el avance (--wp, --p) */
.lp-js .lp-pal {
    display: inline-block; margin-right: .25em;
    opacity: calc(.12 + .88 * var(--wp, 0)); transform: translateY(calc((1 - var(--wp, 0)) * 16px));
}
.lp-js .lp-rev-texto, .lp-js .lp-etiqueta, .lp-js .lp-capitulo .btn-primary-link {
    opacity: calc(.1 + .9 * var(--p, 0)); transform: translateY(calc((1 - var(--p, 0)) * 22px));
}
.lp-js .lp-contador { opacity: calc(.8 * var(--p, 0)); }

/* ---------------------------------------------------------------- Reseñas con cifra grande (misma sección y datos de siempre) */
.landing-reviews .reviews-summary { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.landing-reviews .reviews-summary-score {
    font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -.04em;
}
.landing-reviews .reviews-summary-stars { color: var(--lp-naranja-texto, #c2410c); letter-spacing: .15em; font-size: 1.2rem; }
.landing-reviews .review-card { position: relative; }
.landing-reviews .review-card::before {
    content: "\201C"; position: absolute; right: 18px; top: 2px; font-size: 4.6rem; line-height: 1;
    color: var(--lp-teal-claro); opacity: .55; font-family: Georgia, serif; pointer-events: none;
}
.landing-reviews .review-star--filled { color: var(--lp-naranja-texto, #c2410c); }

/* ---------------------------------------------------------------- Móvil y movimiento reducido */
@media (max-width: 760px) {
    .lp-capitulo { position: static; min-height: 0; border-radius: 22px 22px 0 0; }
    .lp-capitulo--primero { border-radius: 0; }
    .lp-capitulo-dentro { grid-template-columns: 1fr; padding: 3rem 1.2rem; gap: 1.5rem; }
    .lp-capitulo-arte { order: -1; }
    .lp-foto { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-cinta-pista { animation: none; }
    .lp-capitulo { position: static; }
    .lp-capitulo-arte { transform: none; }
    .lp-palabras { -webkit-mask-image: none; mask-image: none; }
    .lp-palabras-pista { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 1rem; transform: none !important; transition: none; }
    .lp-pal-item.lp-copia { display: none; }
}

/* ---------------------------------------------------------------- Entrada de cada capítulo (estilo diapositivas) */
/* --pe va de 0 (el capítulo asoma por abajo) a 1 (ya asentado) y lo fija landing-capitulos.js al bajar. */
.lp-js .lp-capitulo[data-efecto="der"]      { transform: translateX(calc((1 - var(--pe, 1)) * 55%)); }
.lp-js .lp-capitulo[data-efecto="izq"]      { transform: translateX(calc((1 - var(--pe, 1)) * -55%)); }
.lp-js .lp-capitulo[data-efecto="zoom"]     { transform: scale(calc(.82 + .18 * var(--pe, 1))); }
.lp-js .lp-capitulo[data-efecto="gira"]     { transform: rotate(calc((1 - var(--pe, 1)) * -6deg)) translateY(calc((1 - var(--pe, 1)) * 14%)); transform-origin: 0 100%; }
.lp-js .lp-capitulo[data-efecto="persiana"] { clip-path: inset(0 calc((1 - var(--pe, 1)) * 100%) 0 0 round 28px 28px 0 0); }
@media (max-width: 760px) {
    .lp-js .lp-capitulo[data-efecto] { transform: none; opacity: 1; clip-path: none; }
}

/* ---------------------------------------------------------------- Pie y botones flotantes (solo en la portada) */
.lp-body .landing-footer {
    background: linear-gradient(180deg, var(--lp-noche) 0%, color-mix(in srgb, var(--lp-noche) 75%, #000) 100%); color: color-mix(in srgb, var(--lp-haz) 80%, #fff); border-top: 0;
    padding: 2.2rem 1.5rem 2rem;
}
.lp-body .landing-footer a { color: var(--lp-onda); text-decoration-color: color-mix(in srgb, var(--lp-onda) 45%, transparent); }
.lp-body .landing-footer a:hover { color: var(--lp-fuerte); }
.lp-body .landing-footer .btn-footer-link {
    border: 1.5px solid color-mix(in srgb, var(--lp-onda) 55%, transparent); color: color-mix(in srgb, var(--lp-haz) 70%, #fff); border-radius: 999px; padding: .45rem 1.1rem;
    text-decoration: none; background: transparent;
}
.lp-body .landing-footer .btn-footer-link:hover { border-color: var(--lp-fuerte); color: var(--lp-fuerte); }
/* El chat, en naranja para que se vea sobre el fondo oscuro (el icono, oscuro: contraste 4,8:1) */
.lp-body #chat-widget-toggle { background: var(--lp-fuerte); color: var(--lp-tinta-boton); border-color: var(--lp-fuerte); }
.lp-body #chat-widget-toggle:hover { filter: brightness(1.08); }

/* Título y foto de cada capítulo llevan a la página del servicio */
.lp-enlace-titulo { color: inherit; text-decoration: none; }
.lp-enlace-titulo:hover, .lp-enlace-titulo:focus-visible {
    text-decoration: underline; text-decoration-color: var(--lp-fuerte); text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.lp-enlace-foto { display: block; }
.lp-enlace-foto .lp-foto { transition: transform .35s ease, box-shadow .35s ease; }
.lp-enlace-foto:hover .lp-foto { transform: scale(1.03); box-shadow: 0 18px 44px color-mix(in srgb, var(--lp-noche) 45%, transparent); }

/* Flecha «ir al final» en naranja (flecha oscura: contraste 4,8:1) */
.lp-body .scroll-to-bottom-float { background: var(--lp-fuerte); color: var(--lp-tinta-boton); }
.lp-body .scroll-to-bottom-float svg { stroke: currentColor; }
.lp-body .scroll-to-bottom-float:hover { background: var(--lp-fuerte); filter: brightness(1.08); }

/* Nota de referencia (imágenes y textos orientativos): gris pequeño; sobre azul, casi blanco para mantener el contraste AA */
.lp-nota { margin: -.8rem 0 1.4rem; font-size: .78rem; line-height: 1.35; color: color-mix(in srgb, var(--color-text-muted, #5a6a72) 75%, var(--color-text, #2b3138)); }
.lp-capitulo--oscuro .lp-nota { color: #f4f9fb; }
.lp-nota--foto { margin: .7rem auto 0; max-width: 380px; text-align: center; }
