/* TopScorePlus - landing.css
   Estilos especificos del sitio publico (landing, login, errores, coming soon). */

body.public {
    background:
        radial-gradient(1100px 500px at 90% -10%, rgba(124, 58, 237, .12), transparent 60%),
        radial-gradient(900px 500px at -10% 0%, rgba(37, 99, 235, .12), transparent 60%),
        var(--color-bg);
}

/* ----- Nav ----- */
.public-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.public-nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: .85rem 20px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .02em;
}
.public-nav__links {
    display: none;
    margin-left: auto;
    gap: 1.4rem;
    color: var(--color-text-mute);
    font-weight: 500;
}
.public-nav__links a { color: inherit; }
.public-nav__links a:hover { color: var(--color-text); text-decoration: none; }
.public-nav__cta { margin-left: auto; }
@media (min-width: 880px) {
    .public-nav__links { display: inline-flex; }
    .public-nav__cta { margin-left: 0; }
}

/* ----- Hero ----- */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}
.hero__eyebrow {
    display: inline-block;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    padding: .35rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, #0f172a, #2563eb 60%, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
.hero p.lead {
    max-width: 720px;
    margin: 0 auto 2rem;
    color: var(--color-text-mute);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.hero__cta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
    margin-bottom: 2rem;
}
.hero__notice {
    color: var(--color-text-mute);
    font-size: .9rem;
}

/* Tarjeta visual decorativa del hero */
.hero__preview {
    margin: 3rem auto 0;
    max-width: 980px;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero__preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
}
@media (min-width: 720px) {
    .hero__preview-grid { grid-template-columns: repeat(4, 1fr); }
}
.preview-tile {
    padding: 1rem;
    background: var(--color-surface-2);
    border-radius: var(--radius);
    text-align: left;
}
.preview-tile strong { display: block; font-size: .9rem; color: var(--color-text); margin-bottom: .35rem; }
.preview-tile span { font-size: .8rem; color: var(--color-text-mute); }

/* ----- Secciones ----- */
.section {
    padding: 4rem 0;
}
.section--alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}
.section__eyebrow {
    color: var(--color-primary);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.section__head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    margin: .35rem 0 .8rem;
    letter-spacing: -.01em;
}
.section__head p { color: var(--color-text-mute); }

/* ----- Caracteristicas (grid de tarjetas) ----- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 720px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card { display: flex; flex-direction: column; gap: .6rem; }
.feature-card__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    font-weight: 800;
}
.feature-card h3 { font-size: 1.05rem; margin: 0; }
.feature-card p { color: var(--color-text-mute); margin: 0; }

/* ----- Tipos de competencia ----- */
.types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}
@media (min-width: 720px) {
    .types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .types-grid { grid-template-columns: repeat(3, 1fr); }
}
.type-card {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    transition: transform .15s ease, box-shadow .15s ease;
}
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.type-card__title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    margin-bottom: .3rem;
}
.type-card__title .badge { font-size: .7rem; }
.type-card p { color: var(--color-text-mute); margin: 0; font-size: .9rem; }

/* ----- Flujo paso a paso ----- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    counter-reset: step;
}
@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    counter-increment: step;
    position: relative;
}
.step::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: .75rem;
    font-size: .9rem;
}
.step h4 { font-size: 1rem; margin: 0 0 .25rem; }
.step p { color: var(--color-text-mute); font-size: .9rem; margin: 0; }

/* ----- CTA final ----- */
.cta-final {
    margin: 0 auto;
    max-width: 880px;
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 60%, #7c3aed 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.cta-final h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-final p { opacity: .9; margin-bottom: 1.5rem; }
.cta-final .btn--primary { background: #fff; color: var(--color-primary-hover); }
.cta-final .btn--primary:hover { background: #eaf2ff; }
.cta-final .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-final .btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ----- Footer ----- */
.public-footer {
    margin-top: 4rem;
    background: #0f172a;
    color: #cbd5e1;
}
.public-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 20px 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 720px) {
    .public-footer__inner { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.public-footer h4 { color: #fff; font-size: .95rem; }
.public-footer ul li { margin: .35rem 0; }
.public-footer a { color: #cbd5e1; }
.public-footer a:hover { color: #fff; text-decoration: none; }
.public-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 20px;
    text-align: center;
    font-size: .85rem;
}

/* ----- Login ----- */
.auth-shell {
    min-height: 80vh;
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.auth-card h1 {
    font-size: 1.4rem;
    margin-bottom: .35rem;
}
.auth-card p.muted {
    color: var(--color-text-mute);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}
.auth-card .field { margin-bottom: 1rem; }

/* ----- Coming soon ----- */
.coming-soon {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}
.coming-soon__inner {
    max-width: 560px;
    text-align: center;
}
.coming-soon__inner .badge {
    margin-bottom: .75rem;
}
