/* ==========================================================================
   Punto Beneficio - Estilos Corregidos (Más espacio, mejor visualización)
   ========================================================================== */

:root {
    --bg-dark: #0c051a;
    --bg-gradient: linear-gradient(135deg, #0c051a 0%, #1e0b36 50%, #3a0b3f 100%);
    --primary-purple: #8224e3;
    --accent-fuchsia: #e11d74;
    --accent-cyan: #00c2cb;
    --text-light: #ffffff;
    --text-muted: #b3a7c7;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    background: var(--bg-gradient);
    color: var(--text-light);
    /* Removido el flex del body que causaba el amontonamiento/corte */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas Layout */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás del contenido */
    pointer-events: none; /* Para no bloquear clics */
}

/* Content Container - Ajustado para dar respiración */
.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px; /* Más espacio vertical */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px; /* Mayor separación entre bloques */
    text-align: center;
    min-height: 100vh; /* Asegura que cubra la pantalla */
    justify-content: center; /* Centrado vertical seguro */
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-plus {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-fuchsia);
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 15px rgba(225, 29, 116, 0.6);
    display: inline-block;
    transform: translateY(-2px);
}

.tagline-badge {
    background: rgba(130, 36, 227, 0.2);
    border: 1px solid rgba(130, 36, 227, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c39eff;
}

/* Main Wrapper */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Separación hero - contador - formulario */
    width: 100%;
}

/* Hero Section */
.hero {
    max-width: 700px;
}

.main-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(130deg, #ffffff 40%, #f4a2d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
}

.subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

/* Countdown Section */
.countdown-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex: 1;
    padding: 20px 10px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.time-number {
    font-family: monospace;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.time-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 8px;
    font-weight: 600;
}

/* Form Section */
.form-container {
    background: rgba(20, 10, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-align: center;
}

.form-instruction {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.5;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.input-icon {
    position: absolute;
    left: 18px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    transition: var(--transition-smooth);
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 18px 16px 50px;
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 15px rgba(130, 36, 227, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

input:focus + .input-icon {
    color: var(--primary-purple);
}

/* WhatsApp Field */
.whatsapp-group {
    display: flex;
    align-items: center;
}

.country-prefix {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 12px;
    height: 26px;
    user-select: none;
}

.whatsapp-group input {
    padding-left: 95px;
    padding-right: 45px;
}

.validation-badge {
    position: absolute;
    right: 18px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
    pointer-events: none;
    transform: scale(0.8);
}

.validation-badge.valid {
    color: #2ed573;
    transform: scale(1);
    text-shadow: 0 0 12px rgba(46, 213, 115, 0.5);
}

/* Button */
button[type="submit"] {
    background: var(--accent-cyan);
    color: #05141a;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 194, 203, 0.3);
    margin-top: 10px;
}

button[type="submit"]:hover:not(:disabled) {
    background: #00e5ee;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 194, 203, 0.5);
}

button[type="submit"]:disabled {
    background: #2a4b52;
    color: #1a2f34;
    cursor: not-allowed;
    box-shadow: none;
}

.form-footer-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    transition: var(--transition-smooth);
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a:hover {
    color: var(--accent-fuchsia);
    border-color: rgba(225, 29, 116, 0.4);
    background: rgba(225, 29, 116, 0.1);
    transform: translateY(-3px);
}

.credits {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* Modal (Igual que antes) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 3, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: linear-gradient(145deg, #180a2b, #0f051c);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 420px;
    width: 90%;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.active .modal-content { transform: scale(1); }
.success-icon-box { font-size: 60px; color: #2ed573; margin-bottom: 20px; }
.modal-content h2 { font-size: 24px; margin-bottom: 14px; }
.modal-content p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 26px; }
#close-modal-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 14px 34px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.3s; }
#close-modal-btn:hover { background: rgba(255,255,255,0.2); }
.scale-up { animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes scaleUp { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Responsiveness */
@media (max-width: 768px) {
    .container { padding: 40px 15px; gap: 40px; }
    .main-title { font-size: 32px; }
    .countdown-container { flex-wrap: wrap; }
    .countdown-box { min-width: 45%; }
}
