
/* Popup de cookies */
.cookies-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2147483647;
    background-color: #fff;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-top: 2px solid #dcdcdc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Permitir que los botones se ajusten */
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookies-popup.show {
    transform: translateY(0);
}

/* Botones del popup */
.cookies-popup button {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #d49b00;
    background-color: transparent;
    border: 2px solid #d49b00;
    border-radius: 4px;
    padding: 10px 20px;
    margin: 5px;
    /* Añade margen para separación */
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookies-popup button.accept {
    background-color: #d49b00;
    color: #fff;
}

.cookies-popup button:hover {
    background-color: #d49b00;
    color: #fff;
}

.cookies-popup button.accept:hover {
    background-color: #b57d00;
}

/* Modal */
.cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
}

/* Contenido del modal */
.cookies-modal-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    max-height: 80%;
    overflow-y: auto;
}

/* Botón de cerrar el modal */
.cookies-modal-content .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #d49b00;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.cookies-modal-content .close-modal:hover {
    color: #b57d00;
}

/* Formato de las categorías */
.category-title {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-title:hover {
    color: #d49b00;
    /* Color dorado al pasar el ratón */
}

.status.always-active {
    font-weight: normal;
    font-size: 14px;
    margin-left: 10px;
    vertical-align: middle;
}

.toggle-switch {
    float: right;
    margin-top: -6px;
}

h2 {
    text-align: start;
}

/* Justificar solo los párrafos dentro del modal */
.cookies-modal .cookies-modal-content {
    text-align: justify;
    /* Forzar la justificación */
}

/* Tabla de detalles */
.category .description table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.category .description table th,
.category .description table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.category .description table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Botón guardar preferencias */
.cookies-modal .buttons .save {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #d49b00;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookies-modal .buttons .save:hover {
    background-color: #b57d00;
}

/* Ajustar interruptor de Cookies Analíticas */
.toggle-switch {
    float: right;
    margin-top: -6px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch label {
    display: block;
    width: 50px;
    height: 25px;
    border-radius: 15px;
    background: #ccc;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.toggle-switch label:before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"]:checked+label {
    background: #d49b00;
}

.toggle-switch input[type="checkbox"]:checked+label:before {
    transform: translateX(25px);
}

.botones {
    margin-top: 10px;
}

/* Ajustes específicos para dispositivos móviles */
@media (max-width: 768px) {
    .cookies-popup {
        flex-direction: column;
        /* Apila los botones verticalmente */
        align-items: center;
        /* Centra los botones */
    }

    .cookies-popup button {
        width: 100%;
        /* Aumenta el ancho para que ocupen más espacio */
        margin: 5px 0;
        /* Espaciado vertical entre los botones */
    }

    .category .description table {
        font-size: 14px;
        /* Reduce ligeramente el texto en la tabla */
        width: 90%;
        /* Reduce ancho de la tabla */
        margin: 0 auto;
        /* Centra la tabla */
        margin-top: 10px;
    }
}