/* VARIABLES Y RESET */
:root {
    --primary-blue: #004a8c;
    --dark-blue: #002144;
    --yellow: #f1c40f;
    --white: #ffffff;
    --text-gray: #555;
}
html, body {
    overflow-x: hidden; /* Evita el scroll horizontal */
    width: 100%;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Barra Superior */
.top-bar {
    background-color: #001A35 ; /* Gris muy oscuro casi negro */
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 2px solid #ffcc00; /* Línea amarilla característica */
}

.top-bar .container {
    max-width: 100%; /* Elimina el límite de 1100px */
    padding: 0 30px; /* Controla qué tan cerca del borde real quieres que esté */
}
.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact-info {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.top-contact-info li a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.top-contact-info i {
    color: #ffcc00; /* Iconos en amarillo */
}

.top-contact-info li a:hover {
    color: #ffcc00;
}

.top-social {
    display: flex;
    gap: 15px;
}

.top-social a {
    color: #ffffff;
    transition: transform 0.3s;
}

.top-social a:hover {
    color: #ffcc00;
    transform: scale(1.1);
}

/* Ajuste para móviles */
@media (max-width: 768px) {

    .top-bar {
        padding: 10px 0;
        font-size: 14px;
    }

    .top-bar-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .top-contact-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .top-contact-info li a {
        justify-content: center;
        font-size: 14px;
    }

    .top-contact-info span {
        white-space: nowrap;
    }

    .top-social {
        display: none;
    }

    /* HEADER */

    .logo-area {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .logo-full-height {
        height: 50px;
        width: auto;
    }

    .brand-name {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .yellow-underline {
        margin: 4px auto 0;
    }

    /* NAV */

    .nav-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-content a {
        padding: 10px;
        font-size: 15px;
    }

    .btn-cotizar {
        margin-top: 5px;
        width: 100%;
        text-align: center;
    }
}







/* HEADER */
.menu-toggle {
    display: none !important; /* Oculto por defecto en pantallas grandes */
}

.main-header {
    background: #fff;
    height: 80px; /* Definimos una altura fija para el header */
    padding: 0;   /* Quitamos el padding para que la imagen llegue a los bordes */
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* El contenedor ocupa todo el alto */
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    height: 100%; /* Importante: el área del logo llena el header */
    gap: 15px;
}

.logo-full-height {
    height: 100%;    /* La imagen ahora toca el borde superior e inferior */
    width: auto;     /* Se ajusta proporcionalmente */
    object-fit: contain;
    padding: 5px 0;  /* Opcional: un mínimo respiro para que no toque físicamente el borde si no quieres */
}
/* El link no debe afectar tamaño */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Forzamos tamaño del logo */
.logo-area img {
    height: 100px;          /* usa el tamaño original que ya tenías */
    width: auto;           /* evita estiramiento */
    max-height: 60px;      /* 🔥 clave */
}


.text-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #004a8c;
    line-height: 1;
}

.yellow-underline {
    width: 100%;
    height: 4px;
    background-color: #f1c40f;
    margin-top: 5px; /* La línea amarilla justo debajo del texto */
}
.nav-links .nav-content {
    display: flex; /* Se muestra horizontal en escritorio */
    align-items: center;
}
/* Asegúrate de que los links tengan este estilo en escritorio */
.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    margin-left: 20px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-cotizar {
    background: var(--yellow);
    padding: 8px 20px;
    border-radius: 4px;
    color: #000 !important;
}




/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 700px; /* Ajusta este valor según tu gusto */
    width: 100%;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    z-index: 1; 
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    /* Bajamos el z-index del video a 0 o -1 */
    z-index: -1; 
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Capa azulada encima del video para que el texto resalte */
/* Capa sutil encima del video - Menos azul, más natural */
/* Capa azulada profesional - Globo Fast Style */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente azul profundo: de más sólido a la izquierda a más transparente a la derecha */
    background: linear-gradient(90deg, 
        rgba(0, 48, 96, 0.8) 0%,   /* Azul marino oscuro */
        rgba(0, 48, 96, 0.4) 100%  /* Azul más suave para que respire el video */
    );
    z-index: 0;
}

/* El contenedor que lleva el texto a la izquierda */
.hero .container {
    position: relative;
    z-index: 2; /* Por encima del video y del overlay */
    margin-left: 10%; /* Lo empuja a la izquierda */
    margin-right: auto;
    width: auto;
}

.hero-content {
    max-width: 550px;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3); /* Sombra sutil para profundidad */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.4;
    border-left: 4px solid var(--yellow);
    padding-left: 15px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--yellow);
    color: #000;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #e2b607;
    transform: scale(1.05);
}


