p {
    line-height: 25px;
}
.container-main {
    background-position: center bottom -35%; /* Mueve la imagen hacia abajo */
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 77vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #000000;
}

.background-animation {
    background-position: center bottom -5%!important; /* Mueve la imagen hacia abajo */
    position: absolute;

    left: 0;
    width: 100%;
    height: 70%;
    background-image: url("../img/portafolio.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: animate__backInUp 3s forwards; /* Animación para el fondo */
    
}

@keyframes animate__backInUp {
    0% {
        opacity: 0;
        transform: translateY(630px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#titulo_s1, #titulo_s2 {
    opacity: 0; /* Oculta el elemento inicialmente */
    animation: fadeIn 3s ease-in-out forwards;
    animation-delay: 3s!important; /* Retrasa la animación 3 segundos */
    
}

.container-main-two {
    background-color: #000000;
}

.img-fluid {
    width: 100%;
    height: auto;
}

.overlay-content {
    width: 100%;
    padding: 20px;
    /* Fondo semitransparente opcional */
    color: white;
    /* Color de texto */
    box-sizing: border-box;
    /* Asegura que el padding no desborde el contenedor */
}

.overlay-content h1 {
    text-align: justify;
    /* Justificar el texto */
}

.custom-text-style {
    text-align: justify;
    /* Justificar el texto */
    top: 30vh;
    /* Mover el texto hacia arriba */
    left: 50%;
    /* Centrar el texto horizontalmente */
    transform: translateX(-50%);
    /* Centrar el texto horizontalmente */
    width: 81.5%;
    /* Ancho del contenedor */
    font-size: 18px;
    /* Tamaño del texto por defecto */
    margin-top: -24px;
}
.roboto-thin {
    font-family: "Roboto", sans-serif;
    font-weight: 0;
    font-style: normal;
}
#titulo_s2 {
    font-size: 25.7px;
    /* Tamaño del texto */
    margin-top: 60px;
    /* Margen superior */
    margin-bottom: 10px;
    /* Margen inferior */
    text-align: left !important;
    /* Alineación del texto */
}

/* Media query para dispositivos móviles en resolución Mobil M (375px) */

/* Media query para dispositivos móviles en resolución Mobil L (425px) */

/* Media query para dispositivos con una anchura máxima de 768px (tabletas en orientación vertical y otros dispositivos móviles) */

/* Estilos del logo */
.logo-container {
    position: absolute;
    top: 12vh;
    margin-top: -27px;
    /* Ajusta el valor según lo necesario usando unidades relativas */
    left: 10.5vw;
    /* Ajusta el valor según lo necesario usando unidades relativas */
}

.logo {
    max-width: 200px;
    /* Tamaño máximo del logo para pantallas grandes */
    width: 100%;
    height: auto;
}

/* Media queries para ajustar el tamaño del logo en pantallas más pequeñas */

/* Media queries para ajustar la posición del logo en pantallas más pequeñas */

/* titulo2 */

/* Media query para ajustar el tamaño del título en dispositivos muy pequeños */

/* todo el contenido del boton*/

.button-container {
    display: flex;
    margin-left: -0px;
    margin-top: 43px;
    /* Ajusta el valor según sea necesario */
}

/* Estilos para el botón */
#icon-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

#icon-button img {
    width: 50%;
    /* Ajusta la imagen del botón al 100% del ancho del botón */
    height: auto;
    /* Altura automática */
}

.button-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#button-text {
    position: relative;
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
}

.button-container {
    position: relative;
    /* Necesario para posicionar el seudoelemento */
}

#button-text {
    position: relative;
    display: inline-block;
    /* Para que el hover funcione correctamente */
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.button-container:hover #button-text {
    opacity: 1;
    /* Cuando el mouse está encima, se vuelve visible */
    transform: translateY(-100%);
    /* Se mueve hacia arriba */
}

#button-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    /* Por defecto, la barra estará transparente */
    transition: background-color 0.3s ease;
}

.button-container:hover #button-text::after {
    background-color: rgb(194, 16, 16);
    /* Cambia el color de la línea al pasar el mouse */
}

#button-text:hover::after {
    background-color: transparent;
    /* Color de la línea cuando se pasa el ratón */
}

