/*
  ==========================================
  Optimización y Unificación de Estilos CSS
  ==========================================
*/

/* --- 0. Variables CSS y Estilos Base --- */

:root {
    /* Colores */
    --color-primary: #007bff; /* Azul para precios/enlaces de producto */
    --color-green: #4CAF50; /* Verde para ícono de teléfono */
    --color-dark-nav: #222; /* Fondo de la barra de navegación */
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-gray-light: #f9f9f9; /* Fondo de la página */
    --color-gray-medium: #aaaaaa; /* Fondo del footer */
    --color-border: #ddd;
    
    /* Fuentes */
    --font-impact: 'Arial Black', Gadget, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-gray-light);
    color: var(--color-text-dark);
}

/* --- 1. Estilos de la Barra de Navegación (.navbar) --- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-dark-nav);
    color: var(--color-text-light);
    padding: 10px 30px;
    /* Optimización: Mejor control de z-index si es sticky */
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s; /* Transición para el hover */
}

.nav-links a:hover {
    color: #ccc;
}

.search-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- 2. Estilos de la Cuadrícula de Productos (main) --- */

main {
    padding: 30px;
    max-width: 1300px; 
    margin: 0 auto;
}

.product-grid {
    display: grid;
    /* 4 columnas por defecto en escritorio */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
}

.product-card {
    background-color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s; /* Animación más completa */
}

.product-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Sombra más marcada al hacer hover */
}

.product-card img {
    /* Optimización: Uso de 'display: block' para evitar espacios no deseados */
    display: block; 
    max-width: 100%;
    height: 200px; 
    object-fit: contain;
    margin: 0 auto 15px auto; /* Centra la imagen y añade margen inferior */
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 5px 0;
}

.product-card .name {
    font-size: 1rem;
    color: var(--color-text-dark);
    margin: 5px 0;
}

/* Placeholder para diseño de 4 columnas (oculto por defecto) */
.product-card-placeholder {
    display: none; 
    border: none !important;
    box-shadow: none !important;
}
@media (min-width: 993px) {
    .product-card-placeholder {
        display: block;
    }
}

/* --- 3. Estilos del Footer (.footer) --- */

.footer {
    background-color: var(--color-gray-medium); 
    color: var(--color-text-dark);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    width: 100%; /* Asegura que ocupe todo el ancho */
}

.footer p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icons a {
    display: flex; /* Uso de flexbox para centrar el contenido */
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #777;
    color: #f0f0f0; 
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.social-icons a:hover {
    background-color: #555;
}


/* --- 4. Estilos de Página de Inicio/Banner (Home/Hero) --- */

.hero {
    background-color: var(--color-black); 
    padding: 80px 20px;
    text-align: center;
    color: #e60000; /* Color rojo fuerte */
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: bold;
    font-family: var(--font-impact); 
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text h2 {
    font-size: 4rem;
    font-family: var(--font-impact);
    margin: -20px 0 0 0; 
}

/* Área de contenido de texto genérico */
.content-area {
    max-width: 800px; 
    margin: 0 auto; 
    padding: 40px 20px;
    background-color: var(--color-text-light); 
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.content-area p {
    margin-bottom: 20px;
}

/* --- 5. Estilos de la Página de Contacto (info.html) --- */
/* Estilos centrados para el bloque de info */

.info-block {
    /* Contenedor que agrupa los elementos de contacto */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.info-item {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    margin-bottom: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.icon-container {
    width: 120px; 
    height: 120px;
    margin-bottom: 10px; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
}

/* Teléfono */
.phone-icon-bg {
    background-color: var(--color-green);
    border-radius: 50%;
    /* Optimización: Sombra sutil para darle profundidad, como el original */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.phone-icon-bg .fas {
    color: var(--color-text-light);
    font-size: 50px;
}

/* Íconos de Horario y Correo (si usas Font Awesome) */
.icon-black .fas {
    color: var(--color-black);
    font-size: 70px; 
}

.calendar-icon {
    font-size: 90px !important;
}
.clock-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 35px !important;
    background-color: var(--color-white);
    border-radius: 50%;
    padding: 2px;
}

.data-text {
    font-size: 1em;
    font-weight: normal; 
    color: var(--color-text-dark);
}

.location-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-top: 40px;
    width: 100%;
    max-width: 350px;
}

.location-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.map-image {
    width: 100%; 
    max-width: 300px; 
    height: auto; 
    border: 1px solid var(--color-border);
    display: block;
}

/* --- 6. Diseño Responsivo (Media Queries) --- */

@media (max-width: 992px) {
    .product-grid {
        /* 3 columnas en tablets grandes */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        /* 2 columnas en tablets pequeñas */
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    .nav-links {
        margin-top: 10px;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text h2 {
        font-size: 2.5rem;
        margin-top: -10px; /* Reducción de margen para mantener la cercanía */
    }
    .content-area {
        font-size: 1rem;
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        /* 1 columna en celulares */
        grid-template-columns: 1fr;
    }
}

.carro1{
    width: 30px;
    height: 50px;
    padding: 50px;
    display: flex;
    text-align: center   ;
}