@charset "UTF-8";
/* Sistema de Cookies RGPD Compliant - Cartonajes Sabadell */

/* ========================================
   BOTÓN FLOTANTE DE CONFIGURACIÓN
======================================== */

.cookies-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #ef7717;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 119, 23, 0.4);
    transition: all 0.3s ease;
    z-index: 999999998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.5s ease;
}

.cookies-floating-btn:hover {
    background-color: #d66615;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 119, 23, 0.6);
}

.cookies-floating-btn:active {
    transform: scale(0.95);
}

.cookies-floating-btn svg {
    width: 28px;
    height: 28px;
}

/* Animación de entrada del botón flotante */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BANNER DE COOKIES
======================================== */

.cookies-banner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 5%;
    font-size: 15px;
    font-weight: normal;
    color: #333;
    bottom: 0%;
    position: fixed;
    left: 0;
    background-color: #FFF;
    opacity: 0;
    box-shadow: 0 -5px 15px rgba(50, 50, 50, 0.2);
    z-index: 999999999;
    transition: all 0.5s ease-in-out;
    transform: translateY(100%);
}

.cookies-banner__content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookies-banner__title {
    font-size: 1.3em;
    font-weight: bold;
    color: #ef7717;
    margin: 0 0 10px 0;
}

.cookies-banner__text {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #333;
}

.cookies-banner__link {
    color: #ef7717;
    text-decoration: underline;
    font-weight: 600;
}

.cookies-banner__link:hover {
    color: #d66615;
}

.cookies-banner__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cookies-banner__btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #ef7717;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: inherit;
}

.cookies-banner__btn--accept {
    background-color: #ef7717;
    color: #fff;
}

.cookies-banner__btn--accept:hover {
    background-color: #d66615;
    border-color: #d66615;
}

.cookies-banner__btn--reject {
    background-color: transparent;
    color: #666;
    border-color: #666;
}

.cookies-banner__btn--reject:hover {
    background-color: #666;
    color: #fff;
}

.cookies-banner__btn--customize {
    background-color: transparent;
    color: #ef7717;
}

.cookies-banner__btn--customize:hover {
    background-color: #ef7717;
    color: #fff;
}

/* ========================================
   MODAL DE CONFIGURACIÓN
======================================== */

.cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999999;
    display: none;
}

.cookies-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.cookies-modal__content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    margin: 5vh auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

.cookies-modal__title {
    font-size: 1.5em;
    font-weight: bold;
    color: #ef7717;
    margin: 0 0 20px 0;
    text-align: center;
}

/* ========================================
   CATEGORÍAS DE COOKIES
======================================== */

.cookies-modal__category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #ef7717;
}

.cookies-modal__category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookies-modal__category-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #333;
}

.cookies-modal__category-info p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.cookies-modal__list {
    margin: 10px 0 0 0;
    padding-left: 20px;
    font-size: 0.85em;
    color: #888;
}

.cookies-modal__list li {
    margin-bottom: 5px;
}

.cookies-modal__list strong {
    color: #333;
}

/* ========================================
   SWITCH TOGGLE
======================================== */

.cookies-modal__switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.cookies-modal__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookies-modal__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookies-modal__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookies-modal__switch input:checked + .cookies-modal__slider {
    background-color: #ef7717;
}

.cookies-modal__switch input:checked + .cookies-modal__slider:before {
    transform: translateX(26px);
}

.cookies-modal__switch input:disabled + .cookies-modal__slider {
    background-color: #888;
    cursor: not-allowed;
}

/* ========================================
   BOTONES DEL MODAL
======================================== */

.cookies-modal__buttons {
    margin-top: 30px;
    text-align: center;
}

/* ========================================
   ANIMACIONES
======================================== */

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

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

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .cookies-banner {
        padding: 15px 4%;
        font-size: 14px;
    }

    .cookies-banner__title {
        font-size: 1.1em;
    }

    .cookies-banner__buttons {
        flex-direction: column;
    }

    .cookies-banner__btn {
        width: 100%;
        padding: 10px 20px;
    }

    .cookies-modal__content {
        width: 95%;
        padding: 20px;
        margin: 2vh auto;
    }

    .cookies-modal__category-header {
        flex-direction: column;
        gap: 10px;
    }

    .cookies-modal__switch {
        align-self: flex-start;
    }

    /* Botón flotante en móvil */
    .cookies-floating-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .cookies-floating-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .cookies-banner {
        padding: 10px 3%;
        font-size: 13px;
    }

    .cookies-banner__title {
        font-size: 1em;
    }

    .cookies-modal__title {
        font-size: 1.2em;
    }
}

/* ========================================
   CÓDIGO ANTIGUO ELIMINADO
   (Mantén esto comentado por si necesitas referencias)
======================================== */

/*
.cookiesms {
    - Código antiguo no RGPD compliant
}
*/