/* Importación de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

:root {
    --naranja: #FF6500;
    --azul-marino: #1E3E62;
    --azul-oscuro: #0B192C;
    --negro: #000000;
    --blanco: #ffffff;
    --transicion: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--negro);
    color: var(--blanco);
    line-height: 1.6;
}

/* --- NAVEGACIÓN --- */
header {
    background-color: var(--azul-oscuro);
    padding: 1rem 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--naranja);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--naranja);
    text-decoration: none;
}

/* Contenedor principal del logo */
.logo-container {
    display: flex;         /* Activa el alineamiento horizontal */
    align-items: center;    /* Centra verticalmente imagen y texto */
    gap: 15px;             /* Espacio entre la imagen y el texto */
    text-decoration: none;
}

/* Control del tamaño de la imagen del logo */
.logo-img {
    height: 50px;          /* Ajusta este valor según prefieras */
    width: auto;
    display: block;
}

/* Estilo del texto al lado de la imagen */
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--naranja);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 2rem; }

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transicion);
}

.nav-links a:hover { color: var(--naranja); }

/* --- COMPONENTES REUTILIZABLES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--naranja);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 101, 0, 0.4);
}

/* Contenedor para centrar el botón en la página */
.contenedor-btn {
    width: 100%;
    display: flex;
    justify-content: center; /* Lo centra horizontalmente */
    padding: 40px 0;         /* Espacio arriba y abajo del botón */
}

/* Variante del botón si necesitas ajustes específicos */
.btn-centrado {
    text-align: center;
}

section { padding: 80px 10%; }

.section-title {
    font-size: 2.5rem;
    color: var(--naranja);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

/* --- FOOTER --- */
footer {
    background-color: var(--negro);
    padding: 40px 10%;
    text-align: center;
    border-top: 1px solid var(--azul-marino);
}

footer a{
    color: #FF6500;
    text-decoration:#FF6500;
}


.social-links a {
    color: var(--naranja);
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- ESTILOS PARA LA GALERÍA (IMÁGENES Y VIDEOS) --- */

.grid-container1010 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 1200px;
}

.item-galeria {
    position: relative;
    aspect-ratio: 1 / 1; /* Esto hace que siempre sea un cuadrado perfecto */
    background-color: var(--azul-oscuro);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transicion);
}

.video169 {
    aspect-ratio: 16 / 9 !important ;
}

/* Aplica a fotos y videos por igual */
.item-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta los bordes sobrantes para rellenar el cuadrado sin deformar */
    display: block;
    transition: transform 0.5s ease;
}
.item-galeria video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta los bordes sobrantes para rellenar el cuadrado sin deformar */
    display: block;
    transition: transform 0.5s ease;
}
/* Efecto al pasar el mouse sobre el cuadro */
.item-galeria:hover {
    border-color: var(--naranja);
    transform: translateY(-5px);
}

.item-galeria:hover img,
.item-galeria:hover video {
    transform: scale(1.05); /* Zoom suave */
}

/* --- CAPA DE TEXTO (OVERLAY) --- */

.overlay-galeria {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto; /* Solo cubre la parte inferior */
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease;
}

.item-galeria:hover .overlay-galeria {
    opacity: 1; /* Aparece al hacer hover */
}