/* --- SECCIÓN SERVICIOS (VERSIÓN FINAL) --- */

.services-overlap {
    position: relative !important;
    z-index: 999;
    /* Controla la bajada respecto al video */
    margin-top: 80px !important; 
    margin-bottom: 80px; 
    padding: 0 !important;
    transform: translateY(0); 
}

/* Encabezado Asimétrico */
.services-header-overlap {
    display: flex;
    justify-content: flex-start; 
    max-width: 1100px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.header-content-wrapper {
    position: relative;
    display: inline-block;
}

.services-header-overlap h2 {
    color: #1a1a1a;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 2;
}

/* Texto fantasma de fondo */
.services-header-overlap h2::before {
    content: attr(data-text);
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4.5rem;
    color: rgba(0, 0, 0, 0.05);
    z-index: -1;
    letter-spacing: 10px;
    white-space: nowrap;
}

/* Barras decorativas industriales */
.header-decoration {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
    align-items: flex-start;
}

.bar-long {
    width: 120px;
    height: 6px;
    background: var(--yellow);
    display: block;
}

.bar-short {
    width: 50px;
    height: 6px;
    background: var(--primary-blue);
    display: block;
}

/* Grid de Tarjetas */
.services-grid-overlap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Estilo de Tarjeta Premium */
.service-card-new {
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card-new:hover {
    transform: translateY(-15px);
}

.card-overlay {
    /* Un azul marino con opacidad para resaltar el texto blanco */
    background: linear-gradient(to top, rgba(0, 33, 68, 0.9) 0%, rgba(0, 33, 68, 0.4) 100%);
    width: 100%;
    height: 100%;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    transition: background 0.3s ease;
}

.service-card-new:hover .card-overlay {
    background: rgba(0, 33, 68, 0.7);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1) !important;
}

.yellow-tag {
    width: 4px;
    height: 30px;
    background: var(--yellow);
    margin-bottom: 15px;
}

.service-card-new h3 {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.service-card-new p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Botón de Acción */
.btn-yellow-work {
    background: var(--yellow);
    color: #000 !important;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: 0.3s;
}

.btn-yellow-work:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .services-overlap { 
        margin-top: 40px !important; 
        margin-bottom: 40px; 
    }
    .services-header-overlap {
        justify-content: center;
        text-align: center;
    }
    .services-header-overlap h2 { 
        font-size: 2.2rem; 
    }
    .services-header-overlap h2::before { 
        display: none; 
    }
    .header-decoration {
        align-items: center; /* Centrado en móvil */
    }
}


/*SECCION ISO*/

/* --- ESTILOS EXCLUSIVOS SECCIÓN ISO --- */
.iso-section-wrapper {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    display: block;
    width: 100%;
    clear: both; /* Evita que elementos flotantes previos lo muevan */
}

.iso-header-block {
    text-align: center;
    margin-bottom: 60px;
}

.iso-main-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 10px 0;
    font-weight: 800;
}

.iso-subtitle {
    color: #ffcc00; /* Amarillo GloboFast */
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.iso-title-line {
    width: 80px;
    height: 4px;
    background: #ffcc00;
    margin: 0 auto;
}

.iso-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 en una fila */
    gap: 25px;
}

