/* === Landing pages: formulario de captura y bloques de conversión (clases lp-*) === */

.lp-contenedor { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.lp-titulo { font-size: 1.875rem; line-height: 1.2; font-weight: 800; color: #0f172a; margin: 0 0 .75rem; }
.lp-bajada { font-size: 1.125rem; line-height: 1.6; color: #475569; margin: 0 0 1rem; }
.lp-aviso { font-size: .875rem; color: #92400e; background: #fef3c7; border-radius: .5rem; padding: .5rem .75rem; margin: .75rem 0 0; }
.lp-img { display: block; width: 100%; height: auto; border-radius: .75rem; }

/* --- Captura --- */
.lp-captura { padding: 3rem 0; background: #f1f5f9; scroll-margin-top: 4.5rem; }
.lp-captura__rejilla { display: grid; gap: 2rem; align-items: start; }
.lp-captura__cabecera { text-align: center; max-width: 40rem; margin: 0 auto; }
.lp-captura--dividido .lp-captura__rejilla { grid-template-columns: 1fr; }
.lp-captura__imagen { margin-top: 1.5rem; }
.lp-tarjeta { background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); width: 100%; max-width: 32rem; margin: 0 auto; }
.lp-form[hidden], .lp-exito[hidden], [data-lp-descarga][hidden] { display: none; }
.lp-fila { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.lp-campo { display: block; font-size: .875rem; font-weight: 600; color: #334155; margin-bottom: .75rem; }
.lp-campo input, .lp-campo select { display: block; width: 100%; margin-top: .25rem; padding: .65rem .75rem; font-size: 1rem; font-weight: 400; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; }
.lp-campo input:focus, .lp-campo select:focus { outline: 2px solid #2563eb; outline-offset: 1px; }
.lp-error { display: block; min-height: 0; font-size: .8rem; font-weight: 500; color: #b91c1c; }
.lp-error--general { margin-bottom: .5rem; }
.lp-legal { margin: .5rem 0 1rem; font-size: .8rem; color: #475569; }
.lp-legal__texto { margin: 0 0 .5rem; }
.lp-check { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.lp-check input { margin-top: .2rem; flex-shrink: 0; }
.lp-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-boton { display: block; width: 100%; padding: .9rem 1rem; font-size: 1.05rem; font-weight: 700; color: #fff; background: #16a34a; border: 0; border-radius: .6rem; cursor: pointer; text-align: center; text-decoration: none; }
.lp-boton:hover { background: #15803d; }
.lp-boton:disabled { opacity: .6; cursor: wait; }
.lp-boton--enlace { display: inline-block; width: auto; margin-top: .5rem; }
.lp-exito { text-align: center; padding: 1rem 0; }
.lp-exito__titulo { font-size: 1.5rem; font-weight: 800; color: #166534; margin: 0 0 .5rem; }

@media (min-width: 640px) { .lp-fila { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
    .lp-captura--dividido .lp-captura__rejilla { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
    .lp-titulo { font-size: 2.5rem; }
}

/* --- Oferta --- */
.lp-oferta { padding: 3rem 0; background: #fff; }
.lp-oferta__caja { position: relative; max-width: 40rem; margin: 0 auto; padding: 2rem 1.5rem; text-align: center; border: 2px solid #16a34a; border-radius: 1rem; background: #f0fdf4; }
.lp-oferta__sello { position: absolute; top: -1rem; right: 1rem; padding: .35rem .9rem; font-weight: 800; color: #fff; background: #dc2626; border-radius: 999px; transform: rotate(3deg); }
.lp-oferta__antes { font-size: 1.1rem; color: #64748b; text-decoration: line-through; }
.lp-oferta__ahora { font-size: 2.75rem; font-weight: 800; color: #166534; line-height: 1.1; }
.lp-oferta__nota { font-size: .875rem; color: #475569; margin: .5rem 0 1rem; }
.lp-oferta__lista { list-style: none; margin: 1rem 0 1.5rem; padding: 0; text-align: left; display: inline-block; }
.lp-oferta__lista li { position: relative; padding-left: 1.5rem; margin-bottom: .4rem; color: #1e293b; }
.lp-oferta__lista li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: #16a34a; }

/* --- Cuenta regresiva --- */
.lp-cuenta { padding: 1.5rem 0; text-align: center; color: #fff; background: #0f172a; }
.lp-cuenta--claro { color: #0f172a; background: #e0f2fe; }
.lp-cuenta__titulo { font-weight: 700; margin: 0 0 .5rem; }
.lp-cuenta__reloj { display: flex; justify-content: center; gap: .75rem; }
.lp-cuenta__unidad { min-width: 4rem; padding: .5rem; border-radius: .5rem; background: rgba(255, 255, 255, .12); }
.lp-cuenta--claro .lp-cuenta__unidad { background: #fff; }
.lp-cuenta__numero { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.lp-cuenta__etiqueta { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }

/* --- Preguntas --- */
.lp-preguntas { padding: 3rem 0; background: #fff; }
.lp-preguntas__lista { max-width: 44rem; margin: 1.5rem auto 0; }
.lp-pregunta { border-bottom: 1px solid #e2e8f0; padding: .9rem 0; }
.lp-pregunta summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.lp-pregunta p { margin: .6rem 0 0; color: #475569; line-height: 1.6; }

/* --- Logos --- */
.lp-logos { padding: 2.5rem 0; background: #f8fafc; text-align: center; }
.lp-logos__fila { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; margin-top: 1rem; }
.lp-logos__fila img { max-height: 3rem; width: auto; filter: grayscale(1); opacity: .8; }

/* --- Video --- */
.lp-video { padding: 3rem 0; background: #fff; text-align: center; }
.lp-video__marco { position: relative; max-width: 48rem; margin: 1.5rem auto 0; aspect-ratio: 16 / 9; border-radius: .75rem; overflow: hidden; background: #0f172a; }
.lp-video__marco iframe, .lp-video__portada { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-video__portada { padding: 0; cursor: pointer; background-size: cover; background-position: center; }
.lp-video__play { position: absolute; top: 50%; left: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: rgba(220, 38, 38, .92); }
.lp-video__play::after { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: .8rem 0 .8rem 1.3rem; border-color: transparent transparent transparent #fff; transform: translate(-50%, -50%); }

/* --- Formularios del sitio (fs-*) --- */
.fs-tarjeta { max-width: 40rem; }
.fs-campos { display: grid; grid-template-columns: 1fr; gap: 0 .75rem; }
.fs-campo { margin-bottom: .75rem; min-width: 0; }
.fs-campo fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs-etiqueta { display: block; font-size: .875rem; font-weight: 600; color: #334155; margin-bottom: .25rem; padding: 0; }
.fs-req { color: #b91c1c; }
.fs-campo input[type="text"], .fs-campo input[type="email"], .fs-campo input[type="tel"], .fs-campo input[type="number"],
.fs-campo input[type="date"], .fs-campo select, .fs-campo textarea { display: block; width: 100%; padding: .65rem .75rem; font-size: 1rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; }
.fs-campo input:focus, .fs-campo select:focus, .fs-campo textarea:focus { outline: 2px solid #2563eb; outline-offset: 1px; }
.fs-seccion { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin: .75rem 0 .25rem; }
.fs-parrafo { font-size: .95rem; color: #475569; margin: 0 0 .5rem; }
.fs-ayuda { display: block; font-size: .8rem; color: #64748b; margin-top: .25rem; }
.fs-escala { display: flex; flex-wrap: wrap; gap: .4rem; }
.fs-escala__item { position: relative; cursor: pointer; }
.fs-escala__item input { position: absolute; opacity: 0; inset: 0; }
.fs-escala__item span { display: inline-block; min-width: 2.5rem; text-align: center; padding: .5rem .7rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; font-weight: 600; color: #334155; }
.fs-escala__item input:checked + span { background: #2563eb; border-color: #2563eb; color: #fff; }
.fs-escala__item input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.fs-escala__extremos { display: flex; justify-content: space-between; font-size: .75rem; color: #64748b; margin-top: .25rem; }
.fs-bloque { padding: 3rem 0; }
.fs-bloque__cabecera { text-align: center; max-width: 40rem; margin: 0 auto 1.5rem; }

@media (min-width: 640px) {
    .fs-campos { grid-template-columns: repeat(12, 1fr); }
    .fs-col-12 { grid-column: span 12; }
    .fs-col-6 { grid-column: span 6; }
    .fs-col-4 { grid-column: span 4; }
    .fs-campos--uno .fs-col-6, .fs-campos--uno .fs-col-4 { grid-column: span 12; }
}

/* --- Recomendar --- */
.lp-recomendar { background: #fff; border-top: 1px solid #e2e8f0; }
.lp-recomendar__franja { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.25rem; padding: .9rem 1rem; color: #334155; font-size: 1.05rem; text-align: center; }
.lp-recomendar__abrir { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.4rem; border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: #166534; font-weight: 700; cursor: pointer; transition: background .15s; }
.lp-recomendar__abrir:hover { background: #dcfce7; }
/* El reset de Tailwind quita el margin:auto con que el navegador centra el dialog. */
.lp-recomendar__modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(72rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 2.5rem 2rem 2rem; border: 0; border-radius: 1rem; background: #f1f5f9; color: #0f172a; text-align: left; overflow-y: auto; }
.lp-recomendar__modal::backdrop { background: rgba(15, 23, 42, .6); }
.lp-recomendar__modal--edicion { position: static; display: block; width: auto; max-width: 72rem; margin: 0 auto 1.5rem; }
.lp-recomendar__cerrar { position: absolute; top: .75rem; right: 1rem; border: 0; background: none; font-size: 2rem; line-height: 1; color: #64748b; cursor: pointer; }
.lp-recomendar__antetitulo { margin: 0 0 .75rem; color: #1d4ed8; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lp-recomendar__modal .lp-titulo { max-width: 40rem; }
.lp-recomendar__modal .lp-bajada { max-width: 48rem; }
.lp-recomendar__resaltado { color: #1d4ed8; }
.lp-recomendar__tarjetas { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
.lp-recomendar__tarjeta { display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; }
.lp-recomendar__tarjeta h3 { margin: 1.25rem 0 .75rem; font-size: 1.25rem; font-weight: 700; }
.lp-recomendar__tarjeta p { flex: 1; margin: 0 0 1.25rem; color: #475569; line-height: 1.6; }
.lp-recomendar__numero { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .5rem; background: #dcfce7; color: #166534; font-weight: 800; font-size: 1.1rem; }
.lp-recomendar__boton { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.5rem; border-radius: .5rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.lp-recomendar__boton--whatsapp { border: 2px solid #15803d; background: #15803d; color: #fff; }
.lp-recomendar__boton--whatsapp:hover { background: #166534; }
.lp-recomendar__boton--contorno { border: 2px solid #1d4ed8; background: #fff; color: #1d4ed8; }
.lp-recomendar__boton--contorno:hover { background: #eff6ff; }
@media (min-width: 768px) {
    .lp-recomendar__modal { padding: 3rem; }
    .lp-recomendar__tarjetas { grid-template-columns: repeat(3, 1fr); }
    .lp-recomendar__tarjetas--dos { grid-template-columns: repeat(2, 1fr); }
}