.overlay-galeria h4 {
    color: var(--naranja);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.overlay-galeria p {
    color: var(--blanco);
    font-size: 0.85rem;
    font-weight: 300;
}

.item-galeria video {
    width: 100%;       /* Ocupa todo el ancho del cuadro */
    height: auto;      /* Ocupa todo el alto del cuadro */
    object-fit: cover; /* CORTA los bordes sobrantes para rellenar el espacio sin deformar */
    display: block;    /* Elimina espacios extra en la base */
    border-radius: 10px; /* Opcional: para que las esquinas coincidan con el cuadro */
}

/* SECCIÓN SERVICIOS */

.services-section {
    background-color: var(--negro); /* Fondo base negro para contraste */
    padding: 80px 10%;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -1rem auto 3rem auto;
    color: #ccc;
    font-weight: 300;
}

/* Contenedor para centrar la cuadrícula */
.grid-container1515 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.services-grid {
    display: grid;
    /* Ajuste para que se vea bien en todas las pantallas */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 800px; /* Un poco más amplio para que luzca mejor */
}

/* Tarjeta de Servicio con Gradiente y Borde */
.service-card {
    background: linear-gradient(145deg, var(--azul-marino), var(--azul-oscuro));
    padding: 40px 30px;
    border-radius: 20px; /* Bordes más redondeados para elegancia */
    text-align: center;
    transition: var(--transicion);
    /* Borde sutil que combina con el estilo de Nosotros */
    border: 1px solid rgba(255, 101, 0, 0.2); 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--naranja);
    /* Sombra con un toque de color naranja */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 101, 0, 0.1);
}

/* El icono con brillo */
.service-card .icon-box {
    font-size: 3.5rem;
    color: var(--naranja);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 101, 0, 0.2));
}

.service-card h3 {
    color: var(--naranja);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.95rem;
    color: #e0e0e0; /* Texto un poco más claro para lectura fácil */
    line-height: 1.6;
}

/* Pequeño adorno decorativo en la tarjeta */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--naranja);
    transition: var(--transicion);
    transform: translateX(-50%);
}

.service-card:hover::after {
    width: 60%; /* La línea crece al pasar el mouse */
}

/* ESTILOS PÁGINA: SOBRE NOSOTROS */

/* Contenedor de "Diseño sin fronteras" */
section:nth-of-type(1) > div[style*="display: flex"] {
    display: flex !important;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* El recuadro del ADN (Evolución) - Diseño Premium */
section:nth-of-type(1) div[style*="background: var(--azul-marino)"] {
    background: linear-gradient(145deg, var(--azul-marino), var(--azul-oscuro)) !important;
    border: 1px solid rgba(255, 101, 0, 0.4) !important; /* Borde Naranja */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 101, 0, 0.05) !important;
    border-radius: 20px !important;
    padding: 50px !important;
    transition: var(--transicion);
}

section:nth-of-type(1) div[style*="background: var(--azul-marino)"]:hover {
    transform: translateY(-10px);
    border-color: var(--naranja) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 101, 0, 0.1) !important;
}

/* Estilo para los textos destacados */
section:nth-of-type(1) p[style*="font-size: 1.1rem"] {
    color: #ccc !important;
    border-left: 3px solid var(--naranja);
    padding-left: 15px;
}

