/* ==========================================================================
   AteGeo Stage 3D — superficie pública (login, acerca de, legal)
   ========================================================================== */

:root {
    --stage-bg: #121212;
    --stage-navy: #0f1c2f;
    --stage-navy-2: #14263d;
    --stage-surface: #151a21;
    --stage-surface-2: #1b222c;
    --stage-border: rgba(255, 255, 255, 0.09);
    --stage-text: #e6eaf0;
    --stage-muted: #8a97a8;
    --stage-accent: #22d3ee;
    --stage-accent-strong: #06b6d4;
    --stage-steel: #285d82;
    --stage-ok: #34d399;
    --stage-warn: #fbbf24;
    --stage-danger: #f87171;
    --stage-radius: 14px;
    --stage-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --stage-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--stage-font);
    background: var(--stage-bg);
    color: var(--stage-text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--stage-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 0.6rem; line-height: 1.15; letter-spacing: -0.01em; }
p { line-height: 1.65; }

.muted { color: var(--stage-muted); }
.eyebrow {
    margin: 0 0 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stage-accent);
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(1100px 600px at -10% -10%, rgba(40, 93, 130, 0.38), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(34, 211, 238, 0.12), transparent 55%),
        var(--stage-bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

.auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 72px);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(15, 28, 47, 0.96), rgba(15, 28, 47, 0.72) 55%, rgba(18, 18, 18, 0.94)),
        var(--stage-navy);
    border-right: 1px solid var(--stage-border);
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.075) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(900px) rotateX(58deg) rotateZ(-8deg) scale(1.25);
    transform-origin: 40% 60%;
    opacity: 0.55;
    pointer-events: none;
}

.auth-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
    pointer-events: none;
}

.auth-hero__top,
.auth-hero__copy,
.auth-hero__bottom { position: relative; z-index: 1; }

.auth-hero__logo {
    width: min(340px, 62%);
    height: auto;
    display: block;
    margin-bottom: 2.2rem;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.auth-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.7rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.auth-hero h1 span { color: var(--stage-accent); }

.auth-hero .lead {
    max-width: 46ch;
    color: #c7d2df;
    font-size: clamp(0.98rem, 1.2vw, 1.12rem);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.06);
    color: #cbeef4;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stage-accent);
    box-shadow: 0 0 10px var(--stage-accent);
}

.auth-hero__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    color: var(--stage-muted);
    font-size: 0.78rem;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(26px, 4vw, 64px);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 0.92));
}

.auth-card {
    width: min(420px, 100%);
    padding: clamp(26px, 3.4vw, 44px);
    border-radius: 20px;
    border: 1px solid var(--stage-border);
    background: linear-gradient(180deg, rgba(27, 34, 44, 0.92), rgba(21, 26, 33, 0.96));
    box-shadow: var(--stage-shadow);
    backdrop-filter: blur(16px);
}

.auth-card__brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.auth-card__brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--stage-border);
}

.auth-card__brand strong {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
}

.auth-card__brand small { color: var(--stage-muted); font-size: 0.7rem; }

.auth-card h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.auth-card .subtitle { margin: 0 0 1.6rem; color: var(--stage-muted); font-size: 0.88rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.76rem; color: #b9c4d2; letter-spacing: 0.03em; }

.input {
    width: 100%;
    padding: 0.78rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 14, 20, 0.65);
    color: var(--stage-text);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
    border-color: var(--stage-accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 1.05rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    width: 100%;
    margin-top: 0.45rem;
    background: linear-gradient(180deg, var(--stage-accent), var(--stage-accent-strong));
    color: #05161c;
    box-shadow: 0 10px 26px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover { background: linear-gradient(180deg, #35e2f7, var(--stage-accent)); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--stage-border);
    color: var(--stage-text);
}

.alert {
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.1);
    color: #ffc2c2;
}

.alert-ok {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.1);
    color: #b6f5dc;
}

.alert-warn {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
    color: #ffe6a7;
}

.demo-note {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--stage-border);
    color: var(--stage-muted);
    font-size: 0.76rem;
    line-height: 1.6;
}

.auth-legal {
    margin-top: 1.2rem;
    color: #647183;
    font-size: 0.68rem;
    line-height: 1.6;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Bloqueo demo
   -------------------------------------------------------------------------- */

.blocked-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(248, 113, 113, 0.12), transparent 60%),
        var(--stage-bg);
}

.blocked-card {
    width: min(560px, 100%);
    padding: clamp(28px, 5vw, 48px);
    border-radius: 20px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    background: linear-gradient(180deg, rgba(27, 34, 44, 0.95), rgba(21, 26, 33, 0.98));
    box-shadow: var(--stage-shadow);
    text-align: center;
}

.blocked-card__mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.blocked-card h1 { font-size: 1.7rem; }
.blocked-card p { color: #c3cedb; }
.blocked-card .contact-line { color: var(--stage-text); font-weight: 600; }
.blocked-card .actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Páginas públicas
   -------------------------------------------------------------------------- */

.public-body { min-height: 100vh; display: flex; flex-direction: column; }

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--stage-border);
    background: rgba(15, 28, 47, 0.72);
    backdrop-filter: blur(12px);
}

.public-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--stage-text); }
.public-brand:hover { text-decoration: none; }
.public-brand img { border-radius: 10px; border: 1px solid var(--stage-border); }
.public-brand strong { display: block; font-size: 0.82rem; letter-spacing: 0.16em; }
.public-brand small { color: var(--stage-muted); font-size: 0.68rem; }

.public-header__nav { display: flex; gap: 1.1rem; font-size: 0.8rem; }
.public-header__nav a { color: #c7d2df; }

.public-main {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 40px);
    flex: 1;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.about-hero__logo {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--stage-border);
    box-shadow: var(--stage-shadow);
}

.about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.about-hero .lead { color: #c7d2df; font-size: 1.02rem; }
.about-hero .ownership { color: var(--stage-muted); font-size: 0.8rem; margin-top: 1.2rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }

.panel {
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--stage-radius);
    border: 1px solid var(--stage-border);
    background: linear-gradient(180deg, rgba(27, 34, 44, 0.72), rgba(21, 26, 33, 0.86));
}

.panel h2 { font-size: 1.02rem; color: #dbe4ee; }

.data-list { display: grid; grid-template-columns: 150px 1fr; gap: 0.6rem 1rem; margin: 0; font-size: 0.84rem; }
.data-list dt { color: var(--stage-muted); }
.data-list dd { margin: 0; color: var(--stage-text); }

.legal { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.legal h2 { margin-top: 2rem; font-size: 1.05rem; color: #dbe4ee; }
.legal p { color: #b9c4d2; font-size: 0.92rem; }

.public-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem 1.5rem;
    padding: 1rem clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--stage-border);
    background: rgba(12, 17, 23, 0.85);
    color: #718096;
    font-size: 0.7rem;
}

.public-footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.public-footer__legal strong { color: #9aa8b9; font-weight: 600; }
.public-footer__nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.public-footer__nav a { color: #8b9aab; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero { min-height: 42vh; padding: 28px; border-right: 0; border-bottom: 1px solid var(--stage-border); }
    .auth-hero__logo { width: min(260px, 70%); margin-bottom: 1.2rem; }
    .auth-hero h1 { font-size: 2rem; }
    .auth-panel { padding: 26px 18px 40px; }
    .auth-card { width: 100%; }
    .about-hero { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .data-list { grid-template-columns: 1fr; gap: 0.2rem; }
    .data-list dt { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