.iso-item-card {
    text-decoration: none;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s ease;
    display: block;
}

.iso-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fdfdfd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.iso-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.iso-pdf-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    color: #ffcc00;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iso-pdf-hover i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* --- EFECTOS HOVER ESPECÍFICOS --- */
.iso-item-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #ffcc00;
}

.iso-item-card:hover .iso-img-box img {
    transform: scale(1.2); /* ZOOM QUE PEDISTE */
}

.iso-item-card:hover .iso-pdf-hover {
    opacity: 1;
}

.iso-item-info h3 {
    color: #222;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.iso-item-info p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

/* RESPONSIVE SIN AFECTAR OTRAS SECCIONES */
@media (max-width: 1024px) {
    .iso-grid-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .iso-grid-row { grid-template-columns: 1fr; }
}

/* --- SECCIÓN OBRAS (ACTUALIZADO CON SEPARACIÓN) --- */
.projects {
    padding: 80px 0;
    background-color: #f9f9f9;
}
/* Hacemos que el contenedor de proyectos sea más ancho que el estándar */
.projects .container {
    max-width: 1400px; /* Ajusta este número: 1200px es normal, 1400px+ es ancho */
    width: 95%;        /* Para que en pantallas medianas no toque los bordes */
    margin: 0 auto;
}

/* Forzamos las 3 columnas y aumentamos el espacio entre ellas */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; /* Aumenté el espacio para que se vea más imponente */
    margin-bottom: 60px;
}

/* Ajustamos las imágenes para que se vean más grandes verticalmente también */
.project-item img {
    width: 100%;
    height: 400px; /* Aumentamos la altura de 300px a 400px */
    object-fit: cover;
    border-radius: 8px; /* Opcional: bordes un poco suaves */
}

/* Ajuste del botón para que no se pierda en el diseño ancho */
.btn-large {
    padding: 20px 60px;
    font-size: 1.2rem;
}
.projects-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente todo el contenido */
    text-align: center;  /* Centra el texto */
    margin-bottom: 50px; /* Espacio antes de que empiecen las fotos */
}
/* Título Principal */
.section-title {
    color: var(--dark-blue);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
/* Línea Amarilla Centrada */
.title-underline-center {
    width: 80px;         /* Un poco más larga para que destaque */
    height: 5px;
    background: var(--yellow);
    margin-bottom: 20px; /* Espacio entre línea y descripción */
    border-radius: 2px;
}
/* Descripción */
.section-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;    /* Evita que el texto sea demasiado ancho en pantallas grandes */
    line-height: 1.6;
    margin: 0 auto;      /* Asegura el centrado si el max-width es menor al contenedor */
}


.projects-grid {
    display: grid;
    /* Forzamos exactamente 3 columnas iguales */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-bottom: 50px;
}

.project-item {
    position: relative;
    height: 300px;
    overflow: hidden; /* Mantiene el zoom de la foto dentro del cuadro */
    
    /* 3. ESTILO DE TARJETA: Esquinas redondeadas y sombra para que luzcan separadas */
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.8);
    transition: all 0.5s ease;
}

