/* Lanzamiento Tracking Lab: maquetación de esta landing, con la misma estructura que las fichas
   de curso de tutopress.co (src/pages/cursos/[curso]/index.astro en tutopress-web).
   Colores, tipos, radios y componentes salen del design system (ds/tutopress.css).
   Cambios de diseño de marca: en el repositorio tutopress-design-system, no aquí. */

/* ---------- Cabecera con el menú del embudo ---------- */
/* El fondo ocupa todo el ancho; logo y menú se alinean con el contenido (tp-ancho). */
.lz-cabecera { flex-wrap: wrap; row-gap: 0; padding-inline: max(var(--tp-margen), calc((100% - var(--tp-ancho)) / 2 + var(--tp-margen))); background: var(--tp-cielo); }
.lz-menu { display: flex; gap: var(--tp-e-1); margin-left: auto; }
.lz-menu a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.9rem; border-radius: var(--tp-r-pill); color: var(--tp-tinta); font: 500 0.95rem/1 var(--font-base); text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.lz-menu a:hover { background: rgba(1, 129, 255, 0.09); color: var(--tp-azul-osc); }
.lz-menu a span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-blanco); color: var(--tp-texto-2); font-size: 0.78rem; font-weight: 700; box-shadow: 0 0 0 1px var(--tp-linea); }
.lz-menu a[aria-current='page'] { background: var(--tp-blanco); color: var(--tp-azul-osc); font-weight: 700; box-shadow: var(--tp-s-1); }
.lz-menu a[aria-current='page'] span { background: var(--tp-azul-osc); color: var(--tp-blanco); box-shadow: none; }
.lz-menu i { font-style: normal; }
.lz-corto { display: none; }
@media (max-width: 900px) {
  .lz-cabecera > img { width: 150px; }
  .lz-menu { order: 3; width: 100%; margin: 0 calc(var(--tp-margen) * -1); padding: 0 var(--tp-margen) 0.5rem; justify-content: space-between; }
  .lz-menu a { flex: 1; justify-content: center; padding: 0 0.4rem; font-size: 0.875rem; }
}
@media (max-width: 620px) { .lz-largo { display: none; } .lz-corto { display: inline; } .lz-menu a { gap: 0.35rem; } }

/* ---------- Comunes ---------- */
.lz-estrecho { max-width: var(--tp-ancho-lectura); }
.lz-centrado { text-align: center; }
.lz-centrado > * { margin-inline: auto; }
.lz-centrado .tp-acciones { justify-content: center; }
.tp .lz-h2 { margin-bottom: var(--tp-e-6); }
.lz-intro { margin: calc(var(--tp-e-3) * -1) 0 var(--tp-e-6); color: var(--tp-texto-2); }
.lz-nota { margin: var(--tp-e-4) 0 0; color: var(--tp-texto-3); font-size: 0.875rem; }
.lz-nota a { color: var(--tp-azul-osc); }

/* ---------- Hero en dos columnas con arte y chips flotantes ---------- */
.lz-hero { padding-block: clamp(2rem, 5vw, 4rem) 0; }
.tp-hero.lz-hero > .tp-contenedor { max-width: var(--tp-ancho); }
.lz-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.lz-hero h1 { margin-bottom: var(--tp-e-4); }
.lz-hero .tp-checks { margin-top: var(--tp-e-7); }
.lz-hero .tp-acciones { margin-top: var(--tp-e-7); }

