/* styles.css */
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --light: #2f7122;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --white: #388E3C;
    --black: #000000;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white;
    background-color:gainsboro;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

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

/* Header */
.header {
    background-color: #388E3C;
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Removed transparent header styles */

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo h1 span {
    color: var(--secondary);
}

.logo p {
    font-size: 0.9rem;
    color: var(--gray);
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav ul li a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav ul li a:hover::after {
    width: 100%;
}

.nav ul li a:hover {
    color: var(--secondary);
}

/* Removed transparent header nav styles */

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1800&q=80') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Nueva sección de héroe */
.hero-section {
    height: calc(100vh - 100px);
    min-height: 500px; /* Restaurar altura original */
    max-height: 700px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    height: 100%;
    width: 100%;
    min-height: inherit;
}

.hero-half {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 400px; /* Restaurar altura original */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: flex 0.3s ease; /* Transición más rápida y simple */
    overflow: hidden;
}

.hero-half:hover {
    flex: 1.1; /* Efecto de hover más sutil */
}

.hero-half.cdmx {
    background-image: url('img/CDMX.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f5f5f5; /* Color de respaldo gris claro neutro */
}

.hero-half.gdl {
    background-image: url('img/GDL.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f5f5f5; /* Color de respaldo gris claro neutro */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay negro sutil */
    z-index: 1;
    transition: background-color 0.3s ease;
}

.hero-half:hover .hero-overlay {
    background-color: rgba(0, 0, 0, 0.2); /* Menos opaco en hover */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 80%;
    padding: 1.5rem; /* Reducir padding para hacerlo más compacto */
    background-color: rgba(0, 0, 0, 0.7); /* Fondo negro semitransparente */
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.hero-content h2 {
    font-size: 2.5rem; /* Reducir tamaño para que quepa mejor */
    margin-bottom: 0.5rem; /* Reducir margen inferior */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1rem; /* Reducir tamaño del texto descriptivo */
    margin-bottom: 1.5rem; /* Reducir margen inferior */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.3; /* Reducir altura de línea */
    font-weight: 400;
}

.hero-btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem; /* Reducir padding para hacerlo más compacto */
    font-size: 1rem; /* Reducir tamaño de fuente */
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    background-color: white;
    color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Products Section */
.products {
    padding: 0;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary);
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-left: 50px;
    margin-right: 60px;
}

.product-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #419D2F;
}

.product-image img {
    max-height: 100%;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-category {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.product-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    /*height: 60px*/;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 1;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background-color: #1a252f;
}

.favorite-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.favorite-btn:hover {
    background-color: #e9ecef;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about .container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
    color: #555;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

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

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(231, 76, 60, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.rating {
    color: #f1c40f;
    margin-bottom: 20px;
}

.testimonial p {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client h4 {
    font-size: 1.1rem;
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary);
    color: var(--white);
}

.newsletter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.newsletter-content p {
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    flex: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
.footer {
    background-color: #1a252f;
    color: var(--white);
    padding: 2rem 0 1rem;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col p {
    color: #95a5a6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2c3e50;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #95a5a6;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #95a5a6;
}

.contact-info i {
    color: var(--secondary);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #95a5a6;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

/* Estilo para el botón de descarga de catálogo */
.btn-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    color: #333;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    border: 1px solid #ddd;
    max-width: 200px;
    text-align: center;
    justify-content: center;
}

.btn-download:hover {
    background-color: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-download i {
    font-size: 18px;
    color: #e74c3c; /* Mismo color rojo que los botones */
}

/* Estilos para las opciones de catálogo */
.catalog-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.catalog-option {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: white;
}

.catalog-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.catalog-option h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.catalog-option p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.catalog-option .btn {
    display: inline-block;
    background-color: white;
    color: var(--light);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.catalog-option .btn:hover {
    background-color: var(--secondary);
    color: white;
    transform: scale(1.05);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

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

/* El indicador de ubicación ya no se usa - se ha trasladado al encabezado */

/* Estilos para los enlaces de navegación */
.navigation-links {
    display: flex;
    align-items: center;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.back-to-home i {
    margin-right: 8px;
}

.back-to-home:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Se han eliminado estilos antiguos de catálogos */

/* Se han eliminado estilos antiguos de catalog-hero-content */

/* Se han reemplazado los estilos antiguos de hero-btn por nuevos en la sección de hero-section */

/* Estilos para la página de inicio */
.homepage {
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Ajustes para eliminar espacios en blanco */
body.homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.homepage section.hero-section {
    flex: 1;
}

/* Elimina espacios blancos por encima y debajo del contenido principal */
iframe#catalogoFrame {
    display: none;
}

/* Mejoras adicionales para la visualización de imágenes y texto */
.hero-section {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Asegurar que el contenedor principal ocupe todo el espacio disponible */
body.homepage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.homepage header {
    flex-shrink: 0;
}

body.homepage footer {
    flex-shrink: 0;
}

/* Mejorar la visualización en dispositivos móviles */
@media (max-width: 576px) {
    .catalog-hero-option {
        height: 400px;
    }
    
    .catalog-hero-content {
        width: 90%;
        padding: 1.5rem;
    }
    
    .catalog-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .catalog-hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .about .container {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ajustes para hero-section en pantallas medianas */
    .hero-section {
        min-height: 450px;
        max-height: 600px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    /* Ajustar imágenes para tablets */
    .hero-half.cdmx,
    .hero-half.gdl {
        background-size: cover; /* Mantener cover en tablets */
        background-position: center center;
    }
}

@media (max-width: 768px) {
    .catalog-hero {
        flex-direction: column;
        height: auto;
    }
    
    /* Estilos responsivos para hero-section */
    .hero-section {
        height: auto;
        min-height: 450px; /* Restaurar altura original */
        max-height: none;
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Mantener 2 columnas en móvil */
        height: auto;
        gap: 0; /* Sin espacio entre columnas */
    }
    
    .hero-half {
        flex: none;
        height: 350px; /* Restaurar altura original */
        min-height: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Ajustar imágenes de fondo para móviles */
    .hero-half.cdmx,
    .hero-half.gdl {
        background-size: cover; /* Llenar todo el espacio disponible */
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .hero-half:hover {
        flex: none;
        transform: none;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.7); /* Mantener opacidad para legibilidad */
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 0;
    }
    
    .nav ul.active {
        left: 0;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .newsletter .container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header .container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 10px;
    }
    
    .logo {
        flex: 1;
        max-width: 150px;
    }
    
    .logo img {
        max-height: 40px;
        width: auto;
    }
    
    .mobile-menu-btn {
        order: 2;
    }
    
    .cart-icon {
        order: 3;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Ajustes adicionales para móviles muy pequeños */
    .catalog-title {
        font-size: 14px;
        margin: 5px 0;
        padding: 3px 0;
        line-height: 1.2;
    }
    
    .products-grid {
        margin-left: 5px;
        margin-right: 5px;
        gap: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.1;
        margin-bottom: 5px;
    }
    
    .product-sku {
        font-size: 0.75rem;
        margin: 2px 0 5px 0;
    }
    
    .description {
        font-size: 0.7rem;
        margin-bottom: 2px;
        line-height: 1.1;
    }
    
    /* Ajustar botón de descarga para móviles muy pequeños */
    .btn-download {
        bottom: 15px;
        right: 15px;
        padding: 10px 12px;
        font-size: 12px;
        max-width: 140px;
        gap: 6px;
    }
    
    .btn-download i {
        font-size: 14px;
    }
    
    /* Ajustar filtro para móviles muy pequeños */
    .filter-container {
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    .filter-header {
        padding: 0 10px;
        gap: 10px;
        flex-direction: column;
    }
    
    .filter-group {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }
    
    .filter-group-checkboxes {
        width: 100%;
        max-width: 100%;
    }
    
    .checkbox-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-title {
        font-size: 13px;
    }
    
    .filter-title-container {
        padding: 8px 16px;
    }
    
    .dropdown-filter select {
        font-size: 13px;
        padding: 8px 28px 8px 10px;
        height: 38px;
    }
}

/* Se han eliminado los ajustes antiguos de catálogo en favor de los nuevos estilos */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Estilos para el filtro desplegable */
.filter-container {
    background-color: #e1e1e1; /* Gris claro como en la imagen */
    padding: 12px 0;
    margin-bottom: 40px;
}

.filter-container .container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
}

.filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 20px 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.filter-group-small {
    min-width: 140px;
    max-width: 175px;
    flex: 0.5;
}

.filter-title-container {
    background-color: #e74c3c; /* Color rojo como en la imagen */
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.filter-title {
    margin: 0;
    font-size: 16px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group-small .filter-title-container {
    padding: 8px 12px;
}

.filter-group-small .filter-title {
    font-size: 13px;
}

.filter-group-checkboxes {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    max-width: none;
}

.checkbox-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

/* Botón de toggle (Hamburguesa) */
.filter-toggle-btn {
    background-color: #2f7122;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0;
    min-height: 48px;
}

.filter-toggle-btn:hover {
    background-color: #25591a;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.filter-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.filter-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Contenedor de filtros que se muestra/oculta */
.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0;
}

.filter-content.show {
    max-height: 1500px;
    padding: 16px 0;
    overflow: visible;
}

/* Mejoras para checkboxes */
.checkbox-title {
    background-color: #e74c3c;
    padding: 12px 20px;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    width: 100%;
}

.filter-group-checkboxes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: auto;
    max-width: 100%;
    gap: 12px;
}

.checkbox-filters {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    user-select: none;
    padding: 12px 18px;
    background-color: white;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid #d0d0d0;
    white-space: nowrap;
    margin: 0;
}

.checkbox-label:hover {
    background-color: #f5f5f5;
    border-color: #2f7122;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: #2f7122;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.checkbox-text {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.checkbox-text i {
    color: #2f7122;
    font-size: 16px;
}

.dropdown-filter {
    position: relative;
    min-width: 280px;
    flex-grow: 0;
    max-width: 300px; /* Ancho igual al contenedor del título */
}

.filter-group-small .dropdown-filter {
    min-width: 140px;
    max-width: 150px;
}

.category-dropdown {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 0;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    outline: none;
    transition: var(--transition);
    font-weight: 400;
    padding-right: 40px; /* Espacio para el ícono */
    height: 40px;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
    pointer-events: none; /* Para que no interfiera con los clics en el select */
    font-size: 14px;
}

.category-dropdown:hover, 
.category-dropdown:focus {
    border: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Estilizar la opción seleccionada */
.category-dropdown option {
    font-weight: normal;
    padding: 10px;
}

.category-dropdown option:checked {
    font-weight: bold;
    background-color: #f0f7f0;
    color: var(--primary);
}

/* Estilos responsivos para el filtro */
@media (max-width: 768px) {
    .filter-container {
        padding: 12px 0;
    }
    
    .filter-toggle-btn {
        font-size: 15px;
        padding: 12px 16px;
        width: 100%;
        margin-bottom: 0;
    }
    
    .filter-toggle-btn span {
        flex: 1;
        text-align: left;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 15px;
    }
    
    .filter-group {
        max-width: 100%;
        width: 100%;
    }
    
    .filter-group-checkboxes {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }
    
    .checkbox-filters {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .checkbox-label {
        width: 100%;
        white-space: normal;
        padding: 12px 14px;
    }
    
    .filter-title-container {
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        padding: 10px 16px;
    }
    
    .filter-title {
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    
    .filter-group-small {
        min-width: auto;
        max-width: 100%;
    }
    
    .filter-group-small .filter-title-container {
        padding: 10px 16px;
    }
    
    .filter-group-small .filter-title {
        font-size: 14px;
    }
    
    .dropdown-filter {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
    
    .category-dropdown {
        font-size: 14px;
        padding: 10px 35px 10px 12px;
        height: 40px;
        width: 100%;
    }
    
    .checkbox-title {
        padding: 10px 14px;
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .select-arrow {
        right: 12px;
        font-size: 12px;
    }
}

/* Mantenemos los estilos originales de los botones de filtro pero los ocultamos visualmente */
/* Clase category-filter ya está oculta con display:none inline */

/* Estilos para el título del catálogo en el encabezado */
.catalog-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    flex-grow: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 20px;
}

/* Hacer que el contenedor del encabezado sea flexbox */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ajustar logo y navigation-links para el nuevo layout flexbox */
.logo {
    flex-shrink: 0;
}

.navigation-links {
    flex-shrink: 0;
}

/* Estilos responsivos para el título del catálogo */
@media (max-width: 768px) {
    .catalog-title {
        font-size: 18px;
        margin: 0 10px;
    }
    
    .header .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .catalog-title {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Mejorar grid de productos en tablets */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-image {
        height: 200px;
        padding: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-sku {
        font-size: 0.85rem;
        margin: 4px 0 8px 0;
    }
    
    .description {
        font-size: 0.8rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }
}

/* Estilos específicos para móviles pequeños */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .catalog-title {
        font-size: 16px;
        margin: 0 5px;
        padding: 5px 0;
    }
    
    /* Ajustes adicionales para hero-section en móviles pequeños */
    .hero-section {
        min-height: 400px; /* Restaurar altura original */
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Mantener 2 columnas */
        gap: 0;
        height: auto;
    }
    
    .hero-half {
        height: 300px; /* Restaurar altura original */
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Ajustar imágenes de fondo para móviles pequeños */
    .hero-half.cdmx,
    .hero-half.gdl {
        background-size: cover; /* Llenar todo el espacio disponible */
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .hero-content {
        max-width: 95%;
        padding: 0.8rem;
        margin: 0 5px;
        background-color: rgba(0, 0, 0, 0.75);
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
    
    /* Mejorar filtro en móviles pequeños */
    .filter-container {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .filter-header {
        padding: 0 15px;
        gap: 12px;
    }
    
    .filter-title {
        font-size: 14px;
        letter-spacing: 0.2px;
        margin: 0;
    }
    
    .filter-title-container {
        padding: 10px 20px;
    }
    
    .dropdown-filter select {
        font-size: 14px;
        padding: 10px 30px 10px 12px;
        height: 42px;
    }
    
    .select-arrow {
        right: 10px;
        font-size: 11px;
    }
    
    /* Grid de productos en una sola columna para móviles pequeños */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .product-image {
        height: 180px;
        padding: 10px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 6px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .product-sku {
        font-size: 0.8rem;
        margin: 3px 0 6px 0;
    }
    
    .description {
        font-size: 0.75rem;
        margin-bottom: 3px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mejorar botón de PDF en móviles */
    .btn-download {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 14px;
        max-width: 160px;
        gap: 8px;
    }
    
    .btn-download i {
        font-size: 16px;
    }
    
    /* Ajustar espaciado general */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
}

/* Estilos para dispositivos móviles muy pequeños */
@media (max-width: 360px) {
    .hero-section {
        min-height: 350px; /* Restaurar altura original */
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Mantener 2 columnas incluso en pantallas muy pequeñas */
        gap: 0;
        height: auto;
    }
    
    .hero-half {
        height: 250px; /* Restaurar altura original */
        min-height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Ajustar imágenes de fondo para pantallas muy pequeñas */
    .hero-half.cdmx,
    .hero-half.gdl {
        background-size: cover; /* Llenar completamente sin espacios en blanco */
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .hero-content {
        max-width: 98%;
        padding: 0.6rem;
        margin: 0 3px;
        border-radius: 6px;
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .hero-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 0.2px;
    }
    
    .container {
        width: 98%;
        padding: 0 5px;
    }
}