/* El resto de tu código de overlay y botones se queda EXACTAMENTE IGUAL */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 140, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-info span {
    color: var(--yellow);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.project-info h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.btn-small {
    padding: 8px 15px;
    border: 1px solid var(--yellow);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-small:hover {
    background: var(--yellow);
    color: #000;
}

/* EFECTOS HOVER */
.project-item:hover img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    opacity: 1;
}
/* Ajuste Responsivo */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-description {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Contenedor del botón para centrarlo */
.projects-footer {
    text-align: center;
    margin-top: 50px; /* Espacio respecto a las fotos */
}

/* Estilo del botón */
.btn-large {
    display: inline-block;
    padding: 15px 40px;
    background-color: #f1c40f; /* Color amarillo típico de construcción, cámbialo si usas otro */
    color: #333;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-large:hover {
    background-color: #333;
    color: #fff;
    border-color: #f1c40f;
    transform: translateY(-3px); /* Efecto de levante */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contenedor para alinear ambos botones */
.footer-buttons-group {
    display: flex;
    justify-content: center; /* Centra los botones */
    gap: 20px;               /* Espacio entre botones */
    flex-wrap: wrap;         /* Si no caben, se ponen uno abajo del otro */
}

/* Estilo específico para el botón de descarga */
.btn-download {
    background-color: transparent !important; /* Fondo transparente */
    border: 2px solid var(--dark-blue) !important; /* Borde azul oscuro */
    color: var(--dark-blue) !important;
}

.btn-download i {
    margin-right: 8px; /* Espacio entre icono y texto */
}

.btn-download:hover {
    background-color: var(--dark-blue) !important;
    color: var(--white) !important;
    border-color: var(--dark-blue) !important;
}

/* Ajuste para móviles */
@media (max-width: 480px) {
    .footer-buttons-group {
        flex-direction: column; /* Uno sobre otro en pantallas pequeñas */
        align-items: center;
    }
    .btn-large {
        width: 100%; /* Botones de ancho completo en móvil */
        max-width: 300px;
        text-align: center;
    }
}





/* --- SECCIÓN SOBRE NOSOTROS --- */
.about {
    padding: 80px 0;
    background: #ffffff;
}

/* Fila Superior: Texto e Imagen */
.about-upper {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
}

.about-text, .about-image {
    flex: 1;
}

.about-text .subtitle {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
    font-weight: 800;
}

.title-underline {
    width: 60px;
    height: 5px;
    background: var(--yellow);
    margin: 15px 0 30px 0;
}

.main-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* Cuadrícula de características */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-item i {
    color: var(--yellow);
    font-size: 1.4rem;
}

.feature-item strong {
    display: block;
    color: var(--dark-blue);
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #777;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* --- BARRA DE ACCIÓN INFERIOR --- */
.cta-brochure-wrapper {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #003366 100%);
    padding: 35px 45px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 8px solid var(--yellow);
}

.cta-content h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
}

.cta-content h3 strong {
    color: var(--yellow);
}

.cta-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary-outline {
    background: transparent !important;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--yellow);
    color: var(--yellow) !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .about-upper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .title-underline { margin: 15px auto; }
    
    .about-features { text-align: left; }

    .cta-brochure-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
}



/* --- BARRA DE DESCARGA LLAMATIVA --- */
.cta-brochure-wrapper {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #003366 100%);
    padding: 30px 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    box-shadow: 0 15px 35px rgba(0, 33, 68, 0.2);
    position: relative;
    overflow: hidden;
    border-left: 8px solid var(--yellow); /* Detalle industrial */
}

/* Decoración sutil de fondo (Círculos) */
.cta-brochure-wrapper::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}



.cta-content h3 {
    color: #fff !important;
    margin: 5px 0 0 0 !important;
    font-size: 1.6rem;
    font-weight: 400;
}

.cta-content h3 strong {
    color: var(--yellow);
    font-weight: 900;
}

/* El Botón Blanco */
.btn-brochure-ultra {
    background: #fff;
    color: var(--dark-blue) !important;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.btn-brochure-ultra i {
    font-size: 1.2rem;
    transition: 0.3s;
}

/* Efectos Hover */
.btn-brochure-ultra:hover {
    background: var(--yellow);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.4);
}

.btn-brochure-ultra:hover i {
    transform: translateY(3px); /* Efecto de flecha bajando */
}

/* Responsive */
@media (max-width: 768px) {
    .cta-brochure-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }
}
/* Contenedor de los dos botones */
.cta-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Estilo para el botón de Experiencia (Blanco con borde o sutil) */
.btn-secondary-outline {
    background: transparent !important;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px);
    border-color: var(--yellow);
    color: var(--yellow) !important;
}

