/* ==================== ESTILOS BASE ==================== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at center, #2c2233 0%, #1d1b2f 50%, #0e0c1f 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    margin: 0;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== CONTENEDOR PRINCIPAL ==================== */
.container {
    max-width: 800px;
    margin: 60px auto 40px auto;
    padding: 0 20px;
}

/* ==================== TÍTULOS ==================== */
h1, h2 {
    margin: 20px 0 30px 0;
    font-weight: 700;
    color: white;
}

h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

/* ==================== TARJETAS ==================== */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==================== FORMULARIOS ==================== */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

input, select {
    width: 100%;
    background: rgba(40, 40, 40, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: #5a4fcf;
    box-shadow: 0 0 0 3px rgba(90, 79, 207, 0.2);
    background: rgba(40, 40, 40, 0.95);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select option {
    background: rgba(40, 40, 40, 0.95);
    color: white;
}

/* ==================== BOTONES ==================== */
.btn {
    background: linear-gradient(135deg, #5a4fcf 0%, #4c41b8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(90, 79, 207, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 79, 207, 0.4);
    color: white;
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #5a4fcf 0%, #4c41b8 100%);
    font-size: 18px;
    padding: 18px 35px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(90, 79, 207, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4c41b8 0%, #3d35a0 100%);
    box-shadow: 0 8px 25px rgba(90, 79, 207, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* ==================== MENSAJES ==================== */
.success, .error {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.success {
    border-left: 4px solid #28a745;
}

.error {
    border-left: 4px solid #dc3545;
}

.success h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.error h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

/* ==================== LOGO Y FOOTER ==================== */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 10px 0;
}

.custom-logo {
    opacity: 0.3;
    width: 120px;
    height: auto;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.5;
}

.footer {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 10px 20px 20px 20px;
    font-size: 14px;
    margin-top: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        margin: 40px auto 20px auto;
    }
    
    .card {
        padding: 20px;
        margin: 20px 0;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    input, select {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 15px 25px;
    }
    
    .logo-container {
        margin: 15px 0 8px 0;
    }
    
    .custom-logo {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        margin: 30px auto 15px auto;
    }
    
    .card {
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .custom-logo {
        width: 90px;
    }
    
    .btn-primary {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .logo-container {
        margin: 10px 0 5px 0;
    }
    
    .footer {
        padding: 5px 15px 15px 15px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.35);
    }
}
