/* ==========================================================================
   Estilos Globales EH Electric - Layout Split Diagonal & HUD Navbar
   ========================================================================== */
@import url('variables.css');

/* Utilidades extraídas del diseño */
.text-dark-base { color: #1a1a1d !important; }
.text-dark-muted { color: #55555b !important; }
.bg-dark-base { background-color: var(--color-dark-base) !important; }
.bg-light-gray { background-color: #f4f4f5 !important; }
.text-primary-eh { color: var(--color-primary) !important; }

/* Reseteo y Base */
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--color-dark-base);
    color: var(--color-text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; line-height: 1.1; margin-bottom: var(--space-sm); font-style: italic; 
}
h1 { font-size: clamp(3.5rem, 7vw, 7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-primary-hover); }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-eh-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background-color: var(--color-primary); color: var(--color-white);
    font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
    padding: 1rem 2rem; text-transform: uppercase; letter-spacing: 1px;
    border: none; cursor: pointer; clip-path: var(--clip-button);
    transition: all var(--transition-fast); position: relative; z-index: 1;
}
.btn-eh-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-primary-hover); z-index: -1;
    transition: transform var(--transition-fast); transform: scaleX(0); transform-origin: right;
}
.btn-eh-primary:hover { color: var(--color-white); }
.btn-eh-primary:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-eh-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background-color: transparent; color: var(--color-white);
    font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
    padding: 0.9rem 1.9rem; text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
    clip-path: var(--clip-button); transition: all var(--transition-fast);
}
.btn-eh-outline:hover { background-color: var(--color-white); color: var(--color-dark-base); }

.btn-eh-outline-dark {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background-color: rgba(255,255,255,0.4); color: #1a1a1d;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
    padding: 0.9rem 1.9rem; text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid #1a1a1d; cursor: pointer; backdrop-filter: blur(4px);
    clip-path: var(--clip-button); transition: all var(--transition-fast);
}
.btn-eh-outline-dark:hover { background-color: #1a1a1d; color: var(--color-white); }

/* ==========================================================================
   NAVBAR (Panel Flotante HUD / Valorant Style)
   ========================================================================== */
.eh-navbar {
    background: transparent !important;
    padding: 1.5rem 0; 
    transition: all 0.4s ease;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1050; 
}

.eh-navbar.scrolled { padding: 0.5rem 0; }

.eh-navbar-inner {
    background: rgba(26, 26, 29, 0.4); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 4px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-height: 70px;
}

.eh-navbar-inner::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 320px; height: 100%;
    background-color: #161619; 
    clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%); 
    z-index: -1;
    border-top-left-radius: 3px; border-bottom-left-radius: 3px;
}

.brand-box { padding: 0.5rem 2.5rem 0.5rem 1.5rem; }

/* Enlaces del menú y efecto HUD */
.eh-navbar .nav-link {
    color: var(--color-white) !important; 
    font-family: var(--font-heading); 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.95rem; 
    position: relative; 
    transition: color 0.2s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
    padding: 0.5rem 0.8rem 1.2rem 0.8rem !important; /* Espacio inferior para el indicador */
}

.eh-navbar .nav-link:hover, .eh-navbar .nav-link.active { color: var(--color-primary) !important; }

/* El Punto HUD */
.eh-navbar .nav-link::before {
    content: ''; position: absolute;
    bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px;
    background-color: var(--color-primary);
    border-radius: 50%; opacity: 0; transition: opacity 0.3s;
}

/* La Línea HUD */
.eh-navbar .nav-link::after {
    content: ''; position: absolute; 
    bottom: 0px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; 
    background-color: var(--color-primary); 
    transition: width 0.3s ease-out;
}

.eh-navbar .nav-link.active::before, .eh-navbar .nav-link:hover::before { opacity: 1; }
.eh-navbar .nav-link.active::after, .eh-navbar .nav-link:hover::after { width: 24px; }

/* ELIMINAR flecha por defecto de Bootstrap */
.eh-navbar .dropdown-toggle::after {
    display: none !important;
}

/* Ajuste del botón CTA del Navbar */
.btn-sm-nav {
    padding: 0.6rem 1.5rem !important; font-size: 0.95rem !important; margin-right: 0.5rem;
}

@media (max-width: 991px) {
    .eh-navbar-inner { background: rgba(17,17,19,0.98); border-radius: 0; border: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .eh-navbar-inner::before { width: 100%; clip-path: none; border-radius: 0; }
    .eh-navbar { padding: 0 !important; }
    .collapse.navbar-collapse { padding: 1rem 1.5rem; }
    .eh-navbar .nav-link { padding-bottom: 0.5rem !important; }
    .eh-navbar .nav-link::before, .eh-navbar .nav-link::after { display: none; } /* Ocultar HUD en móvil */
}

/* ==========================================================================
   HERO SECTION (Alineación y Contraste Nivel Agencia)
   ========================================================================== */
.hero-section { 
    background-image: url('../img/hero-engineer.png'); 
    background-size: cover;
    background-position: 85% center; 
    background-color: #f4f4f5; 
    min-height: 100vh; overflow: hidden; position: relative;
}

.hero-section::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 60%; height: 100%;
    background: linear-gradient(90deg, rgba(244,244,245,1) 0%, rgba(244,244,245,0.9) 55%, transparent 100%);
    z-index: 1;
}

.hero-section::after {
    content: ''; position: absolute; top: -10%; left: 42%; 
    width: 12px; height: 120%; 
    background-color: var(--color-primary);
    transform: skewX(-24deg); z-index: 2;
    box-shadow: -8px 0 25px rgba(255, 90, 0, 0.35); 
}

.hero-text-col { padding-top: 120px; z-index: 3; position: relative; }
.hero-title { font-size: clamp(3.5rem, 6.5vw, 6.8rem); letter-spacing: -2px; }

@media (max-width: 991px) { 
    .hero-section { background-position: center right; }
    .hero-section::after { display: none; }
    .hero-section::before { 
        width: 100%;
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    }
}

/* ==========================================================================
   SERVICIOS Y TARJETAS
   ========================================================================== */
.service-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 25px 100%, 0 calc(100% - 25px));
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.service-card img { border-bottom: 3px solid var(--color-primary); }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Separadores de Estadísticas (Footer area) */
.stat-item { border-right: 1px solid var(--color-dark-border); }
.stat-item:last-child { border-right: none; }
@media (max-width: 991px) { .stat-item { border-right: none; } }

/* Footer hover effect */
.hover-primary {
    transition: color 0.3s ease;
}
.hover-primary:hover {
    color: var(--color-primary) !important;
}
