/* Page-specific CSS: proximamente.html */

/* ── RESET LOCAL ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ───────────────────────────────────────────────────────────────── */
html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: #04081a;
    color: #f8fafc;
}

/* ── FONDO OSCURO CON VIÑETA ────────────────────────────────────────────── */
.bg-layer {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(17, 34, 127, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 60%, rgba(217, 119, 6, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, #04081a 0%, #0b1229 50%, #04081a 100%);
    z-index: 0;
}

/* ── GRID OVERLAY ───────────────────────────────────────────────────────── */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
}

/* ── PARTÍCULAS ─────────────────────────────────────────────────────────── */
.particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(217, 119, 6, 0.6);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

.particle:nth-child(1)  { left: 8%;  animation-duration: 12s; animation-delay: 0s;    width: 3px; height: 3px; }
.particle:nth-child(2)  { left: 18%; animation-duration: 9s;  animation-delay: 2s; }
.particle:nth-child(3)  { left: 28%; animation-duration: 14s; animation-delay: 1s;    background: rgba(255,255,255,0.3); }
.particle:nth-child(4)  { left: 38%; animation-duration: 11s; animation-delay: 3.5s; }
.particle:nth-child(5)  { left: 50%; animation-duration: 8s;  animation-delay: 0.5s;  width: 3px; height: 3px; }
.particle:nth-child(6)  { left: 62%; animation-duration: 13s; animation-delay: 2.5s;  background: rgba(255,255,255,0.25); }
.particle:nth-child(7)  { left: 72%; animation-duration: 10s; animation-delay: 1.5s; }
.particle:nth-child(8)  { left: 82%; animation-duration: 15s; animation-delay: 4s;    width: 3px; height: 3px; }
.particle:nth-child(9)  { left: 90%; animation-duration: 9s;  animation-delay: 0.8s; }
.particle:nth-child(10) { left: 45%; animation-duration: 11s; animation-delay: 3s;    background: rgba(255,255,255,0.2); }
.particle:nth-child(11) { left: 55%; animation-duration: 13s; animation-delay: 1.2s; }
.particle:nth-child(12) { left: 33%; animation-duration: 8s;  animation-delay: 4.5s;  width: 3px; height: 3px; }
.particle:nth-child(13) { left: 75%; animation-duration: 16s; animation-delay: 2.2s;  background: rgba(255,255,255,0.15); }

@keyframes floatUp {
    0%   { transform: translateY(110vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── WRAPPER PRINCIPAL ──────────────────────────────────────────────────── */
.page-wrapper {
    position: relative;
    z-index: 10;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 1.5rem 2.5rem;
    max-width: 680px;
    margin: 0 auto;
}

/* ── CENTRO ─────────────────────────────────────────────────────────────── */
.cs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
    flex: 1;
    justify-content: center;
}

/* ── LOGO ───────────────────────────────────────────────────────────────── */
.cs-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

.cs-logo img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.cs-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.cs-logo-main {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.cs-logo-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #D97706;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── ETIQUETA "EN CONSTRUCCIÓN" ─────────────────────────────────────────── */
.cs-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: #D97706;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── TÍTULO ─────────────────────────────────────────────────────────────── */
.cs-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── DIVIDER ────────────────────────────────────────────────────────────── */
.cs-divider {
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #D97706, #11227f);
}

/* ── SLOGAN ─────────────────────────────────────────────────────────────── */
.cs-slogan {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 500px;
}

.cs-slogan strong {
    color: #cbd5e1;
    font-weight: 600;
}

/* ── STATUS ─────────────────────────────────────────────────────────────── */
.cs-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cs-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
    50%       { box-shadow: 0 0 16px rgba(34, 197, 94, 0.9); }
}

/* ── BOTÓN ACCESO ───────────────────────────────────────────────────────── */
.cs-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 2.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(248, 250, 252, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.cs-access-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── SUCCESS FLASH ──────────────────────────────────────────────────────── */
.success-flash {
    position: fixed;
    inset: 0;
    background: rgba(34, 197, 94, 0.15);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-flash.active {
    opacity: 1;
}

/* ── MODAL OVERLAY ──────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(4, 8, 26, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── MODAL BOX ──────────────────────────────────────────────────────────── */
.modal-box {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

/* ── MODAL HEADER ───────────────────────────────────────────────────────── */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #D97706;
    margin: 0 auto 1rem;
}

.modal-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: #64748b;
}

/* ── MODAL FIELD ────────────────────────────────────────────────────────── */
.modal-field {
    margin-bottom: 1.5rem;
}

.modal-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}

.modal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.85rem 3rem 0.85rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.modal-input:focus {
    border-color: rgba(217, 119, 6, 0.5);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.modal-input.error {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.modal-input.success {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.toggle-password {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toggle-password:hover { color: #94a3b8; }

/* ── ERROR MSG ──────────────────────────────────────────────────────────── */
.error-msg {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: #f87171;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.error-msg.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── MODAL SUBMIT ───────────────────────────────────────────────────────── */
.modal-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem;
    background: linear-gradient(135deg, #11227f, #1a3aad);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-submit:hover {
    background: linear-gradient(135deg, #1a3aad, #11227f);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(17, 34, 127, 0.4);
}

.modal-submit.loading {
    opacity: 0.75;
    pointer-events: none;
}

/* ── MODAL CLOSE ────────────────────────────────────────────────────────── */
.modal-close {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background: none;
    border: none;
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.modal-close:hover { color: #94a3b8; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .page-wrapper { padding: 2rem 1.25rem 1.75rem; }
    .cs-title { font-size: 2.4rem; }
    .cs-slogan { font-size: 0.95rem; }
    .cs-logo img { height: 42px; }
    .cs-logo-main { font-size: 1.35rem; }
}
