@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

*{
    box-sizing: border-box;
}

body {
    display: grid;
    margin: 0;
    padding: 0;
    background-color: #FAFAFA; /* Color pastel para el fondo de la página */
    font-family: "Manrope", sans-serif;
    -webkit-text-size-adjust: 100%;
    width: 100%;
}

footer {
    margin: 0;
    padding: 0;
    z-index: 2;
    position: relative;
    text-align: center;
    background-color: rgb(96,86,161);
    color: #fff;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main{
    display: grid;
}

a{
    text-decoration: none;
}

h1,h2,h3{
    font-family: "Manrope";
    text-align: center;
}

/* Oculta las flechas de incremento y decremento en inputs de tipo "number" */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

/* .navbar {
    background-color: rgb(82,71,151); 
    padding: 10px;
    text-align: right;
    display: flex;
}
*/

.enlace-navbar{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 1.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: bold;
    letter-spacing: 0.1rem;
    text-decoration: none;
    background-image: linear-gradient(to right,
        #2EAB5E,
        #2EAB5E 50%,
            white 50%);
    background-size: 200% 100%;
    background-position: -100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.7s ease;
    gap: 0.25rem;
}

.enlace-navbar:hover {
    background-position: 0;
}

.enlace-navbar a:hover{
    background: white;
}

.navegacion-ubicacion{
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(82,71,151);
}

.navigation-enlace:hover{
    background: white;
}

.container-principal{
    padding: 0;
    margin: 30px auto;
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.border-line{
    margin: 0 20px;
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: center;
    border: 5px solid #5059bc;
    border-radius: 150px 20px 20px 150px;
    width: fit-content;
    height: fit-content;
}

.noticias-container{
    background: #5059bc;
    margin: 0;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.noticias-titulo{
    font-family: "Kanit", sans-serif;
    text-align: center;
    margin: 25px 0;
    color: #fff;
}

.noticias-flexibles{
    display: grid;
    grid-template-columns: 2fr 2fr;
}

.noticias-card-noticias{
    display: contents;
    margin: 50px;
    list-style: none;
    justify-content: center;
}

.enlace-noticia{
    text-decoration: none;
    display: grid;
    color: black;
}


.noticia-card{
    color: #000000;
    display: grid;
    background-color:#fff;
    margin: 10px 10px;
    border-radius: 20px 20px;
    justify-self: center;
    position: relative;
    margin-bottom: 20px;
}

.enlace-noticia:hover > *{
    color: #fff;
}

.noticia-imagen{
    display: block;
    justify-self: center;
    width: 100%;
    height: 100%;
    border-radius: 20px 20px;
    top: 0;
    left: 0;
}

.noticia-imagen-wrapper {
    position: relative;
    width: 325px;
    height: 300px;
    border-radius: 20px; /* Borde redondeado */
    overflow: hidden; /* Asegura que el pseudo-elemento no se salga del contenedor */
}

.noticia-imagen-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Sombra oscura */
    z-index: 1; /* Coloca la sombra sobre la imagen */
}

.noticia-titulo{
    font-family: "Kanit", sans-serif;
    text-align: center;
    margin: 10px 0;
    color: #fff;
    z-index: 2;
    position: absolute;
}


.noticia-subtitulo{
    margin: auto;
    font-family: "Manrope", sans-serif;
    text-align: center;
    font-size: medium;
    color: #31363F;
}

.noticia-resumen{
    font-family: "Manrope", sans-serif;
}

.noticia-titulo,
.noticia-subtitulo,
.noticia-resumen {
    min-height: 90px; /* Establece una altura máxima */
    overflow: hidden; /* Oculta el contenido que se desborde */
    height: 4rem;
    text-align: center;
    height: 100%;
    align-content: flex-end;
    margin: auto 20px 20px 20px;
}

.pie-noticia{
    align-content: end;
}

.fecha-publicacion{
    display: flex;
    align-items: center;
    position: absolute;
    color: #fff;
    z-index: 1;
    margin: 0 0 0 20px;
}

.emoji-reloj{
    font-size: large;
    margin: 0;
}

.fecha-noticia{
    margin: 0 0 0 5px;
    font-family: "Manrope", sans-serif;
}

nav {
    background: rgb(82,71,151);
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
}

.navigation {
    width: 14rem;
    display: flex;
    flex-direction: row;
    list-style-type: none;
    align-items: center;
    margin: 0;
    flex-wrap: wrap;
}

.navigation>li {
    position: relative;
    transition: all 0.5s ease;
    flex-grow: 1;
    user-select: none;
    height: 48px;
    align-content: center;
}

ul{
    list-style-type: none;
    padding: 0;
}

.navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.2rem 0.5rem;
    color: white;
    min-height: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
    text-decoration: none;
    background-image: linear-gradient(to right,
        #2EAB5E,
        #2EAB5E 50%,
            white 50%);
    background-size: 200% 100%;
    background-position: -100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.7s ease;
    gap: 0.25rem;
}

