/* ==========================================================================
   ESTILOS GENERALES - EJE MINERO
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f6f9;
    color: #121e31;
}

/* ==========================================================================
   HEADER / BARRA DE NAVEGACIÓN
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 55px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #121e31;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e58d2b;
}

.btn-registro {
    background-color: #e58d2b;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-registro:hover {
    background-color: #c9751d;
}

/* ==========================================================================
   HERO / BUSCADOR PRINCIPAL
   ========================================================================== */
.hero-buscador { 
    background: linear-gradient(rgba(18, 30, 49, 0.85), rgba(18, 30, 49, 0.85)), 
                url('https://images.unsplash.com/photo-1605548230624-8d2d0419c517?q=80&w=1920') no-repeat center center/cover; 
    padding: 100px 20px; 
    text-align: center; 
    color: white; 
}

.hero-buscador h1 { 
    font-size: 2.2rem; 
    margin-bottom: 35px; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
}

.form-busqueda { 
    background: #343a40;
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.4); 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    max-width: 950px; 
    margin: 0 auto; 
    justify-content: center; 
    align-items: flex-end; 
}

.form-group { 
    flex: 1; 
    min-width: 250px; 
    text-align: left; 
}

.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    color: #ffffff; 
    font-weight: 600; 
    font-size: 0.9rem; 
}

.form-control { 
    width: 100%; 
    padding: 14px; 
    border: 1px solid #ffffff; 
    border-radius: 4px; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.95rem; 
    color: #333333; 
    background-color: #ffffff; 
}

.btn-buscar { 
    background-color: #e58d2b; 
    color: white; 
    border: none; 
    padding: 0 45px; 
    height: 50px; 
    border-radius: 4px; 
    font-weight: 700; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: background 0.3s; 
    font-size: 0.95rem; 
    letter-spacing: 0.5px; 
}

.btn-buscar:hover { 
    background-color: #c9751d; 
}

/* ==========================================================================
   LAYOUT PRINCIPAL: GRILLA + MAPA (SEGÚN MOCKUP)
   ========================================================================== */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.container-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .container-layout {
        grid-template-columns: 7fr 5fr;
    }
}

/* CONTENEDOR DE TARJETAS */
.grid-empresas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .grid-empresas {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* LA TARJETA (CARD) INDIVIDUAL */
.card-empresa {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header-info {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #ffffff;
}

.card-logo-placeholder {
    height: 70px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-logo-placeholder img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-titulo {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    background: #121e31;
    padding: 8px 10px;
    margin-top: 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* CONTENEDOR DEL MINI MAPA */
.card-mini-mapa {
    height: 100px;
    background: #e5e5e5;
    position: relative;
    overflow: hidden;
}

.card-mini-mapa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BOTONES DE ACCIÓN DIRECTA */
.card-acciones {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: #f8f9fa;
}

.btn-accion {
    padding: 8px 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    transition: opacity 0.2s;
}

.btn-accion:hover {
    opacity: 0.9;
}

.btn-m-amarillo { background-color: #e58d2b; color: white; }
.btn-m-verde { background-color: #28a745; color: white; }
.btn-m-oscuro { background-color: #121e31; color: white; }

/* COLUMNA DERECHA: MAPA PREMIUM */
.mapa-lateral-container {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
    padding: 15px;
    height: 550px;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
}

.mapa-placeholder {
    width: 100%;
    flex: 1;
    background: #e9ecef;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}