
/* Video Section */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
}

.video-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Asegura que el header y el texto estén sobre el video */
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}



/* Capa negra semitransparente sobre el azul */







/* Ajuste del título */
.hero-title {
    font-size: 60px;
    font-weight: bold;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

/* Ajuste para alinear "to your project" */
.hero-title span {
    font-style: italic;
    font-weight: 300;
    display: block;
    margin-left: 10px; /* Ajustar margen para alinearlo correctamente */
}



/* ====== ANIMACIÓN ====== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* 🔹 Baja 20px al inicio */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 🔹 Sube a su posición original */
    }
}

/* ====== ANIMACIÓN SOLO PARA .title-sub CON INCLINACIÓN ====== */
@keyframes fadeUpTilted {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(-4deg); /* 🔹 Baja 20px y mantiene inclinación */
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-4deg); /* 🔹 Sube sin perder inclinación */
    }
}



/* ====== CONTENEDOR PRINCIPAL DEL TEXTO ====== */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 17%;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    margin-top: 20px;
    opacity: 0; /* 🔹 Ocultar antes de animar */
    animation: fadeUp 1s ease-out forwards; /* 🔹 Aparece al cargar */
}

/* ====== TITULO PRINCIPAL (Committed) ====== */
.title-main {
    font-size: 70px;
    font-weight: bold;
    line-height: 1.1;
    font-family: 'MiFuenteSPD1', sans-serif;
    opacity: 0; /* 🔹 Ocultar antes de la animación */
    animation: fadeUp 1s ease-out 0.3s forwards; /* 🔹 Aparece con retraso menor */
}

/* ====== TEXTO SECUNDARIO (to your project) ====== */
.title-sub {
    font-size: 52px;
    font-style: italic;
    font-weight: 300;
    margin-left: 100px;
    margin-top: -30px;
    font-family: 'MiFuenteSPD2', sans-serif;
    display: inline-block;
    opacity: 0; /* 🔹 Oculto antes de la animación */
    animation: fadeUpTilted 1s ease-out 0.6s forwards; /* 🔹 Aparece con inclinación y retraso mayor */
}

.read-more {
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    color: #ffffff;
    display: inline-block;
    position: relative; /* Para posicionar la línea */
    font-weight: 300;
    margin-top: 30px;
    margin-left: 215px;
    font-family: 'MiFuenteSPD1', sans-serif;
    opacity: 0; /* 🔹 Ocultar antes de la animación */
    animation: fadeUp 1s ease-out 1.3s forwards;
}

/* Flecha roja */
.read-more::after {
    content: " →";
    color: red;  /* Solo la flecha en rojo */
}

/* Línea debajo del enlace */
.read-more::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; /* Ubica la línea justo debajo */
    width: 0%; /* Inicia invisible */
    height: 1px;
    background-color: white; /* La línea es blanca */
    transition: width 0.3s ease-in-out; /* Suaviza la animación */
}

/* Aparece lentamente al hacer hover */
.read-more:hover::before {
    width: 100%; /* Se expande de 0 a 100% */
}









/* ====== VIDEO FULLSCREEN ====== */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh; /* 🔹 16:9 Aspect Ratio (para que no se estire) */
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}


/* ====== Ajuste para Tablets ====== */
@media (max-width: 1024px) {
    .video-container iframe {
        width: 267vw; /* 🔹 Ajusta el ancho para que se vea el centro */
        height: 100vh;
    }

    .title-main {
        font-size: 55px;
    }

    .title-sub {
        font-size: 52px;
    }

    .title-sub {
        font-size: 40px;
        margin-top: -24px;
        margin-left: 85px;
    }

    .text-overlay {
        left: 10%;

    }
    .read-more {
        margin-left: 175px;
    }
}




/* ====== Ajuste para Móviles ====== */
@media (max-width: 767px) {
    .video-container iframe {
        width: 420vw; /* 🔹 Ensancha aún más el video */
        height: 100vh;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .title-main {
        font-size: 46px;
    }

    .title-sub {
        font-size: 35px;
        margin-top: -24px;
        margin-left: 66px;
    }

    .text-overlay {
        left: 10%;
    }

    .read-more {
        margin-left: 115px;
        font-size: 14px;
    }
}