/* =========================================
   BANNER INFERIOR DE COOKIES
   ========================================= */
#banner-consentimiento-cookies {
    display: none;
    width: 100%;
    background-color: #f4f4f4;
    box-sizing: border-box;
    padding: 27px 95px;
    z-index: 1998;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    font-family: 'Montserrat', sans-serif !important;
    pointer-events: auto;
}

.contenedor-texto-cookies {
    flex: 1;
    margin-right: 62px;
    color: #4d4d4d;
    line-height: 1.6;
}

.contenedor-texto-cookies h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #4d4d4d;
}

.contenedor-texto-cookies p {
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: #4d4d4d;
}

.contenedor-texto-cookies p:last-child {
    margin-bottom: 0;
}

.contenedor-texto-cookies a {
    color: #019501;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.contenedor-botones-cookies {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.btn-cookie {
    width: 210px;
    min-height: 38px;
    padding: 0;
    border-radius: 19px;
    font-size: 15px !important;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Montserrat', sans-serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-configurar {
    background-color: transparent;
    border: 2px solid #898989;
    color: #898989;
}

.btn-rechazar {
    background-color: transparent;
    border: 2px solid #019501;
    color: #019501;
}

.btn-aceptar {
    background-color: #019501;
    border: 2px solid #019501;
    color: #ffffff;
}

/* =========================================
   MODAL / LIGHTBOX DE PREFERENCIAS
   ========================================= */
.ui-dialog:has(#gcm-contenedor-modal) {
    width: 90% !important;
    height: auto !important;
    max-width: 920px !important;
    max-height: calc(100vh - 20px) !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}

#gcm-contenedor-modal {
    background: #ffffff;
    width: 100%;
    max-width: 920px;
    font-family: 'Montserrat', sans-serif !important;
    color: #4d4d4d;
    padding: 47px 63px 0px 63px;
    position: relative;
    display: none;
    overflow-x: hidden;
    height: 93% !important;
    overflow-y: auto;
    max-height: calc(100vh - 65px) !important;
}

.gcm-boton-cerrar {
    position: absolute;
    top: 9px;
    right: 11px;
    width: 14px;
    height: 14px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #999999;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.gcm-cabecera-modal h2 {
    font-size: 20px !important;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #4d4d4d;
    padding-right: 20px;
}

.gcm-cabecera-modal p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #898989;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.gcm-lista-cookies {
    border: 1px solid #717171;
    border-radius: 10px;
    margin-bottom: 26px;
    overflow: hidden;
    width: 790px;
}

.gcm-item-cookie {
    display: flex;
    padding: 18px 23px;
    height: 110px;
    border-bottom: 1px solid #717171;
    align-items: center;
    box-sizing: border-box;
}

.gcm-item-cookie:last-child {
    border-bottom: none;
}

.gcm-icono-cookie {
    width: 48px;
    height: 48px;
    background-color: #f0fdf0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #019501;
    margin-right: 23px;
    flex-shrink: 0;
}

.gcm-contenido-cookie {
    flex: 1;
    margin-right: 48px;
}

.gcm-fila-titulo-cookie {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.gcm-fila-titulo-cookie h3 {
    font-size: 16px !important;
    font-weight: 700;
    margin: 0;
    color: #4d4d4d;
}

.gcm-etiqueta {
    background-color: #f0fdf0;
    color: #019501;
    font-size: 12px !important;
    font-weight: 700;
    padding: 0 15px;
    height: 22px;
    line-height: 22px;
    border-radius: 10px;
    display: inline-block;
}

.gcm-contenido-cookie p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #898989;
    margin: 0;
    line-height: 1.4;
}

.gcm-accion-cookie {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gcm-siempre-activa {
    color: #019501;
    font-weight: 700;
    font-size: 14px !important;
}

/* Toggle Switch Styles */
.gcm-interruptor {
    position: relative;
    display: inline-block;
    width: 43px;
    height: 24px;
}

.gcm-interruptor input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gcm-deslizador {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e3e3e6;
    transition: .3s;
    border-radius: 24px;
}

.gcm-deslizador:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 2.5px;
    bottom: 2.5px;
    background-color: #ffffff;
    transition: .3s;
    border-radius: 50%;
}

