* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /*Avoid flicker on slides transitions for mobile phones #336 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

img {
    height: auto;
    width: 100%;
}

.intro {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    /* <-- agrega esto */
}

.intro.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    pointer-events: none;
    z-index: -1;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    font-size: 18px;
    background: #8f1c1c;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.portfolio {
    text-align: center;
    display: none;
    height: 100vh;
}

.intro-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 0 450px 0 0px;
    box-sizing: border-box;
}

.intro-content button {
    position: fixed;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%);
    margin: 0;
    padding: 12px 32px;
    font-family: raleway;
    font-weight: bold;
    font-size: 20px;
    background: #28ebeb;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.intro-content button:hover {
    background: #28ebeb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.intro-content button,
.intro-content button:hover {
    position: fixed;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 70px;
}

nav {
    background-image: linear-gradient(128deg, #ff9a3f, #ff4b40);
}

nav a {
    color: rgb(0, 0, 0);
    padding: 18px;
    font-family: raleway;
    font-weight: bold;
    padding-bottom: 18px;
    display: inline-block;
    text-transform: uppercase;
}

.navbar-nav {
    display: flex;
    gap: 30px;
}

.navbar-brand {
    font-size: 1rem;
}

.nav-link {
    font-size: 1rem;
}

nav a:hover {
    background-color: #28ebeb;
}

#carouselExample {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
}

#carouselExample .carousel-inner,
#carouselExample .carousel-item,
#carouselExample .carousel-item img {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    object-fit: cover;
}

.carousel-indicators {
    bottom: 40px !important;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100vw;
    gap: 10px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
}

.carousel-indicators button {
    border: none;
    background: none;
    padding: 0;
}

.carousel {
    margin: 0;
    padding: 0;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
    display: none;
    /* Oculta la barra de desplazamiento */
}

.carousel-item {
    flex: 0 0 auto;
    width: 100%;
    /* Ancho fijo para cada elemento */
    margin-right: 0px;
    /* Espacio entre elementos */
    scroll-snap-align: center;
}

.carousel img {
    width: 180px;
    max-width: 100%;
    height: auto;
    scroll-snap-align: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-indicators button {
    width: 100%;
    border: none;
    background: none;
    margin-bottom: 3rem;
}

.carousel-item img {
    width: 100%;
    max-width: 100%;
}

.carousel-indicators img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    flex-shrink: 0;
}

h1 {
    display: none;
    /* ASÍ NO SE VISUALIZA*/
}

a {
    text-decoration: none;
}

