/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(100, 116, 139, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(148, 163, 184, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(71, 85, 105, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container principal */
.countdown-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Header */
.header {
    margin-bottom: 3rem;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: #cbd5e1;
    text-shadow: 0 0 10px rgba(203, 213, 225, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Contador */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.time-unit {
    background: linear-gradient(145deg, rgba(100, 116, 139, 0.15), rgba(148, 163, 184, 0.08));
    padding: 1.8rem 1.3rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 32px rgba(71, 85, 105, 0.1);
    transition: all 0.3s ease;
    min-width: 110px;
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(100, 116, 139, 0.2);
    background: linear-gradient(145deg, rgba(100, 116, 139, 0.25), rgba(148, 163, 184, 0.15));
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.time-unit span {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(148, 163, 184, 0.2);
}

.time-unit label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    font-weight: 500;
}

/* Información del lanzamiento */
.launch-info {
    margin: 2rem 0;
}

.launch-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.date-display {
    background: linear-gradient(145deg, rgba(100, 116, 139, 0.15), rgba(71, 85, 105, 0.2));
    padding: 0.9rem 1.8rem;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 20px rgba(100, 116, 139, 0.1);
}

#launch-date-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Sección CTA */
.cta-section {
    margin-top: 3rem;
}

.cta-section > p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.email-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#email-input {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#email-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#email-input::placeholder {
    color: #666;
}

button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

button:active {
    transform: translateY(0);
}

.success-message {
    margin-top: 1rem;
    color: #4ade80;
    font-weight: 500;
    background: rgba(74, 222, 128, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Footer */
footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Efecto de pulso para números cuando cambian */
.time-unit span.updating {
    animation: pulse 0.3s ease-in-out;
}

/* Botón "Más información" */
.more-info-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #334155, #475569, #64748b);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(71, 85, 105, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.more-info-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(71, 85, 105, 0.4);
    background: linear-gradient(45deg, #64748b, #334155, #475569);
    border: 2px solid rgba(148, 163, 184, 0.4);
}

.more-info-btn:active {
    transform: translateY(-1px);
}