:root {
    --fuenteHeading: 'Poppins', sans-serif;
    --fuenteParrafos: 'Poppins', sans-serif;

    --amarillo: #FFCC17;
    --azul-tarjeta: #0033C0;
    --verde: #29A71A;
    --rojo: #FF5959;
    --azul: #3ABEF9;
    --blanco: #ffffff;
    --negro: #000000;
    --naranja: #cf6d17;
    --gris: #ebebeb;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1 rem = 10px */
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
    overflow-x: hidden;
}

/** Globales **/
.contenedor {
    width: min(90%, 120rem);
    margin: 0 auto 3rem auto;
}

.fondo-gris {
    padding: 3rem;
    background-color: var(--gris);
    margin-bottom: 1rem;
}

.titulo-contenedor {
    text-align: center;
    color: #0047d4;
    /* Color azul fuerte similar al de la imagen */
}

.linea {
    font-size: 6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.medicina {
    background-color: #0047d4;
    color: white;
    font-size: 7rem;
    font-weight: 700;
    padding: 0 0.5em;
    border-radius: 1em;
    display: inline-block;
    margin: 0;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.4);
}
.titulo-amarillo{
    font-size: 6rem;
    color: var(--amarillo);
    line-height: 1.2rem ;
}

.texto-primeroslugares {
    font-size: 2.2rem;
    margin: 0 3rem;
    text-align: center;
}

.texto-izquierda{
    align-items: start;
    justify-content: left;
    text-align: left;
}

iframe {
    width: 40rem;
    height: 40rem;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fuenteHeading);
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
}

h5 {
    font-size: 2.4rem;
}

img {
    max-width: 100%;
}

ul {
    display: flex;
    flex-direction: row;

}

.barra {
    display: flex;
    justify-content: space-between;
    /* Logo a la izquierda, menú a la derecha */
    align-items: center;
    /* Centra verticalmente */
    padding: 10px 20px;
    /* Espaciado interno opcional */
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.navegacion {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
    /* Este elemento está detrás del elemento en primer plano */
    justify-content: center;

}


.navegacion__enlace {
    display: flex;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco);
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-exani {
    display: flex;
    width: 100%;
    height: 10rem;
    place-items: center;
    justify-content: space-around;
    position: relative;
}

.logo-exani {
    width: 180px;
    display: block;
}

.margen-derecho{
    padding-right: 3rem;
}

.espacio-derecho{
    margin-right: 3rem;
}

.columna-header {
    flex: 1;
    /* Cada columna toma el mismo ancho */
    margin: 0 10px;
    /* Espacio entre las columnas */
    background-color: lightgray;
    padding: 20px;
    text-align: center;
    align-items: center;
}

.contenedor-amarillo {
    width: 100%;
    height: 2rem;
    background-color: var(--amarillo);
    margin-top: 1rem;
}

.info-btn {
    width: 30rem;
    height: 6rem;
    background-color: var(--amarillo);
    color: var(--blanco);
    border-radius: 40px;
    border: 0;
    font-weight: 700;
}

.whatsapp-btn {
    width: 40rem;
    height: 8rem;
    font-size: 3rem;
    background-color: var(--verde);
    color: var(--blanco);
    border-radius: 40px;
    border: 0;
    font-weight: 700;
    align-items: center;
    align-content: center;
    justify-content: center;
    vertical-align: middle;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.6);;
}

.titulo-principal {
    margin: 0 0 0 1rem;
    padding: 4rem 0 0 0;
    color: var(--azul-tarjeta);
    text-align: center;

}

.espacio-medio{
    display: flex;
    justify-content: space-between;
}

.no-margin {
    margin: 0;
}

.titulo-principal h1 h2 {
    margin: 0 0 0 0;
}

.fila-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contenedor-izquierdo,
.contenedor-derecho {
    height: auto;
    /* Ajusta la altura según tus necesidades */
    display: flex;
    justify-content: center;
    font-size: 1.8rem;
    margin: 2rem;
}

.texto-centrado {
    text-align: center;
}

