﻿.video-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-slide {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-carousel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    top: 0px;
    left: 80px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    max-width: 300px;
    text-align: left;
}

    .video-label h4 {
        font-size: 1.5rem;
    }

    .video-label p {
        font-size: 1.2rem;
        color: white;
        padding-left: 0rem;
        padding-right: 0rem;
        text-align: left;
    }

.project-slide {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

    .project-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.project-caption {
    width: 20%;
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .project-caption span {
        font-size: 1rem;
        font-weight: bold;
        color: black;
        width: auto;
        text-align: left;
    }

    .project-caption .vertical-line {
        width: 1px;
        height: 60px;
        background-color: black;
    }

    .project-caption .link-proyectos {
        position: relative;
        padding-bottom: 6px;
        color: black;
        text-decoration: none;
        font-size: 1rem;
        white-space: nowrap;
        width: auto;
        transition: color 0.3s ease;
    }

        .project-caption .link-proyectos::after {
            content: "";
            position: absolute;
            left: 0rem;
            bottom: 0;
            width: 100%;
            height: 2px;
            background: black;
            transform-origin: right;
            transform: scaleX(1);
            transition: transform 0.4s ease;
        }

        .project-caption .link-proyectos:hover::after {
            /* transform-origin: right; */
            transform: scaleX(0);
        }

        .project-caption .link-proyectos:hover {
            color: #555;
        }


.solutions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
    gap: 2rem 4rem; /* fila x columna */
    padding: 2rem;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    padding-left: 7rem;
    padding-right: 5rem;
    color: black;
    list-style-type: disc;
    list-style-position: outside;
}


.carousel-slide {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(50%);
    }

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    z-index: 2;
}

    .hero-text h1 {
        font-size: 6.5rem;
        font-weight: 450;
        /* line-height: 1.2; */
        /* line-height: 1.3;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); */
    }

/* Codigo nuevo */

.typing-text {
    color: white; /* dorado o el color que prefieras */
    font-weight: 450;
}


@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}

/* Fin codigo nuevo */

.contact-link {
    display: inline-block;
    margin-top: 1rem;
    color: white;
    text-decoration: none;
    font-size: 2.1rem;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

    /* Línea debajo del texto */
    .contact-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 22%;
        height: 2px; /* grosor de la línea */
        background: white;
        transform-origin: right;
        transform: scaleX(1);
        transition: transform 0.4s ease;
    }

    /* Al pasar el cursor, la línea se oculta de derecha a izquierda */
    .contact-link:hover::after {
        transform-origin: right;
        transform: scaleX(0);
    }

    /* Al quitar el cursor, reaparece de derecha a izquierda */
    .contact-link::after {
        transform-origin: right;
    }

    /* Opcional: mantener color blanco al hover */
    .contact-link:hover {
        color: rgb(241, 228, 228);
    }

/* Animaciones */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

    .fade-in-section.visible {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
        will-change: opacity, transform;
    }

.info-section fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

/* Sección "Nuestra Pasión" */
.info-section {
    height: 85vh; /* Hace que cubra toda la altura de la ventana */
}

@media (max-width: 768px) {

    .navbar-container, .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .contact-link {
        font-size: 1rem;
    }

        .contact-link::after {
            width: 32%; /* Ajusta el ancho de la línea según sea necesario */
        }

    .hero-text {
        left: 5%;
        top: 60%;
    }

    .project-caption, .video-label {
        font-size: 0.8rem;
        padding: 6px;
    }

    .project-caption {
        width: 80%;
    }

    .solutions-list {
        font-size: 0.9rem;
        grid-template-columns: 1fr;
        font-size: 1.2rem;
    }
}


.hero-carousel {
    position: relative;
}

    .hero-carousel .carousel-slide img {
        width: 100%;
        height: 100vh;
        object-fit: cover;
    }

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    z-index: 10;
}

.owl-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
}


.carousel-item {
    transition: transform 0.6s ease-in-out;
}


#projectsCarousel .project-slide img {
    width: 100%;
    display: block;
}

#projectsCarousel .project-slide {
    position: relative;
}


#videosCarousel .video-slide {
    position: relative;
}

#videosCarousel video {
    width: 100%;
    display: block;
}
