@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

/* ESTRUCTURA PRINCIPAL */
.body {
    background-color: #ececec;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    background: #ececec;
    padding: 0 20px;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 95vh;
}

.row {
    width: 1000px;
    height: 650px;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.2);
    display: flex;
}

/* LADO IZQUIERDO - VIDEO */
.side-image {
    position: relative;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    height: 100%;
    flex: 1;
}



.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px 0 0 10px;
    background-color: #000;
    margin: 0;
    padding: 0;
}

/* Texto sobre video */
.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.text p {
    color: #fff;
    font-size: 20px;
    text-align: center;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* LADO DERECHO - FORMULARIO */
.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 50%;
}

/* IMÁGENES Y LOGOS */
img:not(.colegio-insignia-direct) {
    max-width: 100%;
    width: 5%;
    position: absolute;
    top: 5%;
    left: 5%;
    max-width: 35px;
    min-width: 15px;
}

.special-logo {
    width: 5%;
    position: absolute;
    top: 5%;
    left: 5%;
    max-width: 35px;
    min-width: 15px;
    z-index: 1;
}










.input-box {
    width: 100%; 
    max-width: 400px; 
    box-sizing: border-box;
    padding: 0 0.5rem;
}

.input-box header {
    font-weight: 300;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 5px;
    color: #00267f;
    font-size: 2em; 
}

.input-field {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0 0.625rem;
    margin: 1.25rem 0;
}

.input {
    height: 45.9px; 
    width: 102%; 
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    outline: none;
    color: #40414a;
    padding-left: 30.6px; 
}

.input-field .input:focus,
.input-field .input:valid {
    border-bottom: 2px solid #00267f;
}

.input-field .input.valid-rut,
.input-field .input.invalid-rut,
.input-field .input.valid-rut:focus,
.input-field .input.invalid-rut:focus {
    margin-top: 0;
    margin-bottom: 0;
    top: 50%;
}

/* Posicionamiento del icono a la izquierda */
.input-icon {
    position: absolute;
    left: 5.1px; 
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
    z-index: 1;
}

.input-field .input-icon {
    position: absolute;
    left: 10.2px; 
    bottom: 8.16px; 
    height: 6.12px; 
    z-index: 2;
    top: 30%;
}

/* Estilos para el icono de mostrar/ocultar contraseña (a la derecha) */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    z-index: 1;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        height: auto;
        min-height: 95vh;
        box-shadow: none; 
        width: 100%; 
        margin: 0; 
        border-radius: 0; 
    }

    .side-image {
        width: 100vw; 
        height: 40vh;
        min-height: 200px;
        border-radius: 0; 
        margin-left: calc(-50vw + 50%); 
        position: relative; 
        left: 0;
        right: 0;
    }

    .video-background {
        border-radius: 0; 
        width: 100% !important; 
        height: 100% !important; 
        object-fit: cover !important; 
        position: absolute; 
        left: 0;
        top: 0;
    }

    .right {
        width: 92%; 
        max-width: 500px; 
        padding: 0.5rem 0;;
        margin: 0 auto; 
        margin-top: -10px; 
        margin-bottom: -10px !important;
        background-color: #fff; 
        border-radius: 12px 12px 0 0; 
        box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1); 
    }

    .input-field {
        padding: 0 5px;
    }

    .input {
        font-size: 14px;
        width: 100%; 
    }

    .input::placeholder {
        font-size: 14px;
    }

    .input-box {
        width: 90%;
        max-width: 450px; 
        margin: 0 auto; 
    }

    .input-box .input-field label {
        font-size: 14px;
    }
    
    /* Contenedor principal ajustado */
    .wrapper {
        padding: 0;
        width: 100vw;
        overflow-x: hidden; 
    }
    
    .right .input-box header {
        margin-bottom: 8px; 
    }

    .input-box header {
        font-size: 22px !important;
        margin-bottom: 12px !important;
        margin-top: -100px !important; 
    }
    .main {
        padding: 0;
        width: 100%;
    }
}

