/* Evitar desbordamiento horizontal */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header con imagen de fondo y oscurecimiento */
header {
    background: url('../images/header_animacion.png') no-repeat center center/cover;
    height: 100vh;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    z-index: 1;
    background-attachment: fixed;
    background-size: cover;
    transition: background-color 0.5s ease-in-out, transform 0.5s ease-in-out;
}

header.darken {
    background-color: rgba(0, 0, 0, 0.7); /* Difuminado negro más fuerte */
    transform: translateY(-10px); /* Un pequeño movimiento al hacer scroll */
}

/* Navbar fija */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
    z-index: 2;
    transition: background-color 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
}

.logo img {
    width: 250px;
    padding-left: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #f39c12;
}

/* Estilo del contenido del header */
.header-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 40px;
    margin-left: 0;
    max-width: 600px;
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

.header-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 1.5em;
}

/* Sección introductoria */
.intro-section {
    position: relative;
    background: url('../images/wizi boceto .png') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: left;
    align-items: left;
    padding: 10px;
    opacity: 0;
    transform: scale(1.2); /* Comienza con zoom in */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.intro-section.visible {
    opacity: 1;
    transform: scale(1); /* Realiza el zoom out */
}

/* Contenido de la introducción */
.intro-content {
    padding-top: 100px;
    padding-left: 100px;
    border-radius: 8px;
    max-width: 800px;
    text-align: left;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.intro-section.visible .intro-content {
    opacity: 1;
    transform: translateY(0);
}

/* Sección del proceso */
.process-section {
    background-color: #6b6b6b;
    padding: 50px 20px;
    text-align: center;
}

.process-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.etapa {
    background-color: white;
    padding: 30px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.etapa:nth-child(1) {
    transition-delay: 0.2s;
}

.etapa:nth-child(2) {
    transition-delay: 0.4s;
}

.etapa:nth-child(3) {
    transition-delay: 0.6s;
}

.etapa.active {
    opacity: 1;
    transform: translateY(0);
}

/* Galería de proyectos */
.gallery-section {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.gallery-item img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.gallery-item img:hover {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño al pasar el mouse */
}

/* Footer */
.footer-section {
    background-color: #0e0e0e;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Sección de video con fondo de video a pantalla completa */
.video-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Asegura que el video cubra toda la sección */
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo sin perder proporción */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Contenido del video, con posición fija y animaciones */
.video-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    opacity: 0; /* Empieza oculto */
    transform: translateY(20px); /* Desplazado hacia abajo inicialmente */
    transition: opacity 1s ease, transform 1s ease;
}

.video-content.visible {
    opacity: 1; /* Aparece al hacer scroll */
    transform: translateY(0); /* Sube a su posición original */
}


/* Responsive design para pantallas pequeñas */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .header-content h1 {
        font-size: 2.5em;
    }
}
