/**
 * CSS para el módulo Nuestras Tiendas
 */

/* Sección principal */
.ourstores-section {
    padding: 30px 0;
    background-color: #f8f9fa;
    margin-bottom: 60px;
}

.ourstores-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.ourstores-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745);
}

/* Contenedor principal con layout lado a lado */
.ourstores-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* Contenedor del mapa - Lado izquierdo */
.ourstores-map-container {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* opcional, para separar la imagen de los bordes */
    border-radius: 12px; /* opcional, para redondear bordes como el otro bloque */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); /* opcional, si quieres consistencia con el grid */
    background-color: white;

}

.ourstores-map-image {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.ourstores-map-image:hover {
    transform: scale(1.02);
}

/* Grid de tiendas 3x3 - Lado derecho */
.ourstores-grid-container {
    flex: 1;
    max-width: 50%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ourstores-store-item {
    text-align: center;
    transition: transform 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.ourstores-store-item:hover {
    transform: translateY(-5px);
    background: #e9ecef;
}

.ourstores-store-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ourstores-store-item:hover .ourstores-store-image {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ourstores-store-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.ourstores-store-country {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .ourstores-title {
        font-size: 2.2rem;
    }
    
    .ourstores-content {
        gap: 30px;
    }
    
    .ourstores-grid-container {
        padding: 25px;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .ourstores-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .ourstores-map-container,
    .ourstores-grid-container {
        max-width: 100%;
    }
    
    .ourstores-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ourstores-section {
        padding: 40px 0;
        margin: 20px 0;
    }
    
    .ourstores-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .ourstores-content {
        gap: 25px;
    }
    
    .ourstores-grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }
    
    .ourstores-store-image {
        height: 70px;
    }
    
    .ourstores-store-name {
        font-size: 0.8rem;
    }
    
    .ourstores-store-country {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .ourstores-title {
        font-size: 1.5rem;
    }
    
    .ourstores-grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 10px;
    }
    
    .ourstores-store-item {
        padding: 10px;
    }
    
    .ourstores-store-image {
        height: 60px;
    }
    
    .ourstores-store-name {
        font-size: 0.75rem;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ourstores-section * {
    animation: fadeInUp 0.6s ease-out;
}

/* Placeholder para imágenes que no cargan */
.ourstores-store-image[src*="placeholder"] {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}