:root {
    --bg-dark: #07090e;
    --card-bg: rgba(13, 17, 28, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #ff5e1a;
    --primary-glow: rgba(255, 94, 26, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Efectos de fondo con esferas iluminadas */
.glow-bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.glow-sphere.orange {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.glow-sphere.purple {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

/* Contenedor principal con Glassmorphic */
.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Badges y Textos */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 94, 26, 0.1);
    border: 1px solid rgba(255, 94, 26, 0.2);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #ff8a00 0%, #ff5e1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 40px auto;
    font-weight: 400;
}

/* Componente de cuenta regresiva */
.countdown-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.countdown-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 75px;
}

.countdown-col .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-col .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 6px;
}

.divider {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    align-self: flex-start;
    margin-top: 2px;
}

/* Formulario con micro-interacciones */
.subscribe-form {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 100px;
    gap: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 16px;
}

.subscribe-form:focus-within {
    border-color: rgba(255, 94, 26, 0.5);
    box-shadow: 0 0 25px var(--primary-glow);
}

.input-group {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 20px;
}

.input-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 12px;
}

.subscribe-form input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.btn-submit {
    background: linear-gradient(135deg, #ff8a00 0%, #ff5e1a 100%);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 94, 26, 0.3);
}

.btn-submit:active {
    transform: scale(0.98);
}

.form-feedback {
    font-size: 0.9rem;
    margin-top: 8px;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.form-feedback.success {
    color: #10b981;
}

.form-feedback.error {
    color: #ef4444;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Redes Sociales */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 24px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-btn:hover {
    color: var(--text-main);
    background: rgba(255, 94, 26, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 94, 26, 0.15);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Adaptación responsive para celulares */
@media (max-width: 640px) {
    .container {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .title {
        font-size: 2.6rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .countdown-card {
        padding: 16px;
        gap: 6px;
    }

    .countdown-col {
        min-width: 55px;
    }

    .countdown-col .number {
        font-size: 1.8rem;
    }

    .divider {
        font-size: 1.5rem;
    }

    .subscribe-form {
        flex-direction: column;
        background: none;
        border: none;
        padding: 0;
        gap: 12px;
    }

    .subscribe-form:focus-within {
        box-shadow: none;
    }

    .input-group {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 16px 20px;
        border-radius: 100px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}