/* 
 * Estilos CSS para Sistema de Sorteo CAFETOS
 * Diseño responsive con colores cálidos de café
 */

/* Reset y configuración/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Clase para ocultar elementos */
.hidden {
    display: none !important;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #F5F5DC 0%, #FFF8DC 50%, #FAEBD7 100%);
    min-height: 100vh;
}

/* Variables CSS para colores */
:root {
    --coffee-dark: #8B4513;
    --coffee-medium: #A0522D;
    --coffee-light: #D2691E;
    --coffee-cream: #F5F5DC;
    --coffee-beige: #FFF8DC;
    --coffee-antique: #FAEBD7;
    --forest-green: #003D23;
    --forest-green-light: #2c5530;
    --forest-green-medium: #1a4a2e;
    --success-green: #228B22;
    --error-red: #DC143C;
    --shadow: rgba(139, 69, 19, 0.2);
    --shadow-dark: rgba(139, 69, 19, 0.4);
    --green-shadow: rgba(0, 61, 35, 0.3);
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Contenido principal */
.main-content {
    text-align: center;
}

/* Sección promocional */
.promo-section {
    text-align: center;
    margin: 0 auto 40px auto;
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header principal */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-green-light) 30%, var(--coffee-dark) 70%, var(--coffee-light) 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px var(--green-shadow);
    position: relative;
    overflow: hidden;
}

/* Decoraciones del header */
.header-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.header-sticker {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.header-sticker.top-left {
    top: 15px;
    left: 15px;
    animation-delay: 0s;
}

.header-sticker.top-right {
    top: 15px;
    right: 15px;
    animation-delay: 1s;
}

.header-sticker.bottom-left {
    bottom: 15px;
    left: 15px;
    animation-delay: 2s;
}

.header-sticker.bottom-right {
    bottom: 15px;
    right: 15px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Logo container con z-index mayor */
.logo-container {
    position: relative;
    z-index: 2;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: coffee-pattern 20s linear infinite;
}

@keyframes coffee-pattern {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(0) translateY(0); }
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.subtitle {
    position: relative;
    z-index: 2;
}

.info-section {
    position: relative;
    z-index: 2;
}

/* Información de contacto */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    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-instagram {
    background: linear-gradient(135deg, var(--forest-green), var(--forest-green-light));
    color: white;
    margin: 20px 10px;
    box-shadow: 0 5px 15px var(--green-shadow);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--green-shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--forest-green), var(--forest-green-light));
    color: white;
    box-shadow: 0 5px 15px var(--green-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--green-shadow);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* Sección Semana del Café */
.coffee-week-section {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--forest-green-medium) 50%, var(--coffee-dark) 100%);
    border-radius: 20px;
    padding: 40px 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px var(--green-shadow);
    position: relative;
    overflow: hidden;
}

.coffee-week-header {
    text-align: center;
    position: relative;
    margin-bottom: 30px;
}

.coffee-week-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-sticker {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: bounce 2s ease-in-out infinite;
}

.sticker-left {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0s;
}

.sticker-right {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-60%) scale(1.1); }
}

.coffee-week-intro {
    font-size: 1.2rem;
    color: var(--coffee-beige);
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card:nth-child(even) {
    background: linear-gradient(135deg, var(--forest-green), var(--forest-green-light));
    color: white;
}

.activity-card:nth-child(even) h4 {
    color: white;
}

.activity-card:nth-child(even) p {
    color: var(--coffee-beige);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--coffee-dark), var(--coffee-light));
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    width: auto;
    height: 60px;
    max-width: 60px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    aspect-ratio: 1/1;
}

.activity-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--coffee-dark);
    margin-bottom: 10px;
}

.activity-card p {
    font-size: 0.9rem;
    color: var(--coffee-medium);
    line-height: 1.4;
}

