/* =====================================================
   SISTEMA DE PROMOCIONES - ESTILOS PERSONALIZADOS
   ===================================================== */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    --transition: all 0.3s ease;
}

/* =====================================================
   ESTILOS GENERALES
   ===================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* =====================================================
   HEADER Y HERO SECTION
   ===================================================== */
/*
.hero-section {
    background: url('../images/header-navidad.jpg') top/cover no-repeat #092950;
    padding: 4rem 0;
    margin-bottom: 0;
    height: 100vh;
    position: relative; 
    
}

.hero-section  .img-logo {
    width: 233px;
    height: 40px;
    position: absolute;
    bottom: 0;
    right: 50px;
}
    */

/* Versión móvil del hero-section */
@media (max-width: 768px) {
    .hero-section {
        background: url('../images/header-navidad-mobile.jpg') center/cover no-repeat #092950;
        padding: 2rem 0;
        height: 100vh;
    }
}

/* Asegurar que el contenido no se oculte detrás del header */
body {
    padding-top: 0;
}

main {
    position: relative;
}

.hero-section::before {
    content: '';
   
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: url('../images/header.jpg') center/cover;*/
    opacity: 0;
}



.hero-content {
    padding: 2rem 0;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.promo-stats {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.8s both;
}

.hero-image img {
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

/* =====================================================
   ESTADÍSTICAS DE PROMOCIÓN
   ===================================================== */

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =====================================================
   BOTONES
   ===================================================== */

.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    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-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-warning {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* =====================================================
   SECCIONES
   ===================================================== */

section {
    padding: 4rem 0;
    position: relative;
    margin: 0;
}

/* Asegurar que las secciones no se superpongan */
section:not(.hero-section) {
    background: white;
    margin: 0;
}

/* Secciones con fondo de color */
section.bg-light {
    background-color: #f8f9fa !important;
}

/* Asegurar que el contenido principal tenga el z-index correcto */
.py-5 {
    position: relative;
}

.step-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* =====================================================
   FORMULARIOS
   ===================================================== */
#participar{
    background: url('../images/bg-contenido-verde-1.jpg') center/cover;
}
.form-container {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* =====================================================
   ALERTAS
   ===================================================== */

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* =====================================================
   LOADING Y PROGRESS
   ===================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.3rem solid rgba(255, 255, 255, 0.3);
    border-top: 0.3rem solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progress {
    height: 0.5rem;
    border-radius: var(--border-radius);
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

/* =====================================================
   RESULTADOS
   ===================================================== */

.result-container {
    text-align: center;
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    margin: 2rem 0;
}

.result-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid var(--success-color);
}

.result-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid var(--danger-color);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-success .result-icon {
    color: var(--success-color);
}

.result-error .result-icon {
    color: var(--danger-color);
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .form-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .result-container {
        padding: 2rem;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
    
    .result-icon {
        font-size: 3rem;
    }
}

/* =====================================================
   ANIMACIONES
   ===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.box-shadow {
    box-shadow: var(--shadow);
}

.box-shadow-lg {
    box-shadow: var(--shadow-lg);
}

.border-radius {
    border-radius: var(--border-radius);
}

.border-radius-lg {
    border-radius: var(--border-radius-lg);
}

.border-radius-xl {
    border-radius: var(--border-radius-xl);
}

.transition {
    transition: var(--transition);
}

/* =====================================================
   ESTADOS ESPECIALES
   ===================================================== */

.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-loading .btn {
    position: relative;
}

.form-loading .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.1);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: #05783e !important;
    color: white;
    padding: 2rem 0;
    margin-top: 0;
}

footer h5 {
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .hero-section,
    .btn,
    .alert,
    footer {
        display: none !important;
    }
    
    .form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