.navigation a:hover {
    background-position: 0;
}

.navigation li:hover {
    background: white;
}

.navigation>li:hover>a {
    background-position: 0;
}

.navigation>li>a>svg {
    width: 1rem;
    height: 1rem;
    transition: all 0.7s ease;
}

.navigation>li:hover>a>svg {
    stroke: #2EAB5E;
    transform: rotate(90deg);
}

.subnavigation__wrapper {
    overflow: hidden;
    max-height: 0;
    position: absolute;
    transition: max-height 0.3s ease-in-out;
    background-color: rgb(82,71,151);
    width: 100%;
}

.navigation>li:hover .subnavigation__wrapper {
    z-index: 90;
    max-height: 50rem;
    top: 48px;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.menu-mobile{
    display: none;
}

.grupo-enlaces{
    display: flex;
    align-items: center;
}

.enlaces-footer{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    color: white;
    min-height: 3rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
    text-decoration: none;
    background-image: linear-gradient(to right,
        #2EAB5E,
        #2EAB5E 50%,
            white 50%);
    background-size: 200% 100%;
    background-position: -100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.7s ease;
    gap: 0.25rem;
    margin: 0;
}

.enlaces-footer:hover{
    background-position: 0;
}

.cargando{
    background-color: #fff; 
    position: relative; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

.spinner-border{
    position: absolute;
    top: 50%;
    left: 49%;
    margin: 0 !important;
    color: #8a9a46;
}

.inicio-sesion{
    display: grid;
    justify-content: center;
}

#titulo-colegio{
    text-align: center;
    margin-top: 2rem;
}

.login-container {
    background: rgba(255, 255, 255, 0.8); /* Panel de vidrio semiopaco */
    border-radius: 10px; /* Bordes redondeados */
    max-width: 400px;
    margin: 50px auto; /* Centrado en la página */
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

.login-container h2 {
    text-align: center;
    font-family: "Kanit", sans-serif;
}

.error-message {
    color: #ff0000; /* Color rojo para el mensaje de error */
    width: 11rem;
    text-align: center;
    margin-bottom: 10px;
    margin: auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    margin-left: 10px;
    display: block;
    margin-bottom: 5px;
    transform: translateY(-25px);
    color: #888;
    transition: transform 0.3s, font-size 0.3s, color 0.3s;
}

.input-group input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    transform: translateY(0);
    font-size: 16px;
    color: #888; /* Color de resaltado cuando enfocado o con texto */
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: #b6e2d8; /* Color de resaltado cuando enfocado o con texto */
}

.fa{
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.input-group-addon{
    padding: .5rem .75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    color: #495057;
    text-align: center;
    background-color: #e9ecef;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .25rem;
}

.input-id{
    max-width: 380px;
    margin: 0 auto auto 0;
    display: inline-flex;
}

#show_hide_password{
    margin-bottom: 5px;
}

.button {
    background-color: #8a9a46;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover{
    background-color: #c8d29c;
    color: #000;
}

.centrado{
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 0;
}

.parrafo-separador{
    margin: 20px auto;
}

.btn-success{
    justify-self: center;
}

nav{
    font-family: "Manrope", sans-serif;
}

.imagen-colegio{
    width: 12rem;
    height: 12rem;
}

.imagen-credencial{
    width: 25rem;
    margin: 20px 20px;
    border-radius: 20px;
}


.redes-sociales{
    display: flex;
    align-items: center;
    margin: 0;
    padding-left: 20px;
}

.contacto-whatsapp {
    border: none; 
    background: none; 
    padding: 0; 
    cursor: pointer;
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 50;
}

.contacto-instagram{
    border: none; 
    background: none; 
    padding: 0; 
    cursor: pointer;
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 50;
}

.contacto-youtube{
    border: none; 
    background: none; 
    padding: 0; 
    cursor: pointer;
    position: fixed;
    bottom: 190px;
    right: 20px;
    z-index: 50;
}

.socials-wrapper {
	position: fixed;
    right: 80px;
    bottom: 150px;
    z-index: 50;
}

.socials-menu {
	opacity: 0;	
	transition: opacity 0.5s;
}

.active > .socials-menu {
	opacity: 1;	
}

.share-button {
	position: absolute;
	border: none;
	cursor: pointer;
	z-index: 2;
	transition: all 0.4s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	background-color: rgb(82,71,151);
	border-radius: 50%;
	outline: 3px solid rgb(82,71,151) !important;
	outline-offset: 3px;
}

.share-button img {
	height: 1.5rem;
	width: 1.5rem;
}

.active .share-button, .share-button:hover {
	background-color: #00C896;
	transform: scale(1.03);
}

.social {
    background: #2c2c2c;
	position: absolute;
	list-style: none;
	transition: all 0.5s ease-in-out;
	display: grid;
	cursor: pointer;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	outline: 2px solid rgb(82,71,151);
	outline-offset: 3px;
}

.social img {
	height: 1.5rem;
	width: 1.5rem;
	transition: all 0.3s;
}

.social a {
	display: grid;
	cursor: pointer;
	place-items: center;
}

.social:hover img {
    transform: scale(1.20);
}

.active .social:nth-child(1) {
	transform: translateY(-10rem);
    background: radial-gradient(
        circle at 30% 107%, #fdf497 0%, 
        #fdf497 5%, #fd5949 45%,
        #d6249f 60%,#285AEB 90%
    );
}


.active .social:nth-child(2) {
    background-color: #2EAB5E;
	transform: translateY(-5rem);
}

.active .social:nth-child(3) {
	transform: translateY(-15rem);
    background-color: #e52d27;
}

.active .social:nth-child(4) {
	transform: translateY(-20rem);
    background-color: #0866ff;
}

.mb-1{
    background: azure;
    border-radius: 10px;
    width: fit-content;
}

.btn-toggle-nav a{
    margin-left: 0;
}

.ps-0{
    margin-left: 10px;
    z-index: 50;
}

.page-link{
    border-radius: 10px;
}

.hamburger{
    display: none;
}

.boton-modificar{
    display: flex;
    justify-content: center;
}
.boton-eliminar{
    margin: 30px auto;
    width: min-content;
}

.centrar-titulo{
    text-align: center;
}

#boton-crear{
    display: block;
    margin: auto auto 40px;
}

