/* RESET & FONTS (Outfit le da ese look fino de constructora premium) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #ffffff;
    color: #111111;
}

/* NAVIGATION (Estilo Barra Transparente de Alta Gama) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.brand-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #8bc34a; /* Verde Lima G&G */
}

.contact-trigger {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.contact-trigger:hover {
    background-color: #ffffff;
    color: #0d47a1; /* Azul G&G */
    border-color: #ffffff;
}

/* GP HERO STRUCTURE */
.gp-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.75; /* Deja ver el fondo negro para mayor elegancia */
}

.gp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, rgba(4, 21, 46, 0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

/* HERO TEXT CONTENT */
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-left-panel {
    max-width: 650px;
    color: #ffffff;
}

.company-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #8bc34a; /* Verde Lima destacado */
    display: block;
    margin-bottom: 15px;
}

.main-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.main-title .light-text {
    font-weight: 300;
    color: #f0f0f0;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    font-weight: 300;
}

/* BUTTONS MODERNOS */
.cta-wrapper {
    display: flex;
    gap: 20px;
}

.gp-btn {
    text-decoration: none;
    padding: 15px 35px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.5);
    color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #111111;
}

.btn-solid-green {
    background-color: #8bc34a;
    color: #ffffff;
}

.btn-solid-green:hover {
    background-color: #7cb342;
    transform: translateY(-2px);
}

/* SIDE INDICATORS FLOTANTES */
.side-indicators {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ind-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.4;
    color: #ffffff;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.ind-item.active {
    opacity: 1;
}

.ind-item .num {
    font-size: 0.75rem;
    font-weight: 600;
}

.ind-item .line {
    width: 30px;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.ind-item.active .line {
    width: 60px;
    height: 2px;
    background-color: #8bc34a;
}

.ind-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* SECCIÓN SECTORES / GRID INSTITUCIONAL */
.sectors-section {
    padding: 100px 8%;
    background-color: #fcfcfc;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #0d47a1;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111111;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px; /* Crea esa separación limpia tipo cuadrícula de arquitectura */
    background-color: #eaeaea; 
}

.sector-card {
    position: relative;
    background-color: #ffffff;
    padding: 60px 40px;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.card-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999999;
    display: block;
    margin-bottom: 20px;
}

.sector-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111111;
    transition: color 0.3s ease;
}

.sector-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 30px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.card-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0d47a1;
    letter-spacing: 1px;
}

/* EFECTOS AL PASAR EL CURSOR (HOVER AL ESTILO COMPAÑÍA DE INGENIERÍA) */
.card-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(1.05);
}

/* Configuramos tintes corporativos suaves al hacer hover */
.sector-card:hover .card-bg-effect {
    opacity: 0.05;
    transform: scale(1);
}
.card-blue:hover .card-bg-effect { background-color: #0d47a1; }
.card-dark:hover .card-bg-effect { background-color: #111111; }
.card-green:hover .card-bg-effect { background-color: #8bc34a; }

.sector-card:hover {
    background-color: #111111; /* Se vuelve oscura como el estilo de bloques de GP */
}

.sector-card:hover h3, .sector-card:hover .card-number {
    color: #ffffff;
}

.sector-card:hover p {
    color: #cccccc;
}

.sector-card:hover .card-link {
    color: #8bc34a;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .main-header { padding: 20px 4%; }
    .main-nav { display: none; } /* Aquí integrarías un menú hamburguesa limpio */
    .hero-container { flex-direction: column; align-items: flex-start; gap: 40px; }
    .side-indicators { display: none; }
    .main-title { font-size: 2.8rem; }
}


/* ==========================================================================
   VARIABLES & GLOBAL RESETS (Por si no las tenías definidas)
   ========================================================================== */
:root {
    --primary-blue: #0A192F;
    --accent-green: #2ecc71; /* Ajusta al verde exacto de tu paleta */
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    color: var(--text-dark);
}

/* ==========================================================================
   ESTILOS COMPARTIDOS / GLOBALES
   ========================================================================== */
.section-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--white);
}

.section-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    color: var(--primary-blue);
}

/* Botones genéricos en caso de faltar */
.gp-btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-solid-green {
    background-color: var(--accent-green);
    color: var(--white);
    border: 2px solid var(--accent-green);
}

.btn-solid-green:hover {
    background-color: transparent;
    color: var(--accent-green);
}

/* ==========================================================================
   SECTION: PROJECTS (PORTFOLIO)
   ========================================================================== */
.projects-section {
    padding: 60px 4%;
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 500px) {
    .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #ddd; /* Fallback */
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 3px;
}

.project-info {
    padding: 25px;
}

.project-info h4 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: var(--primary-blue);
}

.project-meta {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

/* ==========================================================================
   SECTION: WHY CHOOSE US (TRUST FACTORS)
   ========================================================================== */
.trust-section {
    padding: 80px 4%;
    background: var(--white);
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .trust-container { grid-template-columns: 1fr; gap: 40px; }
}

.trust-content h2 {
    font-size: 38px;
    color: var(--primary-blue);
    margin: 10px 0 20px;
    font-weight: 800;
}

.trust-content > p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.point-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.point-icon {
    background: rgba(46, 204, 113, 0.1);
    color: var(--accent-green);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.point-item strong {
    display: block;
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.point-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
}

/* Stats Box side panel */
.trust-stats-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-card:nth-child(2) {
    background: var(--bg-light);
    color: var(--primary-blue);
    border: 1px solid #eef0f2;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.9;
}

/* ==========================================================================
   SECTION: CONTACT & FREE ESTIMATE FORM
   ========================================================================== */
.contact-section {
    padding: 80px 4%;
    background: var(--bg-light);
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-details h2 {
    font-size: 42px;
    color: var(--primary-blue);
    margin: 10px 0 20px;
    font-weight: 800;
}

.contact-details p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.direct-contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.phone-link {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-green);
    text-decoration: none;
    transition: opacity 0.2s;
}

.mail-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 2px;
}

.phone-link:hover, .mail-link:hover {
    opacity: 0.8;
}

/* Form Styling */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

@media (max-width: 480px) {
    .form-container { padding: 25px; }
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-main);
    padding: 14px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fafbfc;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 16px;
    font-weight: 800;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 30px 4%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   LANGUAGE SWITCHER BUTTON (FIXED CONTRAST)
   ========================================================================== */
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Borde blanco translúcido */
    color: #ffffff; /* ¡CORREGIDO! Forzamos el texto a blanco para que resalte sobre el fondo */
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.lang-btn:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: #ffffff; /* Se mantiene blanco contrastado con el fondo verde */
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.3); /* Destello sutil al pasar el mouse */
}

/* Ajuste por si el menú se desalinea en flexbox */
.main-nav {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   HEADER / NAVIGATION (STICKY EFFECT)
   ========================================================================== */
.main-header {
    position: fixed; /* Hace que el menú se quede fijo en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que siempre quede por encima de los videos o imágenes */
    padding: 20px 4%; /* Padding inicial más espacioso */
    background: transparent; /* Empieza transparente si está sobre el video del Hero */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transición suave y moderna */
    box-sizing: border-box;
}

/* NUEVO: Clase dinámica que se activará con JavaScript al hacer scroll */
.main-header.scrolled {
    padding: 12px 4%; /* El menú se vuelve más delgado/esbelto al bajar */
    background: rgba(10, 25, 47, 0.92); /* Fondo oscuro premium (var(--primary-blue)) con transparencia */
    backdrop-filter: blur(10px); /* Efecto moderno de desenfoque tipo cristal (Glassmorphism) */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15); /* Sombra muy sutil para dar profundidad */
}