.lz-arte { position: relative; padding: 1.5rem 1.5rem 2.25rem; }
.lz-arte::before { content: ''; position: absolute; inset: 0 8% 6% 8%; border-radius: 32px; background: radial-gradient(circle at 30% 30%, rgba(1, 129, 255, 0.25), transparent 60%), radial-gradient(circle at 75% 70%, rgba(0, 255, 255, 0.28), transparent 55%); filter: blur(8px); }
.lz-arte > img { position: relative; display: block; width: 100%; height: auto; border-radius: var(--tp-r-2xl); box-shadow: var(--tp-s-4); transform: rotate(-1.5deg); }
.lz-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: var(--tp-r-pill); background: var(--tp-blanco); color: var(--tp-tinta); font-size: 0.85rem; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 25px rgba(10, 10, 54, 0.15); animation: lz-flotar 6s ease-in-out infinite; }
.lz-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tp-azul); }
.lz-chip--1 { top: 0; left: 0; }
.lz-chip--2 { top: 8%; right: -0.5rem; animation-delay: -1.5s; }
.lz-chip--2::before { background: #0c7123; }
.lz-chip--3 { bottom: 10%; left: -0.75rem; animation-delay: -3s; }
.lz-chip--3::before { background: var(--tp-rojo); }
.lz-chip--4 { bottom: 0; right: 12%; animation-delay: -4.5s; }
.lz-chip--4::before { background: #00b8d9; }
@keyframes lz-flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lz-chip { animation: none; } }

/* Franja de datos que monta sobre el borde del hero */
.lz-hero .tp-datos { margin-top: clamp(2rem, 4vw, 3rem); transform: translateY(50%); }
.lz-hero + .tp-seccion { padding-top: clamp(4.5rem, 9vw, 7rem); }

/* ---------- Formulario de captación (va en la columna del arte) ---------- */
.lz-formulario { position: relative; z-index: 1; padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--tp-linea); border-radius: var(--tp-r-2xl); background: var(--tp-blanco); box-shadow: var(--tp-s-4); }
.lz-formulario h2 { font-size: 1.35rem; line-height: 1.3; }
.lz-formulario > div > p { margin: 0.4rem 0 0; color: var(--tp-texto-2); font-size: 0.95rem; }
.lz-legal { margin: 0; color: var(--tp-texto-3); font-size: 0.8rem; line-height: 1.5; }
.lz-telefono { display: grid; grid-template-columns: minmax(118px, 0.42fr) 1fr; gap: var(--tp-e-2); }
.lz-arte--form { padding: 2.25rem 1.5rem 2.5rem; }
.lz-arte--form .lz-chip--1 { top: 0; left: 1.5rem; }
.lz-arte--form .lz-chip--2 { top: 0.4rem; right: 0; }
.lz-arte--form .lz-chip--3 { bottom: 0.5rem; left: 0; }
.lz-arte--form .lz-chip--4 { bottom: 0; right: 1.5rem; }

/* ---------- Tarjetas numeradas ---------- */
.lz-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--tp-e-5); }
.lz-tarjetas .tp-tarjeta h3 { margin-bottom: var(--tp-e-2); font-size: 1.15rem; line-height: 1.35; }
.lz-tarjetas .tp-tarjeta p { margin: 0; line-height: 1.6; }
.lz-numero { display: block; margin-bottom: var(--tp-e-3); color: var(--tp-azul-osc); font-weight: 700; }

/* ---------- Dos columnas: lista + tarjeta lateral ---------- */
.lz-dos-columnas { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.lz-lateral { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--tp-linea); border-radius: var(--tp-r-xl); background: var(--tp-blanco); }
.tp .lz-lateral h2 { margin-bottom: var(--tp-e-5); font-size: 1.35rem; }
.lz-lateral .tp-boton { width: 100%; margin-top: var(--tp-e-6); }
.lz-lateral .tp-checks--no { margin-top: var(--tp-e-6); padding-top: var(--tp-e-6); border-top: 1px solid var(--tp-linea); }

/* ---------- Sección oscura de Tracking Lab ---------- */
.lz-tl { max-width: var(--tp-ancho-lectura); }
.lz-tl .tp-etiqueta { color: var(--tp-cian); }
.lz-tl p { line-height: 1.65; }
.lz-tl-lista { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--tp-e-3); margin: var(--tp-e-6) 0 var(--tp-e-6); padding: 0; }
.lz-tl-lista li { padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--tp-r-m); background: rgba(255, 255, 255, 0.06); line-height: 1.5; }
.lz-tl .lz-nota { color: rgba(255, 255, 255, 0.7); }

