/* Estilos base para el aviso de cookies */
#cookie-banner {
    position: fixed;
    z-index: 9999;
    background-color: #2c3e50;
    color: #ffffff;
    font-family: "Champagne and Limousines", Sans-serif;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ESTILOS PARA BANNER COMPLETO */
#cookie-banner.cookie-banner-banner {
    left: 0;
    right: 0;
    padding: 15px 20px;
    animation: slideIn 0.5s ease-out;
}

#cookie-banner.cookie-banner-banner.cookie-banner-bottom {
    bottom: 0;
}

#cookie-banner.cookie-banner-banner.cookie-banner-top {
    top: 0;
    animation-name: slideInTop;
}

.cookie-banner-banner .cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner-banner .cookie-banner-message {
    flex: 1;
    min-width: 250px;
}

/* ESTILOS PARA POPUP EN ESQUINA */
#cookie-banner.cookie-banner-popup {
    max-width: 350px;
    padding: 20px;
    border-radius: 12px;
    margin: 20px;
    animation: popupSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Posiciones del popup */
#cookie-banner.cookie-banner-popup.cookie-banner-top-left {
    top: 0;
    left: 0;
}

#cookie-banner.cookie-banner-popup.cookie-banner-top-right {
    top: 0;
    right: 0;
}

#cookie-banner.cookie-banner-popup.cookie-banner-bottom-left {
    bottom: 0;
    left: 0;
}

#cookie-banner.cookie-banner-popup.cookie-banner-bottom-right {
    bottom: 0;
    right: 0;
}

.cookie-banner-popup .cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner-popup .cookie-banner-message {
    text-align: left;
    margin-bottom: 5px;
}

.cookie-banner-popup .cookie-banner-buttons {
    display: flex;
    justify-content: center;
}

/* ESTILOS COMUNES */
.cookie-policy-link {
    color: #C69F70 !important;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.cookie-policy-link:hover {
    color: #C69F70;
    text-decoration: none;
}

.cookie-policy-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 2px;
}

.cookie-banner-buttons {
    flex-shrink: 0;
}

.cookie-accept-btn {
    font-family: "Champagne and Limousines", Sans-serif;
    background-color: #C69F70;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cookie-accept-btn:hover {
    background-color: #C69F70;
    transform: translateY(-1px);
}

.cookie-accept-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cookie-accept-btn:active {
    transform: translateY(0);
}

/* ANIMACIONES PARA BANNER */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ANIMACIONES PARA POPUP */
@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animaciones específicas según posición del popup */
.cookie-banner-popup.cookie-banner-top-left,
.cookie-banner-popup.cookie-banner-top-right {
    animation-name: popupSlideInFromTop;
}

.cookie-banner-popup.cookie-banner-bottom-left,
.cookie-banner-popup.cookie-banner-bottom-right {
    animation-name: popupSlideInFromBottom;
}

@keyframes popupSlideInFromTop {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popupSlideInFromBottom {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ANIMACIÓN DE SALIDA */
@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes popupSlideOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.3);
    }
}

.cookie-banner-hiding.cookie-banner-banner {
    animation: slideOut 0.3s ease-in forwards;
}

.cookie-banner-hiding.cookie-banner-popup {
    animation: popupSlideOut 0.3s ease-in forwards;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* Banner responsive */
    #cookie-banner.cookie-banner-banner {
        padding: 12px 15px;
        font-size: 13px;
    }

    .cookie-banner-banner .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cookie-banner-banner .cookie-banner-message {
        min-width: auto;
    }

    /* Popup responsive */
    #cookie-banner.cookie-banner-popup {
        max-width: 300px;
        margin: 10px;
        padding: 15px;
        font-size: 13px;
    }

    .cookie-accept-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }

    .cookie-policy-link {
        margin-left: 0;
        margin-top: 8px;
        display: block;
    }
}

@media (max-width: 480px) {
    #cookie-banner.cookie-banner-popup {
        max-width: calc(100vw - 20px);
        margin: 10px;
    }
}

/* Mejoras visuales adicionales para popup */
.cookie-banner-popup {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    opacity: 0.9;
    z-index: -1;
}