/* ============================================================
   SELVA VIVA PARK â€” Cookie Consent Banner
   DiseÃ±ado para integrarse con style.css (variables globales)
   ============================================================ */

/* â”€â”€â”€ Banner Principal â”€â”€â”€ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #1A4331 0%, #2D5A3F 100%);
    color: #fff;
    padding: 1.25rem 0;
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.28);

    /* AnimaciÃ³n slide-up */
    transform: translateY(110%);
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* LÃ­nea decorativa superior */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D49B3B, #E07B39, #D49B3B);
    background-size: 200% auto;
    animation: cookieGoldShimmer 3s linear infinite;
}

@keyframes cookieGoldShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Estado visible */
.cookie-banner--visible {
    transform: translateY(0);
}

/* Estado oculto (tras aceptar/rechazar) */
.cookie-banner--hidden {
    transform: translateY(110%);
    pointer-events: none;
}

/* â”€â”€â”€ Contenedor interno â”€â”€â”€ */
.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* â”€â”€â”€ Ãcono decorativo â”€â”€â”€ */
.cookie-banner__icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* â”€â”€â”€ Texto â”€â”€â”€ */
.cookie-banner__text {
    flex: 1;
    min-width: 260px;
}

.cookie-banner__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #D49B3B;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.cookie-banner__desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.cookie-banner__desc a {
    color: #D49B3B;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.cookie-banner__desc a:hover {
    color: #E07B39;
}

/* â”€â”€â”€ Botones â”€â”€â”€ */
.cookie-banner__actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.35rem;
    border-radius: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

/* BotÃ³n primario: Aceptar todas */
.cookie-btn--accept {
    background: linear-gradient(135deg, #D49B3B, #E07B39);
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 155, 59, 0.45);
}

.cookie-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(212, 155, 59, 0.65);
}

.cookie-btn--accept:active {
    transform: translateY(0);
}

/* BotÃ³n secundario: Solo esenciales */
.cookie-btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.35);
}

.cookie-btn--reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

/* â”€â”€â”€ Responsive â”€â”€â”€ */
@media (max-width: 900px) {
    .cookie-banner__inner {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .cookie-banner__icon {
        display: none;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        font-size: 0.82rem;
        padding: 0.65rem 1rem;
    }
}