@charset "UTF-8";
/* ===========================================
   BANNER DE COOKIES
   =========================================== */
.cookies {	
    width: auto;
    margin: 0 auto;
    padding: 20px 5%;
    font-size: 1em;
    font-weight: normal;
    color: #333;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #FFF;
    opacity: 0.98;
    transition: bottom 0.5s ease, opacity 0.3s ease;
    box-shadow: 0 -4px 12px rgba(50, 50, 50, 0.3);
    z-index: 999999999;
}

.cookies.hidden {
    bottom: -100%;
    opacity: 0;
    pointer-events: none;
}

.cookies__titulo {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
}

.cookies__texto {
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.cookies__texto a {
    color: #ba0210;
    font-weight: bold;
    text-decoration: underline;
}

.cookies__texto a:hover {
    text-decoration: none;
}

.cookies__botones {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Botón rechazar */
.cookies .cookies__boton-2 {
    border: 2px solid #000000;
    color: #000000;
    background: transparent;
    padding: 10px 20px;
    font-size: 0.95em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.cookies .cookies__boton-2:hover,
.cookies .cookies__boton-2:focus {
    background-color: #000000;
    color: #fff;
    outline: none;
}

/* Botón aceptar */
.cookies .cookies__boton {
    border: 2px solid #ba0210;
    color: #fff;
    background-color: #ba0210;
    padding: 10px 20px;
    font-size: 0.95em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.cookies .cookies__boton:hover,
.cookies .cookies__boton:focus {
    background: #9a0108;
    border-color: #9a0108;
    outline: none;
}

/* Botón configurar */
.cookies .cookies__boton--config {
    border: 2px solid #666;
    color: #333;
    background: #f1f1f1;
    padding: 10px 20px;
    font-size: 0.95em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.cookies .cookies__boton--config:hover,
.cookies .cookies__boton--config:focus {
    background: #666;
    color: #fff;
    border-color: #666;
    outline: none;
}

/* ===========================================
   BOTÓN FLOTANTE
   =========================================== */
.cookies-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ba0210;
    color: #fff;
    border: 2px solid #ba0210;
    border-radius: 50px;
    padding: 12px 18px;
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(186, 2, 16, 0.4);
    transition: all 0.3s ease;
    z-index: 999999998;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 700;
}

.cookies-float:hover,
.cookies-float:focus {
    background-color: #9a0108;
    border-color: #9a0108;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(186, 2, 16, 0.5);
    outline: none;
}

.cookies-float svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* ===========================================
   MODAL DE CONFIGURACIÓN
   =========================================== */
.cookies-config {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000000000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookies-config__content {
    background: #fff;
    color: #333;
    border-radius: 10px;
    max-width: 650px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.cookies-config__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookies-config__close:hover,
.cookies-config__close:focus {
    color: #ba0210;
    transform: rotate(90deg);
    outline: none;
}

.cookies-config__content h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ba0210;
}

.cookies-config__content > p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.5;
}

.cookies-config__label {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ba0210;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookies-config__label:hover {
    background: #f0f1f3;
    transform: translateX(3px);
}

.cookies-config__label-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.cookies-config__label strong {
    color: #333;
    font-size: 1rem;
}

.cookies-config__badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.cookies-config__badge--third {
    background: #fff3cd;
    color: #856404;
}

.cookies-config__content input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookies-config__content input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookies-config__desc {
    display: block;
    margin-left: 30px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.cookies-config__link {
    color: #ba0210;
    text-decoration: underline;
    font-weight: 600;
}

.cookies-config__link:hover {
    text-decoration: none;
}

.cookies-config__info {
    background: #e8f4fd;
    border-left: 4px solid #0277bd;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.cookies-config__info small {
    font-size: 0.85rem;
    color: #01579b;
    line-height: 1.5;
}

.cookies-config__botones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e5e5;
}

.cookies__boton--guardar {
    border: 2px solid #ba0210;
    background-color: #ba0210;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cookies__boton--guardar:hover,
.cookies__boton--guardar:focus {
    background: #9a0108;
    border-color: #9a0108;
    outline: none;
}

.cookies__boton--cancelar {
    border: 2px solid #666;
    background: transparent;
    color: #666;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cookies__boton--cancelar:hover,
.cookies__boton--cancelar:focus {
    background: #666;
    color: #fff;
    outline: none;
}

/* Scrollbar personalizado */
.cookies-config__content::-webkit-scrollbar {
    width: 8px;
}

.cookies-config__content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cookies-config__content::-webkit-scrollbar-thumb {
    background: #ba0210;
    border-radius: 10px;
}

.cookies-config__content::-webkit-scrollbar-thumb:hover {
    background: #9a0108;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 600px) {
    .cookies {
        font-size: 0.9em;
        padding: 15px 4%;
    }
    
    .cookies__titulo {
        font-size: 1.1em;
    }
    
    .cookies__botones {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookies__boton,
    .cookies__boton-2,
    .cookies__boton--config {
        width: 100%;
        text-align: center;
    }
    
    .cookies-config__content {
        padding: 1.8rem 1.2rem;
        margin: 0.5rem;
    }
    
    .cookies-config__content h3 {
        font-size: 1.3rem;
        padding-right: 30px;
    }
    
    .cookies-config__botones {
        flex-direction: column;
    }
    
    .cookies__boton--guardar,
    .cookies__boton--cancelar {
        width: 100%;
    }
    
    .cookies-float {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 0.85em;
    }
    
    .cookies-float span {
        display: none;
    }
    
    .cookies-float svg {
        width: 20px;
        height: 20px;
    }
    
    .cookies-config__desc {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 400px) {
    .cookies {
        padding: 12px 3%;
    }
}

