/* --- ESTILOS PARA EL VISOR DE IMAGENES (LIGHTBOX) --- */
.modal-overlay {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 10000;
    /* Encima de todo (el menu es 9999) */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback */
    background-color: rgba(0, 0, 0, 0.9);
    /* Fondo negro transparente */
}


.modal-content-img {
    margin: auto;
    display: block;

    /* CAMBIO AQUÍ: */
    width: auto;
    /* Usa el tamaño real de la imagen */
    max-width: 90%;
    /* Pero que no se salga de la pantalla si es gigante */
    max-height: 90vh;
    /* Que no sea más alta que la pantalla */

    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Botón de cerrar (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Texto descriptivo abajo (opcional) */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Agrega esto a tus estilos en Catalogo.html */
.brand-name {
    margin-top: 10px;
    /* Espacio entre el logo y el texto */
    font-weight: bold;
    /* Texto en negritas */
    font-size: 14px;
    /* Tamaño de letra */
    color: #555;
    /* Color gris oscuro */
    text-transform: uppercase;
    /* Forzar mayúsculas (opcional) */
    line-height: 1.2;
}

/* Opcional: Cambia el color al pasar el mouse por la columna */
.brand-col:hover .brand-name {
    color: #d9534f;
    /* Mismo rojo que el borde inferior */
}

/* --- 1. AJUSTE DE ESPACIOS (PADDING) --- */
body {
    /* ESTE ES EL ESPACIO QUE PEDISTE: */
    padding-top: 100px;
    background-color: #fff;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- 2. BARRA DE FILTROS (LOGOS) --- */
.brand-filter-bar {
    background-color: #f4f4f4;
    border-bottom: 2px solid #ccc;
    padding: 15px 0;
    margin-bottom: 30px;
}

.brand-col {
    text-align: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border-right: 1px solid #ddd;
}

.brand-col:hover,
.brand-col.active {
    opacity: 1;
    transform: scale(1.05);
    background-color: #fff;
    border-bottom: 3px solid #d9534f;
}

.brand-logo-top {
    height: 50px;
    width: auto;
}

/* --- 3. CLASES PARA CAMBIAR DE VISTA --- */
.view-section {
    display: none;
    animation: fadeIn 0.5s;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    background: #333;
    color: white;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.btn-back:hover {
    background: #d9534f;
    color: white;
    text-decoration: none;
}

/* --- 4. ESTILOS DE LA TABLA COMPLETA --- */
.catalogo-title {
    font-weight: 800;
    color: #3b6e9e;
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
}

.table-inventory {
    border: 2px solid #000 !important;
    font-size: 13px;
}

.table-inventory th {
    background: #1a1a1a;
    color: white;
    text-align: center;
    border: 1px solid #000;
    padding: 8px;
    text-transform: uppercase;
}

.table-inventory td {
    border: 1px solid #000 !important;
    vertical-align: middle !important;
    padding: 4px 8px !important;
}

/* Filas Vendidas */
.row-sold {
    background-color: #dcebf7 !important;
}

.text-sold-status {
    color: #2e75b6;
    font-weight: bold;
    text-align: center;
}

.text-sold-property {
    color: #2e75b6;
    font-weight: bold;
}

/* Filas Totales */
.footer-total-row {
    background: #3071a9 !important;
    color: white !important;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px !important;
}

.row-subtotal td {
    background-color: #fff;
    font-weight: bold;
    border-top: 2px solid #000 !important;
    text-align: right;
    font-size: 14px;
}

.table-logo-img {
    max-width: 100px;
    display: block;
    margin: 0 auto;
}

/* --- 5. ESTILOS WESLACO (DETALLE) --- */
.property-title {
    color: #337ab7;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

.tenant-table thead th {
    color: #2e75b6;
    border-bottom: 2px solid #2e75b6;
    font-size: 16px;
    background: none;
    text-align: left;
}

.img-site-plan {
    width: 100%;
    border: 1px solid #ddd;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

.distance-box {
    background: #eee;
    padding: 15px;
    margin: 5px;
    border-radius: 5px;
    text-align: center;
}

@media (min-width: 768px) {

    /* 1. Aumentar el tamaño de la letra y el espacio */
    .navbar-nav>li>a {
        font-size: 16px !important;
        /* Aumenté esto (antes era aprox 13px) */
        font-weight: bold !important;
        /* Asegura que sea negrita */
        padding-left: 15px !important;
        /* Más espacio a los lados de cada botón */
        padding-right: 15px !important;
        padding-top: 30px !important;
        /* Más altura para que la barra se vea más grande */
        padding-bottom: 30px !important;
    }

    /* 2. (Opcional) Hacer el LOGO un poco más grande también */
    .logo,
    .logo-lnk img {
        max-width: 200px !important;
        /* Ajusta este número si quieres el logo más grande */
        width: auto !important;
    }
}


/* Estilos de Location */
.weslaco-title {
    font-family: 'Times New Roman', serif;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 10px;
    color: #000;
}

.weslaco-address {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.map-container {
    border-top: 5px solid #005eb8;
    border-bottom: 5px solid #ccc;
    margin-bottom: 30px;
    position: relative;
}

.map-img {
    width: 100%;
    display: block;
}

/* Estilos de Distancia */
.distance-header {
    color: #005eb8;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.distance-row {
    background-color: #e6e6e6;
    padding: 20px 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 50px;
}

.dist-item h4 {
    margin: 0 0 5px 0;
    font-weight: 900;
    font-size: 18px;
}

.dist-item p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Estilos de Tabla de Inquilinos */
.tenant-header {
    color: #005eb8;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #005eb8;
    padding-bottom: 10px;
}

.tenant-row td {
    font-size: 16px;
    padding: 10px !important;
    font-weight: bold;
    color: #444;
    font-style: italic;
}

.tenant-row-avail td {
    color: #005eb8;
}

/* Imagen final */
.site-plan-img {
    width: 100%;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* --- ESTO ES LO QUE FALTABA PARA LA GALERÍA --- */
.title-header {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.red-separator {
    width: 80px;
    height: 4px;
    background-color: #d9534f;
    margin: 0 auto;
}

.img-grid {
    width: 100%;
    /* Fuerza a la imagen a no salirse de su columna */
    height: 180px;
    /* Altura fija para que todas se vean parejas */
    object-fit: cover;
    /* Recorta la imagen para llenar el cuadro sin deformarse */
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid #ddd;
}

.img-grid:hover {
    transform: scale(1.03);
}

.hls-title {
    font-size: 28px;
    font-weight: bold;
    color: #0f3e50;
    margin-bottom: 20px;
    border-bottom: 3px solid #005eb8;
    display: inline-block;
    padding-bottom: 5px;
}

.bullet-point {
    color: #005eb8;
    margin-right: 10px;
    font-size: 28px;
    vertical-align: middle;
}

/* CAMBIOS AQUÍ: height: auto para que se vea la foto completa */
.main-img-hls {
    width: 100%;
    height: auto;
    /* Se ajusta sola para no recortarse */
    border: 1px solid #ccc;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sub-img-hls {
    width: 100%;
    height: auto;
    /* Se ajusta sola */
    border: 1px solid #ccc;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.sub-img-hls:hover {
    transform: scale(1.03);
}

.hls-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}