/* Login Modal Styles */
.modal-Login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Disable other elements when modal is open */
body.modal-open .header,
body.modal-open .whatsapp-button,
body.modal-open .other-fixed-elements {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Ensure modal is responsive on small screens */
@media (max-width: 768px) {
    .modal-Login {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        will-change: transform;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    /* Disable swiper-container when modal is open on small screens */
    body.modal-open .swiper-container {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
        border: none;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.modal-content-Login {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    text-align: center;
    position: relative;
}

.LoginModalHeader {
    position: relative;
    padding-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 28px;
    font-weight: bold;
    color: #4a3c30;
    cursor: pointer;
    line-height: 1;
}

.LoginModalTitle {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #4a3c30;
    margin: 0;
    padding: 10px 0;
    font-weight: bold;
}

.modal-body-Login h3 {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #4a3c30;
    margin: 10px 0 20px;
    font-weight: normal;
    line-height: 1.5;
}

.form-group-Login {
    margin-bottom: 15px;
}

.form-group-Login input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-buttons-Login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.LoginBtn {
    background-color: #00a650;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.LoginBtn:hover {
    background-color: #008840;
}

.LoginBtnOutlined {
    background-color: white;
    color: #00a650;
    border: 1px solid #00a650;
    border-radius: 4px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.LoginBtnOutlined:hover {
    background-color: #00a650;
    color: white;
    border-color: #00a650;
}

/* Forgot password link */
.modal-body-Login a {
    display: block;
    text-align: center;
    color: #4a3c30;
    text-decoration: none;
    font-size: 14px;
    margin: 10px 0;
}

/* Estilos del botón */
.New2Btn {
    padding: 10px 20px;
    background-color: #e41e25;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin: 15px auto 0;
    text-align: center;
    transition: background 0.3s;
    width: fit-content;
}

.New2Btn:hover {
    background-color: darkred;
}

button2.New2Btn {
    background-color: #00c853;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

button2.New2Btn:hover {
    background-color: #00b34a;
}

.New2BtnLog {
    padding: 10px 50px;
    background-color: white;
    color: black;
    border: 2px solid #e41e25; /* Borde rojo */
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border-radius: 5px;
}

/* Efecto hover */
.New2BtnLog:hover {
    background-color: #e41e25; /* Rojo */
    color: white; /* Texto blanco */
    border-color: #b71c1c; /* Rojo más oscuro */
}

/* Fondo borroso cuando el modal está activo */
body.modal-open {
    overflow: hidden;
}

/* Overlay for blur effect specifically for New2Modal */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000000;
    display: none;
    pointer-events: none;
}

/* Show the blur overlay when New2Modal is visible */
body.new2modal-open::after {
    display: block;
    pointer-events: auto; /* Blocks clicks on elements behind the modal */
}

/* Estilos del modal */
.New2Modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100000001; /* Higher than the overlay */
    width: 520px;
    max-width: 95%;
    background-color: #fff;
    padding: 30px;
    display: none;
}

/* Prevent scrolling when New2Modal is open */
body.new2modal-open {
    overflow: hidden;
}

/* Centrar el título */
.New2ModalTitle {
    font-size: 20px;
    font-weight: bold;
    color: #5a3826;
    text-align: center;
    margin-bottom: 15px;
}

/* Botón de cerrar en la parte superior derecha */
.New2CloseBtn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5a3826;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Agrupación de campos en filas */
.New2FormRow {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap; /* Permite que los elementos se ajusten según el espacio */
}

/* Contenedor del input */
.New2InputGroup {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f8f8;
    padding: 6px 10px;
    width: 70%;
    margin: 0 auto 10px;
}

/* Iconos de Font Awesome con fondo rojo y color blanco */
.New2InputGroupText {
    background: red;
    color: white;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    font-size: 12px;
    margin-right: 6px;
    flex-shrink: 0; /* Evita que el icono se encoja */
}

/* Inputs */
.New2FormControl {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
    padding: 6px;
    width: 100%; /* Asegura que ocupe todo el espacio disponible */
}

/* Ajuste para los campos que necesitan compartir espacio */
.New2FormGroup {
    flex: 1;
}

/* Ajustes para "DNI - Número" y "Celular - Alternativo" */
.New2FormRow .New2FormGroup {
    flex: 0 0 40.5%;
    max-width: 40.5%;
}

@media (max-width: 768px) {
    .New2Modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex; /* Añadir display flex */
        flex-direction: column; /* Asegurar dirección vertical */
        align-items: center; /* Centrar horizontalmente */
        justify-content: center; /* Centrar verticalmente */
        
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 100000000;
        width: 520px;
        max-width: 95%;
        height: auto;
        padding: 30px;
    }

    .New2ModalBody {
        display: flex; /* Añadir display flex */
        flex-direction: column; /* Dirección vertical */
        justify-content: center; /* Centrar verticalmente */
        align-items: center; /* Centrar horizontalmente */
        width: 100%;    
        height: 100%;
    }     
    .New2ModalTitle {
        margin-bottom: 20px;
    }
    
    .New2FormRow {
        flex-direction: row; /* Mantener la dirección en fila */
        gap: 5px; /* Mantener el mismo gap que en desktop */
        justify-content: center; /* Asegurar que esté centrado */
        width: 100%;
        
    }
    
    .New2FormRow .New2FormGroup {
        flex: 0 0 49%; /* Ajustar el ancho para que quepan dos columnas */
        max-width: 49%;
    }
    
    .New2InputGroup {
        width: 100%; /* Tomar todo el ancho disponible */
        margin-bottom: 10px;
    }
    
    .New2Btn {
        width: 70%; /* Ancho ajustado para móviles pero no completo */
        padding: 10px;
        margin: 15px auto 0;
    }
}
/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .New2Modal {
        padding: 15px 10px;
    }

    .New2ModalTitle {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .New2InputGroupText {
        min-width: 20px;
        font-size: 10px;
    }

    .New2FormControl {
        font-size: 13px;
    }
}

.modalConfirm {
    z-index: 1000000000;
}