/* ================================================
   SOY.AGENCY | Convention Experience — v3 Warm Pro
   Paleta cálida y profesional para encuestas
================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-deep:   #0F0A1F;
    --bg-card:   rgba(30, 22, 50, .88);
    --primary:   #A855F7;
    --primary-l: #C084FC;
    --accent:    #F59E0B;
    --accent-l:  #FCD34D;
    --rose:      #FB7185;
    --emerald:   #34D399;
    --sky:       #38BDF8;
    --white:     #FFFFFF;
    --gray-100:  #F8F7FC;
    --gray-300:  #C4B5D4;
    --gray-500:  #8B7AA8;
    --danger:    #EF4444;
    --radius:    22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
    color: var(--white);
    min-height: 100vh;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 900px 700px at 30% -10%, rgba(168,85,247,.18) 0%, transparent 65%),
        radial-gradient(ellipse 700px 500px at 75% 90%, rgba(245,158,11,.1) 0%, transparent 60%),
        radial-gradient(ellipse 500px 400px at 50% 40%, rgba(251,113,133,.06) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Líneas decorativas sutiles */
body::before {
    content: "";
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(135deg, transparent 49.5%, rgba(168,85,247,.03) 49.5%, rgba(168,85,247,.03) 50.5%, transparent 50.5%),
        linear-gradient(45deg, transparent 49.5%, rgba(245,158,11,.02) 49.5%, rgba(245,158,11,.02) 50.5%, transparent 50.5%);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

.container-main {
    position: relative; z-index: 1;
    max-width: 680px; margin: 0 auto;
    padding: 36px 20px 50px;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* ===== IDENTIDAD VISUAL: LOGO EN MARCO ===== */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 15px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(240,245,255,.91));
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 14px 36px rgba(0,0,0,.20), 0 0 25px rgba(56,189,248,.10);
}
.brand img {
    display: block;
    height: auto;
    width: auto;
    max-height: 66px;
    max-width: min(290px, 70vw);
    object-fit: contain;
    filter: none;
    transition: transform .25s ease;
}
.brand img:hover { transform: scale(1.025); }

/* ===== TARJETA ===== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168,85,247,.12);
    border-radius: var(--radius);
    box-shadow:
        0 30px 70px -20px rgba(0,0,0,.6),
        0 0 0 1px rgba(255,255,255,.03),
        inset 0 1px 0 rgba(255,255,255,.05);
    padding: 44px 40px;
    flex: 1;
}
.card h1 {
    font-size: 28px; font-weight: 800; letter-spacing: -.3px;
    margin-bottom: 10px; color: #fff;
}
.card .subtitle {
    color: var(--gray-300); font-size: 15px; line-height: 1.6;
    margin-bottom: 32px;
}

/* ===== FORMULARIOS ===== */
label {
    display: block; font-size: 12.5px; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    margin-bottom: 7px; color: var(--gray-300);
}

.input, select.input, textarea.input {
    width: 100%; padding: 15px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(168,85,247,.12);
    background: rgba(255,255,255,.04);
    color: #fff; font-size: 15px; font-family: inherit;
    outline: none;
    transition: all .3s ease;
}
.input::placeholder { color: rgba(255,255,255,.25); }
.input:focus {
    border-color: var(--primary);
    background: rgba(168,85,247,.05);
    box-shadow: 0 0 0 4px rgba(168,85,247,.1), 0 0 30px rgba(168,85,247,.06);
}
select.input { cursor: pointer; }
select.input option { background: #1a1030; color: #fff; }
textarea.input { resize: vertical; min-height: 80px; }

.form-row { margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ===== BOTONES ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 30px; border: 0; border-radius: 14px;
    font-weight: 700; font-size: 15px; font-family: inherit;
    cursor: pointer; text-decoration: none;
    transition: all .25s ease;
    letter-spacing: .2px;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--rose) 50%, var(--accent) 100%);
    background-size: 200% auto;
    box-shadow:
        0 10px 35px rgba(168,85,247,.3),
        0 4px 15px rgba(251,113,133,.2);
}
.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow:
        0 16px 45px rgba(168,85,247,.4),
        0 6px 20px rgba(251,113,133,.3);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost {
    background: rgba(255,255,255,.05);
    color: var(--gray-300); border: 1.5px solid rgba(255,255,255,.08);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15); }
.btn-block { width: 100%; }

