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

#informacion {
    display: flex;
    justify-content: space-around;

}

/*Información del instituto*/


#informacion-titulo {
    font-family: Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#informacion-titulo h1 {
    font-size: 35px;
}

#informacion-titulo h2 {
    font-size: 25px;
}

#informacion-titulo p {
    font-size: 18px;
}

.profile-picture {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 65%;
    gap: 30px;
}

#img1, #img2{
        transition: transform 0.3s ease;

}

#infoInstitucional,
#infoAcademica {
    text-align: left;
}

.toggle {
    cursor: pointer;
    color: green;
    display: inline-block;
    transition: transform 0.5s;
}

.toggle:hover {
    transform: scale(1.8);
}

.bloque {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.bloque img:hover {
    transform: scale(1.1);
}

.bloque p {
    align-self: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-picture h1,
.profile-picture h3 {
    text-align: center;
}


/*Información del instituto*/


/* Cotizaciones */


#cotizacion_en_vivo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    padding: 20px;
    scroll-margin-top: 80px;
    width: 50%;
}

#titulo_cotizacion {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #titulo_cotizacion {
        text-align: center;
        justify-self: center;
    }
}

.div1 {
    color: white;
}


.cotizacion {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    min-height: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.par {
    font-weight: bold;
}

.valor {
    font-size: 18px;
    margin-top: 5px;
}



#compra-venta {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#compra-venta>div {
    text-align: center;
}

.logo-cotizacion i {
    border-radius: 50%;
    font-size: 2rem;
}

.logo-cotizacion-img {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    #cotizacion_en_vivo {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    #cotizacion_en_vivo {
        display: block;
        max-width: 100%;
        padding: 10px;
    }

    .cotizacion {
        min-width: 0;
        width: 100%;
        margin-bottom: 16px;
    }
}

.ultima-actualizacion {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #888;
    text-align: right;
}

@media (max-width: 768px) {
    .ultima-actualizacion {
        text-align: left;
    }
}

.fecha-actualizacion {
    font-weight: bold;
    color: #444;
}



/* Noticias */

#noticias {
    width: 50%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    scroll-margin-top: 80px;
}

#titulo_noticias {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.carrusel_noticia {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll 12s linear infinite;
    max-width: 1200px;
    padding: 20px;  
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


.noticia {
    min-width: 300px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin: 0 0;
    min-height: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.noticia:hover {
    transform: translateX(5px);
}

.img_noticia {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 10px auto;
    display: block;
    border-radius: 8px;
}

.fecha_noticia {
    order: -1;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.titulo_noticia {
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
}

.cabecera {
    width: 100%;
    height: 350px;
    color: #fff;
}

#contenedor {
    display: grid;
    grid-row: 50%;
    background-color: white;
    box-shadow: 10px 0px 0px 10px rgba(0, 0, 0, 0.7);
    top: 410px;
}

#contenedor_menu {
    display: flex;
    justify-content: space-between;
    height: 40px;
}

#banner {
    background-image: url('../img/1000325368.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 350px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


#seccion_banner {
    scroll-margin-top: 60px;
}

#seccion_institucional {
    scroll-margin-top: 80px;
}

#seccion_cotizacion_noticias {
    scroll-margin-top: 80px;
}


.div3 {
    align-items: center;
}


body {
    border: 0;
    padding: 0;
    margin: 0;

}

.nav_contenedor {
    background-color: #333;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 60px;
    z-index: 200;
}

.principal {
    background-color: lightblue;
}

.pie {
    background-color: yellow;
}


.nav_logo {
    width: 80px;
    height: 80px;
    z-index: 100;
    margin: 10px 0 0 10px;
}

.nav_icono {
    width: 40px;
}

.nav_links {
    background-color: rgba(0, 0, 0, 0.849);
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
}

.nav_links.active {
    right: 0;
}

.nav_hamburguesa,
.nav_cerrar {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.nav__icon {
    width: 30px;
    height: 30px;
}

#cerrar_menu {
    display: none;
}

.nav_links.active~#cerrar_menu {
    display: block;
}

.nav_links.active~#abrir_menu {
    display: none;
}

.nav_item {
    list-style: none;
    height: 40px;
}

.nav_link {
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.904);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav_link:hover {
    transform: scale(1.2);
}


hr {
    border: none;
    height: 3px;
    background-color: black;
    width: 100%;
    margin: 20px auto;
}

.div2 {
    text-align: center;
    color: rgba(255, 255, 255, 0.904);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 22px;
}

.div3 {
    text-align: center;
    margin-top: 15px;
    size: 40px;
}

#botoncito_info {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    background-color: #333;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

