/* estilos-modernos.css */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 100vh;
}

a{
    text-decoration: none;
}

/* Header Moderno */
.header-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.event-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.btn-help {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.btn-help:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Contenido Principal */
.main-content {
    padding: 3rem 0;
}

/* Contenedor de Imagen del Evento */
.event-image-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.event-image {
    width: 100%;
    height: 692px;
    object-fit: cover;
    transition: var(--transition);
}

.event-image:hover {
    transform: scale(1.02);
}

.event-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
}

/* Tarjeta de Información */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 180px;
}

/*.info-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
}*/

.info-body {
    padding: 1.0rem;
}

.info-body p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.info-body p:last-child {
    margin-bottom: 0;
}

/* Tarjeta de Registro */
.registration-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/*.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
}*/

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.card-body {
    padding: 2rem;
}

/* Formulario */
.registration-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.form-label i {
    width: 16px;
    text-align: center;
}

.required {
    color: var(--error-color);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.form-control.is-valid {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.05);
}

.form-control.is-invalid {
    border-color: var(--error-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Resultado de Validación */
.validation-result {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.validation-result .alert {
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

/* Botón de Envío */
.form-submit {
    margin-top: 2rem;
}

/*.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}*/

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Footer Moderno */
.footer-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.5rem 0;
}

.copyright {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.btn-help-sm {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-help-sm:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Alertas Personalizadas */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-card {
    animation: fadeIn 0.6s ease-out;
}

.event-image-container {
    animation: fadeIn 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 0;
    }
    
    .card-header {
        padding: 1.5rem 1rem;
    }
    
    .card-body {
        padding: 1.5rem 2rem;
    }
    
    .event-title {
        font-size: 1.25rem;
    }
    
    .event-description {
        font-size: 0.8rem;
    }
    
    .btn-help {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
    
    .event-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .footer-modern {
        text-align: center;
    }
    
    .footer-modern .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .registration-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .main-content .container {
        padding: 0;
    }
    
    .event-image {
        height: 675px;
    }
}

/* Estados de carga */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    .registration-card,
    .info-card {
        background: #1f2937;
        color: white;
    }
    
    .form-control {
        background: #374151;
        border-color: #4b5563;
        color: white;
    }
    
    .form-control:focus {
        background: #374151;
        color: white;
    }
    
    .form-label {
        color: #e5e7eb;
    }
    
    .form-help {
        color: #9ca3af;
    }
}