/* =========================================
   BANNER DE COOKIES PROFESIONAL (MODIFICADO)
   ========================================= */

.cookie-banner {
    position: fixed;
    /* Ajuste: -500px asegura que se esconda totalmente en móviles aunque el texto sea largo */
    bottom: -500px; 
    left: 20px;
    right: 20px;
    background: #111;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 10000; /* Aseguramos que esté por encima de todo */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    
    /* Soporte para el área segura de iPhone (la barra de abajo de Safari) */
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* Clase que activa el JavaScript */
.cookie-banner.show {
    bottom: 20px;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
    font-weight: 500;
}

/* Contenedor de botones */
.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-cookie {
    background: var(--primary-color, #2563eb);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background: var(--secondary-color, #1d4ed8);
    transform: scale(1.05);
}

/* Estilo específico para el botón Cancelar */
.btn-cancel {
    background: transparent !important;
    border: 1px solid #475569 !important;
    color: #94a3b8 !important;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border-color: #94a3b8 !important;
}

/* =========================================
   AJUSTES PARA MÓVILES (SOLUCIÓN)
   ========================================= */

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        padding: 15px;
    }

    .cookie-banner.show {
        bottom: 10px;
    }

    .cookie-content {
        flex-direction: column; /* Texto arriba y botones abajo */
        text-align: center;
        gap: 15px;
    }

    .cookie-content p {
        font-size: 0.85rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: row; /* Botones uno al lado del otro */
    }

    .btn-cookie {
        flex: 1; /* Ambos botones ocupan el mismo ancho */
        padding: 14px 10px;
        font-size: 0.9rem;
    }
}