/* ---------- Oferta ---------- */
.lz-oferta { max-width: 560px; margin-inline: auto; padding: clamp(1.75rem, 4vw, 2.5rem); border: 1px solid var(--tp-linea); border-radius: var(--tp-r-2xl); background: var(--tp-blanco); box-shadow: var(--tp-s-3); text-align: center; }
.lz-oferta .tp-checks { margin: var(--tp-e-6) 0; text-align: left; }
.lz-precio { margin: var(--tp-e-4) 0 0; color: var(--tp-tinta); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.lz-precio small { display: block; margin-top: 0.3rem; color: var(--tp-texto-3); font-size: 0.9rem; font-weight: 400; letter-spacing: 0; }

/* ---------- Instructor ---------- */
.lz-instructor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 980px; }
.lz-instructor > img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px var(--tp-seleccion); }
.tp .lz-instructor h2 { margin-bottom: var(--tp-e-1); }
.lz-cargo { margin: 0 0 var(--tp-e-4); color: var(--tp-azul-osc); font-weight: 700; }
.lz-instructor p:not(.tp-etiqueta, .lz-cargo) { line-height: 1.65; }

/* ---------- Referentes ---------- */
.lz-referentes { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.25rem, 3vw, 2.5rem); margin: var(--tp-e-8) 0 0; padding: 0; }
.lz-referentes li { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; width: 150px; }
.lz-referentes .tp-anillo { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lz-referentes li:hover .tp-anillo { transform: rotate(-6deg) scale(1.04); box-shadow: 0 14px 30px rgba(1, 129, 255, 0.25); }
.lz-referentes li:hover .tp-anillo img { transform: rotate(6deg); }
/* height: auto para que el atributo height del <img> no anule el aspect-ratio: 1 del anillo */
.lz-referentes .tp-anillo img { height: auto; transition: transform 0.3s ease; }
.lz-referentes strong { color: var(--tp-tinta); text-align: center; }
@media (prefers-reduced-motion: reduce) { .lz-referentes .tp-anillo, .lz-referentes .tp-anillo img { transition: none; } }

/* ---------- Testimonios en vídeo ---------- */
.lz-testimonios { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem 1.25rem; }
.lz-testimonios figure { margin: 0; }
.lz-testimonios .tp-video { border-radius: var(--tp-r-m); box-shadow: 0 8px 24px rgba(10, 10, 54, 0.12); }
.lz-testimonios iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--tp-r-m); background: #000; }
.lz-testimonios figcaption { display: flex; flex-direction: column; margin-top: 0.6rem; font-size: 0.85rem; }
.lz-testimonios figcaption strong { color: var(--tp-tinta); }
.lz-testimonios figcaption span { color: var(--tp-texto-2); }

/* ---------- Llamada final ---------- */
.lz-final { background: linear-gradient(180deg, var(--tp-blanco) 0%, var(--tp-cielo) 100%); }
.lz-final p { color: var(--tp-texto-2); font-size: 1.05rem; }

