/* ============================================================
   GEVI CONSTRUCCIONES – STYLES.CSS (COMPLETO)
   ============================================================ */

/* --- 1. VARIABLES Y CONFIGURACIÓN --- */
:root {
    /* Paleta Oficial (waos.png) */
    --red:      #BA2A26;
    --orange:   #F09C2D;
    --blue:     #3AA6D6;
    --beige:    #DDD5CB;
    --white:    #FFFFFF;
    
    /* Neutros */
    --dark:     #1C1C1C;
    --gray-bg:  #F8F9FA;
    --gray-text:#555555;
    --gray-100: var(--gray-bg);   /* Alias para compatibilidad con otros archivos */
    --gray-600: var(--gray-text); /* Alias para compatibilidad con otros archivos */
    
    /* Tipografía */
    --font-head: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* UI */
    --radius:   4px;
    --shadow:   0 10px 30px rgba(0,0,0,0.08);
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --nav-height: 80px;
}

/* --- 2. RESET BÁSICO --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.1;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 3. COMPONENTES GLOBALES (Botones, Títulos) --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-section {
    padding: 80px 0;
}

/* Títulos de Sección */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: block;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    color: var(--dark);
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    font-weight: 600;
    padding: 14px 32px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--red);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--red);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--dark);
    font-weight: 600;
    padding: 12px 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid var(--dark);
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--blue);
    padding: 14px 40px;
    font-weight: 700;
    border-radius: var(--radius);
    display: inline-block;
}
.btn-white:hover {
    background: var(--dark);
    color: var(--white);
}

/* --- 4. NAVBAR (ENCABEZADO) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px;
    min-height: var(--nav-height);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
    background-color: rgba(0,0,0,0.03);
}

.nav-cta {
    background-color: var(--red);
    color: var(--white) !important;
    margin-left: 10px;
}

.nav-cta:hover {
    background-color: var(--dark);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

/* OPCION 1: Barra Tricolor debajo del nav
.nav-stripe {
    display: flex;
    height: 6px;
    width: 100%;
}

.stripe-segment { flex: 1; }
.bg-red { background: var(--red); }
.bg-orange { background: var(--orange); }
.bg-blue { background: var(--blue); }
.bg-beige { background: var(--beige); }
 */

 
/* OPCION 2: Barra Tricolor debajo del nav  */
.nav-stripe-custom {
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,  
        var(--red) 60%, 
        var(--red) 75%, 
        var(--orange) 75%, 
        var(--orange) 85%, 
        var(--blue) 85%, 
        var(--blue) 100%
    );
    border: none;
    margin: 0;
    padding: 0;
}


/* --- 5. HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: var(--dark);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.slide-title {
    font-size: 5rem;
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0; transform: translateY(20px);
    transition: 0.8s ease 0.3s;
}
.slide.active .slide-title { opacity: 1; transform: translateY(0); }

.slide-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0; transform: translateY(20px);
    transition: 0.8s ease 0.5s;
}
.slide.active .slide-sub { opacity: 1; transform: translateY(0); }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active { background: var(--red); transform: scale(1.2); }


/* --- 6. SECCIÓN VALORES (THE TOOLS YOU NEED) --- */
.section-valores {
    background-color: var(--beige);
    padding: 80px 0;
    position: relative;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.valor-card {
    background: var(--white);
    padding: 40px 24px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.valor-card:hover { transform: translateY(-8px); }

.valor-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--dark);
    transition: color 0.3s;
}
.valor-card:hover .valor-icon { color: var(--red); }

.valor-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.valor-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
}


/* --- 7. SERVICIOS (GRID) --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.servicio-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}

.servicio-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.3s;
}
.servicio-item:hover .servicio-bg {
    transform: scale(1.1);
    opacity: 0.6;
}

.servicio-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px;
    color: var(--white);
    pointer-events: none;
}

.servicio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--orange);
}


/* --- 8. CTA SECTIONS --- */
.section-cta-blue {
    background-color: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.section-cta-blue h2 { color: var(--white); margin-bottom: 20px; }


/* --- 9. FOOTER --- */
.footer {
    background: #151515;
    color: #999;
    padding-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h3, .footer h4 { color: var(--white); margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}


/* --- 10. UTILIDADES Y ANIMACIONES --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 11. RESPONSIVE DESIGN (MÓVIL) --- */
@media (max-width: 900px) {
    .valores-grid { grid-template-columns: repeat(2, 1fr); }
    .slide-title { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* Navbar Móvil */
    .hamburger { display: flex; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        align-items: stretch;
    }
    
    .nav-links.open { display: flex; }
    
    .nav-link {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .nav-cta { margin: 10px 0 0 0; }
    
    /* Ajustes generales móvil */
    .valores-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .slide-title { font-size: 2.8rem; }
}

/* ============================================================
   SEPARADOR TRICOLOR (Global)
   ============================================================ */
.separator-tricolor {
    width: 100%;
    height: 4px; /* Altura sutil y elegante */
    background: linear-gradient(90deg, 
        var(--red) 0%, var(--red) 33.33%, 
        var(--orange) 33.33%, var(--orange) 66.66%, 
        var(--blue) 66.66%, var(--blue) 100%
    );
    border: none;
    margin: 0;
    padding: 0;
    display: block; /* Asegura que ocupe el ancho completo */
}