/**
 * Estilos para banner de cookies GDPR
 * Clínica Microdental
 */

/* Banner de cookies - oculto por defecto */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-top: 1px solid rgba(183, 73, 110, 0.15);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: none;
}

/* Banner visible */
.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

/* Contenedor del banner */
.cookie-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* Contenido del banner */
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Texto de cookies */
.cookie-text {
    flex: 1;
    max-width: 800px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #54595f;
}

/* Acciones de cookies */
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Botones de cookies */
.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Botón aceptar */
.cookie-accept {
    background: #B85170;
    color: white;
}

.cookie-accept:hover {
    background: #a03962;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(183, 73, 110, 0.3);
}

/* Botón rechazar */
.cookie-reject {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cookie-reject:hover {
    background: #f8f9fa;
    border-color: #B85170;
    color: #B85170;
}

/* Link más información */
.cookie-link {
    color: #B85170;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.cookie-link:hover {
    color: #a03962;
}

/* Animación de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: slideUp 0.4s ease forwards;
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .cookie-banner-content {
        gap: 20px;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cookie-banner-container {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-text {
        max-width: 100%;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .cookie-link {
        width: 100%;
        text-align: center;
        margin-top: 5px;
        font-size: 0.85rem;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .cookie-banner-container {
        padding: 12px;
    }
    
    .cookie-text p {
        font-size: 0.8rem;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .cookie-actions {
        gap: 8px;
    }
    
    .cookie-accept,
    .cookie-reject {
        flex: 1;
        min-width: 100px;
    }
}