
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #111111;
    overflow-x: hidden;
}

/* 1. BARRA DE NAVEGACIÓN (Fondo blanco) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    z-index: 1000;
}

.logo img {
    height: 55px;
    display: block;
}

.nav a {
    text-decoration: none;
    color: #111111;
    font-weight: 500;
    font-size: 15px;
    margin-left: 35px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #0052cc;
}

/* SECCIONES GENERALES */
.section {
    padding: 100px 8% 80px 8%;
}

.sub-title {
    color: #0052cc;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.title {
    color: #111111;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

p {
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.section.dark {
    background-color: #0b132b;
    color: #ffffff;
}

.section.dark .title {
    color: #ffffff;
}

.section.dark p {
    color: #bcc1d3;
}
/* 8. HERO DINÁMICO CON MOVIMIENTO DESDE LA IZQUIERDA */
.hero {
    margin-top: 75px; 
    height: calc(100vh - 75px);
    min-height: 600px;
    position: relative;
    
    /* SOLUCIÓN DE RESPALDO: Si no encuentra la imagen, se pondrá este color azul oscuro */
    background-color: #0b132b; 
    
    /* CORRECCIÓN DE SINTAXIS (135deg): Degradado que asegura que las letras blancas siempre se lean */
    background-image: 
        linear-gradient(135deg, rgba(11, 19, 43, 0.95) 40%, rgba(0, 82, 204, 0.5)), 
        url('Hero.jpg'); 
    
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
}

/* Animación de entrada de letras moviéndose horizontalmente */
.hero-content {
    max-width: 700px;
    animation: moveInLeft 1.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes moveInLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h2 {
    color: #ffffff; /* Texto blanco (grande) */
    font-size: 46px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background-color: #0052cc;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
}

.btn.primary:hover {
    background-color: #003d99;
    transform: translateY(-3px);
}

.btn.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn.secondary:hover {
    background-color: #ffffff;
    color: #0b132b;
    transform: translateY(-3px);
}

/* SECCIÓN NOSOTROS */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.highlight {
    font-weight: 600;
    color: #0052cc !important;
    border-left: 4px solid #0052cc;
    padding-left: 15px;
}

/* SERVICIOS */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #1c2541;
    border-radius: 8px;
    overflow: hidden;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: #0052cc;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    color: #ffffff;
}

.card .tags {
    margin-top: 15px;
    font-size: 12px;
    color: #0052cc;
    font-weight: 500;
}

/* PROCESO DE TRABAJO */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step {
    text-align: center;
}

.circle {
    width: 60px;
    height: 60px;
    background-color: #0052cc;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3);
}

.step h3 {
    font-size: 18px;
    color: #111111;
    margin-bottom: 10px;
}

/* POR QUÉ ELEGIRNOS */
.list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #0052cc;
    font-weight: 500;
}

/* CONTACTO */
#contacto {
    background-color: #f8f9fa;
}

#form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#form input, #form select, #form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

#form input:focus, #form select:focus, #form textarea:focus {
    border-color: #0052cc;
}

#form textarea {
    height: 150px;
    resize: none;
}

#form button {
    background-color: #0052cc;
    color: #ffffff;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

#form button:hover {
    background-color: #003d99;
}

/* PIE DE PÁGINA */
.footer {
    background-color: #0b132b;
    color: #ffffff;
    padding: 50px 8% 30px 8%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 25px;
}

.footer-socials a {
    color: #bcc1d3;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: #0052cc;
    display: inline-block;
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 13px;
    color: #666666;
}

/* RESPONSIVO */
.hamburger {
    display: none; /* Escondido por defecto en computadoras */
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #111111; /* Color de las rayitas del sandwich */
    transition: all 0.3s ease;
}

/* Ajustes para celulares y tabletas*/
@media (max-width: 900px) {
    .header {
        padding: 15px 5% !important;
        justify-content: space-between !important; /* Logo a la izq, Sandwich a la der */
        flex-direction: row !important;
    }

    .hamburger {
        display: flex !important; /* Aparece el sandwich en móviles y tablets */
    }

    /* Transformación del menú de texto en una lista desplegable */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 75px; /* Justo debajo de la barra */
        left: -100%; /* Escondido a la izquierda de la pantalla */
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        text-align: center;
        gap: 20px;
        transition: left 0.4s ease; /* Efecto suave al salir */
        z-index: 999;
    }

    .nav-menu a {
        margin: 0 !important;
        display: block;
        padding: 10px 0;
        font-size: 18px;
    }

    
    .nav-menu.active {
        left: 0; /* Muestra el menú deslizándolo hacia el centro */
    }

    /* Animación opcional: El sandwich se convierte en una "X" al abrirse */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}