/* ==========================================================================
   Banner no intrusivo de Consentimiento de Cookies (Google AdSense / RGPD)
   ========================================================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 440px;
    width: calc(100% - 3rem);
    background: #ffffff;
    color: #1e293b;
    border-radius: 1rem;
    box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1.25rem 1.35rem;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    pointer-events: none;
}

.cookie-consent-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.cookie-consent-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cookie-consent-title .cookie-icon {
    font-size: 1.15rem;
    color: #d97706;
}

.cookie-consent-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1rem;
    padding: 0.25rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.cookie-consent-close:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.cookie-consent-body {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1rem;
}

.cookie-consent-body a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-body a:hover {
    color: #0369a1;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-consent-btn-accept {
    background: #0284c7;
    color: #ffffff;
    border: 1px solid #0284c7;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.cookie-consent-btn-accept:hover {
    background: #0369a1;
    border-color: #0369a1;
    color: #ffffff;
}

.cookie-consent-btn-essential {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cookie-consent-btn-essential:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cookie-consent-link-details {
    font-size: 0.78rem;
    color: #64748b;
    text-decoration: none;
    margin-left: auto;
    transition: color 0.15s ease;
}

.cookie-consent-link-details:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Responsivo para móviles */
@media (max-width: 576px) {
    .cookie-consent-banner {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-width: none;
        padding: 1rem 1.15rem;
        border-radius: 0.85rem;
    }
    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .cookie-consent-btn-accept,
    .cookie-consent-btn-essential {
        width: 100%;
        text-align: center;
        padding: 0.55rem;
    }
    .cookie-consent-link-details {
        margin-left: 0;
        text-align: center;
        margin-top: 0.25rem;
    }
}