.contact-cta {
    text-align: center;
    background: var(--coffee-dark);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-cta p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-cta strong {
    color: var(--coffee-beige);
    font-weight: 700;
}

/* Sección del sorteo dentro de la semana del café */
.sorteo-section {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.sorteo-section .promo-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sorteo-section .btn {
    margin: 10px;
    display: inline-block;
}

/* Sticker del sorteo */
.promo-sticker {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-submit {
    background: linear-gradient(135deg, var(--forest-green), var(--forest-green-light), var(--coffee-dark));
    color: white;
    box-shadow: 
        0 8px 25px var(--green-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 3px solid transparent;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================================
   ESTILOS PARA ANIMACIÓN DEL GANADOR
   =========================================== */

/* Overlay principal */
.winner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.winner-overlay.show {
    opacity: 1;
}

/* Canvas para confetti */
.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
}

/* Modal del ganador */
.winner-modal {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 10002;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Contenido del modal */
.winner-content {
    position: relative;
}

/* Trofeo animado */
.winner-trophy {
    font-size: 80px;
    margin-bottom: 20px;
    animation: trophy-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.5));
}

@keyframes trophy-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    40% {
        transform: translateY(-20px) rotate(-5deg);
    }
    60% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Título principal */
.winner-title {
    font-size: 3rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: title-glow 2s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(139, 69, 19, 0.3);
    }
}

/* Subtítulo */
.winner-subtitle {
    font-size: 1.2rem;
    color: #D2691E;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Información del ganador */
.winner-info {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.winner-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: winner-pattern 15s linear infinite;
}

@keyframes winner-pattern {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(0) translateY(0); }
}

.winner-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.winner-instagram {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.winner-date {
    font-size: 1rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Mensaje de felicitaciones */
.winner-message {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #8B4513;
}

.winner-message p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
}

.winner-message p:last-child {
    margin-bottom: 0;
}

/* Botones de acción */
.winner-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-action {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-close {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-new-draw {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-new-draw:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-share {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    .winner-modal {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .winner-title {
        font-size: 2.2rem;
    }
    
    .winner-name {
        font-size: 2rem;
    }
    
    .winner-instagram {
        font-size: 1.3rem;
    }
    
    .winner-trophy {
        font-size: 60px;
    }
    
    .winner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-action {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .winner-modal {
        padding: 20px 15px;
    }
    
    .winner-title {
        font-size: 1.8rem;
    }
    
    .winner-name {
        font-size: 1.6rem;
    }
    
    .winner-trophy {
        font-size: 50px;
    }
    
    .winner-info {
        padding: 20px;
    }
    
    .winner-message {
        padding: 20px;
    }
}
  
.btn-submit::before {
    content: '☕';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-submit::after {
    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.6s ease;
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(139, 69, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #8B4513, var(--coffee-light), #DEB887);
}

.btn-submit:hover::before {
    transform: translateY(-50%) rotate(360deg);
    opacity: 1;
}

.btn-submit:hover::after {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(139, 69, 19, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-submit:focus {
    outline: none;
    box-shadow: 
        0 15px 40px rgba(139, 69, 19, 0.4),
        0 0 0 4px rgba(210, 105, 30, 0.3);
}

/* Formulario */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow);
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    text-align: center;
    max-width: 500px;
}

.participation-form {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 30px;
}

.form-container::before {
    content: '☕️';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.05;
    transform: rotate(15deg);
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--coffee-dark);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 25px;
}

.form-group label::before {
    content: '☕';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--coffee-light);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    border: 3px solid transparent;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, #faf8f5, #f5f1eb);
    box-shadow: 
        inset 0 2px 4px rgba(139, 69, 19, 0.1),
        0 4px 15px rgba(139, 69, 19, 0.05);
    position: relative;
    font-family: 'Poppins', sans-serif;
    color: var(--coffee-dark);
}

.form-control::placeholder {
    color: rgba(139, 69, 19, 0.5);
    font-style: italic;
    transition: all 0.3s ease;
}

.form-control:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 2px 4px rgba(139, 69, 19, 0.15),
        0 8px 25px rgba(139, 69, 19, 0.1);
    border-color: rgba(210, 105, 30, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: var(--coffee-light);
    box-shadow: 
        inset 0 2px 4px rgba(139, 69, 19, 0.2),
        0 0 0 4px rgba(210, 105, 30, 0.15),
        0 12px 35px rgba(139, 69, 19, 0.15);
    background: linear-gradient(145deg, #ffffff, #faf8f5);
    transform: translateY(-3px);
}

.form-control:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

.form-control.error {
    border-color: var(--error-red);
    background: linear-gradient(145deg, #ffe6e6, #ffcccc);
    animation: errorShake 0.6s ease-in-out;
    box-shadow: 
        inset 0 2px 4px rgba(220, 20, 60, 0.2),
        0 0 0 3px rgba(220, 20, 60, 0.1),
        0 8px 25px rgba(220, 20, 60, 0.1);
}

.form-control.success {
    border-color: var(--success-green);
    background: linear-gradient(145deg, #e6ffe6, #ccffcc);
    box-shadow: 
        inset 0 2px 4px rgba(34, 139, 34, 0.2),
        0 0 0 3px rgba(34, 139, 34, 0.1),
        0 8px 25px rgba(34, 139, 34, 0.1);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0) translateY(-2px); }
    25% { transform: translateX(-8px) translateY(-2px); }
    75% { transform: translateX(8px) translateY(-2px); }
}

/* Efectos adicionales para campos */
 .form-group {
     overflow: visible;
 }
 
 .form-control::after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 0;
     height: 0;
     border-radius: 50%;
     background: rgba(210, 105, 30, 0.2);
     transform: translate(-50%, -50%);
     transition: width 0.6s ease, height 0.6s ease;
     pointer-events: none;
     z-index: -1;
 }
 
 .form-control:focus::after {
     width: 300px;
     height: 300px;
 }
 
 /* Efectos de brillo en hover */
 .form-control::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
     transition: left 0.6s ease;
     pointer-events: none;
 }
 
 .form-control:hover::before {
     left: 100%;
 }

/* Mensajes de error mejorados */
.error-message {
    color: var(--error-red);
    font-size: 13px;
    margin-top: 8px;
    display: none;
    animation: slideInError 0.4s ease-out;
    padding: 8px 12px;
    background: linear-gradient(145deg, #ffe6e6, #ffcccc);
    border-radius: 8px;
    border-left: 4px solid var(--error-red);
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1);
    font-weight: 500;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 50px;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading spinner */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--coffee-cream);
    border-top: 4px solid var(--coffee-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--coffee-dark);
}

.modal h2 {
    color: var(--coffee-dark);
    margin-bottom: 15px;
    text-align: center;
}

.modal p {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Efectos de éxito */
.success-modal .modal-content {
    border-top: 5px solid var(--success-green);
}

.error-modal .modal-content {
    border-top: 5px solid var(--error-red);
}

/* Animaciones de entrada */
.fade-in {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos hover para elementos interactivos */
.interactive:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .contact-info {
        gap: 15px;
    }
    
    .contact-item {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .form-container {
        padding: 25px 20px;
        margin: 20px 0;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
        margin: 10px 5px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
    
    /* Responsive para stickers del header */
    .header-sticker {
        width: 40px;
        height: 40px;
    }
    
    /* Responsive para sección Semana del Café */
    .coffee-week-title {
        font-size: 1.8rem;
    }
    
    .floating-sticker {
        width: 50px;
        height: 50px;
    }
    
    .sticker-left {
        left: 5%;
    }
    
    .sticker-right {
        right: 5%;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .activity-card {
        padding: 15px;
    }
    
    .activity-icon {
        width: auto;
        height: 50px;
        max-width: 50px;
        object-fit: contain;
        aspect-ratio: 1/1;
    }
    
    .promo-sticker {
        width: 80px;
        height: 80px;
    }
    
    .coffee-week-section {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Estilos adicionales para la ruleta (admin) */
.admin-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 30px 0;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.participant-card {
    background: var(--coffee-cream);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--coffee-dark);
    transition: all 0.3s ease;
}

.participant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Animaciones de confeti */
@keyframes confetti {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--coffee-light);
    animation: confetti 3s linear infinite;
}

/* Efectos de partículas de café */
.coffee-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.coffee-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--coffee-dark);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Estilos para impresión */
@media print {
    .btn, .modal, .loading {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .header, .form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegación por teclado */
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--coffee-light);
    outline-offset: 2px;
}

/* Estilos de alto contraste */
@media (prefers-contrast: high) {
    :root {
        --coffee-dark: #000;
        --coffee-light: #333;
        --shadow: rgba(0, 0, 0, 0.5);
    }
    
    .form-control {
        border-width: 3px;
    }
}

/* Estilos para el logo */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    max-width: 140px;
    height: auto;
    width: auto;
    margin: 0;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Responsive para el logo */
@media (max-width: 768px) {
    .logo {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 100px;
    }
}

/* Estilos para la leyenda de verificación */
.verification-notice {
    font-size: 0.9em;
    color: #e74c3c;
    text-align: center;
    margin: 10px 0 20px 0;
    font-weight: 500;
    background: #fff3f3;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
}

.verification-notice:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}