/* ===== PRIVACIDAD CHECKBOX ===== */
.privacy-row {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 8px 0 30px; font-size: 13.5px; color: var(--gray-300); line-height: 1.55;
}
.privacy-row input[type=checkbox] {
    margin-top: 3px; accent-color: var(--primary);
    width: 18px; height: 18px; flex-shrink: 0;
    cursor: pointer;
}
.privacy-row a { color: var(--accent-l); text-decoration: underline; }
.privacy-row a:hover { color: var(--accent); }

/* ===== ERRORES ===== */
.errors {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.15);
    color: #fca5a5; padding: 16px 20px;
    border-radius: 14px; margin-bottom: 22px; font-size: 14px;
}
.errors ul { margin: 0; padding-left: 18px; }

/* ===== BIENVENIDA / HERO ===== */
.hero-welcome { text-align: center; padding: 48px 24px; }
.hero-welcome .big {
    font-size: 40px; font-weight: 800; line-height: 1.15;
    background: linear-gradient(135deg, var(--accent-l) 0%, var(--rose) 40%, var(--primary-l) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    letter-spacing: -.5px; margin: 14px 0;
}
@media (max-width: 640px) { .hero-welcome .big { font-size: 28px; } }

.chip {
    display: inline-block; padding: 7px 18px;
    border-radius: 999px; font-size: 13px; font-weight: 600;
    background: rgba(168,85,247,.1);
    border: 1px solid rgba(168,85,247,.15);
    color: var(--primary-l); letter-spacing: .2px;
}
.chip-teal {
    background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.15);
    color: var(--emerald);
}

.hero-welcome .meta {
    display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    margin: 22px 0;
}

/* ===== CUESTIONARIO ===== */
.quiz-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.quiz-progress {
    height: 5px; background: rgba(255,255,255,.05);
    border-radius: 999px; overflow: hidden; margin-bottom: 30px;
}
.quiz-progress > span {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 12px rgba(168,85,247,.4);
}

.q-text { font-size: 21px; font-weight: 700; line-height: 1.45; margin-bottom: 26px; color: #fff; }

.options { display: grid; gap: 14px; }
.option {
    display: flex; gap: 16px; align-items: center;
    padding: 18px 22px; border-radius: 16px;
    background: rgba(255,255,255,.025);
    border: 1.5px solid rgba(255,255,255,.05);
    cursor: pointer;
    transition: all .25s ease;
}
.option:hover {
    background: rgba(168,85,247,.05);
    border-color: rgba(168,85,247,.18);
    transform: translateX(6px);
}
.option.selected {
    background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(245,158,11,.06));
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(168,85,247,.12), 0 10px 25px rgba(168,85,247,.08);
}
.option .letter {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.06);
    display: grid; place-items: center;
    font-weight: 800; font-size: 16px; color: var(--primary-l);
    flex: 0 0 44px;
    transition: all .25s;
}
.option.selected .letter {
    background: linear-gradient(135deg, var(--primary), var(--rose));
    border-color: transparent; color: #fff;
    box-shadow: 0 6px 20px rgba(168,85,247,.4);
}
.option .txt { flex: 1; font-size: 15.5px; line-height: 1.45; }

.nav-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.nav-row .btn[disabled] { opacity: .25; cursor: not-allowed; pointer-events: none; }

/* ===== AGRADECIMIENTO ===== */
.thanks-icon {
    width: 96px; height: 96px; margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid; place-items: center;
    box-shadow: 0 0 50px rgba(168,85,247,.35), 0 0 100px rgba(245,158,11,.15);
    animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 50px rgba(168,85,247,.35), 0 0 100px rgba(245,158,11,.15); }
    50%      { box-shadow: 0 0 70px rgba(168,85,247,.5), 0 0 130px rgba(245,158,11,.25); }
}
.thanks-icon svg { width: 44px; height: 44px; }

/* ===== FOOTER ===== */
footer {
    text-align: center; color: rgba(255,255,255,.2);
    font-size: 12px; margin-top: auto; padding-top: 40px;
    letter-spacing: .3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
    .card { padding: 28px 22px; border-radius: 18px; }
    .card h1 { font-size: 23px; }
    .q-text { font-size: 18px; }
    .option { padding: 15px 16px; }
    .option .letter { width: 38px; height: 38px; flex-basis: 38px; font-size: 14px; }
    .btn { padding: 13px 22px; font-size: 14px; }
    .nav-row { flex-direction: column; }
    .nav-row .btn { width: 100%; }
    .brand { padding: 12px 16px; border-radius: 16px; margin-bottom: 20px; }
    .brand img { max-height: 48px; max-width: min(230px, 72vw); }
}
