* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: url('bg.jpg') center center / cover no-repeat fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bg.jpg') center center / cover no-repeat fixed;
    filter: blur(5px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Main Section */
.main-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.unified-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.layer-image {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Form Divider */
.form-divider {
    width: 100%;
    margin: 3rem 0 2rem 0;
    display: flex;
    justify-content: center;
}

.divider-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #FFD700 50%, transparent 100%);
    opacity: 0.6;
}

/* Form Content */
.form-content {
    width: 100%;
    max-width: 600px;
}

.form-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.surprise-text {
    color: #FFD700;
    font-weight: 700;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #2d2d2d;
    color: white;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.submit-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #2c1810;
    border: none;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.disclaimer {
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
    line-height: 1.4;
}

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

.modal-content {
    background: linear-gradient(45deg, #2c1810, #8B4513);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #FFD700;
    color: #2c1810;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
    color: white;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Transición suave para el campo del vendedor */
#vendedorGroup {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

#vendedorGroup.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .unified-container {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .hero-image {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0rem;
        width: 100%;
    }
    
    .layer-image {
        width: 300px;
    }
    
    .form-divider {
        width: 100%;
        margin: 1rem 0 1rem 0;
        display: flex;
        justify-content: center;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .event-text {
        font-size: 1.4rem;
    }
    
    .event-date {
        font-size: 1.8rem;
    }
    
    .dealer-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .spark-image {
        max-width: 400px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .main-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .unified-container {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .spark-image {
        max-width: 300px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
} 