/* Variables Tácticas y Corporativas */
:root {
    --marino-dark: #070B14;
    --marino-mid: #0D1424;
    --marino-light: #1A253D;
    --dorado: #C5A059;
    --dorado-hover: #A68443;
    --olivo: #C5A059;
    --olivo-light: #C5A059;
    --gray-text: #A0ABC0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--marino-dark);
    color: #fff;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Oswald', sans-serif;
}

/* Utilidades */
.text-dorado { color: var(--dorado) !important; }
.text-olivo-light { color: var(--olivo-light) !important; }
.text-gray-400 { color: var(--gray-text) !important; }
.bg-dorado { background-color: var(--dorado) !important; }
.bg-marino-light { background-color: var(--marino-light) !important; }
.border-olivo { border: 1px solid var(--olivo-light) !important; }
.border-dorado { border: 1px solid var(--dorado) !important; }

/* Navbar */
.tactical-nav {
    background-color: rgba(7, 11, 20, 0.95);
    border-bottom: 2px solid var(--marino-light);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.tactical-nav.scrolled {
    background-color: var(--marino-dark);
    border-bottom: 2px solid var(--dorado);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 10px 0;
}

.brand-text { letter-spacing: 2px; font-size: 1.5rem; }

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    letter-spacing: 1px;
    margin: 0 10px;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover { color: var(--dorado); }
.custom-toggler { border-color: var(--dorado); }

/* Botones */
.btn-tactical-gold {
    background: linear-gradient(45deg, var(--dorado), #D4B678);
    color: var(--marino-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: all 0.3s;
}

.btn-tactical-gold:hover {
    background: linear-gradient(45deg, var(--dorado-hover), var(--dorado));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
}

.btn-tactical-outline {
    background: transparent;
    color: var(--dorado);
    border: 2px solid var(--dorado);
    transition: all 0.3s;
}

.btn-tactical-outline:hover {
    background: var(--dorado);
    color: var(--marino-dark);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1582139329536-e7284fece509?auto=format&fit=crop&q=80') center/cover no-repeat fixed;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(7,11,20,0.95) 0%, rgba(7,11,20,0.7) 100%);
}

.badge-tactical {
    display: inline-block;
    background-color: rgba(197, 160, 89, 0.2);
    color: var(--dorado);
    padding: 8px 15px;
    border: 1px solid var(--dorado);
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Secciones Corporativas */
.corp-section { background-color: var(--marino-mid); }

.corp-card {
    background-color: var(--marino-dark);
    border-left: 3px solid var(--olivo);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.tactical-list-item { 
    background-color: var(--marino-light); 
    border-left: 3px solid var(--dorado); 
    padding: 10px 15px; 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
}

.tactical-list-item i { color: var(--dorado); margin-right: 10px; width: 20px; text-align: center; }

.gear-card { 
    background-color: var(--marino-dark); 
    border: 1px solid rgba(197, 160, 89, 0.2); 
    border-radius: 5px; 
    height: 100%; 
}

.turn-badge { 
    border: 2px solid var(--dorado); 
    background: transparent; 
    color: #fff; 
    padding: 10px 20px; 
    font-weight: bold; 
    font-family: 'Oswald', sans-serif; 
    font-size: 1.2rem; 
    display: inline-block; 
    margin-bottom: 10px;
}

.consulting-box { 
    background: rgba(197, 160, 89, 0.05); 
    border: 1px solid rgba(197, 160, 89, 0.2); 
    padding: 20px; 
    border-radius: 8px; 
}

.img-placeholder-wrapper { 
    background-color: var(--marino-dark); 
    border: 2px dashed var(--dorado);   
    display: block; 
    align-items: center; 
    justify-content: center; 
    min-height: auto; 
    color: var(--dorado); 
    font-weight: bold; 
    text-align: center; 
    overflow: visible; 
    position: relative;
}

.img-placeholder-wrapper img { 
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    position: static;
    margin: 0 auto;
}

/* Servicios */
.services-section { background-color: var(--marino-dark); }

.service-panel {
    background-color: var(--marino-light);
    border-top: 4px solid var(--marino-light);
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.service-panel:hover {
    border-top-color: var(--dorado);
    transform: translateY(-5px);
    background-color: #1f2c47;
}

.panel-icon i { font-size: 2.5rem; color: var(--gray-text); transition: color 0.3s; }
.service-panel:hover .panel-icon i { color: var(--dorado); }
.panel-list { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--gray-text); }
.panel-list li { margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; }

.highlight-panel {
    background: linear-gradient(135deg, var(--dorado) 0%, #a88441 100%);
    border-top-color: #fff;
}

/* Contacto y Formulario */
.contact-section { background-color: var(--marino-mid); }
.contact-wrapper { display: flex; border-radius: 10px; overflow: hidden; }

.contact-info { background-color: var(--marino-dark); border-right: 1px solid rgba(255,255,255,0.05); }

.icon-box {
    width: 50px; height: 50px;
    background-color: var(--marino-light);
    display: flex; align-items: center; justify-content: center;
    border-radius: 5px; color: var(--dorado); font-size: 1.2rem;
}

.social-tactical a {
    display: inline-flex; width: 45px; height: 45px;
    background-color: var(--marino-light); color: var(--gray-text);
    align-items: center; justify-content: center;
    border-radius: 5px; margin-right: 10px; font-size: 1.2rem;
    transition: all 0.3s; text-decoration: none;
}

.social-tactical a:hover { background-color: var(--dorado); color: var(--marino-dark); }
.form-tactical { background-color: var(--marino-light); }

.tactical-input {
    background-color: var(--marino-dark) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    padding: 12px 15px;
    border-radius: 5px;
}

.tactical-input:focus {
    box-shadow: none; border-color: var(--dorado) !important;
}

/* Captcha Visual Security */
.captcha-box {
    background-image: repeating-linear-gradient(
        45deg, 
        transparent, 
        transparent 5px, 
        rgba(197, 160, 89, 0.15) 5px, 
        rgba(197, 160, 89, 0.15) 10px
    );
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Footer */
.tactical-footer { background-color: #04070c; border-top: 1px solid rgba(197, 160, 89, 0.2); }

/* ==============================================================
   🛠️ CORRECCIONES RESPONSIVAS (MÓVILES Y TABLETS)
============================================================== */

/* Evitar el scroll horizontal accidental en celulares */
html, body {
    overflow-x: hidden;
}

@media (max-width: 991px) {
    /* 1. Reparación del Navbar en Móvil */
    .navbar-collapse {
        background-color: var(--marino-dark);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        border: 1px solid var(--dorado);
        box-shadow: 0 15px 25px rgba(0,0,0,0.8);
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: center;
    }

    .nav-item .btn-tactical-gold {
        margin-top: 15px;
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* 1. Reparación de la Portada (Centrado real y equilibrado) */
    .hero-section {
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: center; /* Esto centra verticalmente */
        padding-top: 70px; 
        padding-bottom: 20px;
    }

    /* Neutralizamos el padding de Bootstrap que desbalanceaba el centro */
    .hero-section .pt-5 {
        padding-top: 0 !important;
    }

    /* 2. Compactamos los textos para quitar los huecos gigantes */
    .badge-tactical {
        font-size: 0.7rem;
        padding: 5px 10px;
        margin-bottom: 10px !important; /* Más pegadito al título */
        border: 1px solid rgba(197, 160, 89, 0.5);
    }

    .hero-title {
        font-size: 2.2rem !important; 
        line-height: 1.1 !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important; /* Más pegadito al párrafo */
    }
    
    .hero-text {
        font-size: 0.95rem !important;
        line-height: 1.5;
        margin-top: 0 !important;
        margin-bottom: 20px !important; /* Espacio justo antes del botón */
        padding: 12px 15px !important; 
        border: none !important; 
        border-left: 3px solid var(--dorado) !important; 
        background-color: rgba(7, 11, 20, 0.8); /* Fondo un poco más oscuro para que resalte más */
        border-radius: 0 8px 8px 0;
    }

    /* El botón abarca todo el ancho y se pega al texto */
    .hero-section .d-flex {
        width: 100%;
        margin-top: 0 !important;
    }
    
    .hero-section .btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }

    /* 3. Ajustes de imágenes y otras secciones */
    .img-placeholder-wrapper {
        min-height: 200px;
    }
    
    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .gear-card {
        margin-bottom: 15px;
    }
}