.containerre {
    max-width: 100%;
    /* Ajusta el ancho máximo del contenedor */
    width: 550px;
    /* Ancho del contenedor en tamaño predeterminado */
    /* Centra el contenedor horizontalmente */
}

/* Estilos del logo */
.logo-container {
    position: absolute;
    top: 12vh;
    /* Ajusta el valor según lo necesario usando unidades relativas */
    left: 10.5vw;
    /* Ajusta el valor según lo necesario usando unidades relativas */
}

.logo {
    max-width: 200px;
    /* Tamaño máximo del logo para pantallas grandes */
    width: 100%;
    height: auto;
}

/* Media queries para ajustar el tamaño del logo en pantallas más pequeñas */
@media (max-width: 768px) {


    #titulo_s1 {
        font-weight: bold;
        font-size: 35px !important;
        line-height: 2.7rem !important;
        margin-top: -35px!important;
    }
    #titulo_s2 {
        font-size: 18px !important;
    }
    #button-text {
        font-size: 14px;
    }
    .row-project {
        padding: 0px !important;
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}

/* Media queries para ajustar la posición del logo en pantallas más pequeñas */
@media (max-width: 320px) {
    .logo-container {
        top: 12%;
        /* Ajustamos la posición vertical del contenedor del logo */
        left: 11%;
        /* Ajustamos el tamaño máximo del logo */
    }
}

@media (max-width: 425px) {
    .logo-container {
        top: 12%;
        /* Ajustamos la posición vertical del contenedor del logo */
        left: 11%;
        /* Ajustamos el tamaño máximo del logo */
    }
}

/* titulos s1 */

/* Estilos base */

/* Estilos para todas las pantallas */

/* Estilos base para todas las pantallas */
#titulo_s1 {
    line-height: 3rem;
    font-size: 66px; /* Tamaño de fuente predeterminado */
    margin-top: -0px; /* Margen superior ajustado */
    margin-left: 0px; /* Margen izquierdo ajustado */
}

.my-custom-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-top: 100px!important;
    margin-bottom: -75px!important;
}

/* titulo s 2*/

/* Estilos para pantallas muy grandes (1200px o más) */

/*boton*/
.my-custom-nav {
    bottom: 360px !important; /* Ajusta el valor según lo necesario */
}

/*seccion 2*/

.photo-gallery {
    color: #313437;
    background-color: #fff;
}

.photo-gallery p {
    color: #7d8285;
}

.photo-gallery h2 {
    font-weight: bold;
    margin-bottom: 40px;
    padding-top: 40px;
    color: inherit;
}

@media (max-width: 767px) {
    .photo-gallery h2 {
        margin-bottom: 25px;
        padding-top: 25px;
        font-size: 24px;
    }
}

.photo-gallery .intro {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.photo-gallery .intro p {
    margin-bottom: 0;
}

.photo-gallery .photos {
    padding-bottom: 20px;
}

.photo-gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding-bottom: 30px;
}

.item {
    position: relative; /* Aseguramos que el ícono absoluto se posicione correctamente */
    display: inline-block; /* Para que el fondo desvanecido se ajuste al contenido */
}

.item .hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0; /* Inicialmente oculto */
    transition: opacity 0.3s ease; /* Transición suave */
    color: black; /* Color del ícono */
    font-size: 45px; /* Tamaño del ícono, ajusta según necesites */
}

.item:hover .hover-icon {
    opacity: 1; /* Mostrar el ícono cuando se hace hover en el item */
}

.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Fondo blanco desvanecido */
    opacity: 0; /* Inicialmente oculto */
    transition: opacity 0.3s ease; /* Transición suave */
}

.item:hover::before {
    opacity: 1; /* Mostrar el fondo desvanecido cuando se hace hover en el item */
}



@media (max-width: 1280px) {
    body, html {
        overflow-x: hidden; /* Evita el desplazamiento horizontal */
    }
    
    /* Asegúrate de que todos los elementos se ajusten dentro del viewport */
    .container {
        width: 100%;
        padding: 0 15px; /* Ajusta el padding según tus necesidades */
        box-sizing: border-box;
    }
    
    /* Otros ajustes específicos para asegurar que los elementos no se salgan del viewport */
    /* Por ejemplo, imágenes, tablas, etc. */
    img, table {
        max-width: 100%;
        height: auto;
    }
}


.button-container * {
    text-transform: uppercase!important;
}