/* Para pantallas pequeñas (celulares) */
@media (max-width: 480px) {
    .row {
        border-radius: 0;
        box-shadow: none;
        background: #fff;
        width: 100vw; /* Ancho completo de la ventana */
        max-width: 100vw;
    }

    .side-image {
        height: 35vh;
        border-radius: 0;
        width: 100vw; /* Ancho completo */
        margin-left: 0; /* Reset del margen para pantallas más pequeñas */
        position: relative;
        left: 0;
        right: 0;
    }

    .video-background {
        border-radius: 0;
        width: 100vw !important; /* Ancho completo de la ventana */
        height: 100% !important;
        object-fit: cover !important;
    }

    .wrapper {
        padding: 0;
        background: #fff;
        width: 100vw; /* Ancho completo */
        max-width: 100vw;
        overflow-x: hidden;
    }

    .body {
        background: #fff;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .right {
        width: 94%; /* Aún más ancho en pantallas pequeñas */
        max-width: 100%;
        border-radius: 10px 10px 0 0;
    }

    .input-box {
        padding: 0 1rem;
        max-width: 100%;
        width: 92%;
    }

    .input {
        height: 40px;
        padding-left: 25px;
    }

    .input-icon {
        font-size: 14px;
    }

    .input::placeholder {
        font-size: 13px;
        opacity: 0.8;
    }

    .input-box .input-field label {
        left: 28px;
        font-size: 13px;
    }

    .input-field {
        padding: 0 0.3125rem;
        margin: 1rem 0;
    }

    .input-box header {
        font-size: 22px;
    }
}

/* Para orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .side-image {
        height: 100vh;
        width: 45vw; /* Ancho para modo horizontal */
        float: left;
    }
    
    .row {
        flex-direction: row; /* Cambiamos a dirección horizontal */
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .right {
        width: 55vw;
        float: right;
        margin-top: 0;
        height: 100vh;
        border-radius: 0;
    }
    
    .video-background {
        width: 45vw !important;
        height: 100vh !important;
    }
}

