/* ============================================================
   RUTAS ABIERTAS — Programa de beta testers (/testers-form/)
   Complementa /style.css: reutiliza tokens, navbar, botones y footer
   ============================================================ */

/* El atributo hidden debe ganarle a cualquier display de clase */
[hidden] {
    display: none !important;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s var(--ease);
}

.skip-link:focus-visible {
    top: 0;
}

.container--narrow {
    max-width: 760px;
    margin: 0 auto;
}

/* ---------- HERO ---------- */
.t-hero {
    position: relative;
    padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
    text-align: center;
    overflow: hidden;
}

.t-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(76, 167, 123, 0.20), transparent 62%),
        var(--bg);
    z-index: -1;
}

.t-hero-inner {
    max-width: 860px;
}

.t-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
}

.t-chip i {
    color: var(--primary);
}

.t-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.t-hero h1 .grad {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.t-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.2rem;
}

.t-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.6rem;
}

.t-hero-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    font-size: 0.94rem;
    color: var(--text-muted);
}

.t-hero-facts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.t-hero-facts i {
    color: var(--primary);
}

/* ---------- QUÉ ES ---------- */
.t-what {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.t-what-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.t-what-card .ic {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.t-what-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.t-what-card p {
    color: var(--text-muted);
}

.t-objective {
    margin: 2.5rem auto 0;
    max-width: 820px;
    background: var(--surface-2);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.6rem 1.8rem;
    font-size: 1.05rem;
}

/* ---------- PASOS ---------- */
.t-steps {
    list-style: none;
    counter-reset: paso;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.t-steps li {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.6rem 1.6rem;
    box-shadow: var(--shadow-sm);
}

.t-step-num {
    position: absolute;
    top: -18px;
    left: 1.6rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(46, 125, 88, 0.32);
}

.t-steps h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin: 0.6rem 0 0.4rem;
}

.t-steps p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

/* ---------- GANAS / PEDIMOS ---------- */
.t-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.t-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.t-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.t-panel--good h3 i {
    color: var(--primary);
}

.t-panel--ask h3 i {
    color: #C98A2E;
}

.t-panel ul {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.t-panel li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.t-panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.t-panel--ask li::before {
    background: #C98A2E;
}

.t-panel li strong {
    color: var(--text-main);
}

/* ---------- FORMULARIO ---------- */
.t-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.field {
    margin-bottom: 1.7rem;
    border: 0;
    padding: 0;
}

.field label,
.field legend {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    padding: 0;
}

.req-mark {
    color: #C0392B;
    font-weight: 700;
}

[data-theme="dark"] .req-mark {
    color: #FF8B7A;
}

.opt {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #C0392B;
}

/* ---------- RADIOS TIPO TARJETA ---------- */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 0.6rem;
}

.choice {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.choice-body {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 1.4rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    transition: border-color .2s ease, background .2s ease, transform .2s var(--ease);
}

.choice-body i {
    font-size: 1.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.choice-title {
    font-weight: 700;
}

.choice-sub {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.choice:hover .choice-body {
    border-color: var(--primary);
}

.choice input:checked+.choice-body {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    transform: translateY(-2px);
}

.choice input:checked+.choice-body i {
    color: var(--primary);
}

.choice input:focus-visible+.choice-body {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

.ios-note {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: color-mix(in srgb, #C98A2E 12%, transparent);
    border: 1px solid color-mix(in srgb, #C98A2E 35%, transparent);
    font-size: 0.92rem;
    line-height: 1.5;
}

.ios-note i {
    color: #C98A2E;
    margin-top: 0.2em;
}

/* ---------- CHECKBOX ---------- */
.field--check {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
}

.field--check .check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

.check input {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 0.15rem;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ---------- ERRORES ---------- */
.field-err {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #C0392B;
}

[data-theme="dark"] .field-err {
    color: #FF8B7A;
}

.field-err::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.t-errors {
    background: color-mix(in srgb, #C0392B 10%, transparent);
    border: 1px solid color-mix(in srgb, #C0392B 40%, transparent);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.8rem;
}

.t-errors h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.02rem;
    margin-bottom: 0.6rem;
}

.t-errors ul {
    margin-left: 1.2rem;
}

.t-errors a {
    color: inherit;
}

/* ---------- ENVÍO Y ÉXITO ---------- */
.btn-submit {
    width: 100%;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn-submit[disabled] {
    opacity: .65;
    cursor: progress;
    transform: none;
}

.privacy-note {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.3rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.privacy-note i {
    margin-top: 0.25em;
    color: var(--primary);
}

.t-success {
    text-align: center;
    padding: 1rem 0;
}

.t-success-ic {
    font-size: 3.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.t-success h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.t-success p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1rem;
}

.t-success-tip {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.92rem;
}

.t-success .btn {
    margin-top: 1rem;
}

/* ---------- FAQ ---------- */
.t-faq {
    display: grid;
    gap: 0.9rem;
}

.t-faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.t-faq summary {
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.t-faq summary::-webkit-details-marker {
    display: none;
}

.t-faq summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform .25s var(--ease);
}

.t-faq details[open] summary::after {
    transform: rotate(180deg);
}

.t-faq summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
}

.t-faq p {
    padding: 0 1.4rem 1.2rem;
    color: var(--text-muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
    .t-hero {
        padding: calc(var(--nav-h) + 3rem) 1.3rem 3.5rem;
    }

    .t-form-wrap {
        padding: 1.6rem 1.2rem;
    }

    .t-hero-facts {
        gap: 0.9rem 1.4rem;
    }
}

/* ---------- TRAMPA ANTISPAM ---------- */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- ENLACES EN NOTAS ---------- */
.privacy-note a,
.t-errors a {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- LISTA DE CASILLAS (perfil) ---------- */
.opt-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.field .opt-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    font-weight: 400;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.field .opt-row:hover {
    border-color: var(--primary);
}

.opt-row input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0.15rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.opt-row:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.opt-row:focus-within {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}
