/* ================================================
   COOKIE CONSENT BANNER — Dark Academia Premium
   Instituto Copleston v4.0
   ================================================ */

#cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999990;
    display: flex;
    justify-content: center;
    padding: 0 2rem 2rem;
    opacity: 0;
    animation: overlayFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
    pointer-events: none;
}

@keyframes overlayFadeIn {
    to { opacity: 1; pointer-events: all; }
}

#cookie-consent-banner {
    background: rgba(8, 10, 22, 0.97);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 4px;
    padding: 2.5rem 3rem;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.03);
    transform: translateY(30px);
    animation: bannerSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes bannerSlideUp {
    to { transform: translateY(0); }
}

/* Línea dorada superior */
#cookie-consent-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.6), transparent);
}

/* Resplandor ambiental */
#cookie-consent-banner::after {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05), transparent 70%);
    pointer-events: none;
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.cookie-icon-wrap {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.07);
    border: 1px solid rgba(197, 160, 89, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.cookie-text { flex: 1; }

.cookie-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.cookie-desc {
    font-size: 0.82rem;
    color: rgba(155, 161, 181, 0.75);
    line-height: 1.7;
    font-weight: 300;
    max-width: 520px;
}

.cookie-desc a {
    color: rgba(197, 160, 89, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: all 0.3s;
}

.cookie-desc a:hover {
    color: var(--gold, #c5a059);
    border-color: rgba(197, 160, 89, 0.6);
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-shrink: 0;
    min-width: 180px;
}

/* Botón: Aceptar Todo */
.btn-cookie-accept {
    background: linear-gradient(135deg, #c5a059, #d4b06a);
    color: #060913;
    border: none;
    padding: 0.85rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background: linear-gradient(135deg, #d4b06a, #e8c87a);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
}

/* Botón: Solo Esenciales */
.btn-cookie-essential {
    background: transparent;
    color: rgba(155, 161, 181, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-cookie-essential:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(200, 200, 210, 0.8);
}

/* Ocultar banner */
#cookie-consent-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Botón flotante de gestión de cookies */
#cookie-settings-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 40px; height: 40px;
    background: rgba(8, 10, 22, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

#cookie-settings-btn:hover {
    border-color: rgba(197, 160, 89, 0.4);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.15);
}

#cookie-settings-btn.visible { display: flex; }

/* Responsive */
@media (max-width: 768px) {
    #cookie-consent-overlay { padding: 1rem; align-items: flex-end; }
    #cookie-consent-banner { padding: 2rem 1.5rem; }
    .cookie-inner { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .cookie-actions { flex-direction: row; min-width: 0; width: 100%; }
    .btn-cookie-accept, .btn-cookie-essential { flex: 1; text-align: center; }
    .cookie-icon-wrap { display: none; }
}
