/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary: #00ff88;
    --secondary: #ff3366;
    --accent: #7c3aed;
    --neon-blue: #00f5ff;
    
    /* Grises y fondos */
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-light: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-dim: #666666;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #00ff88, #00f5ff);
    --gradient-secondary: linear-gradient(135deg, #ff3366, #7c3aed);
    --gradient-card: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    
    /* Sombras */
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-intense: 0 0 50px rgba(0, 255, 136, 0.5);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particles Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
    animation: spin 10s linear infinite;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Main Content */
.main {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    padding: 2rem 0;
}

/* Hero Content */
.hero-content {
    animation: slideInLeft 1s ease-out;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
    animation: bounceIn 1s ease-out 0.5s both;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.features-quick {
    display: flex;
    gap: 2rem;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.feature-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* Form Container */
.form-container {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
    animation: slideInRight 1s ease-out;
    position: relative;
    overflow: visible;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.form-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-header strong {
    color: var(--primary);
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    z-index: 1;
}

/* Icono específico para el custom select */
.input-group .custom-select + i {
    display: none; /* Ocultar el icono del input group para custom select */
}

/* Asegurar que la flecha del select no sea afectada por las reglas de input-group */
.input-group .select-arrow {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    z-index: auto;
}

/* Restaurar la transformación para el estado activo */
.input-group .select-trigger.active .select-arrow {
    transform: rotate(180deg);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
    background: rgba(42, 42, 42, 0.8);
}

.input-group input::placeholder {
    color: var(--text-dim);
}

/* Custom Select Dropdown - SIMPLIFICADO */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

/* Balón de fútbol - IZQUIERDA */
.select-trigger::before {
    content: '\f1e3';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--text-dim);
    font-size: 1rem;
    margin-right: 0.8rem;
    transition: color 0.3s ease;
}

/* Texto del select */
.select-text {
    flex: 1;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

/* Flecha - DERECHA DEL TODO */
.select-arrow {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-left: auto;
    transition: color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Estados hover */
.select-trigger:hover {
    border-color: rgba(0, 255, 136, 0.3);
}

.select-trigger:hover::before,
.select-trigger:hover .select-arrow,
.select-trigger:hover .select-text {
    color: var(--primary);
}

/* Estados active */
.select-trigger.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
    background: rgba(42, 42, 42, 0.8);
}

.select-trigger.active::before,
.select-trigger.active .select-arrow {
    color: var(--primary);
}

.select-trigger.active .select-arrow {
    transform: rotate(180deg);
}

.select-trigger.has-value .select-text {
    color: var(--text-white);
}

.select-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
}

.select-options.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Asegurar que el dropdown sea visible cuando se muestre */
.select-options[style*="display: block"] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.select-option {
    display: block;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.select-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.select-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.select-option:hover {
    background: rgba(0, 255, 136, 0.1);
}

.select-option:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.select-option div {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.1rem;
}

.select-option.selected {
    background: rgba(0, 255, 136, 0.15);
    position: relative;
}

.select-option.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.select-option.selected .option-title {
    color: var(--primary);
    font-weight: 700;
}

/* Custom scrollbar for select options */
.select-options::-webkit-scrollbar {
    width: 8px;
}

.select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 4px;
}

.select-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    min-height: 20px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
}

/* Firefox scrollbar */
.select-options {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

/* CTA Button */
.cta-button {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-intense);
}

.cta-button:active {
    transform: translateY(0);
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.benefit {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Countdown */
.countdown-section {
    text-align: center;
    margin: 2rem 0;
}

.countdown-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.time-unit {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    min-width: 80px;
    text-align: center;
}

.time-unit .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.time-unit .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Testimonial */
.testimonial {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.author div {
    text-align: left;
}

.author strong {
    display: block;
    color: var(--text-white);
    font-weight: 600;
}

.author span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.modal-benefits div {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.modal-close {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading State */
.cta-button.loading {
    opacity: 0.8;
    pointer-events: none;
}

.cta-button.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bg-dark);
    border-radius: 50%;
    animation: spinLoad 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spinLoad {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .main {
        padding-top: 140px; /* Más espacio para el header en móvil */
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem 0;
    }
    
    /* Custom select responsive */
    .select-options {
        max-height: 250px;
    }
    
    .select-option {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .select-option i {
        font-size: 1rem;
    }
    
    .option-title {
        font-size: 0.9rem;
    }
    
    .option-desc {
        font-size: 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .features-quick {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.8rem;
        overflow-x: auto;
        padding: 0 0.5rem;
    }
    
    .feature-item {
        flex-shrink: 0;
        font-size: 0.8rem;
        gap: 0.4rem;
        white-space: nowrap;
    }
    
    .feature-item i {
        font-size: 0.9rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding-top: 160px; /* Aún más espacio en móviles muy pequeños */
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-section {
        padding: 0.5rem 0;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .features-quick {
        gap: 0.5rem;
        padding: 0;
    }
    
    .feature-item {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .feature-item i {
        font-size: 0.8rem;
    }
    
    .stats-section {
        gap: 0.5rem;
        margin: 1.5rem 0;
        padding: 1rem 0;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .modal-content {
        padding: 2rem;
    }
}