/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header con video de fondo */
header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Sección de números */
.numbers-section {
    padding: 100px 0;
    background: white;
    display: flex;
    align-items: center;
    min-height: 400px;
    /* Altura mínima para mayor impacto */
}

.numbers-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    /* Espacio reducido entre número y texto */
    width: 100%;
}

.number-item:first-child {
    flex-shrink: 0;
}

.number-item:first-child h2 {
    font-size: 8rem;
    /* Tamaño enorme para el +25 */
    color: #08086D;
    /* Color azul */
    font-weight: 900;
    /* Más grueso */
    line-height: 0.8;
    /* Para que ocupe más altura */
    margin: 0;
    text-align: right;
    /* Alineado a la derecha para pegarse al texto */
}

.number-item:last-child {
    flex: 1;
    max-width: 600px;
}

.number-item:last-child p {
    font-size: 2.5rem;
    /* Texto muy grande */
    color: #08086D;
    /* Mismo color azul */
    font-weight: 700;
    line-height: 1.1;
    /* Line-height ajustado */
    margin: 0;
    text-align: left;
    /* Alineado a la izquierda */
    padding-left: 20px;
    /* Pequeño espacio desde el número */
}

.number-item h2 {
    font-size: 5rem;
    color: #08086D;
    font-weight: bold;
    margin: 0;
}

.number-item p {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    /* Inicialmente transparente */
    z-index: 1000;
    /* Más padding para más espacio */
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    /* Espacio a los lados */
}

.logo img {
    height: 100px;
    width: auto;
    margin-left: 10px;
    /* Espacio a la izquierda */
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin-right: 10px;
    /* Espacio a la derecha */
}

.nav-item {
    margin-left: 25px;
    position: relative;
}

.nav-link {
    color: white;
    /* Inicialmente blanco para contraste con video */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #4a90e2;
}

.nav-link i {
    margin-left: 5px;
    font-size: 12px;
}

/* Navbar con scroll - fondo blanco */
.navbar.scrolled {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    /* Padding reducido al hacer scroll */
}

.navbar.scrolled .bar {
    background: #333;
    /* Barras negras cuando tiene fondo blanco */
}

.navbar.scrolled .nav-link {
    color: #333;
    /* Texto negro cuando tiene fondo blanco */
}

.navbar.scrolled .nav-link:hover {
    color: #08086D;
    /* Azul oscuro al hover */
}

.navbar.scrolled .social-icons a {
    color: #333;
    /* Iconos negros cuando tiene fondo blanco */
}

.navbar.scrolled .social-icons a:hover {
    color: #08086D;
    /* Azul oscuro al hover */
}

.navbar.scrolled .logo img {
    filter: brightness(0);
    /* Logo negro cuando tiene fondo blanco */
}

/* Menú desplegable */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    position: relative;
}

