/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   FUENTES
========================= */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* =========================
   VARIABLES
========================= */
:root {
    --color-principal: #5F7F93;
    --color-secundario: #1C1C1C;
    --color-blanco: #ffffff;
}

/* =========================
   BODY
========================= */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background-color: var(--color-blanco);
    color: var(--color-secundario);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================
   PRELOADER
========================= */
#preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

#preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    #preloader video {
        object-fit: contain;
        background: #fff;
    }
}

.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* =========================
   NAVBAR
========================= */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    transition: transform 0.4s ease, background 0.4s ease, padding 0.4s ease;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transform: translateY(-100%);
}

.navbar-visible {
    transform: translateY(0);
}

.main-navbar.scrolled {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 12px 0;
}

/* NAV LINKS */
.navbar-nav {
    gap: 40px;
}

.navbar-nav .nav-link {
    position: relative;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}


.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background-color: #009CDE;
    border-radius: 50px;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.logo-img {
    height: 74px;
    width: auto;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .logo-img {
        height: 40px;
    }

    .navbar-nav {
        text-align: center;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 12px 0;
    }
}

/* Líneas separadoras desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-item {
        position: relative;
        padding: 0 20px;
    }

    .navbar-nav .nav-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 20px;
        background-color: rgba(255,255,255,0.3);
    }
}
/* Menu hamburguesa del celular */
.navbar-toggler-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(180deg);   
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.desktop-video { display: block; }
.mobile-video { display: none; }

@media (max-width: 768px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-logo {
    width: 550px;
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hero-logo {
        width: 300px;
    }
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 20px;
}

.btn-primary {
    padding: 12px 30px;
    background-color: var(--color-principal);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}



/* =========================
   NOSOTROS
========================= */
.nosotros {
    padding: 100px 20px;  
    text-align: center;
}

.nosotros .container {
    max-width: 900px;
    margin: 0 auto;
}

.nosotros-logo {
    width: 250px;
    max-width: 80%;
    height: auto;
    margin-bottom: 40px;
}

.nosotros-texto h2 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
}

.nosotros-texto p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

h2 {
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    display: block;
    width: 200px;        /* largo de la línea */
    height: 2px;        /* grosor */
    background-color: #009CDE;
    margin: 12px auto 0;
    border-radius: 2px;
}

h1 {
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    display: block;
    width: 200px;        /* largo de la línea */
    height: 2px;        /* grosor */
    background-color: #009CDE;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* EFECTO DE LETRAS PAGINA WEB */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
                transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================
   DESAROLLOS
========================= */
.desarrollos-header {
    text-align: center;
}

.img-desarrollos {
    display: flex;
    justify-content: center;   /* centra horizontalmente */
    align-items: center;       /* centra verticalmente si hay altura */
    gap: 40px;                 /* espacio entre logos */
    flex-wrap: wrap;           /* que se acomoden en móvil */
    margin-top: 40px;
}

.fade-item {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(8px);
    transition: all 0.9s ease;
}
.fade-item.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
@media (max-width: 768px) {
    .fade-item {
        transform: translateY(20px);
        filter: blur(0);
    }
}

.card-desarrollo {
    text-align: center;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 🔹 MISMA ALTURA PARA TODOS LOS LOGOS */
.logo-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desarrollos-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}
.card-desarrollo:nth-child(3) .desarrollos-logo {
    max-height: 120px;
    margin-top: -26px;
}

/* 🔹 Botón consistente */
.btn-proyecto {
    margin: 20px 0 20px;
    padding: 10px 25px;  
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #009CDE;
}

.btn-proyecto:hover {
    background: #ffffff;
    color: #E6338D;
}

/* 🔹 Igualar altura visual del texto */
.card-desarrollo p {
    min-height: 60px;
}

/* =========================
   INFO
========================= */



.info-header {
    text-align: center;
    margin-bottom: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 80px;
}

.info-item {
    text-align: left;
}

.info-item i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #0d1b2a; /* puedes cambiar a tu color corporativo */
}

.info-item h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.info-item p {
    line-height: 1.6;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.fade-left.visible,
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* =========================
   FORMULARIO
========================= */

.contacto-form {
    background: #009CDE;
    padding: 100px 0;
    margin: 80px auto;        /* espacio arriba y abajo */
    width: 90%;
    max-width: 1300px;
    border-radius: 30px;      /* 👈 borde redondo */
}

.form-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.form-content {
    flex: 1;
    color: #fff;
}

.form-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.form-content p {
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
}


form input,
form textarea {
    padding: 14px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
}

form button {
    padding: 14px;
    border: none;
    background: #000;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

form button:hover {
    background: #222;
}

.form-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.form-image img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 900px) {
    .form-container {
        flex-direction: column;
        text-align: center;
    }

    .form-image {
        margin-top: 40px;
    }
}
/* =========================
   VIDEO DE YOUTUBE
========================= */
.video-header {
    text-align: center;
    margin-bottom: 50px;
}
.video-section {
    width: 95%;
    margin: 0 auto;
    max-width: 1900px;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;  /* más separación */
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}
@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}