.gcm-interruptor input:checked+.gcm-deslizador {
    background-color: #019501;
}

.gcm-interruptor input:checked+.gcm-deslizador:before {
    transform: translateX(19px);
}

/* Modal Footer Buttons */
.gcm-botones-pie-modal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.gcm-texto-pie-modal {
    text-align: center;
    margin-bottom: 30px;
}

.gcm-texto-pie-modal p {
    font-size: 13px;
    color: #898989;
    font-weight: 500;
    margin: 0;
    font-family: 'Montserrat', sans-serif !important;
}

.gcm-flecha {
    display: none;
    cursor: pointer;
}

/* =========================================
   RESPONSIVE DESIGN (BANNER & MODAL)
   ========================================= */
@media (max-width: 1300px) {
    #banner-consentimiento-cookies {
        padding-left: 40px;
        padding-right: 40px;
        flex-direction: column;
        padding: 25px 20px;
        align-items: stretch;
    }
    .contenedor-texto-cookies {
        margin-right: 25px;
        margin-bottom: 25px;
    }
    .contenedor-botones-cookies {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        gap: 15px;
        align-items: center;
    }
    .contenedor-botones-cookies .btn-cookie{
        max-width: 220px;
    }
}
@media (max-width: 1023px) {
    .gcm-lista-cookies {
        width: 100%;
        margin-bottom: 20px;
    }

    .gcm-item-cookie {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-areas: 
            "icon title action arrow"
            ". desc desc desc";
        height: auto;
        padding: 15px 10px;
        align-items: center;
        gap: 0 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .gcm-icono-cookie {
        grid-area: icon;
        margin-right: 0;
        width: 40px;
        height: 40px;
    }

    .gcm-contenido-cookie {
        display: contents;
    }

    .gcm-fila-titulo-cookie {
        grid-area: title;
        margin-bottom: 0;
    }

    .gcm-etiqueta {
        display: none;
    }

    .gcm-contenido-cookie p {
        grid-area: desc;
        display: none;
        margin-top: 10px;
        padding-right: 10px;
        line-height: 1.5;
    }

    .gcm-item-cookie.expandido .gcm-contenido-cookie p {
        display: block;
    }

    .gcm-accion-cookie {
        grid-area: action;
    }

    .gcm-flecha {
        grid-area: arrow;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }

    .gcm-item-cookie.expandido .gcm-flecha {
        transform: rotate(90deg);
    }

    .btn-cookie {
        width: 100%;
        max-width: 350px;
    }

    .gcm-texto-pie-modal p{
        text-align: left;
        line-height: 1;
    }

    .gcm-botones-pie-modal{
        gap: 5px;
    }

    .gcm-botones-pie-modal .btn-cookie{
        padding-top: 5px;
        padding-bottom: 5px;
        border-radius: 30px;
    }

}
@media (max-width: 600px) {
    #gcm-contenedor-modal {
        padding: 47px 20px 0px 20px;
    }
    .contenedor-texto-cookies h3 {
        font-size: 17px;
    }
    .contenedor-texto-cookies p, .contenedor-texto-cookies a {
        font-size: 12px;
    }
    .contenedor-texto-cookies {
        margin-bottom: 10px;
    }
    .btn-cookie{
        font-size: 13px !important;
    }
}
@media (max-width: 500px) {
    .gcm-botones-pie-modal .btn-cookie {
        font-size: 11px !important;
    }
    .gcm-cabecera-modal h2 {
        font-size: 17px !important;
    }
    .gcm-cabecera-modal p {
        font-size: 12px !important;
    }
    .gcm-fila-titulo-cookie h3 {
        font-size: 13px !important;
    }
    .gcm-siempre-activa {
        font-size: 11px !important;
    }
    .gcm-contenido-cookie p {
        font-size: 11px !important;
    }
    .gcm-texto-pie-modal p {
        font-size: 12px !important;
    }
}