/* =========================================
   1. RESET Y ESTILOS GENERALES
   ========================================= */
html {
    scroll-behavior: smooth; /* Desplazamiento suave al navegar */
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa; /* Un gris muy sutil, casi blanco */
    color: #333;
    line-height: 1.6;
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background-color: rgba(255, 255, 255, 0.95); /* Ligeramente transparente */
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    position: sticky; /* El menú se queda fijo al bajar */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img {
    max-height: 55px; /* Un pelín más grande para presencia */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* Espacio más limpio entre items */
}

nav a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

/* Animación de subrayado al pasar el mouse */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007BFF;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #007BFF;
}

nav a:hover::after {
    width: 100%;
}

/* =========================================
   3. HERO (PORTADA)
   ========================================= */
.hero {
    background-size: cover;
    background-position: center;
    height: 90vh; /* Ocupa casi toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    transition: background-image 1s ease-in-out;
}

/* Overlay con degradado para mejor lectura */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado de negro suave a negro más fuerte abajo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); 
    z-index: -1;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra para que el texto resalte */
    line-height: 1.2;
}

.hero p {
    font-size: 22px;
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Botón "Moderno" */
.boton-principal {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%); /* Degradado azul */
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px; /* Bordes redondos */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4); /* Sombra brillante azul */
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.boton-principal:hover {
    transform: translateY(-3px); /* Se levanta un poco */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

/* =========================================
   4. SERVICIOS (TARJETAS)
   ========================================= */
#servicios {
    padding: 80px 20px;
    background-color: #fff;
}

#servicios h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #222;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Pequeña línea decorativa bajo el título */
#servicios h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007BFF;
    margin: 15px auto 0;
    border-radius: 2px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 Columnas */
    gap: 20px;
    max-width: 1350px; /* Ancho amplio para que quepan las 5 */
    margin: 0 auto;
}

.servicio-item {
    background-color: white;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    /* Sombra muy suave y moderna */
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    border-top: 5px solid #007BFF; /* Detalle de color superior */
    transition: all 0.3s ease;
    height: 100%; /* Para que todas midan lo mismo */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.servicio-icono {
    height: 70px;
    width: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
}

.servicio-item h3 {
    font-size: 19px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
    min-height: 50px; /* Alinea los títulos si tienen diferente largo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* =========================================
   5. NUMERALIAS (ESTADÍSTICAS)
   ========================================= */
.numeralias {
    padding: 80px 20px;
    /* Fondo con un degradado suave grisáceo/azulado */
    background: linear-gradient(to bottom, #f9f9f9, #eff3f6);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.numeralias-contenedor {
    display: flex;
    justify-content: space-around;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    flex-wrap: wrap;
    gap: 30px;
}

.numeralia-item .numero {
    display: block;
    font-size: 64px;
    font-weight: 900;
    /* Texto con degradado (efecto moderno) */
    background: -webkit-linear-gradient(#007BFF, #004494);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.numeralia-item .descripcion {
    font-size: 18px;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.numeralias-boton-contenedor {
    text-align: center;
}

/* =========================================
   6. GALERÍA
   ========================================= */
#galeria {
    padding: 80px 20px;
    background-color: #fff;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1300px;
    margin: 0 auto;
}

.galeria-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    position: relative;
}

.galeria-item::after {
    /* Brillo al pasar el mouse */
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.galeria-item:hover::after {
    opacity: 1;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.galeria-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   7. NOSOTROS
   ========================================= */
#nosotros {
    padding: 80px 20px;
    background-color: #fff;
}

.contenido-nosotros {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.texto-nosotros h2 {
    font-size: 36px;
    color: #222;
    margin-bottom: 25px;
}

.texto-nosotros p {
    font-size: 17px;
    color: #555;
    line-height: 1.8; /* Mejor lectura */
    margin-bottom: 30px;
}

.iconos-destacados {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.icono-item p {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.imagen-nosotros img {
    width: 150%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Sombra fotográfica */
}

/* Botón Secundario (Bordeado) */
.boton-secundario {
    background-color: transparent;
    color: #007BFF;
    border: 2px solid #007BFF;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.boton-secundario:hover {
    background-color: #007BFF;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* =========================================
   8. FOOTER (CORREGIDO)
   ========================================= */
footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 20px 20px 20px;
    text-align: center; /* Centramos todo por defecto en móvil */
}

.footer-contenido {
    display: flex;
    justify-content: space-between; /* Distribución en escritorio */
    align-items: center; /* Alineación vertical al centro */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    flex-wrap: wrap; /* Para que se adapte a pantallas chicas */
}

.footer-columna {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar elementos internos */
}

/* --- CORRECCIÓN DE IMÁGENES --- */

/* 1. El Logo de Indeqro (Izquierda) */
.footer-logo {
    max-width: 160px; /* Tamaño controlado */
    height: auto;
    margin-bottom: 20px;
    display: block;
}

/* 2. La Imagen Decorativa (Derecha) */
.footer-imagen {
    max-width: 220px; /* Mucho más pequeña que antes */
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Sombra para que resalte del fondo oscuro */
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-imagen:hover {
    opacity: 1;
}

/* --- FIN CORRECCIÓN --- */

.columna-contacto h3 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

.columna-contacto p {
    color: #aaa;
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.columna-contacto strong {
    color: #fff;
}

/* Botón WhatsApp */
.boton-whatsapp {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.boton-whatsapp:hover {
    transform: scale(1.05);
    background-color: #20b857;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.copyright {
    border-top: 1px solid #333;
    color: #666;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 13px;
}
/* =========================================
   9. ELEMENTOS FLOTANTES Y ANIMACIONES
   ========================================= */

/* Botón Flotante WhatsApp */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote */
}

.whatsapp-flotante:hover {
    transform: scale(1.15) rotate(10deg);
}

/* Animación Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   10. RESPONSIVE (CELULARES Y TABLETS)
   ========================================= */

/* Hamburguesa (Botón) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger-menu .line {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .grid-servicios {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
        gap: 20px;
    }
    .hero h1 { font-size: 42px; }
    .contenido-nosotros { flex-direction: column; text-align: center; }
    .footer-contenido { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    header { padding: 15px 20px; }
    
    /* Menú Móvil (Panel Lateral) */
    .hamburger-menu { display: flex; }
    
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto a la derecha */
        width: 80%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #main-nav.nav-active {
        right: 0; /* Aparece */
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    #main-nav a {
        font-size: 22px;
        color: #333;
    }

    /* Animación X de hamburguesa */
    .hamburger-menu.active .line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger-menu.active .line:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .grid-servicios { grid-template-columns: 1fr; } /* 1 columna en móvil */
    .hero h1 { font-size: 32px; }
    .numeralia-item .numero { font-size: 48px; }
    .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}