* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container-fotos {
    display: flex;

    flex-direction: column;
    width: 100%;
}

a {
    text-decoration: none;
}

.texto-foto {
    position: absolute;

    top: 0;
    left: 0;
    padding: 50px;
    width: 100%;

    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-height: 100%;
    overflow-y: hidden;
}

.texto-foto1 {
    position: absolute;

    top: 45px;
    left: 50px;


    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.texto-foto2 {
    position: absolute;
    top: 45px;
    left: 50px;


    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.texto-foto3 {
    position: absolute;
    top: 45px;
    left: 50px;


    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.texto-foto4 {
    position: absolute;
    top: 45px;
    left: 50px;


    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.texto-foto5 {
    position: absolute;
    top: 45px;
    left: 50px;


    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.texto-foto6 {
    position: absolute;
    top: 45px;
    left: 50px;

    opacity: 0;
    /* Oculto inicialmente */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.col-4:hover .texto-foto,
.col-4:hover .texto-foto1,
.col-4:hover .texto-foto2,
.col-4:hover .texto-foto3,
.col-4:hover .texto-foto4,
.col-4:hover .texto-foto5,
.col-4:hover .texto-foto6 {
    opacity: 1;
    /* Hacer visible */
    transform: translateY(0);
    /* Reposicionar al centro */
}

.titulo-contenedor {
    color: #FFF;
    font-family: Roboto;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

}

.descripcion-contenedor {
    color: #FFF;

    font-family: Roboto;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    opacity: 0.7453;

}

.fila {
    display: flex;
    /* justify-content: center; */
    position: relative;
    width: 100%;
    flex-wrap: wrap;
}

.fila a {
    width: 33.33%;

}

.container-slider .fila {

    flex-wrap: unset;

}

.container-slider .fila a {
    min-width: 33.33%;

}

/* .fila-dos {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
} */

.col-4 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;

}

/* Tamaño base (grande: 640px x 553px) */


.col-4 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    /* Inicialmente invisible */
    transition: background 0.4s ease;
    /* Transición suave del fondo */
}

.col-4:hover .overlay {
    background: rgba(0, 0, 0, 0.6);
    /* Fondo semitransparente cuando pasa el ratón */
}


/* .foto-1 {
    background-image: url('../imagenes/Doctora-01-Imagen-Cuadrada.jpg');
}

.foto-2 {
    background-image: url('../imagenes/Doctora-02-Imagen-Cuadrada.jpg');
}

.foto-3 {
    background-image: url('../imagenes/Doctora-03-Imagen-Cuadrada.jpg');
}

.foto-4 {
    background-image: url('../imagenes/Doctora-04-Imagen-Cuadrada.jpg');
}

.foto-5 {
    background-image: url('../imagenes/Doctor-05-Imagen-Cuadrada.jpg');
}

.foto-6 {
    background-image: url('../imagenes/Doctor-06-Imagen-Cuadrada.jpg');
} */

@media (max-width: 1444px) {
    
}

@media (max-width: 1024px) {

    .texto-foto{
        padding: 30px;
    }

}

/* Pantallas medianas (820px - 768px) */
@media (max-width: 820px) {
    .texto-foto2 {

        left: 20px;

    }

    .texto-foto1 {

        left: 20px;

    }

    .texto-foto3 {

        left: 20px;

    }

    .texto-foto4 {

        left: 20px;

    }

    .texto-foto5 {

        left: 20px;

    }

    .texto-foto6 {

        left: 20px;

    }

    .titulo-contenedor {

        font-size: 22px;
    }

    .descripcion-contenedor {

        font-size: 16px;

    }

}

@media (max-width: 680px) {
    .texto-foto {
        padding: 15px;
    }
    .titulo-contenedor {
        font-size: 20px;
    }
    .descripcion-contenedor {
        font-size: 14px;
    }
}
@media (max-width: 550px) {
    .fila a {
        width: 50%;
    }
    .texto-foto {
        padding: 25px;
    }
    .titulo-contenedor {
        font-size: 22px;
    }
    .descripcion-contenedor {
        font-size: 16px;
    }
}
/* Pantallas pequeñas (464px) */
@media (max-width: 430px) {

    .container-slider .fila {
        flex-direction: row;
        overflow-x: auto;
    }

    .container-slider .fila a {
        min-width: 50%;
    }

    .fila a {
        width: 50%;
    }

    .fila {


        align-items: center;
        /* Centra las columnas */
    }

    .container-fotos {


        flex-direction: row;

    }

    .fila-dos {
        flex-direction: column;
    }

    .titulo-contenedor {
        color: #FFF;

        font-family: Inter;
        font-size: 15px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;

    }

    .descripcion-contenedor {
        font-size: 13px;
    }

    .texto-foto2 {

        position: absolute;
        top: 42px;

        left: 10px;
        right: 60px;

    }

    .texto-foto1 {
        position: absolute;
        top: 42px;

        left: 10px;
        right: 60px;

    }

    .texto-foto3 {
        position: absolute;
        top: 42px;

        left: 10px;
        right: 60px;

    }

    .texto-foto4 {
        position: absolute;
        top: 42px;

        left: 10px;
        right: 40px;

    }

    .texto-foto5 {
        position: absolute;
        top: 42px;

        left: 10px;
        right: 40px;

    }

    .texto-foto6 {
        position: absolute;
        top: 42px;

        left: 10px;
        right: 60px;
    }
}

@media (max-width: 375px) {

    .container-slider .fila {
        flex-direction: row;
        overflow-x: auto;
    }

    .container-slider .fila a {
        min-width: 50%;
    }

    .fila a {
        width: 50%;
    }

    .fila {


        align-items: center;
        /* Centra las columnas */
    }

    .container-fotos {


        flex-direction: row;

    }

    .fila-dos {
        flex-direction: column;
    }

    .titulo-contenedor {
        color: #FFF;

        font-family: Inter;
        font-size: 15px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;

    }

    .texto-foto2 {

        position: absolute;
        top: 72px;

        left: 10px;
        right: 60px;

    }

    .texto-foto1 {
        position: absolute;
        top: 72px;

        left: 10px;
        right: 60px;

    }

    .texto-foto3 {
        position: absolute;
        top: 72px;

        left: 10px;
        right: 60px;

    }

    .texto-foto4 {
        position: absolute;
        top: 72px;

        left: 10px;
        right: 40px;

    }

    .texto-foto5 {
        position: absolute;
        top: 72px;

        left: 10px;
        right: 40px;

    }

    .texto-foto6 {
        position: absolute;
        top: 72px;

        left: 10px;
        right: 60px;
    }
}


/*  Estilo para pasar las imágenes   */


.flecha-izquierda {
    bottom:0;
    position: absolute;
    left: 0;
    z-index: 10;
    margin-left: 10px;
    cursor: pointer;
    padding: 30px 0px;
}

.flecha-derecha {
    bottom:0;
    
    position: absolute;
    right: 0;
    margin-right: 10px;
    cursor: pointer;
    padding: 30px 0px;
}
.flecha-izquierda  img, .flecha-derecha img {
    max-width: 100%;
}
.container-slider {
    position: relative;
}



@media(max-width:1024px) {
    .flecha-izquierda {
        width: 141px;
        left: 0;
    }

    .flecha-derecha {
        width: 141px;
        right: 0;

    }
}