/* Ajuste para que en móviles los botones se pongan uno sobre otro */
@media (max-width: 991px) {
    .cta-brochure-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }
    
    .cta-actions .btn-brochure-ultra {
        width: 100%;
        justify-content: center;
    }
}






/* BARRA DE ESTADÍSTICAS SUTIL Y OSCURA */
.stats-bar {
    background-color: #001226; /* Azul muy oscuro, casi negro */
    color: rgba(255, 255, 255, 0.8); /* Blanco suavizado para que sea menos chillón */
    padding: 20px 0; /* Padding reducido para que sea delgada */
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Línea divisoria casi invisible */
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: row; /* En una sola línea para que ocupe menos espacio vertical */
    align-items: center;
    gap: 10px;
}

.stat-number {
    font-size: 1.2rem; /* Tamaño mucho más pequeño y discreto */
    font-weight: 700;
    color: var(--yellow); /* Mantenemos el amarillo pero en tamaño pequeño */
}

.stat-text {
    font-size: 0.85rem; /* Texto pequeño */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Ajuste opcional: quitar el borde entre secciones */
.about {
    padding-bottom: 60px; /* Reduce el espacio entre el contenido y la barra */
}




/* SECCIÓN CLIENTES - UNIFORME Y LIMPIA  CON SLIDERRRR
.clients {
    padding-top: 60px;   
    padding-bottom: 20px; 
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-slider {
    width: 90%; 
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden; 
    background: #ffffff;
    padding: 20px 0; /
}
.logo-track {
    display: flex;
   
    width: calc(320px * 10); 
    animation: scroll 30s linear infinite;
}

.slide {
    width: 320px; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    height: 90px; 
    width: auto;
    max-width: 240px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    object-fit: contain;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        
        transform: translateX(calc(-320px * 5)); 
    }
}
*/

/*SECCION CLIENTES SIN SLIDER*/

.clients {
    padding: 60px 20px;
    text-align: center;
    background: #f7f7f7;
}

.section-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
}

/* GRID LOGOS */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.clients-grid img {
    width: 100%;
    max-width: 180px;
    margin: auto;
    transition: 0.3s ease;
}

.clients-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}



