/* =====================================================
   COOKIE BANNER
   OPTIMIZACIÓN CANARIAS
===================================================== */

.cookie-banner {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100%;

    z-index: 99999;

    box-sizing: border-box;

    padding: 20px 25px;

    background-color: #ffffff;

    border-top: 1px solid rgba(11, 33, 73, 0.15);

    box-shadow:
        0 -8px 30px rgba(11, 33, 73, 0.15);

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;

}


/* =====================================================
   OCULTO
===================================================== */

.cookie-banner.hidden {

    opacity: 0;

    visibility: hidden;

    transform: translateY(100%);

    pointer-events: none;

}


/* =====================================================
   VISIBLE
===================================================== */

.cookie-banner.visible {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;

}


/* =====================================================
   CONTENIDO
===================================================== */

.cookie-banner-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

}


/* =====================================================
   TEXTO
===================================================== */

.cookie-banner-text {

    flex: 1;

    min-width: 0;

}


.cookie-banner-text h2 {

    margin: 0 0 8px;

    color: #0B2149;

    font-family: "Montserrat", sans-serif;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.3;

}


.cookie-banner-text p {

    margin: 0;

    color: #4d5969;

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.6;

}


.cookie-banner-links {

    margin-top: 8px !important;

}


.cookie-banner-links a {

    color: #0B2149;

    font-weight: 600;

    text-decoration: underline;

    text-underline-offset: 2px;

}


.cookie-banner-links a:hover {

    color: #1d5fa7;

}


/* =====================================================
   CONTENEDOR DE BOTONES
===================================================== */

.cookie-banner-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 10px;

    flex-shrink: 0;

}


/* =====================================================
   BOTONES
===================================================== */

.cookie-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 11px 20px;

    box-sizing: border-box;

    border-radius: 8px;

    border: 1px solid transparent;

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.cookie-btn:hover {

    transform: translateY(-1px);

}


.cookie-btn:focus-visible {

    outline: 3px solid rgba(29, 95, 167, 0.35);

    outline-offset: 3px;

}


/* =====================================================
   ACEPTAR
===================================================== */

.cookie-btn-accept {

    background-color: #0B2149;

    color: #ffffff;

    border-color: #0B2149;

}


.cookie-btn-accept:hover {

    background-color: #14366f;

    border-color: #14366f;

    box-shadow:
        0 5px 15px rgba(11, 33, 73, 0.20);

}


/* =====================================================
   RECHAZAR
===================================================== */

.cookie-btn-reject {

    background-color: #ffffff;

    color: #0B2149;

    border-color: #0B2149;

}


.cookie-btn-reject:hover {

    background-color: #f3f6fa;

}


/* =====================================================
   CONFIGURAR
===================================================== */

.cookie-btn-settings {

    background-color: transparent;

    color: #4d5969;

    border-color: #cbd3df;

}


.cookie-btn-settings:hover {

    background-color: #f5f7fa;

    color: #0B2149;

    border-color: #0B2149;

}


/* =====================================================
   BOTÓN GESTIONAR COOKIES
===================================================== */

.cookie-manage {

    position: fixed;

    left: 20px;

    bottom: 20px;

    z-index: 99998;

    display: none;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding: 9px 15px;

    box-sizing: border-box;

    border: 1px solid rgba(11, 33, 73, 0.25);

    border-radius: 7px;

    background-color: #ffffff;

    color: #0B2149;

    font-family: "Montserrat", sans-serif;

    font-size: 12px;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 4px 15px rgba(11, 33, 73, 0.12);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}


.cookie-manage.visible {

    display: inline-flex;

}


.cookie-manage:hover {

    background-color: #0B2149;

    color: #ffffff;

    border-color: #0B2149;

    transform: translateY(-1px);

}


.cookie-manage:focus-visible {

    outline: 3px solid rgba(29, 95, 167, 0.35);

    outline-offset: 3px;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .cookie-banner {

        padding: 20px;

    }


    .cookie-banner-content {

        flex-direction: column;

        align-items: stretch;

        gap: 20px;

    }


    .cookie-banner-actions {

        justify-content: flex-start;

        width: 100%;

    }


    .cookie-btn {

        flex: 1;

    }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    .cookie-banner {

        padding: 18px 15px;

    }


    .cookie-banner-content {

        gap: 18px;

    }


    .cookie-banner-text h2 {

        font-size: 18px;

    }


    .cookie-banner-text p {

        font-size: 12px;

        line-height: 1.55;

    }


    .cookie-banner-actions {

        display: grid;

        grid-template-columns: 1fr;

        width: 100%;

        gap: 8px;

    }


    .cookie-btn {

        width: 100%;

        flex: none;

    }


    .cookie-manage {

        left: 10px;

        bottom: 10px;

        font-size: 11px;

        padding: 8px 12px;

    }

}


/* =====================================================
   PANTALLAS PEQUEÑAS
===================================================== */

@media (max-width: 380px) {

    .cookie-banner {

        padding: 15px 12px;

    }


    .cookie-banner-text h2 {

        font-size: 17px;

    }


    .cookie-banner-text p {

        font-size: 11px;

    }


    .cookie-btn {

        font-size: 12px;

    }

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .cookie-banner,
    .cookie-btn,
    .cookie-manage {

        transition: none;

    }

}