.dropdown-item a {
    color: #333;
    padding: 12px 15px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.dropdown-item a:hover {
    background: #f5f5f5;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.dropdown-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Iconos sociales en navegación */
.social-icons a {
    color: white;
    /* Inicialmente blanco */
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #4a90e2;
}

/* Contenido del header */
.header-content {
    text-align: left;
    color: white;
    padding: 0;
    /* Quitamos el padding anterior */
    margin: 0;
    padding-left: 5%;
    width: 90%;

    /* Centrado vertical */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn-brochure {
    background: #4a90e2;
    color: white;
}

.btn-brochure:hover {
    background: #357abd;
    transform: translateY(-3px);
}

.btn-contact {
    background: #25D366;
    color: white;
}

.btn-contact:hover {
    background: #1da851;
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: #333;
}

.btn-white:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
}

/* Sección con imagen central */
.image-section {
    padding: 60px 0;
}

.image-section img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sección con gradiente */
.gradient-section {
    padding: 80px 0;
    background: linear-gradient(123deg, #08086D 37%, #000000 78%);
    color: white;
}

.gradient-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gradient-content h2 {
    font-size: 2rem;
    flex: 1;
    min-width: 300px;
}

/* Sección Nosotros */
.about-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #08086D;
    margin-bottom: 10px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-quote {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-quote p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.quote {
    font-style: italic;
    color: #08086D;
    font-weight: bold;
}

/* Sección parallax */

.parallax-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/parallax-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
}

.second-parallax {
    background-image: url('../images/parallax-bg02.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Overlay blanco más claro */
}

.parallax-content {
    text-align: center;
    color: #333;
    /* Texto más oscuro para mejor contraste */
    padding: 0 20px;
    z-index: 1;
}

.parallax-content h2 {
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}



.second-parallax::before {
    background: rgba(0, 0, 0, 0.7);
}

/* Sección ¿Por qué elegirnos? */
.why-us-section {
    padding: 80px 0;
    background: white;
}

.why-us-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #08086D;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #08086D;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Sección Servicios */
.services-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #08086D;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 300px;
}

.service-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2A2A2AB5;
    /* Negro con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.service-overlay h3 {
    color: white;
    font-size: 1.8rem;
    text-align: center;
}

.service:hover .service-image img {
    transform: scale(1.1);
}

.service:hover .service-overlay {
    background: #05264F;
    /* Azul oscuro al hacer hover */
    opacity: 0.95;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    border-radius: 10px;
    position: relative;
    padding: 30px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.modal-text {
    flex: 1;
    min-width: 300px;
}

.modal-text h2 {
    color: #08086D;
    margin-bottom: 20px;
}

.modal-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.modal-text li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.modal-text li:before {
    content: '•';
    color: #08086D;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-gallery {
    flex: 1;
    min-width: 300px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* Sección Proyectos */
.projects-section {
    padding: 80px 0;
    background: white;
}

.projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #08086D;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project {
    position: relative;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 109, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-overlay h3 {
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

.project:hover img {
    transform: scale(1.05);
}

.project:hover .project-overlay {
    opacity: 1;
}

/* Sección Certificaciones */
.certifications-section {
    padding: 80px 0;
    background: #f9f9f9;
    text-align: center;
}

.certifications-section h2 {
    font-size: 2.5rem;
    color: #08086D;
    margin-bottom: 10px;
}

.certifications-section h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.certifications-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.certifications-slider,
.clients-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-container {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 25%;
    padding: 0 10px;
}

.slide img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 8, 109, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(8, 8, 109, 1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* Sección Clientes */
.clients-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.clients-section h2 {
    font-size: 2.5rem;
    color: #08086D;
    margin-bottom: 50px;
}

/* Footer */
footer {
    background: #08086D;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section .social-icons {
    display: flex;
    gap: 15px;
}

.footer-section .social-icons a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .header-content h1 {
        font-size: 2.5rem;
    }

    .gradient-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .modal-body {
        flex-direction: column;
    }

    .slide {
        min-width: 33.33%;
    }

    .number-item:first-child h2 {
        font-size: 8rem;
    }

    .number-item:last-child p {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {

    .header-content {
        text-align: center;
        /* En móvil se centra */
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    .header-content h1 {
        max-width: 100%;
        font-size: 2.5rem;
    }

    .header-buttons {
        justify-content: center;
        /* En móvil se centra */
    }

    .numbers-section {
        min-height: 300px;
        padding: 60px 0;
    }

    .numbers-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .number-item:first-child h2 {
        font-size: 8rem;
        text-align: center;
    }

    .number-item:last-child p {
        font-size: 1.8rem;
        text-align: center;
        padding-left: 0;
        max-width: 400px;
    }

    .number-item h2 {
        font-size: 4rem;
    }

    .number-item p {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 20px 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .navbar.scrolled .nav-menu {
        background: rgba(255, 255, 255, 0.95);
    }

    .navbar.scrolled .nav-menu .nav-link {
        color: #333;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }

    .dropdown-item.active .submenu {
        display: block;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .parallax-content h2 {
        font-size: 1.8rem;
    }

    .slide {
        min-width: 50%;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .project {
        height: 400px;
    }
}

@media (max-width: 576px) {

    .number-item h2 {
        font-size: 3rem;
    }

    .number-item p {
        font-size: 1.2rem;
    }

    .number-item:first-child h2 {
        font-size: 6rem;
    }

    .number-item:last-child p {
        font-size: 1.4rem;
    }

    .numbers-section {
        min-height: 250px;
        padding: 40px 0;
    }

    .parallax-content h2 {
        font-size: 1.8rem;
    }

    .header-buttons {
        flex-direction: column;
        align-items: center;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .features,
    .services,
    .projects {
        grid-template-columns: 1fr;
    }

    .slide {
        min-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .number-item:first-child h2 {
        font-size: 8rem;
    }

    .number-item:last-child p {
        font-size: 1.8rem;
    }
}