/* =====================================================
   KRAKENTEC — PÁGINA DE MANTENIMIENTO
   Diseño profesional v2.0
   ===================================================== */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep:      #050816;
    --bg-card:      rgba(255, 255, 255, 0.04);
    --border:       rgba(255, 255, 255, 0.08);
    --accent:       #6c63ff;
    --accent-glow:  rgba(108, 99, 255, 0.35);
    --cyan:         #00d4ff;
    --cyan-glow:    rgba(0, 212, 255, 0.25);
    --text-primary: #f0f4ff;
    --text-muted:   rgba(240, 244, 255, 0.5);
    --font:         'Inter', sans-serif;
    --radius:       16px;
    --transition:   0.3s ease;
}

html, body {
    height: 100%;
    font-family: var(--font);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Partículas flotantes de fondo ── */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0;
}

.bg-particles span:nth-child(1)  { width: 4px;  height: 4px;  left: 10%;  background: var(--accent);  animation-duration: 18s; animation-delay: 0s; }
.bg-particles span:nth-child(2)  { width: 6px;  height: 6px;  left: 22%;  background: var(--cyan);    animation-duration: 22s; animation-delay: 2s; }
.bg-particles span:nth-child(3)  { width: 3px;  height: 3px;  left: 35%;  background: var(--accent);  animation-duration: 16s; animation-delay: 4s; }
.bg-particles span:nth-child(4)  { width: 5px;  height: 5px;  left: 50%;  background: var(--cyan);    animation-duration: 20s; animation-delay: 1s; }
.bg-particles span:nth-child(5)  { width: 4px;  height: 4px;  left: 63%;  background: var(--accent);  animation-duration: 24s; animation-delay: 6s; }
.bg-particles span:nth-child(6)  { width: 7px;  height: 7px;  left: 75%;  background: var(--cyan);    animation-duration: 19s; animation-delay: 3s; }
.bg-particles span:nth-child(7)  { width: 3px;  height: 3px;  left: 85%;  background: var(--accent);  animation-duration: 21s; animation-delay: 5s; }
.bg-particles span:nth-child(8)  { width: 5px;  height: 5px;  left: 5%;   background: var(--cyan);    animation-duration: 17s; animation-delay: 7s; }
.bg-particles span:nth-child(9)  { width: 4px;  height: 4px;  left: 42%;  background: var(--accent);  animation-duration: 23s; animation-delay: 2s; }
.bg-particles span:nth-child(10) { width: 6px;  height: 6px;  left: 58%;  background: var(--cyan);    animation-duration: 20s; animation-delay: 9s; }
.bg-particles span:nth-child(11) { width: 3px;  height: 3px;  left: 90%;  background: var(--accent);  animation-duration: 15s; animation-delay: 0s; }
.bg-particles span:nth-child(12) { width: 5px;  height: 5px;  left: 30%;  background: var(--cyan);    animation-duration: 26s; animation-delay: 4s; }

@keyframes float-up {
    0%   { transform: translateY(110vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* ── Fondo gradiente animado ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(108,99,255,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(0,212,255,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(108,99,255,0.06) 0%, transparent 70%);
    animation: bg-shift 12s ease-in-out infinite alternate;
}

@keyframes bg-shift {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.08); }
}

/* ── Wrapper principal ── */
.wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem;
}

/* ── Header ── */
.site-header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1rem;
    animation: fade-down 0.8s ease both;
}

.site-header .logo {
    max-height: 56px;
    width: auto;
    filter: drop-shadow(0 0 18px var(--accent-glow));
}

/* ── Main content ── */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
    flex: 1;
    justify-content: center;
    animation: fade-up 0.9s ease 0.2s both;
    max-width: 860px;
    width: 100%;
}

/* ── Status badge ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%       { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

/* ── Headline ── */
.headline {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.headline .highlight {
    background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Subheadline ── */
.subheadline {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ── Countdown grid ── */
.countdown-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.countdown-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 1.4rem 1.8rem;
    min-width: 90px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.07);
    transition: transform var(--transition), box-shadow var(--transition);
}

.countdown-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 48px rgba(0,0,0,0.4),
        0 0 0 1px rgba(108,99,255,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.count-number {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}

.count-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    padding-bottom: 1.6rem;
    user-select: none;
}

/* ── Barra de progreso ── */
.progress-wrap {
    width: 100%;
    max-width: 420px;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    width: 0%;
    transition: width 1s ease;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ── Contacto ── */
.contact-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mail-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition), text-shadow var(--transition);
}

.mail-link:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--cyan-glow);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    background: rgba(37, 211, 102, 0.08);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.88rem;
    margin-top: 4px;
    transition: all var(--transition);
}

.whatsapp-link:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    text-shadow: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

/* ── Footer ── */
.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    animation: fade-up 1s ease 0.5s both;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: all var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ── Animaciones de entrada ── */
@keyframes fade-down {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .countdown-card  { min-width: 72px; padding: 1rem 1.2rem; }
    .countdown-separator { font-size: 1.8rem; }
    .headline { font-size: 1.9rem; }
}