.hola-extrano {
    background-image: linear-gradient(128deg, #fc40ff, #543fff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    text-align: center;
    padding: 80px 7% 80px 7%;
    width: 100%;
}

.hola-extrano h2 {
    font-family: raleway;
    font-size: 60px;
    padding-bottom: 30px;
    color: white;
    margin-bottom: 25px;
    font-weight: bold;
}

.hola-extrano p {
    font-family: raleway;
    font-size: 20px;
    color: black;
    margin-bottom: 30px;
}

.p-5 {
    padding: 2rem !important;
}

.foto-personal {
    max-width: 800px;
    width: 100%;
    height: auto;
}

.proyectos {
    background-image: linear-gradient(128deg, #40afff, #3f61ff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 140px 7% 60px 7%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

.proyectos h2 {
    font-family: raleway;
    font-size: 60px;
    padding-bottom: 30px;
    color: white;
    margin-bottom: 25px;
    font-weight: bold;
}

.proyectos p {
    font-family: raleway;
    font-size: 20px;
    color: black;
    margin-bottom: 20px;
}

.trayectoria {
    background-image: linear-gradient(128deg, #ff9a3f, #ff4b40);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    text-align: center;
    padding: 120px 14%;
    width: 100%;
}

.trayectoria h2 {
    font-family: raleway;
    font-size: 60px;
    color: white;
    margin-bottom: 25px;
    font-weight: bold;
}

h3 {
    font-family: raleway;
    font-size: 20px;
    color: white;
    margin-bottom: 25px;
    font-weight: bold;
}

.trayectoria p {
    font-family: raleway;
    font-size: 20px;
    color: black;
    margin-bottom: 20px;
    justify-content: left;
}

.trayectoria-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.trayectoria-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    justify-content: flex-start;
    align-items: flex-start;
}

.trayectoria-row h3 {
    margin: 0;
    flex: 0 0 120px;
    text-align: left;
}

.trayectoria-row p {
    margin: 0;
    flex: 1 1 0;
    text-align: left;
}

.arrow {
    bottom: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.arrow img {
    width: 100px;
    height: 100px;
    padding-top: 20px;
}

.arrow:hover {
    transform: scale(1.1);
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 8px 0;
    background-image: linear-gradient(128deg, #40afff, #3f61ff);
    z-index: 1000;
    font-family: raleway;
    font-size: 15px;
    min-height: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.icono-wha {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

@media only screen and (max-width: 768px) and (orientation:landscape) {
    nav {
        position: static;
    }

    nav a {
        display: block;
    }
}

@media (min-width: 1000px) {

    /* Pantallas mayores a 1000px */
    .hola-extrano {
        padding: 80px 7% 80px 7%;
        margin-bottom: 12px;
    }

    .hola-extrano h2 {
        font-size: 70px;
        margin-bottom: 30px;
    }

    .hola-extrano img {
        max-width: 350px !important;
        margin-bottom: 20px;
    }

    .hola-extrano p {
        font-size: 40px;
    }

    .proyectos {
        padding: 140px 7% 60px 7%;
    }

    .proyectos h2 {
        font-size: 70px;
        margin-bottom: 30px;
        text-align: center;
    }

    .proyectos p {
        font-size: 38px;
        margin-bottom: 20px;
    }
}

@media (min-width: 2500px) {

    #carouselExample,
    #carouselExample .carousel-inner,
    #carouselExample .carousel-item,
    #carouselExample .carousel-item img {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        background-size: cover;
    }

    .hola-extrano h2 {
        font-size: 70px;
        margin-bottom: 40px;
    }

    .hola-extrano p {
        font-size: 28px;
    }

    .proyectos h2 {
        font-size: 90px;
        margin-bottom: 40px;
    }

    .proyectos p {
        font-size: 28px;
    }
}

@media (min-width: 1000px) {
    .trayectoria h2 {
        font-size: 80px;
        margin-bottom: 50px;
    }

    .trayectoria p {
        font-size: 22px;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .intro-content button {
        width: 40vw;
        font-size: 16px;
        padding: 12px 0;
        left: 50%;
        transform: translateX(-50%);
        bottom: 70px;
    }
}

@media (max-width: 1000px) {
    .hola-extrano {
        padding: 30px 3% 20px 3%;
        margin-bottom: 12px;
    }

    .hola-extrano h2 {
        font-size: 48px;
        margin-top: 30px;
    }

    .hola-extrano img {
        max-width: 160px !important;
        margin-top: 50px;
    }

    .hola-extrano p {
        font-size: 30px;
    }

    .proyectos {
        padding: 80px 4% 30px 4%;
    }

    .proyectos h2 {
        font-size: 45px;
        margin-bottom: 14px;
        text-align: center;
    }

    .proyectos p {
        font-size: 30px;
        margin-bottom: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 1000px) {
    .hola-extrano h2 {
        font-size: 48px;
        margin-bottom: 12px;
    }

    .hola-extrano p {
        font-size: 30px;
    }

    .proyectos h2 {
        font-size: 45px;
        margin-bottom: 14px;
    }

    .proyectos p {
        font-size: 30px;
    }
}


@media (max-width: 577px) {
    .hola-extrano {
        padding: 15px;
    }

    .hola-extrano h2 {
        font-size: 36px;
        margin-bottom: 5px;
        margin-top: 12px;
    }

    .hola-extrano img {
        max-width: 150px !important;
        margin-top: 30px;
    }

    .hola-extrano p {
        font-size: 18px;
        margin-top: 4px;
    }

    .proyectos {
        padding: 30px 2% 10px 2%;
    }

    .proyectos h2 {
        font-size: 40px;
        margin-bottom: 8px;
        text-align: center;

    }

    .proyectos p {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .proyectos img.img-fluid {
        max-width: 120px;
        width: 100%;
        height: auto;
        margin-bottom: 12px;
    }

    .trayectoria h2 {
        font-size: 50px;
        margin-bottom: 8px;
        text-align: center;

    }

    .trayectoria p {
        font-size: 18px;
        margin-bottom: 8px;
    }

}

@media (max-width: 991px) {
    .proyectos img.img-fluid {
        max-width: 180px;
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }
}

@media (max-width: 991px) {
    .proyectos .text-center {
        text-align: center !important;
    }
}

@media (max-width: 580px) {
    .hola-extrano h2 {
        font-size: 40px;
    }

    .hola-extrano p {
        font-size: 25px;
    }

    .hola-extrano img {
        max-width: 180px !important;
        margin-top: 40px;
    }

    .proyectos p {
        font-size: 20px;
        justify-content: center;
    }
}