* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f8f8f8;
    min-height: 100vh;
}

/* COMIENZA NAV */
/* NAVBAR BASE */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.6);
}

/* LOGO */
.navbar-left img {
    width: 45px;
    transition: 0.4s;
}

.navbar-left img:hover {
    transform: scale(1.1) rotate(10deg);
}

/* LINKS */
.navbar-botones {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar-botones li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px;
}

/* EFECTO SUBRAYADO */
.navbar-botones li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: red;
    left: 0;
    bottom: 0;
    transition: 0.3s;
}

.navbar-botones li a:hover::after {
    width: 100%;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .navbar-right {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: 0.4s ease;
    }

    .navbar-right.active {
        max-height: 300px;
    }

    .navbar-botones {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .navbar-botones li {
        margin: 10px 0;
    }
}
 /* TERMINA NAV */

/* COMIENZA SECTION PARA SEPARAR ENTRE PANTALLAS */
section {
    min-height: 100dvh; /* mínimo pantalla, pero puede crecer si hay más contenido */
    width: 100%;
}
/* TERMINA SECTION PARA SEPARAR ENTRE PANTALLAS */

/* COMIENZA MODALIDADES */
.section-modalidades {  
    display:flex;
    flex-wrap:wrap;
    text-align: center;
    justify-content: space-evenly;
    align-items: center;
}

.modalidad-card {
    background: #ffff;
    border-radius: 5%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    height: 70dvh;
    width: 32%;
    max-width: 500px;
    margin-top: 100px;
    transition: 1.1s;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    padding: 10px;
    overflow: hidden; /* para que no se salga del borde */
}

.modalidad-card img {
    width: 100%;
    height: 100%;
    display: block;
    flex-grow: 1; /* para que ocupe todo el espacio del container */
    border-radius: 0 0 5% 5%;
}

.modalidad-card h3 {
    font-size: 1.5rem;
    padding: 1rem 0;
    color: #333;
    text-align: center;
}


.modalidad-card:hover {
    transform: scale(1.05);
}
/* TERMINA MODALIDADES */
/* COMIENZA SECTIONS MODALIDADES */

.parrafojust{
text-indent: 20px;
    text-align: justify;
}
.section-informatica {
  margin-top: 60px;
  padding-top: 40px;
}

.section-informatica h2 {
  margin-bottom: 40px;
}

.modalidades h2{
    font-size: 2rem;
    margin: 5% 0 0 0;
    text-align: center;
    transition: 0.8s;
}
.modalidades h2:hover {
    transform: scale(1.1);
}

.modalidades h3 {
    font-size: 1.5rem;
    margin: 0.2rem 3rem;
}

.modalidades p {

    margin: 1rem 5rem;
    font-size: 1rem ;
}
.modalidades-cards h3 {
    text-align: center;
}

/* COMIENZA CARDS MODALIDADES */
.apartado-modalidades {
    display: flex;
    flex-wrap: wrap; /*  permite que bajen */
    justify-content: center; /* mejor centrado */
    gap: 70px; /* espacio prolijo */
}

.modalidades-cards {
    margin: 10px 0;
    background: #ffff;
    border-radius: 5%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    min-height: 50dvh;
    width: 30%;
    transition: 1.1s;
    display: flex;
    flex-direction: column;
    
}

.modalidades-cards span {
  margin-right: 5px;
  color: #b70100; /* color y distancia entre icono-texto */
}
/* TERMINA CARDS MODALIDADES */
/* TERMINA SECTIONS MODALIDADES */
/* FOOTER */

.footer{
    background: #1f1f1f;
    color: white;
    margin-top: 60px;
}

.footer-contenido{
    max-width: 1200px;
    margin: auto;
    display :grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); /* Genera columnas automáticas que se adaptan al ancho de la pantalla */
    gap: 40px;
    padding: 40px 20px;
}

.footer-col h3{
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col p{
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col ul{
    list-style: none;
    padding: 0;
}

.footer-col ul li{
    margin-bottom: 8px;
}
 
.footer-col ul li a{
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.footer-col ul li a:hover{
    color: #e10600;
}

.redes a{
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 6px;
}

.redes a:hover{
    color:#e10600;
}

.footer-bottom{
    text-align: center;
    padding: 15px;
    background: #111;
    font-size: 14px;
}

/* botones ocupan todo el ancho */

@media (max-width: 800px){

.section-modalidades{
    flex-direction: column;
    align-items: center;
}
/* cards una abajo de otra */

.modalidad-card{
    width: 90%;
}
/* ocupan casi todo el ancho */

.modalidades-cards{
    width: 90%;
}
/* materias más grandes y legibles */

.modalidades p{
    margin: 1rem 2rem;
}
/* menos margen para que entre mejor el texto */

}