/* HEXA5 SECURITY - ESTILOS GLOBALES CONSOLIDADOS
   Concepto: Dark Cyber Tech con Secciones de Contraste
*/

:root {
    --hexa-dark: #0b0e11;
    --hexa-black: #050505;
    --hexa-orange: #ff6600;
    --hexa-cream: #FFF7E7; 
    --text-light: #f8f9fa;
    --text-gray: #8b949e;
    --nav-blur: rgba(11, 14, 17, 0.95);
}

/* 1. BASE */
body {
    background-color: var(--hexa-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. NAVBAR (Vuelve a ser oscura y profesional) */
.navbar {
    background-color: var(--nav-blur);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--hexa-orange) !important;
}

.main-logo {
    height: 80px;
    width: auto;
    filter: none; 
    transition: all 0.3s ease;
}

/* 3. DROPDOWN (Estilo Cyber) */
.dropdown-menu {
    background-color: #161b22;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    padding: 10px 0;
}

.dropdown-item {
    color: white;
    padding: 10px 25px;
}

.dropdown-item:hover {
    background-color: var(--hexa-orange);
    color: white;
    padding-left: 30px;
}

/* 4. HERO SECTION (Imagen con fuerza y contraste) */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-image: url('images/consultoria.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-blur {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 14, 17, 0.5); 
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 140px;
}

.hero-section h1 {
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* 5. SECCIÓN CRITERIOS (Única sección clara como contraste) */
.section-light {
    background-color: var(--hexa-cream);
    color: #212529; 
}

.criteria-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 40px 20px;
    height: 100%;
    transition: 0.4s;
}

.criteria-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.criteria-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.criteria-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. SERVICIOS (Vuelve al estilo oscuro premium) */
.service-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 15px;
    padding: 40px;
    height: 100%;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--hexa-orange);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--hexa-orange);
    margin-bottom: 20px;
    display: block;
}

/* 7. BOTONES */
.btn-cta {
    background-color: var(--hexa-orange);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
    color: white;
}

/* 8. EQUIPO */
.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid var(--hexa-orange);
    padding: 5px;
    background-color: var(--hexa-dark);
}

/* ELIMINACIÓN DE AZUL Y AJUSTE NEGRO HEXA5 */
.bg-black-hexa {
    background-color: #000000 !important; 
    border-top: 1px solid #1a1d21;
}

.footer-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2.2;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--hexa-orange);
    padding-left: 5px;
}

.social-icon {
    font-size: 1.2rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--hexa-orange);
    color: white;
    transform: translateY(-3px);
}

.text-gray {
    color: #8b949e !important;
}

.badge {
    padding: 8px 12px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    background: transparent;
}

/* 10. RESPONSIVE */
@media (max-width: 991px) {
    .main-logo { height: 40px; }
}

.badge {
    padding: 6px 12px;
    font-size: 0.7rem;
    margin-right: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: transparent;
}

.text-orange {
    color: var(--hexa-orange) !important;
}

/* RESALTE DE NÚMEROS EN CRITERIOS */
.criteria-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--hexa-orange);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
    text-shadow: 2px 2px 0px rgba(255, 102, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

.criteria-card:hover .criteria-number {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* SELECTOR DE IDIOMA */
.lang-selector {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hexa-orange) !important;
    text-transform: uppercase;
}

/* =========================================
   AÑADIDOS PARA NUEVAS SECCIONES Y ANIMACIONES 
   (Sin tocar lo anterior)
   ========================================= */

/* Estilo para las nuevas cajas de Industrias */
.industry-box {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.industry-box:hover {
    border-color: var(--hexa-orange) !important;
    background: rgba(255, 102, 0, 0.05);
    transform: translateY(-5px);
}

/* Lógica de Animación (Scroll Reveal) */
/* Los elementos empiezan invisibles y suben cuando el JS añade la clase */
.service-card, .criteria-card, .team-member, form, .industry-box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Clase que activará el JavaScript al hacer scroll */
.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.footer-link-list li {
    margin-bottom: 8px;
}

.footer-legal-links li a:hover {
    color: var(--hexa-orange) !important;
}