#botoncito_info:hover {
    transform: scale(1.2);
}
#boton_noticia {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    background-color: #333;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    cursor: pointer;
}

#boton_noticia:active {
    background-color: #222;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transform: scale(0.98);
}

#boton_noticia:hover {
    background-color: #222;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.50);
    transform: scale(0.92);
}



@media (min-width:768px) {
    .nav {
        --state-hamburguesa: scale(0);
        --state-menu: translate(0);
    }

    .nav:target {
        --state-cerrar: scale(0);
    }

    .nav_links {
        position: static;
        background-color: transparent;
        grid-auto-flow: column;
        transform: none;
        visibility: visible;
        opacity: 1;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0;
        margin-top: 20px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        padding-right: 380px;
        height: 40px;
    }

    .nav__link {
        font-size: 1rem;
        letter-spacing: normal;
    }

    .nav_hamburguesa,
    .nav_cerrar {
        display: none !important;
    }

    .nav_logo {
        width: 115px;
        height: 115px;
        z-index: 100;
        margin: 10px 0 0 10px;
    }
}

@media (max-width: 768px) {
    #informacion {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}


@media (max-width: 768px) {

    .profile-picture {
        flex-direction: column;
        align-items: center;
    }

    #informacion-titulo h1 {
        font-size: 25px;
        margin: 20px;
    }

    #informacion-titulo h2 {
        font-size: 20px;
    }

    .profile-picture img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {

    #cotizaciones {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    #informacion {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }


    .carrusel_noticia {
        flex-direction: column;
        width: 100%;
        animation: none;
        gap: 10px;
    }


    #cotizacion_en_vivo,
    #noticias {
        width: 100%;
        padding: 10px;
    }

    .carrusel_noticia {
        flex-direction: column;
        width: 100%;
        animation: none;
        gap: 10px;
    }

    #cotizacion_en_vivo {
        margin-bottom: 20px;
    }

    .noticia {
        min-width: unset;
        width: 100%;
    }

    .img_noticia {
        max-width: 100%;
    }
}


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#contacto {
    width: 100%;
    max-width: 1180px;
    margin: 40px auto 24px auto;
    padding: 0 20px;
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;

}

.contacto-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.contacto-info,
.form-box {
    flex: 1;
    min-width: 300px;
}

.contacto-info {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 18px;
    color: #000;
    margin-top: 8px;
}

.contacto-info a {
    color: #000000;
    text-decoration: none;
    transition: color .15s ease;
}

.contacto-info a:hover,
.contacto-info a:focus {
    color: #6b6b6b;
    text-decoration: underline;
}

.form-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 12px;
    max-width: 760px;
}

/* Inputs */
.form-box form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.form-box label {
    font-size: .95rem;
    color: #333;
}

.form-box input[type="text"],
.form-box input[type="email"],
.form-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.form-box textarea {
    min-height: 110px;
    resize: vertical;
}

/* Contenedor de botones */
.form-box form>div {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

/* Botones chicos con estilo pastilla oscuro */
.form-box button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: #3a3a3a;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.form-box button:hover {
    background: #2f2f2f;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.26);
}

.form-box button:active {
    transform: translateY(1px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.form-box button[type="reset"] {
    background: #4a4a4a;
}

.form-box button[type="reset"]:hover {
    background: #3e3e3e;
}



.form-box a:hover,
.form-box a:focus {
    color: #6b6b6b;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    #contacto {
        padding: 0 16px;
        margin: 28px auto 20px;
        max-width: 100%;
    }

    #contacto .contacto-flex {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-box {
        max-width: 100%;
    }

    .contacto-info,
    .form-box {
        margin-top: 0;
    }
}

footer {
    width: 100%;
    background: #222;
    color: #fff;
    padding: 16px 0 8px 0;
    margin-top: 32px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 20;
    font-size: 0.98rem;
}

footer div {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 8px;
}

footer h2 {
    margin: 0 0 6px 0;
    font-size: 0.7rem;
    color: #55e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nombres {
    margin: 0;
    font-size: 0.7rem;
    color: #ddd;
    line-height: 1.4;
}

.footer-copyright {
    margin: 10px 0 0 0;
    font-size: 0.7rem;
    color: #bbb;
}


@media (max-width: 600px) {
    footer {
        padding: 12px 0 6px 0;
        font-size: 0.93rem;
    }

    footer div {
        padding: 0 4px;
    }

    footer h2 {
        font-size: 1rem;
    }

    .footer-nombres {
        font-size: 0.88rem;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }
}

/* Mensaje de éxito */
.mensaje-enviado {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mapita {
    width: 100%;
    height: 20rem;
}