/* ========================================
   VALIDADOR DE COOKIES - ILC
   Estilos para banner de consentimiento
   ======================================== */

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid rgb(51, 102, 204);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Raleway', sans-serif;
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-banner.hide {
    transform: translateY(100%);
}

.cookies-content {
    display: flex;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookies-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: rgb(51, 102, 204);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cookies-text {
    flex: 1;
    min-width: 0;
}

.cookies-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.cookies-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #5a6c7d;
}

.cookies-text a {
    color: rgb(51, 102, 204);
    text-decoration: none;
    font-weight: 500;
}

.cookies-text a:hover {
    text-decoration: underline;
}

.cookies-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookies-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    font-family: inherit;
}

.cookies-btn-primary {
    background-color: rgb(51, 102, 204);
    color: white;
}

.cookies-btn-primary:hover {
    background-color: rgb(41, 82, 164);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 102, 204, 0.3);
}

.cookies-btn-secondary {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cookies-btn-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

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

/* Tablets */
@media (max-width: 768px) {
    .cookies-content {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 16px;
    }
    
    .cookies-text h4 {
        font-size: 1rem;
    }
    
    .cookies-text p {
        font-size: 0.85rem;
    }
    
    .cookies-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookies-btn {
        flex: 1;
        max-width: 120px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .cookies-content {
        padding: 12px;
        gap: 12px;
    }
    
    .cookies-icon {
        width: 40px;
        height: 40px;
    }
    
    .cookies-text p {
        font-size: 0.8rem;
    }
    
    .cookies-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookies-btn {
        width: 100%;
        max-width: none;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ========================================
   ESTADOS DE ACCESIBILIDAD
   ======================================== */

.cookies-btn:focus {
    outline: 2px solid rgb(51, 102, 204);
    outline-offset: 2px;
}

.cookies-banner[aria-hidden="true"] {
    display: none;
}

/* Animación de pulso para el icono */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cookies-icon {
    animation: pulse 2s infinite;
}

/* ========================================
   MODO ALTO CONTRASTE
   ======================================== */

@media (prefers-contrast: high) {
    .cookies-banner {
        background: #ffffff;
        border-top: 4px solid #000000;
    }
    
    .cookies-text h4,
    .cookies-text p {
        color: #000000;
    }
    
    .cookies-btn-primary {
        background-color: #000000;
        color: #ffffff;
    }
    
    .cookies-btn-secondary {
        border: 2px solid #000000;
        color: #000000;
    }
}

/* ========================================
   REDUCIR MOVIMIENTO
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .cookies-banner {
        transition: none;
    }
    
    .cookies-icon {
        animation: none;
    }
    
    .cookies-btn {
        transition: none;
    }
}