/* ============================================================
   BANNER DE COOKIES - SEA
   Sociedad Entomológica Aragonesa
   ============================================================ */


/* ------------------------------------------------------------
   BANNER PRINCIPAL
   ------------------------------------------------------------ */

.sea-cookie-banner {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    background: #ffffff;

    color: #1a1a1a;

    border-top: 4px solid #004a3c;

    box-shadow:
        0 -5px 25px rgba(0, 0, 0, 0.18);

    z-index: 999999;

    animation:
        seaCookieSlideUp 0.4s ease-out;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* ------------------------------------------------------------
   CONTENIDO
   ------------------------------------------------------------ */

.sea-cookie-content {

    max-width: 1400px;

    margin: 0 auto;

    padding:
        20px 5%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* ------------------------------------------------------------
   TEXTO
   ------------------------------------------------------------ */

.sea-cookie-text {

    flex: 1;

    min-width: 0;
}


.sea-cookie-text h2 {

    margin: 0 0 8px 0;

    color: #004a3c;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 1.25rem;

    font-weight: 700;
}


.sea-cookie-text p {

    margin: 5px 0;

    font-size: 0.9rem;

    line-height: 1.5;

    color: #333333;
}


.sea-cookie-links {

    font-size: 0.82rem !important;
}


.sea-cookie-links a {

    color: #004a3c;

    font-weight: 600;

    text-decoration:
        underline;
}


.sea-cookie-links a:hover {

    color: #2b6e51;
}


/* ------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------ */

.sea-cookie-buttons {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    flex-shrink: 0;
}


.sea-cookie-btn {

    border: none;

    border-radius: 4px;

    padding:
        11px 18px;

    font-size: 0.88rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.sea-cookie-btn:hover {

    transform:
        translateY(-1px);
}


/* RECHAZAR */

.sea-cookie-reject {

    background: #eeeeee;

    color: #333333;

    border:
        1px solid #cccccc;
}


.sea-cookie-reject:hover {

    background: #e2e2e2;
}


/* CONFIGURAR */

.sea-cookie-config {

    background: #ffffff;

    color: #004a3c;

    border:
        2px solid #004a3c;
}


.sea-cookie-config:hover {

    background: #e6eeed;
}


/* ACEPTAR */

.sea-cookie-accept {

    background: #004a3c;

    color: #ffffff;

    border:
        2px solid #004a3c;
}


.sea-cookie-accept:hover {

    background: #2b6e51;

    border-color:
        #2b6e51;
}


/* ------------------------------------------------------------
   PANEL DE CONFIGURACIÓN
   ------------------------------------------------------------ */

.sea-cookie-config-panel {

    max-width: 900px;

    margin: 0 auto;

    padding:
        25px 5%;
}


/* CABECERA */

.sea-cookie-config-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    margin-bottom: 20px;
}


.sea-cookie-config-header h2 {

    margin: 0 0 5px 0;

    color: #004a3c;

    font-size: 1.35rem;
}


.sea-cookie-config-header p {

    margin: 0;

    color: #555555;

    font-size: 0.9rem;
}


/* BOTÓN CERRAR */

.sea-cookie-close {

    width: 35px;

    height: 35px;

    border: none;

    background: transparent;

    color: #333333;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    border-radius: 4px;
}


.sea-cookie-close:hover {

    background: #eeeeee;

    color: #004a3c;
}


/* ------------------------------------------------------------
   OPCIONES
   ------------------------------------------------------------ */

.sea-cookie-options {

    border-top:
        1px solid #dddddd;

    border-bottom:
        1px solid #dddddd;

    margin-bottom: 20px;
}


.sea-cookie-option {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding:
        15px 0;

    border-bottom:
        1px solid #eeeeee;
}


.sea-cookie-option:last-child {

    border-bottom: none;
}


.sea-cookie-option-info {

    flex: 1;
}


.sea-cookie-option h3 {

    margin: 0 0 4px 0;

    color: #004a3c;

    font-size: 0.98rem;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


.sea-cookie-option p {

    margin: 0;

    color: #555555;

    font-size: 0.82rem;

    line-height: 1.45;
}


.sea-cookie-always {

    color: #004a3c;

    font-size: 0.8rem;

    font-weight: 700;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   INTERRUPTORES
   ------------------------------------------------------------ */

.sea-cookie-switch {

    position: relative;

    display: inline-block;

    width: 48px;

    height: 26px;

    flex-shrink: 0;
}


.sea-cookie-switch input {

    opacity: 0;

    width: 0;

    height: 0;
}


.sea-cookie-slider {

    position: absolute;

    cursor: pointer;

    inset: 0;

    background-color: #cccccc;

    border-radius: 26px;

    transition:
        0.25s;
}


.sea-cookie-slider:before {

    content: "";

    position: absolute;

    height: 20px;

    width: 20px;

    left: 3px;

    top: 3px;

    background-color: white;

    border-radius: 50%;

    transition:
        0.25s;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.25);
}


.sea-cookie-switch input:checked
+ .sea-cookie-slider {

    background-color:
        #004a3c;
}


.sea-cookie-switch input:checked
+ .sea-cookie-slider:before {

    transform:
        translateX(22px);
}


/* ------------------------------------------------------------
   PIE DEL PANEL
   ------------------------------------------------------------ */

.sea-cookie-config-footer {

    display: flex;

    justify-content: flex-end;

    gap: 10px;
}


/* ------------------------------------------------------------
   ANIMACIÓN
   ------------------------------------------------------------ */

@keyframes seaCookieSlideUp {

    from {

        opacity: 0;

        transform:
            translateY(100%);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


.sea-cookie-hidden {

    animation:
        seaCookieSlideDown 0.35s ease-in forwards;
}


@keyframes seaCookieSlideDown {

    from {

        opacity: 1;

        transform:
            translateY(0);
    }

    to {

        opacity: 0;

        transform:
            translateY(100%);
    }
}


/* ------------------------------------------------------------
   MÓVIL
   ------------------------------------------------------------ */

@media (max-width: 768px) {

    .sea-cookie-content {

        flex-direction: column;

        align-items: stretch;

        gap: 15px;

        padding:
            18px 20px;
    }


    .sea-cookie-text h2 {

        font-size: 1.1rem;
    }


    .sea-cookie-text p {

        font-size: 0.83rem;
    }


    .sea-cookie-buttons {

        display: grid;

        grid-template-columns:
            1fr 1fr;

        width: 100%;
    }


    .sea-cookie-btn {

        width: 100%;

        padding:
            10px 8px;
    }


    .sea-cookie-accept {

        grid-column:
            1 / -1;

        order: -1;
    }


    .sea-cookie-config-panel {

        padding:
            20px;
    }


    .sea-cookie-config-header h2 {

        font-size: 1.15rem;
    }


    .sea-cookie-option {

        gap: 15px;

        align-items: flex-start;
    }


    .sea-cookie-option p {

        font-size: 0.78rem;
    }


    .sea-cookie-config-footer {

        display: grid;

        grid-template-columns:
            1fr;

        width: 100%;
    }

}


/* ------------------------------------------------------------
   MÓVILES PEQUEÑOS
   ------------------------------------------------------------ */

@media (max-width: 420px) {

    .sea-cookie-buttons {

        grid-template-columns:
            1fr;
    }


    .sea-cookie-accept {

        grid-column:
            auto;
    }


    .sea-cookie-option {

        flex-direction: row;

        align-items: center;
    }

}