/* FOOTER ACTUALIZADO */
.main-footer {
    background: #002855; /* Un azul marino más claro y elegante */
    padding: 60px 0; /* Un poco menos de aire para que sea compacto */
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-brand h3, 
.footer-contact h3 {
    color: var(--yellow); /* Títulos en amarillo para coherencia */
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-brand ul { 
    list-style: none; 
    padding: 0;
}

.footer-brand li {
    margin-bottom: 10px;
}

.footer-brand a { 
    color: rgba(255, 255, 255, 0.7); /* Blanco suavizado */
    text-decoration: none; 
    transition: 0.3s;
}

.footer-brand a:hover { 
    color: var(--yellow); /* Los links brillan al pasar el mouse */
    padding-left: 5px; /* Efecto sutil de movimiento */
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact i {
    color: var(--yellow);
    width: 20px; /* Alinea los iconos perfectamente */
}

.footer-legal {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 12px 10px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal strong {
    color: #fff;
}



.map-box {
    background: #e0e0e0;
    height: 180px;
    border-radius: 4px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden; /* Por si luego metes un iframe de Google Maps */
}
/* Contenedor de los iconos */
.footer-social-icons {
    display: flex;
    gap: 15px; /* Un poco más de espacio entre ellos */
    margin-top: 25px;
}

/* Estilo individual del icono */
.social-icon {
    width: 48px;  /* De 38px a 48px */
    height: 48px; /* De 38px a 48px */
    background: rgba(255, 255, 255, 0.05); 
    border: 2px solid var(--yellow); /* Borde más grueso y amarillo */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow); /* Ahora el icono es amarillo de inicio */
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem; /* Icono más grande */
}

/* Efecto al pasar el mouse */
.social-icon:hover {
    background: var(--yellow);
    color: #002855; /* Azul oscuro del footer */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
    border-color: var(--yellow);
}

/* BOTÓN WHATSAPP FLOTANTE - LADO DERECHO */
.whatsapp-btn {
    position: fixed;
    bottom: 35px; /* Un poco más arriba del borde */
    right: 35px;  /* Posición a la derecha */
    width: 70px;  /* Más grande */
    height: 70px; /* Más grande */
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* Icono más visible */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999; /* Para que siempre esté por encima de todo */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    background-color: #1ebea5;
    transform: scale(1.1) rotate(5deg); /* Efecto de giro sutil al pasar el mouse */
}

/* Tooltip (Mensaje que aparece a la izquierda del botón) */
.tooltip-chat {
    position: absolute;
    right: 85px; /* Aparece a la izquierda del botón ahora que el botón está a la derecha */
    background: #002855;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Flechita del tooltip */
.tooltip-chat::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #002855;
}

.whatsapp-btn:hover .tooltip-chat {
    opacity: 1;
    visibility: visible;
}

/* Animación de pulso para llamar la atención */
.whatsapp-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}




/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    
    /* 1. Ajustes de Contenedor */
    .container {
        padding: 0 15px;
    }

    /* 2. Menú Móvil */
    .menu-toggle {
        display: block !important;;
        font-size: 1.8rem;
        color: var(--primary-blue);
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links .nav-content {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active .nav-content {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links a {
        margin: 15px 0;
        margin-left: 0 !important;
        font-size: 1.1rem;
        display: block;
    }

    /* 3. Hero Section (Ajuste para que el texto no sea gigante) */
    .hero {
        height: 500px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero .container {
        margin-left: 5%;
    }

    /* 1. Resetear el movimiento de los servicios */
    .services-overlap {
        display: block !important;
        position: relative !important;
        /* IMPORTANTE: Ponemos 'top' en 0 para que bajen del hero */
        top: 0 !important; 
        /* Quitamos el margen negativo para que no empujen hacia arriba */
        margin-top: 0 !important;
        /* Quitamos el margen inferior negativo para que el contenido de abajo no se encime */
        margin-bottom: 0 !important;
        
        padding: 40px 0; /* Un poco de espacio para que respiren */
    }
/* --- CAMBIO DE COLOR PARA MÓVIL --- */
    .services-header-overlap h2 {
        color: var(--dark-blue) !important; /* Ahora es azul oscuro */
        text-shadow: none !important;      /* Quitamos la sombra de escritorio */
    }
    /* 2. Ajustar la cuadrícula para que las tarjetas ocupen el ancho completo */
    .services-grid-overlap {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0 15px;
    }

    /* 3. Asegurar que el Hero se vea completo */
    .hero {
        height: auto;
        min-height: 400px; /* Ajusta según prefieras el tamaño del video en móvil */
    }

    /* 5. Sobre Nosotros */
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    .title-underline {
        margin: 10px auto 25px auto;
    }

    /* 6. Barra de Estadísticas */
    .stats-flex {
        flex-direction: column;
        gap: 20px;
    }

    /* 7. Footer (De 3 columnas a 1 columna) */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }

    /* 8. SOLUCIÓN BOTÓN WHATSAPP */
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px; /* Lo alejamos del borde para que el pulso no cree scroll */
        font-size: 32px;
    }
    
    .whatsapp-btn::after {
        /* Reducimos el tamaño de la animación para que no se salga de la pantalla */
        animation: pulse-ring-mobile 2s infinite;
    }

    .tooltip-chat {
        display: none; /* Ocultamos el texto en móvil para evitar errores visuales */
    }
}

/* Animación de pulso controlada para móvil */
@keyframes pulse-ring-mobile {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 0; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