.padding-derecho {
    padding: 0 10rem 0 0;
    margin: 2rem 0;
    font-weight: 700;
    font-size: 2.8rem;
}

.padding-izquierdo {
    padding: 0 0 0 10rem;
    margin: 2rem 0;
    font-weight: 700;
    font-size: 2.8rem;
}

.contenedor-izquierdo p {
    font-size: 1.6rem;
    margin: 2rem 0;
}

.contenedor-izquierdo {
    width: 60%;
}

.contenedor-derecho {
    width: 40%;
    padding: 3rem;
    text-align: justify;
    align-items: center;
}


iframe {
    width: 50rem;
    height: 36rem;
}

.fila {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.fila_espaciada {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    width: 30rem;
}


.fila-reversa {
    flex-direction: row-reverse;
}


.columna {
    display: flex;
    flex-direction: column;
}

/*Landing Bañuelos*/



.tarjeta-datos {
    height: 36rem;
    width: 28rem;
    background-color: var(--blanco);
    border-radius: 3rem;
    margin: 1rem;
    padding: 2rem;
    font-size: 1.8rem;
    color: var(--negro);
    vertical-align: middle;
    display: inline;
    box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.6);
}

.img-primer-lugar {
    width: 30rem;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.poppins-bold {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-style: normal;
}


.titulos {
    text-align: left;
    margin: 0;
    justify-content: left;
    display: flex;
    flex-direction: column;
    font-size: 4.8rem;
    font-weight: 700;
}

.contenedor-izquierdo .titulos h2 h1 {
    text-align: left;
    align-items: center;
}

.contenedor-izquierdo p {
    text-align: justify;
    margin: 1rem 0;
}

.titulo1 {
    color: var(--negro);
    margin: 0;
    display: flex;
}

.titulo2 {
    color: var(--azul-tarjeta);
    margin: 0;
    padding: 0;
    display: flex;
    font-size: 6rem;
    line-height: 1.1;
}

.titulo3 {
    font-size: 4.8rem;
    font-weight: 700;
}

.titulo4 {
    color: var(--azul-tarjeta);
    margin: 0;
    font-size: 5rem;
    padding: 0;
    line-height: 1.1;
}

.titulo5{
    font-size: 15rem;
    margin:0;
}

.titulo6{
    font-size: 8rem;
    line-height: 1.1;
    margin: 0;
}

.titulo7{
    font-size: 10rem;
    line-height: 1.1;
    margin: 0;
}

.fondo-amarillo {
    background-color: var(--amarillo);
    font-size: 3rem;
    color: var(--blanco);
    display: flex;
    font-weight: 700;
    justify-content: center;
    align-items: center;
}
.fondo-negro {
    background-color: var(--negro);
    font-size: 3rem;
    color: var(--blanco);
    display: flex;
    font-weight: 700;
    justify-content: space-around;
    align-items: center;
}

.img-primeros-lugares {
    width: 50rem;
    margin: 3rem 0;
}

.margen-superior {
    margin-top: 3rem;
}

.margen-superior-tarjeta {
    margin-top: 4rem;
}

.margen-inferior-tarjeta {
    margin-bottom: 4rem;
}

.padding-inferior{
    padding-bottom: 4rem;
}

.container {
    position: relative;
    width: 560px;
    height: 400px;
    background-color: #d3d3d3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container iframe {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    /* iframe en frente */
}

.shape {
    position: absolute;
    background-color: var(--azul-tarjeta);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 1;
    /* Figuras detrás del iframe */
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid #ffcc00;
    z-index: 1;
    /* Figuras detrás del iframe */
}

.top-left {
    top: -20px;
    left: -50px;
}

.bottom-right {
    bottom: -20px;
    right: -40px;
}

.top-right {
    top: -40px;
    right: -40px;
    transform: rotate(50deg);
    /* Girar 45 grados */
}

.bottom-left {
    bottom: -50px;
    left: -90px;
    transform: rotate(-135deg);
    /* Girar -45 grados */
}

.elemento-centrado {
    display: flex;
    width: 100%;
    justify-content: center;
}

.menu-horizontal {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    margin: 0;
    gap: 30px;
    /* Espacio entre los enlaces */

}


.carousel-container {
    position: relative;
    width: 80%;
    margin: 20px auto;
    overflow: hidden;

}


.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-reducido{
    max-width: 40rem;
}


.botonera {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}



.fondo-azul {
    padding: 3rem 0 3rem 0;
    background-color: var(--azul);
}

.tarjeta-datos {
    align-content: center;
}

.cuadro-honor {
    display: grid;
    grid-template-columns: 60% 40%;
    /* Dos columnas de igual tamaño */
    grid-template-rows: auto auto;
    /* Dos filas automáticas */
}

.item {
    display: flex;
}

.item1 {
    grid-row: 1 / 2;
    width: 100%;
    margin: 2rem;
}

.item2 {
    grid-row: 2 / 3;
    width: 100%;
}

.item3 {
    grid-row: 1 / 3;
    width: 100%;
}

.contenedor-izquierdo img {
    display: flex;
    justify-content: center;
}



@media (max-width: 1022px) {
    .contenedor {
        flex-direction: column-reverse;
    }

    .container {
        width: 70%;
        height: 30vh;
    }

    .container iframe {
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 2;
        /* iframe en frente */
    }

    .contenedor-derecho {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .titulo-principal {
        padding: 0;
        margin: 0;
    }

    .info-btn {
        margin-bottom: 3rem;
    }

    #tarjetas {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        margin: 0;
        justify-items: center;
    }

    .tarjeta-datos {
        margin: 2rem;
        height: 34rem;
        width: 26rem;
    }

    .icono-tarjeta {
        width: 4rem;
        height: 4rem;
    }

    .contenedor-izquierdo {
        width: 100%;
        margin: 3rem;
    }

    .img-primer-lugar {
        width: 260px;
    }

    .img-primeros-lugares {
        margin-bottom: 0;
    }

    #fotos-primer-lugar {
        flex-direction: row;
    }

    .cuadro-honor {
        display: flex;
        flex-direction: column;
    }

    .cuadro-honor .item {
        margin: 0;
    }
}