/* Misión y Visión (Centrados con recuadro sutil) */
section:nth-of-type(2) p, section:nth-of-type(3) p {
    background: rgba(30, 62, 98, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Grid de "Qué hacemos" */
section:nth-of-type(4) div[style*="display: flex"] {
    display: flex !important;
    gap: 25px !important;
    justify-content: center;
}

/* Tarjetas individuales de "Qué hacemos" */
section:nth-of-type(4) div[style*="max-width: 300px"] {
    background: rgba(11, 25, 44, 0.6);
    padding: 30px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transicion);
    flex: 1;
    min-width: 250px;
}

section:nth-of-type(4) div[style*="max-width: 300px"]:hover {
    background: var(--azul-marino);
    border-color: var(--naranja);
    transform: translateY(-5px);
}

section:nth-of-type(4) h3 {
    color: var(--naranja);
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* --- ESTILO PARA COMPUTADORA (Escritorio) --- */
.menu-hamburguesa {
    display: flex;
    align-items: center;
}

/* Ocultamos el checkbox y las rayitas en la computadora */
.menu-hamburguesa input, 
.menu-hamburguesa span {
    display: none;
}

/* Menú horizontal normal en PC */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* --- ESTILOS PÁGINA DE GRACIAS --- */

.body-gracias {
    background-color: var(--azul-oscuro); /* El fondo oscuro de tu marca */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.contenedor-gracias {
    padding: 20px;
    text-align: center;
}

.tarjeta-gracias {
    background: #1a2a3a; /* Un azul ligeramente más claro para resaltar */
    padding: 50px 40px;
    border-radius: 20px;
    border: 2px solid var(--naranja); /* Borde naranja de NÓMADA */
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo-gracias {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--naranja);
}

.tarjeta-gracias h1 {
    color: var(--naranja); /* Título en naranja */
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tarjeta-gracias p {
    color: white;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Reutilizamos el contenedor de botón que creamos antes */
.contenedor-btn-central {
    display: flex;
    justify-content: center;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    section { padding: 40px 5% !important; }
    section:nth-of-type(1) div[style*="display: flex"] { text-align: center; }
}

/* --- RESPONSIVO PARA ESTAS SECCIONES --- */
@media (max-width: 768px) {
    .about-flex {
        text-align: center; /* Centra el texto en móviles */
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    nav{
        flex-direction: column;
        padding: 20px 0;
    }
    .nav-links {
        display: flex;          /* CAMBIA 'none' POR 'flex' PARA QUE SE VEA */
        flex-direction: row;    /* Pone los enlaces uno al lado del otro */
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        padding: 0;
        gap: 15px;              /* Espacio entre cada palabra del menú */
    }
    .logo-container {
        margin-bottom: 5px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    nav a, ul{
        width: 100;
        text-align: center;
    }
    body{
        display: block;
        text-align: center;
    }
}

/* --- RESPONSIVO FINAL PARA CELULAR --- */
@media (max-width: 768px) {
    /* Forzamos que la galería sea de UNA SOLA COLUMNA */
    .grid-galeria {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
        width: 100% !important;
    }

    .item-galeria {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1; /* Mantiene el cuadrado perfecto */
    }

    /* El video también debe ocupar todo el ancho */
    .video169 {
        width: 100% !important;
        margin-top: 20px;
    }

    /* Ajuste para el Menú (Índice) */
    .nav-links {
        flex-direction: column !important; /* Los pone uno arriba de otro */
        gap: 10px !important;
        background: var(--azul-oscuro);
        width: 100%;
        padding: 20px 0;
    }

    .nav-links li {
        margin: 0 !important; /* Quita el margen lateral viejo */
    }
}
/* --- ESTILO PARA COMPUTADORA (Escritorio) --- */
.menu-hamburguesa {
    display: flex;
    align-items: center;
}

/* Ocultamos el checkbox y las rayitas en la computadora */
.menu-hamburguesa input, 
.menu-hamburguesa span {
    display: none;
}

/* Menú horizontal normal en PC */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* --- ESTILO PARA CELULAR (Mobile) --- */
@media (max-width: 768px) {
    /* Hacemos visibles las rayitas y el checkbox */
    .menu-hamburguesa {
        position: relative;
        width: 40px;
        height: 30px;
    }

    .menu-hamburguesa span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: var(--naranja);
        border-radius: 10px;
        transition: 0.4s;
    }

    /* Ocultamos el cuadrito blanco pero dejamos que detecte el click */
    .menu-hamburguesa input {
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0; /* Lo hace invisible */
        cursor: pointer;
        z-index: 10;
    }

    /* Menú vertical oculto en celular */
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        background-color: var(--azul-oscuro);
        padding: 20px;
        border: 2px solid var(--naranja);
        border-radius: 10px;
    }

    /* Al hacer click (checked), mostramos el menú y hacemos la "X" */
    .menu-hamburguesa input:checked ~ .nav-links {
        display: flex;
    }

    .menu-hamburguesa input:checked ~ span:nth-child(2) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-hamburguesa input:checked ~ span:nth-child(3) {
        opacity: 0;
    }

    .menu-hamburguesa input:checked ~ span:nth-child(4) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}