/* Estilos generales para la página */

/* The Modal (background) */
.fondoCustom {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.text-sm{
    font-size: .875rem;
}

.custom-consent-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    width: 60%;
}

.custom-consent-content {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    gap: 30px;
}

.consent-logo img {
    height: 16vh;
    object-fit: contain;
    margin-right: 20px;
}

.custom-consent-info {
    flex-grow: 1;
}

    .custom-consent-info h2 {
        font-size: 18px;
        color: #333;
        font-weight: 600;
    }

    .custom-consent-info p {
        margin: 10px 0;
        color: #666;
        font-size: 14px;
    }

.custom-consent-options {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .custom-consent-options label {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #6B7280;
    }

    .custom-consent-options input[type="checkbox"] {
        margin-left: 10px;
        width: 20px;
        height: 20px;
    }

/* Estilo para alinear los botones uno sobre el otro */
.consent-actions {
    display: flex;
    flex-direction: column; /* Cambia la dirección del flujo a columna */
    gap: 5px; /* Espacio entre los botones */
}

    .consent-actions .btn {
        padding: 13px 65px !important;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
    }

        .consent-actions .btn.accept {
            background-color: #00234a;
            color: #fff;
        }

        .consent-actions .btn.decline {
            background-color: #f9f9f9;
            color: #333;
            border: 1px solid #ccc;
        }


/*Switches*/

.switch {
    --secondary-container: #00234a;
    --primary: #fff;
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.4em;
    height: 1.4em;
   }
   
   .switch input {
    display: none;
    opacity: 0;
    width: 0;
    height: 0;
   }
   
   .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .2s;
    border-radius: 30px;
   }
   
   .slider:before {
    position: absolute;
    content: "";
    height: 1em;
    width: 1em;
    border-radius: 20px;
    left: 0.2em;
    bottom: 0.2em;
    background-color: #fff;
    transition: .4s;
   }
   
   input:checked + .slider::before {
    background-color: var(--primary);
   }
   
   input:checked + .slider {
    background-color: var(--secondary-container);
   }
   
   input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary-container);
   }
   
   input:checked + .slider:before {
    transform: translateX(1.9em);
   }



   /* Vista en pantallas medianas (tablets) */
@media (max-width: 1400px) {
    .custom-consent-container {
        width: 80%;
    }

    .consent-logo img {
        height: 9vh;
    }

    .custom-consent-content {
        flex-direction: column; /* Mantén la dirección horizontal para tablets */
        align-items: center; /* Centra los elementos en el eje transversal */
        gap: 20px;
    }

    .consent-logo,
    .cookie-info,
    .consent-actions {
        flex: 1 1 100%; /* Permite que cada elemento ocupe el 100% del ancho disponible */
        text-align: center; /* Centra el contenido para mejorar la legibilidad */
    }

    .cookie-info h2 {
        font-size: 16px;
    }

    .cookie-info p {
        font-size: 12px;
    }

    .custom-consent-options {
        justify-content: center; /* Centra las opciones de cookies */
        flex-direction: row;
    }

    .consent-actions .btn {
        padding: 10px 50px !important; /* Ajusta el padding de los botones */
    }

    .consent-actions {
        flex-direction: row;
    }
}

   /* Media Queries para responsividad */
@media (max-width: 768px) {

    .consent-logo img {
        height: 8vh;
    }

    .consent-logo {
        margin-bottom: 10px; /* Añade un margen inferior para separar el logo de los otros elementos */
    }

    .cookie-info {
        text-align: center; /* Centra el texto en pantallas pequeñas */
    }

    .custom-consent-options {
        flex-direction: row; /* Cambia las opciones a columnas en pantallas pequeñas */
        align-items: center; /* Centra las opciones en el eje transversal */
        gap: 10px; /* Ajusta el espacio entre opciones */
    }

    .consent-actions {
        width: 100%;
        align-items: center; /* Centra los botones en el eje transversal */
    }

        .consent-actions .btn {
            width: 80% !important; /* Ajusta el ancho de los botones */
        }
    
}

@media (max-width: 480px) {
    .consent-logo img {
        height: 7vh;
    }

    .custom-consent-container {
        width: 90%;
        padding: 10px;
    }

    .custom-consent-content {
        padding: 10px;
        gap: 10px;
    }

    .consent-actions .btn {
        padding: 10px 40px !important;
    }

    .custom-consent-options {
        flex-direction: row; /* Cambia las opciones a columnas en pantallas pequeñas */
    }

    .consent-actions {
        flex-direction: row;
    }
}

@media (max-width: 360px) {
    .custom-consent-options {
        flex-direction: column;
    }
}