.hamburger {
    cursor: pointer;
    align-self: center;
}

.hamburger svg {
    height: 2em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), 
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger.open svg {
    transform: rotate(-45deg);
}

.hamburger.open .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

.p-3{
    width: auto;
    justify-content: flex-start;
}

.form-check{
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.ocultar.ocultar{
    display: none;
}

.clean-matriculado{
    text-align: center;
    margin-bottom: 1rem;
}

.rotate-icon{
    cursor: pointer;
    color: rgb(82,71,151);
    transition: transform 0.6s ease-in-out;
}

.rotate-icon:hover{
    transform: rotate(360deg);
}

.formulario-busqueda{
    margin-bottom: 20px;
}

#buscar-factura{
    justify-self: center;
}

.container-filtros{
    display: flex;
    margin: auto;
}

.navegacion-modificar-factura{
    width: 100%;
}

.imagen-mantenimiento{
    width: 25rem;
    margin: auto;
}

.recordar-usuario-container{
    display: flex;
    justify-content: center;
}

.form-check-input{
    margin: auto 0.5rem auto;
}

.crear-cuenta{
    margin-top: 1rem;
}

.registro-matriculado{
    width: min-content;
    margin: auto;
}

#registrar-matriculado{
    margin-top: 2rem;
}

.container{
    text-align: center;
}

table {
    border-collapse: separate; /* Importante: separa los bordes */
    border-spacing: 0; /* Elimina el espacio entre celdas */
    border-radius: 10px; /* Esquinas redondeadas */
    overflow: hidden; /* Oculta los bordes que sobresalgan */
    border: 2px solid #333; /* Borde general */
}


td:first-child, th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

td:last-child, th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#img-qr-mp{
    border: 5px solid #5059bc;
    border-radius: 5%;
    padding: 10px;
}

#titulo-qr{
    display: block;
}

@media (max-width: 768px) {
    .footer{
        position: fixed;
    }

    .hamburger{
        display: block;
    }

    .menu-mobile{
        display: flex;
        max-height: 1.5rem;
    }

    #mi-formulario{
        display: grid;
        margin: auto;
    }

    .noticias-flexibles{
        grid-template-columns: 1fr;
    }

  }