/* =========================================================
   WAREHOUSE OFFICES STYLES - FIX ENCUADRE COMPLETO
========================================================= */

/* HERO SECTION */
.warehouse-hero {
    /*margin-top: 125px;*/
    position: relative;
    width: 100%;
    height: 225px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.warehouse-hero .hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.warehouse-hero .hero-content {
    position: relative;
    z-index: 3;
    padding-left: 10%;
}

.warehouse-hero h1 {
    font-family: "Baumans", sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}

/* GRID & CARDS */
.warehouse-items {
    background-color: #f9f9f9; /* Un gris muy ligero de fondo para resaltar las cards blancas */
    padding: 60px 0 80px;
}

.section-title {
    font-family: "Baumans", sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 3px;
    background-color: #F48534;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.warehouse-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* FIX DEFINITIVO PARA LAS FOTOS INICIALES */
.warehouse-image {
    width: 100%;
    height: 250px; /* Altura controlada */
    background-color: #fff; /* Fondo blanco por si la foto no es exacta */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Pequeño margen para que el colage no toque los bordes */
}

.warehouse-image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warehouse-image img.facility-photo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* ¡ESTO HACE QUE SE VEA LA FOTO COMPLETA SIN RECORTAR! */
    transition: transform 0.5s ease;
}

/* Overlay Naranja */
.image-overlay-icon {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(244, 133, 52, 0.2); /* Menos opacidad para no tapar el colage */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-overlay-icon i {
    color: #fff;
    font-size: 2rem;
    background: rgba(244, 133, 52, 0.8);
    padding: 15px;
    border-radius: 50%;
}

.warehouse-card:hover .image-overlay-icon {
    opacity: 1;
}

.warehouse-card:hover .warehouse-image img {
    transform: scale(1.05);
}

.warehouse-info {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.warehouse-name {
    font-family: "Baumans", sans-serif;
    font-size: 1.3rem;
    color: #333;
    margin: 0;
}

/* =========================================================
   CALL TO ACTION SECTION
========================================================= */
.warehouse-cta {
    background: linear-gradient(135deg, #F48534 0%, #ff9447 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-family: "Baumans", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 16px 45px;
    background-color: #fff;
    color: #F48534;
    border-radius: 50px;
    font-family: "Baumans", sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #28B5A4;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .warehouse-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .warehouse-grid { grid-template-columns: 1fr; }
    /*.warehouse-hero { margin-top: 80px; }*/
}