/* Landing de promos — compartido por todas las promos.
   Medidas tomadas del PSD (1920 px de ancho): 1vw = 19.2 px del diseño. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    background: var(--footer);
    color: #222;
}

img { max-width: 100%; display: block; }

.preview-bar {
    position: sticky; top: 0; z-index: 50;
    background: #ffd400; color: #000; text-align: center;
    font: 700 14px/1 "Open Sans", sans-serif; padding: 8px;
}

/* ---------- Encabezado ---------- */
.top {
    background: var(--header);
    height: clamp(60px, 7.3vw, 140px);
    padding: 0 clamp(16px, 6vw, 115px);
    display: flex; align-items: center;
    position: relative; z-index: 2;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.top-logo { height: clamp(34px, 3.9vw, 75px); width: auto; }

/* ---------- Escenario: fondo + gráfica + formulario ---------- */
.stage {
    background-color: var(--bg);
    background-size: cover;
    background-position: center top;
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px 16px 32px;
    gap: 24px;
}

.hero { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hero-img { width: 100%; max-width: 560px; height: auto; }
.hero-caption {
    margin: 12px 0 0;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--title);
    font-size: 22px;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.hero-caption strong { font-weight: 800; }

.signup { width: 100%; max-width: 560px; margin: 0 auto; }

.title {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--title);
    font-size: 34px;
    line-height: .98;
    letter-spacing: .01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.subtitle {
    margin: 10px 0 0;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--title);
    font-size: 19px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.subtitle strong, .title strong { font-weight: 800; }
/* En el título, *texto entre asteriscos* va con el color del botón (como la primera línea de algunos PSD) */
.title strong { color: var(--accent); }

/* Gráfica distinta para celular: una u otra según el ancho */
.hero-img.desktop-only { display: none; }
@media (min-width: 900px) {
    .hero-img.desktop-only { display: block; }
    .hero-img.mobile-only { display: none; }
}

/* ---------- Formulario ---------- */
#promo-form {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 12px;
}
.field { grid-column: span 1; min-width: 0; }
.field.full { grid-column: 1 / -1; }

.field input[type="text"], .field input:not([type]), .field input[type="tel"],
.field input[type="email"], .field input[type="date"], .field input[type="time"] {
    width: 100%;
    height: 44px;
    border: 2px solid transparent;
    border-radius: 3px;
    background: #fff;
    padding: 0 14px;
    font: 400 16px "Open Sans", sans-serif; /* 16px: evita el zoom automático en iPhone */
    letter-spacing: .04em;
    color: #222;
    appearance: none;
    -webkit-appearance: none;
}
.field input::placeholder { color: #595959; opacity: 1; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.field input[aria-invalid="true"] { border-color: #e53935; }
.field input:disabled { background: #e9e9e9; cursor: not-allowed; }

.err {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #c62828;
    padding: 3px 8px;
    border-radius: 3px;
}
.form-alert {
    margin-top: 16px;
    background: #c62828; color: #fff;
    padding: 10px 14px; border-radius: 3px; font-weight: 700;
}

.prizes { border: 0; margin: 4px 0 0; padding: 0; color: var(--title); }
.prizes legend {
    padding: 0; margin-bottom: 8px;
    font-family: "Barlow Condensed", sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; font-size: 18px;
}
.prize { display: inline-flex; align-items: center; margin: 0 8px 8px 0; cursor: pointer; }
.prize input { position: absolute; opacity: 0; pointer-events: none; }
.prize span {
    display: inline-block; padding: 8px 14px; border-radius: 3px;
    background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .7);
    color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
}
.prize input:checked + span { background: var(--accent); border-color: var(--accent); }
.prize input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.terms label {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    color: var(--title); font-size: 14px; text-transform: uppercase; letter-spacing: .04em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.terms input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin: 0; }
.terms a { color: inherit; font-weight: 700; }

.send {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font: 700 18px "Open Sans", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s, transform .1s;
}
.send:hover { filter: brightness(1.08); }
.send:active { transform: translateY(1px); }
.send:disabled { filter: grayscale(.6); opacity: .6; cursor: not-allowed; }
.send:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Marcas ---------- */
.brands { background: #fff; padding: 20px 12px; }
.brand-row {
    list-style: none; margin: 0 auto; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    max-width: 1100px;
}
.brand-row + .brand-row { margin-top: 10px; }
/* Tarjeta gris del PSD; los logos se suben con fondo transparente y van centrados con margen. */
.brand-row li {
    background: #e5e3e3;
    display: flex; align-items: center; justify-content: center;
}
.brand-row img { width: 100%; height: 100%; object-fit: contain; }
.brand-row.big li { width: 72px; height: 46px; padding: 5px 9px; }
.brand-row.small li { width: 48px; height: 31px; padding: 4px 6px; }

/* ---------- Letra chica ---------- */
.legal {
    background: var(--footer);
    color: var(--footer-text);
    padding: 24px 16px;
}
.legal p {
    margin: 0 auto; max-width: 960px; text-align: center;
    font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .03em;
}

/* ---------- Popup ---------- */
.modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(40, 40, 40, .72);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: fade .25s ease-out;
}
.modal[hidden] { display: none; }
.modal-box {
    background-size: cover;
    background-position: center;
    position: relative;
    width: min(800px, 100%);
    min-height: 260px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 40px 24px 36px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    animation: pop .3s ease-out;
}
.modal-icon { width: 72px; height: 72px; color: #fff; }
.modal-box h2 {
    margin: 10px 0 0;
    font-family: "Barlow Condensed", sans-serif; font-weight: 800;
    text-transform: uppercase; font-size: 44px; line-height: 1; letter-spacing: .02em;
}
.modal-box p {
    margin: 14px 0 0;
    font-family: "Barlow Condensed", sans-serif; font-weight: 300;
    text-transform: uppercase; font-size: 26px; line-height: 1.1; letter-spacing: .02em;
}
.modal-box p strong { font-weight: 600; }
.modal-close {
    position: absolute; top: 8px; right: 12px;
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
    color: #fff; font-size: 44px; line-height: 1; font-weight: 300;
}
.modal-close:focus-visible { outline: 2px solid #fff; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-box { animation: none; } }

/* ---------- Escritorio: dos columnas como el PSD ---------- */
@media (min-width: 900px) {
    .stage {
        grid-template-columns: 1fr minmax(380px, 34.6vw);
        gap: 4vw;
        padding: 2.4vw 8.3vw 1.8vw 3vw;
        min-height: 36.3vw;
        align-items: start;
    }
    .hero { align-self: end; }
    .hero-img { max-width: 100%; max-height: 32vw; width: auto; }
    .hero-caption { align-self: flex-start; font-size: clamp(22px, 2.15vw, 42px); text-align: left; margin-top: .6vw; }

    .signup { max-width: none; margin: 0; }
    .title { font-size: clamp(30px, 2.15vw, 46px); }
    .subtitle { font-size: clamp(17px, 1.18vw, 24px); margin-top: .9vw; }
    #promo-form { margin-top: 1.5vw; gap: clamp(8px, .95vw, 20px) clamp(10px, .8vw, 16px); }
    .field input[type="text"], .field input:not([type]), .field input[type="tel"],
    .field input[type="email"], .field input[type="date"], .field input[type="time"] {
        height: clamp(38px, 2.1vw, 44px);
        font-size: clamp(14px, .9vw, 17px);
        padding: 0 1.3vw;
    }
    .send { height: clamp(44px, 2.66vw, 54px); }

    .brands { padding: 1.3vw 2vw; }
    .brand-row { max-width: none; gap: .32vw; }
    .brand-row + .brand-row { margin-top: .4vw; }
    .brand-row.big li { width: clamp(72px, 4.8vw, 100px); height: clamp(46px, 3.07vw, 64px); padding: clamp(5px, .36vw, 8px) clamp(9px, .75vw, 15px); }
    .brand-row.small li { width: clamp(48px, 3.18vw, 66px); height: clamp(31px, 2.03vw, 42px); padding: clamp(4px, .26vw, 6px) clamp(6px, .5vw, 10px); }

    .legal { padding: 1.6vw 2vw; }
    .legal p { max-width: 1000px; font-size: clamp(10px, .55vw, 12px); }

    .modal-box { min-height: 400px; }
    .modal-icon { width: 92px; height: 92px; }
    .modal-box h2 { font-size: 56px; }
    .modal-box p { font-size: 36px; }
}