/* Ajustes específicos para dispositivos muy pequeños */
@media (max-width: 320px) {
    .input-box {
        padding: 0 0.5rem;
        width: 95%; /* Aún más ancho en pantallas muy pequeñas */
    }

    .input-field {
        margin: 0.8rem 0;
    }

    .input {
        height: 38px;
    }

    .text p {
        font-size: 16px;
    }

    .input-box header {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .right {
        width: 96%; /* Máximo ancho para pantallas muy pequeñas */
    }
}

/* Aseguramos que todo se extiende completamente en dispositivos iOS */
@supports (-webkit-touch-callout: none) {
    .side-image, .video-background {
        width: 100vw !important;
    }
    
    .wrapper, .row, .body {
        width: 100vw;
        max-width: 100vw;
    }
}



/* Media queries mejoradas para orientación horizontal en móviles */
@media (orientation: landscape) and (max-height: 500px) {
    .wrapper {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        padding: 0;
    }
    
    .main {
        padding: 0;
        height: 100vh;
    }
    
    .row {
        flex-direction: row;
        height: 100vh;
        width: 100vw;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }
    
    .side-image {
        width: 40vw;
        height: 100vh;
        min-height: unset;
        float: left;
        margin-left: 0;
        border-radius: 0;
    }
    
    .video-background {
        width: 40vw !important;
        height: 100vh !important;
        border-radius: 0;
        object-fit: cover !important;
    }
    
    .right {
        width: 60vw;
        float: right;
        height: 100vh;
        margin-top: 0;
        margin-bottom: 0 !important;
        border-radius: 0;
        box-shadow: none;
        padding: 1rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .input-box {
        width: 85%;
        max-width: 380px;
        margin: 0 auto;
        padding: 0;
    }
    
    .input-box header {
        font-size: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .input-field {
        margin: 0.8rem 0;
    }
    
    .input {
        height: 40px;
    }
}

/* Dispositivos más pequeños en landscape (iPhone SE/Mini) */
@media (orientation: landscape) and (max-height: 400px) {
    .side-image {
        width: 35vw;
    }
    
    .video-background {
        width: 35vw !important;
    }
    
    .right {
        width: 65vw;
    }
    
    .input-box header {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .input-field {
        margin: 0.6rem 0;
    }
    
    .input {
        height: 36px;
    }
    
    .input::placeholder {
        font-size: 12px;
    }
}

/* iPhone X/11/12/13 en landscape */
@media (orientation: landscape) and (min-height: 360px) and (max-height: 430px) and (min-width: 800px) {
    .input-box {
        max-width: 400px;
    }
    
    .input-box header {
        font-size: 19px !important;
    }
    
    .input-field {
        margin: 0.7rem 0;
    }
    
    .input {
        height: 38px;
    }
}

/* Galaxy S series en landscape */
@media (orientation: landscape) and (min-height: 340px) and (max-height: 380px) and (min-width: 740px) and (max-width: 820px) {
    .side-image {
        width: 38vw;
    }
    
    .video-background {
        width: 38vw !important;
    }
    
    .right {
        width: 62vw;
    }
    
    .input-box {
        max-width: 350px;
    }
}

/* Para dispositivos plegables en modo desplegado (como Samsung Z Fold) */
@media (orientation: landscape) and (min-height: 500px) and (min-width: 900px) and (max-width: 1280px) {
    .row {
        flex-direction: row;
        height: 100vh;
    }
    
    .side-image {
        width: 45vw;
        height: 100vh;
    }
    
    .video-background {
        width: 45vw !important;
    }
    
    .right {
        width: 55vw;
        height: 100vh;
    }
    
    .input-box {
        max-width: 450px;
    }
    
    .input-box header {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }
    
    .input-field {
        margin: 1rem 0;
    }
    
    .input {
        height: 42px;
    }
}

/* Dispositivos ultra pequeños en landscape (antiguos o de gama baja) */
@media (orientation: landscape) and (max-height: 320px) {
    .side-image {
        width: 30vw;
    }
    
    .video-background {
        width: 30vw !important;
    }
    
    .right {
        width: 70vw;
    }
    
    .input-box {
        width: 90%;
        max-width: 300px;
    }
    
    .input-box header {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }
    
    .input-field {
        margin: 0.5rem 0;
        padding: 0 0.25rem;
    }
    
    .input {
        height: 32px;
        padding-left: 20px;
    }
    
    .input-field .input-icon {
        left: 8px;
        bottom: 6px;
    }
}

/* Ajuste específico para tablets pequeñas en landscape */
@media (orientation: landscape) and (min-height: 500px) and (max-height: 600px) {
    .side-image {
        width: 42vw;
    }
    
    .video-background {
        width: 42vw !important;
    }
    
    .right {
        width: 58vw;
    }
    
    .input-box {
        max-width: 420px;
    }
}

/* Asegurando compatibilidad con iOS en modo landscape */
@supports (-webkit-touch-callout: none) and (orientation: landscape) {
    .wrapper, .main, .row {
        height: -webkit-fill-available;
    }
    
    .side-image, .right {
        height: -webkit-fill-available;
    }
    
    .video-background {
        height: -webkit-fill-available !important;
    }
}



/* buton summit para el formulario login*/
.submit {
    border: none;
    outline: none;
    height: 45px;
    text-align: center;
    background: linear-gradient(to bottom, #014dab 25%, #002b5f 75%);
    color: #fff;
    border-radius: 8px;
    transition: .4s;
    width: 100%;
    cursor: pointer;
    font-weight: 300;
    margin-top: 20px;
}

.submit:hover {
    box-shadow: 0 3px 10px lightgray;
}



.signin {
    text-align: center;
    font-size: small;
    margin-top: 25px;
}

span a {
    text-decoration: none;
    font-weight: 700;
    margin-top: 6px;
    color: #00267f;
    transition: .5s;
}

span a:hover {
    text-decoration: underline;
    color: #00267f;
}

/* Estilos actualizados para el botón de Google */
.google-btn {

    align-items: center;
    justify-content: center;
    background-color: white;
    color: #444;
    border: 1px solid #cec1c1;
    border-radius: 8px;
    height: 45px;
    width: 100%;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    margin-top: 30px;
    transition: .4s;
    max-width: 400px;
}

.google-btn:hover {
    background-color: #f1f1f1;
    box-shadow: 0 3px 10px lightgray;
}

.google-btn i {
    margin-right: 10px;
    color: #0652ce;
}

/* Media queries para hacer responsive el botón de Google */
@media only screen and (max-width: 768px) {
    .google-btn {
        font-size: 14px;
        height: 45px;
    }
}

@media only screen and (max-width: 450px) {
    .google-btn {
        font-size: 13px;
        height: 40px;
    }

    .google-btn i {
        margin-right: 8px;
    }
}

@media only screen and (max-width: 320px) {
    .google-btn {
        font-size: 12px;
        height: 38px;
    }
}







/* Estilos para la selección de colegio */
#alerts-container {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.colegio-list-container {
    width: 100%;
    max-width: 100%;
    margin: 15px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.colegio-subtitle {
    font-size: 14px;
    color: #111111;
    margin-bottom: 20px;
    text-align: center;
}

.colegios-list {
    max-height: 360px;
    max-width: 390px;
    overflow-y: auto;
    border-radius: 8px;
    background: white;
    padding: 6px;
    margin: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.colegio-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    background-color: #f3f1f1;
    color: #3c4043;
    width: 100%;
}

.colegio-item:hover {
    background-color: #ececec;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.colegio-item:active,
.colegio-item-active {
    background-color: #e8f0fe;
    border-color: #d2e3fc;
    transition: background-color 0.15s ease;
}

/* Ajuste para la insignia sin el contenedor colegio-logo */
.colegio-insignia-direct {
    width: 60px;
    height: auto;
    margin-right: 2px;
    margin-left: -12px;
    object-fit: contain;
}


/* Ajustar el contenedor para el nuevo formato de nombres */
.colegio-name-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 8px;
    flex: 1;
    min-width: 0; 
}

/* Estilos adicionales para el formato de prefijo con ciudad */
.colegio-prefix {
    display: block;
    font-size: 1.05em;
    color: #00267f;
    font-weight: 400;
    margin-bottom: 2px;
    line-height: 1.2;
  }

.colegio-name {
    display: block;
    font-size: 0.95em;
    color: #3c4043;
    font-weight: 400;
    line-height: 1.2;
}



.colegio-item {
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}


/* Estilo para el indicador de carga */
.loading-indicator {
    margin-left: 10px;
    animation: fadeIn 0.3s ease-in;
}

/* Estilo para la barra de desplazamiento */
.colegios-list::-webkit-scrollbar {
    width: 6px;
}

.colegios-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.colegios-list::-webkit-scrollbar-thumb {
    background: #9d9d9e;
    border-radius: 10px;
}

.colegios-list::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .colegios-list {
        max-height: 350px;
        width: 100%;
    }

    .colegio-item {
        padding: 12px;
    }

    .colegio-prefix {
        font-size: 12px;
    }

    .colegio-name {
        font-size: 13px;
    }

    .colegio-insignia-direct {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .colegios-list {
        background-color: #ffffff;
        border-radius: 6px;
        max-height: 300px;
        padding: 10px;
        width: 100%;
    }

    .colegio-item {
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .colegio-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .colegio-insignia-direct {
        width: 50px;
    }

    .colegio-prefix {
        font-size: 11px;
    }

    .colegio-name {
        font-size: 12px;
    }
}

@media (min-width: 992px) {
    .colegio-list-container {
        max-width: 850px;
    }

    .colegios-list {
        width: 480px;
    }
}

@media (min-width: 1200px) {
    .colegio-list-container {
        max-width: 850px;
    }

    .colegios-list {
        width: 620px;
    }
}









/* Estilos para la página de verificación de código */
.verification-info {
    background-color: rgba(0, 38, 127, 0.1);
    border-left: 5px solid #00267f;
    padding: 15px 15px 15px 45px;
    border-radius: 7px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.verification-info i.fa-info-circle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #c93421;
    height: auto;
}





/* Para la lista en los requisitos de contraseña */
.verification-info ul {
    margin-top: 10px;
    padding-left: 20px;
    width: 100%;
}

.verification-info ul li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.verification-info ul li i {
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}


.verification-info h5 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Adaptaciones para diferentes tamaños de pantalla */
@media only screen and (max-width: 768px) {
    .verification-info {
        padding: 12px 12px 12px 40px;
        font-size: 13px;
    }

    .verification-info i.fa-info-circle {
        font-size: 18px;
        left: 12px;
    }

    .verification-info ul {
        padding-left: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .verification-info {
        padding: 10px 10px 10px 35px;
        font-size: 12px;
    }

    .verification-info i.fa-info-circle {
        font-size: 16px;
        left: 10px;
    }

    .verification-info ul {
        padding-left: 10px;
    }

    .verification-info ul li i {
        margin-right: 6px;
    }
}

.code-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 25px 0;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.code-input {
    width: 100%;
    min-width: 35px;
    height: 45px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    outline: none;
    color: #00267f;
    padding: 0;
}

.code-input:focus {
    border-color: #00267f;
    box-shadow: 0 0 5px rgba(0, 38, 127, 0.2);
}

/* Media queries para ajustar el tamaño en diferentes dispositivos */
@media only screen and (max-width: 768px) {
    .code-container {
        gap: 6px;
        max-width: 300px;
    }

    .code-input {
        height: 40px;
        font-size: 18px;
    }
}

@media only screen and (max-width: 480px) {
    .code-container {
        gap: 4px;
        max-width: 270px;
    }

    .code-input {
        height: 38px;
        font-size: 16px;
        min-width: 30px;
    }
}

@media only screen and (max-width: 350px) {
    .code-container {
        gap: 3px;
        max-width: 240px;
    }

    .code-input {
        height: 35px;
        font-size: 14px;
        min-width: 28px;
    }
}

.timer {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.timer span {
    font-weight: 600;
    color: #cf1104;
}

/* Estilos para la página de nueva contraseña */
.password-requirements {
    background-color: rgba(0, 38, 127, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.password-requirements h5 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.password-requirements ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}


.password-requirements li i {
    margin-right: 8px;
    font-size: 12px;
}

.password-requirements li i.fa-times {
    color: #dc3545;
}

.password-requirements li i.fa-check {
    color: #28a745;
}

.password-requirements li.valid {
    color: #28a745;
}

.submit:disabled {
    background-color: #b9c2d8;
    cursor: not-allowed;
}

.submit:disabled:hover {
    background-color: #b9c2d8;
    box-shadow: none;
}

/* Ajustes responsive para los nuevos elementos */
@media only screen and (max-width: 768px) {
    .code-container {
        justify-content: center;
    }

    .code-input {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .password-requirements {
        padding: 10px;
    }

    .password-requirements h5 {
        font-size: 13px;
    }

    .password-requirements li {
        font-size: 12px;
    }
}

@media only screen and (max-width: 450px) {
    .code-input {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

.icons8-google {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url('../../../public/images/icons8-google.svg');
    background-size: contain;
    vertical-align: middle;
    margin-right: 10px;
}

/* Footer moderno con espaciado personalizable */
.footer_ant {
    text-align: center;
    position: relative;
    font-size: 11px;
    color: #666;
    font-family: sans-serif;
    width: 100%;
    height:  0%;
    padding: 10px 17px;
    box-sizing: border-box;
    background: #ececec;
    z-index: 1000;

    --footer-paragraph-spacing: 65px;
    --footer-column-spacing: 460px;
}

.footer {
text-align: center;
  position: fixed; /* Cambia position: relative a fixed */
  bottom: 0; /* Fija el footer en la parte inferior de la ventana */
  left: 0; /* Asegura que esté alineado a la izquierda */
  font-size: 11px;
  color: #666;
  font-family: sans-serif;
  width: 100%;
  height: 5%; /* Esto puede ser problemático en pantallas pequeñas, considera usar un valor fijo como 60px */
  padding: 10px 17px;
  box-sizing: border-box;
  background: #ececec;
  z-index: 1000; /* Asegura que el footer esté encima de otros elementos */
  --footer-paragraph-spacing: 65px;
  --footer-column-spacing: 460px;
	
 }

.footer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap: var(--footer-column-spacing);
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--footer-paragraph-spacing);
}

.footer p {
    margin: 0;
    line-height: 1.5;
}


.footer p+p {
    margin-top: var(--footer-paragraph-spacing);
}


@media only screen and (max-width: 768px) {
    .footer {
        font-size: 11px;
        padding: 6px 10px;
        --footer-column-spacing: 20px;
    }
}

@media only screen and (max-width: 480px) {
    .footer {
        font-size: 10px;
        padding: 5px 8px;
        --footer-paragraph-spacing: 6px;
    }

    .footer p {
        line-height: 1;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-column {
        width: 100%;
        text-align: center;

    }
}

@media only screen and (max-width: 320px) {
    .footer {
        position: static;
        margin-top: 10px;
        font-size: 9px;
        --footer-paragraph-spacing: 4px;
    }
}


/* Estilos para alertas personalizadas y fijo */
.custom-alert {
    display: none;
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out forwards;
    transition: all 0.3s ease;
    position: relative;
}

.custom-alert-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.custom-alert-error,
.custom-alert-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.custom-alert-icon {
    margin-right: 10px;
    font-size: 16px;
    vertical-align: middle;
}

.custom-alert-content {
    display: flex;
    align-items: center;
}

.custom-alert-message {
    flex-grow: 1;
}

.custom-alert {
    position: relative;
  }
  
  .custom-alert-close {
    position: absolute;
    top: 15%;
    transform: translateY(-50%);
    right: -1px;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: background-color 0.2s;
  }
  
  .custom-alert-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


/* Media queries para responsividad */
@media only screen and (max-width: 768px) {
    .custom-alert {
        padding: 10px 12px;
        font-size: 13px;
    }

    .custom-alert-icon {
        font-size: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .custom-alert {
        padding: 8px 10px;
        font-size: 12px;
    }

    .custom-alert-icon {
        font-size: 14px;
    }
}



/* Estilos para la validación de RUT */
.validation-feedback {
    display: none;
    margin-top: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 10px;
    line-height: 10px;
}

.validation-icon {
    margin-right: 5px;
}

.input-field .input.valid-rut {
    border-bottom: 2px solid #28a745 !important;
}

.input-field .input.invalid-rut {
    border-bottom: 2px solid #dc3545 !important;
}

/* Estilo para el estado de foco cuando el RUT es válido */
.input-field .input.valid-rut:focus {
    border-bottom: 2px solid #28a745 !important;
    box-shadow: 0 1px 0 0 #28a745 !important;
}

/* Estilo para el estado de foco cuando el RUT es inválido */
.input-field .input.invalid-rut:focus {
    border-bottom: 2px solid #dc3545 !important;
    box-shadow: 0 1px 0 0 #dc3545 !important;
}


@media only screen and (max-width: 768px) {
    .validation-feedback {
        font-size: 11px;
    }
}

@media only screen and (max-width: 450px) {
    .validation-feedback {
        font-size: 10px;
    }
}


/* Estilos para el contenedor de alertas fijo */
.fixed-alert-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    z-index: 999;
}

.custom-alert {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Para evitar que la alerta cause desbordamiento */
.custom-alert-message {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Ajustar la lista de colegios para que no se superponga con la alerta */
.colegio-list-container {
    position: relative;
    z-index: 1;
    margin-top: 5px;
}

/* Para responsividad en móviles */
@media (max-width: 768px) {
    .fixed-alert-container {
        padding: 0 10px;
    }
}

/*para el logo de amriste en la pagina de google*/
.google-login-branding {
    position: relative;
}

.google-login-branding::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    background-image: url('https://www.portal.maristas.cl/public/img/favicon/android-icon-96x96.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
}


/* =======================  

FOOTER APPS

 ======================= */

.footer-apps {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  text-align: center;
  flex-wrap: wrap; /* Si quieres que sea responsivo */ 
  margin-bottom: 20px;
  padding-bottom: 10% !important;
}

.footer-col {
  flex: 0 0 auto; /* No crece ni se reduce automáticamente */
}

.app-icon {
  width: 50px;
  height: auto;
}

.footer-col p {
  margin: 0;
  font-size: 14px;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
}

.store-img {
  height: 40px;
}


.footer-img {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
} 

.mimaristaicon{
	width: 50px !important;
}

.bloque_normal{
	display: block;
 }

.bloque1080{
	display: none;
}


.footer-apps-mobile{
	display: none;
}


.footer-apps-mobilv2{
	display: none;
}




@media (max-width: 1080px) and (min-width: 769px) {
  .footer-apps {
    margin-top: -150px;
  }
	
 .bloque1080{
	display: block;
  }
	
  .bloque_normal{
	display: none;
  }
}
	
 @media (max-width: 800px) and (min-width: 359px) {
  .footer-apps {
    margin-top: 0px;
  }
}
	
@media (max-width: 1080px) and (orientation: portrait) {
  /* Para pantallas verticales (ej: móviles o tablets en vertical) */
  .footer-apps {
    display: flex;
  }
	
 .footer-apps-mobile  {
	display: none;
 }
}

@media (max-width: 1080px) and (orientation: landscape) {
  /* Para pantallas horizontales (ej: tablets en horizontal o laptops pequeñas) */
  .footer-apps {
     display: flex; 
	  margin-top: 50px !important;
  }
	
 .footer-apps-mobile{
	display: none; 
  }
	/*
 .footer-apps-mobile{
	display: flex;
    margin-top: 50px !important;
  }
	
  .footer-apps-mobile  .store-img {
	  height: 28px !important;
   }
	
   .footer-apps-mobile  .mimaristaicon{
	width: 35px !important;
	}
	*/
}


@media (max-width: 799px) {
	
 
	 
	.footer-apps {
	 display: none;
	}

    .right
	{
		border-radius: 0 !important;
	}
	 
	.footer-apps-mobilv2 {
	  display: flex;
	  justify-content: space-around; /* o space-between si prefieres separación sin márgenes */
	  align-items: center;
	  flex-wrap: wrap; 
	  position:relative;  
      padding-top: 40px;
	  margin-bottom: -100px !important;
	}

	.footer-apps-mobilv2_item {
	  flex: 1 1 30%; /* Ocupa un tercio del ancho, con flexibilidad */
	  text-align: center;
	  padding: 5px;
	}

	.footer-apps-mobilv2_item img { 
	  width: auto;
	  max-width: 100%; /* Por si acaso en pantallas pequeñas */
	  position: relative !important;
	}

	
}
 