/* ---------- Encuesta ---------- */
.lz-encuesta { max-width: 760px; margin-inline: auto; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.lz-encuesta .tp-pasos { justify-content: center; margin-bottom: var(--tp-e-8); }
.lz-encuesta .tp-subtitulo { margin-top: var(--tp-e-3); }
.lz-tarjeta-encuesta { margin-top: var(--tp-e-8); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--tp-linea); border-radius: var(--tp-r-2xl); background: var(--tp-blanco); box-shadow: var(--tp-s-3); }
.lz-pregunta { margin: 0; padding: 0; border: 0; }
.lz-pregunta legend { margin-bottom: var(--tp-e-4); padding: 0; color: var(--tp-tinta); font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.lz-pregunta legend span { display: block; margin-bottom: var(--tp-e-2); color: var(--tp-azul-osc); font-size: 0.85rem; }
.lz-pregunta + .lz-pregunta { margin-top: var(--tp-e-8); padding-top: var(--tp-e-8); border-top: 1px solid var(--tp-linea); }
.lz-enviar { margin-top: var(--tp-e-7); }
.lz-saludo:empty { display: none; }
#sin-lead { margin-top: var(--tp-e-6); }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .lz-hero-grid, .lz-dos-columnas, .lz-instructor { grid-template-columns: 1fr; }
  .lz-hero-media { order: -1; max-width: 520px; }
  .lz-chip { padding: 0.4rem 0.7rem; font-size: 0.75rem; }
  .lz-hero .tp-datos { transform: none; }
  .lz-hero { padding-bottom: 2rem; }
  .lz-hero + .tp-seccion { padding-top: clamp(3rem, 7vw, 5.5rem); }
  .lz-instructor > img { width: 160px; height: 160px; }
  .lz-referentes li { width: 120px; }
  .lz-referentes .tp-anillo { width: 112px; }
}
@media (max-width: 620px) { .lz-arte--form { padding-inline: 0; } .lz-arte--form .lz-chip--2, .lz-arte--form .lz-chip--4 { display: none; } }

/* La cabecera toma tp-cielo sobre el hero y pasa a blanco al desplazar */
.lz-cabecera { transition: background 0.15s; }
.lz-cabecera.lz-desplazada { background: var(--tp-blanco); }

/* ---------- Barra de prueba: GTM ID de la sesión ---------- */
.lz-gtm { background: var(--tp-tinta); color: var(--tp-sobre-oscuro); font-size: 0.875rem; }
.lz-gtm__dentro { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tp-e-2) var(--tp-e-3); max-width: var(--tp-ancho); margin-inline: auto; padding: 0.5rem var(--tp-margen); }
.lz-gtm__modo { padding: 0.2rem 0.6rem; border-radius: var(--tp-r-pill); background: rgba(0, 255, 255, 0.14); color: var(--tp-cian); font-size: 0.75rem; font-weight: 700; }
.lz-gtm label { color: var(--tp-blanco); font-weight: 700; }
.lz-gtm input { width: 11.5rem; min-height: 40px; padding: 0 0.85rem; border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: var(--tp-r-m); background: rgba(255, 255, 255, 0.08); color: var(--tp-blanco); font: 500 0.9rem/1 var(--font-codigo); letter-spacing: 0.02em; text-transform: uppercase; }
.lz-gtm input::placeholder { color: rgba(255, 255, 255, 0.45); }
.lz-gtm input:focus { outline: none; border-color: var(--tp-cian); }
.lz-gtm input[aria-invalid='true'] { border-color: var(--tp-error-borde); }
.lz-gtm .tp-boton--pequeno { min-height: 40px; }
.tp .lz-gtm :is(input, button):focus-visible { outline: 3px solid var(--tp-cian); outline-offset: 2px; }
.lz-gtm__quitar { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: var(--tp-blanco); }
.lz-gtm__quitar:hover { border-color: var(--tp-cian); color: var(--tp-cian); }
.lz-gtm__estado[data-tipo='ok']::before { content: '✓ '; color: var(--tp-cian); font-weight: 700; }
.lz-gtm__estado[data-tipo='error'] { color: #ffb4b7; }
.lz-gtm__estado[data-tipo='error']::before { content: '✕ '; font-weight: 700; }
@media (max-width: 620px) { .lz-gtm input { flex: 1; width: auto; min-width: 0; } .lz-gtm__estado { flex-basis: 100%; } }
.lz-gtm [hidden] { display: none; }
@media (max-width: 620px) {
  .lz-gtm__modo { display: none; }
  .lz-gtm input { flex: 1 1 9rem; min-width: 9rem; }
  .lz-gtm .tp-boton--pequeno { padding: 0 0.9rem; }
}
