.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* --- Layout de Productos --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.productos-container {
    display: contents; /* Esto permite que el grid se aplique a los hijos directos */
}

/* --- Estilos de Producto --- */
.product-container {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.05);
    text-align: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgb(0, 21, 255);
}

.product-tag {
    position: absolute;
    top: 10px;
    right: -25px;
    color: white; /* Texto blanco para mejor contraste */
    padding: 5px 25px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    font-size: 0.8em;
}

/* COLOR AZUL para etiquetas generales */
.product-tag {
    background-color: #002aff;
}

/* COLOR ROJO para OFERTA */
.product-tag.oferta {
    background-color: #ff0019;
}

.product-image {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-details {
    text-align: left;
}

.product-details p {
    font-size: 0.9em;
    color: #000000;
    margin: 0 0 5px;
}

.product-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 10px;
    color: #000000;
    line-height: 1.3;
}

.product-family {
    font-size: 0.9rem;
    color: #000000ff;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 10px;
}

.price {
    font-size: 1.2em;
    font-weight: bold;
    color: #044bfea5;
}

/* Mensajes de estado */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    grid-column: 1 / -1;
}

/* Estilos para la sección de video */
.video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.video-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.2rem;
}

.video-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.video-overlay:hover {
    background: rgba(0,0,0,0.2);
}

#promoVideo {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.play-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.play-button::after {
    content: '';
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #333;
    margin-left: 5px;
}

.feature-item span {
    color: #5a6c7d;
    font-weight: 500;
}

/* Estilos para la sección de mapas */
.maps-section {
    background: #fff;
}

.maps-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.2rem;
}

.maps-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.map-container {
    height: 450px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.location-info {
    padding: 20px;
}

.info-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.contact-item {
    padding: 10px 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-title {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text {
    color: #5a6c7d;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }
    
    .video-title,
    .maps-title {
        font-size: 1.8rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .map-container {
        height: 350px;
    }
    
    .location-info {
        padding: 15px;
    }
    
    .product-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .product-container {
        padding: 10px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-title {
        font-size: 1em;
    }
    
    .price {
        font-size: 1.1em;
    }
}