/* Landing de captación de leads para el evento. Mobile first: el diseño de partida son
   las dos pantallas de 393px, y a partir de 768px se ensancha para que no se vea raro
   en tablet y escritorio. */

:root {
    --fondo: #262626;
    --fondo-claro: #f2b544;
    --amarillo: #f2b544;
    --amarillo-claro: #fdf1d8;
    --texto: #ffffff;
    --texto-oscuro: #1a1a1a;
    --gris-campo: #c9c9c9;
    --rojo: #e5484d;
    --ancho: 420px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--fondo);
    color: var(--texto);
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

/* ---------- Cabecera ---------- */

.cabecera {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    max-width: var(--ancho);
    margin: 0 auto;
}

.logo {
    height: 28px;
    width: auto;
}

/* ---------- Estructura ---------- */

.bloque {
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 0 16px 40px;
}

.intro {
    padding-top: 8px;
}

.antetitulo {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

h1 {
    margin: 0 0 24px;
    font-size: 30px;
    line-height: 1.22;
    font-weight: 400;
    color: var(--amarillo);
}

.entradilla {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.flecha-abajo {
    display: block;
    width: 34px;
    margin: 26px auto 0;
}

.flecha-abajo svg {
    width: 100%;
    fill: none;
    stroke: var(--amarillo);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Ticket ---------- */

/* El ticket se dibuja con CSS en lugar de usar el SVG exportado como fondo: así crece
   con el texto y los recortes no se deforman al cambiar de alto. */
.ticket {
    position: relative;
    padding: 26px 24px 26px;
    border-radius: 16px;
    background: linear-gradient(170deg, var(--amarillo-claro) 0%, #f7cf7e 38%, var(--amarillo) 100%);
    color: var(--texto-oscuro);
}

.ticket p {
    margin: 0 0 14px;
    font-size: 15px;
}

.ticket-icono {
    width: 34px;
    margin-bottom: 18px;
}

.ticket-antetitulo {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ticket-titulo {
    margin: 0 0 18px;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 400;
    color: #ffffff;
}

.ticket-reclamo {
    margin-bottom: 22px;
}

/* Línea de rasgado, con las muescas a ambos lados. */
.ticket-separador {
    position: relative;
    margin: 0 -24px 22px;
    border-top: 2px dashed var(--fondo);
}

.ticket-separador::before,
.ticket-separador::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--fondo);
}

.ticket-separador::before {
    left: -11px;
}

.ticket-separador::after {
    right: -11px;
}

.ticket-barcode {
    display: block;
    width: 86px;
    margin: 0 auto 6px;
}

/* Borde inferior troquelado. */
.ticket::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 13px;
    background-image: radial-gradient(circle at 10px 13px, var(--fondo) 9.5px, transparent 10px);
    background-size: 20px 13px;
    background-repeat: repeat-x;
}

/* ---------- Formulario ---------- */

.titulo-seccion {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 400;
    text-align: center;
    color: var(--amarillo);
}

.subtitulo-seccion {
    margin: 0 0 28px;
    text-align: center;
    font-size: 15px;
}

/* Aviso de protección de datos, delante de los campos. */
.aviso-datos {
    margin: 0 0 26px;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--amarillo);
    background-color: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.aviso-datos p {
    margin: 0;
}

.aviso-titulo {
    margin-bottom: 6px !important;
    font-weight: 700;
    color: var(--texto);
}

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.obligatorio {
    color: var(--rojo);
}

.campo input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--texto-oscuro);
    font-family: inherit;
    font-size: 16px;
}

.campo input:focus-visible,
.boton-enviar:focus-visible,
/* Campo que no pasa la validación al intentar enviar. */
.campo input.invalido {
    box-shadow: 0 0 0 2px var(--rojo);
}

.campo-consentimiento {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    font-size: 13px;
    line-height: 1.45;
}

.campo-consentimiento:last-of-type {
    margin-bottom: 26px;
}

.campo-consentimiento input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--amarillo);
}

.campo-consentimiento.invalido label {
    color: var(--rojo);
}

.enlace {
    color: var(--amarillo);
    text-decoration: none;
}

.enlace:hover {
    text-decoration: underline;
}

.error-form {
    margin: 0 0 16px;
    color: var(--rojo);
    font-size: 14px;
}

.boton-enviar {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background-color: var(--amarillo);
    color: var(--texto-oscuro);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Estado posterior al envío: el formulario queda en gris y el botón pasa a "Enviado". */
.enviado .campo input,
.enviado .campo-consentimiento input {
    background-color: var(--gris-campo);
    color: #6b6b6b;
}

.enviado .boton-enviar {
    background-color: var(--gris-campo);
    color: #6b6b6b;
    cursor: default;
}

/* ---------- Zona amarilla ---------- */

.zona-clara {
    position: relative;
    margin-top: 10px;
    padding: 44px 0 36px;
    background-color: var(--amarillo);
    color: var(--texto-oscuro);
    border-top-left-radius: 50% 44px;
    border-top-right-radius: 50% 44px;
}

.titulo-video {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 400;
    text-align: center;
    color: #ffffff;
}

.subtitulo-video {
    margin: 0 0 24px;
    text-align: center;
    font-size: 15px;
}

.marco-video {
    position: relative;
    padding-top: 56.25%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--texto-oscuro);
}

.marco-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.poster-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.poster-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.icono-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    transition: transform 0.2s ease;
}

.icono-play svg {
    display: block;
    width: 100%;
}

.icono-play circle {
    fill: rgba(0, 0, 0, 0.55);
    stroke: #ffffff;
    stroke-width: 2;
}

.icono-play path {
    fill: #ffffff;
}

.poster-video:hover .icono-play,
.poster-video:focus-visible .icono-play {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Campo trampa: fuera de la vista pero sin display:none, que algunos robots lo detectan. */
.trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Visible solo para lectores de pantalla. */
.texto-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.boton-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 24px;
    background-color: var(--fondo);
    color: var(--texto);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.boton-video svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ventajas ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ventajas li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1.45;
}

.ventajas li:last-child {
    margin-bottom: 0;
}

.ventajas img {
    flex: 0 0 auto;
    width: 20px;
    margin-top: 2px;
}

/* ---------- Pie ---------- */

.pie {
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 28px 16px 34px;
    text-align: center;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.pie p {
    margin: 0 0 10px;
}

.enlaces-pie a {
    color: var(--amarillo);
    text-decoration: none;
}

.enlaces-pie a:hover {
    text-decoration: underline;
}

/* ---------- Animaciones de entrada ---------- */

[data-animar] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

[data-animar].visible {
    opacity: 1;
    transform: none;
}

/* Quien tenga desactivadas las animaciones del sistema lo ve todo fijo y sin saltos. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-animar] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Pantallas grandes ---------- */

@media (min-width: 768px) {
    :root {
        --ancho: 680px;
    }

    h1 {
        font-size: 40px;
    }

    .ticket {
        padding: 34px 32px;
    }

    .ticket-separador {
        margin-left: -32px;
        margin-right: -32px;
    }

    .zona-clara {
        border-top-left-radius: 50% 70px;
        border-top-right-radius: 50% 70px;
    }
}