@media (max-width: 766px) {
    .container {
        width: 90%;
        height: 24vh;
    }

    .padding-derecho,
    .padding-izquierdo {
        padding: 0;
        margin: 0;
    }

    #tarjetas {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    #fotos-primer-lugar {
        flex-direction: column;
    }
    .header-exani{
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 2rem 0;
    }
    .menu-horizontal{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin:3rem 0 0 0;
    }
    .fila{
        display: flex;
        flex-direction: column;
    }
    .medicina{
        font-size: 6rem;
    }
    .titulo2{
        font-size: 6rem;
        align-items: center;
    }
    .fondo-gris{
        padding: 0;
    }
    .fondo-negro{
        padding: 2rem;
        height: auto;
    }
    .titulo3{
        font-size: 5rem;
    }
    .whatsapp-btn{
        flex-direction: row;
        font-size: 2.6rem;
        max-width: 90%;
    }

    .fila #redes1{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        padding: 0;
    }
    .fondo-amarillo p{
        text-align: center;
    }
    .fondo-gris .texto-centrado{
        margin: 0;
    }
    .titulos{
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .margen-derecho{
        padding: 0;
        font-size: 7rem;
    }

    .titulo2{
        display: flex;

        font-size: 3rem;
        text-align: center;
        justify-content: center;
    }
    .titulo6{
        font-size: 4rem;
        text-align: center;
        justify-content: center;
    }
    .titulo4{
        font-size: 3rem;
    }

    .texto-izquierda{
    justify-content: center;
    text-align: center;
    align-items: center;
    }
    h1 .titulo2{
        font-size: 8rem;
    }

    p .texto-centrado{
        line-height: 1.1;
    }
    h3{
        margin: 0;
        padding: 1.6rem;
        min-height: auto;
        line-height: 2.8;
    }
    .titulo3{
        line-height: 1.1;
        padding-top: 3rem;
    }
}