/* Variables CSS para colores (Gris, Verde, Negro) */
:root {
    --primary-color: #4CAF50; /* Verde principal para enlaces y acentos */
    --secondary-color: #555555; /* Gris oscuro para texto secundario */
    --accent-color: #5af080; /* Verde más claro para hover/énfasis */
    --text-dark: #212121; /* Negro casi puro para texto principal */
    --text-light: #f5f5f5; /* Gris muy claro para texto sobre fondos oscuros */
    --bg-light: #f5f5f5; /* Gris muy claro para fondos claros */
    --bg-dark: #1a1a1a; /* Negro para fondos oscuros */
    --button-bg: #4CAF50; /* Verde para botones principales */
    --button-hover-bg: #43A047; /* Verde más oscuro al pasar el ratón */
}

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botones */
.btn-primary{
    display: inline-block;
    background-color: rgb(47, 68, 255);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}




.btn1-primary{
    display: inline-block;
    background-color: rgb(47, 255, 92);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}




.btn-primary:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

.btn1-primary:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}


.btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #685a5a;
    transform: translateY(-2px);
}

/* Video de Fondo (Solo para index.html) */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(30%);
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgb(8, 8, 8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.logo-img {
    height: 60px;
    filter: brightness(100%);
}

nav.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons img {
    height: 24px;
    margin-left: 20px;
    filter: invert(100%);
}

/* Hamburguesa (solo visible en móviles) */
.hamburger-menu {
    display: none;
    font-size: 1.8em;
    color: var(--text-light);
    cursor: pointer;
    margin-left: 20px;
}

/* Sección de Sliders (Hero Slider - general para index y catalogo) */
.slider-section.hero-slider {
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: transparent;
    overflow: hidden;
}

/* Reducir altura del slider en la página de catálogo */
#catalogo-slider {
    min-height: 55vh; /* Ajusta la altura deseada para el slider del catálogo */
    margin-bottom: 20px; /* Espacio debajo del slider */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 0;
    box-shadow: none;
}

.slider-images {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 100%;
}

.slider-images img {
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.slider-button {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
}

.slider-button.prev {
    left: 20px;
}

.slider-button.next {
    right: 20px;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}

/* Contenido superpuesto al slider */
.slider-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-light);
    z-index: 5;
    padding: 20px;
    max-width: 800px;
}

.slider-overlay-content h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    text-shadow: transparent;
    font-weight: bold;
}

.slider-overlay-content p {
    font-size: 1.8em;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Sección de Bienvenida */
.welcome-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 8px 15px -5px rgba(0, 0, 0, 0.4);
}

.welcome-section h2 {
    color: var(--text-light);
    font-size: 3em;
    margin-bottom: 30px;
}

.welcome-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
}

/* Secciones Generales */
section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background-color: var(--bg-light);
}

section:nth-of-type(odd) {
    background-color: #c5c2c2;
}

h2 {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

/* Catálogo de Imágenes (Versión simplificada para index.html) */
.catalog-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.catalog-section h2 {
    color: var(--text-light);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Original/Flexible Grid */
    gap: 30px;
    justify-content: center;
    align-items: start;
    margin-top: 40px;
}

.catalog-item {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.catalog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }


.catalog-item p {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 50px;
}

/* Sección de Mapa */
.map-section {
    background-color: #ebebeb;
    text-align: center;
}

.map-container {
    position: relative;
    padding-bottom: 40%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-info {
    max-width: 700px;
    margin: 0 auto;
}

.map-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.map-info strong {
    color: var(--text-dark);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.contact-section h2 {
    color: var(--text-light);
}

.contact-section p {
    color: var(--text-light);
}

/* Footer (Más Pequeño) */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 30px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2em;
}

.footer-col p, .footer-col ul li {
    font-size: 0.9em;
    margin-bottom: 8px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: var(--text-light);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-social-icons a {
    color: var(--text-light);
    font-size: 1.3em;
    margin-right: 12px;
}

.footer-social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

/* Botones Flotantes de Redes Sociales */
.social-buttons-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000; /* Asegura que estén por encima de otros elementos */
}

.social-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-button:hover {
    transform: scale(1.1) translateY(-3px);
}

.social-button.facebook { background-color: #3b5998; }
.social-button.whatsapp { background-color: #25d366; }
.social-button.instagram { background-color: #E1306C; }


/* Botón Flotante de Pago/Compra */
.payment-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--button-bg);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000; /* Asegura que estén por encima de otros elementos */
}

.payment-button:hover {
    background-color: var(--button-hover-bg);
    transform: scale(1.03);
}

.payment-button i {
    font-size: 1.3em;
}

/* === ESTILOS PARA LA PÁGINA DE CATÁLOGO === */

/* Sección de Héroe de la Página (Títulos de página internos) */
.page-hero-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 8px 15px -5px rgba(0, 0, 0, 0.4);
}

.page-hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-hero-section h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-hero-section p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.8;
}

.breadcrumbs {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--text-light);
    font-weight: bold;
}

/* Sección de Filtros del Catálogo */
.catalog-filters-section {
    background-color: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-controls select,
.filter-controls input [type="text"] {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: white;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-controls select:focus,
.filter-controls input [type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.filter-controls .btn-primary {
    padding: 10px 20px;
    font-size: 1em;
}


/* Grid Completo de Productos (Estilos para product-card) */
.product-grid-full {
    background-color: var(--bg-light);
    padding-top: 40px;
}

.product-grid-full .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible Grid */
    gap: 30px;
}

.product-card {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1; /* Por defecto visible */
    transition: opacity 0.3s ease;
}

.product-card.hidden {
    display: none; /* Oculta completamente */
    opacity: 0;
}


.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.product-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-card .description {
    font-size: 0.95em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card .btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1em;
    padding: 10px 15px;
    margin-top: auto;
}

/* Paginación */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- Estilos para el Banner --- */
.banner-section {
    background-color: var(--accent-color); /* Un verde brillante para el banner */
    color: var(--text-light);
    padding: 30px 20px; /* Reducido de 40px a 30px el padding vertical */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px; /* Espacio debajo del banner */
    background-image: url('banner_bg.jpg'); /* Opcional: una imagen de fondo para el banner */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.banner-section::before { /* Capa de superposición para mejor lectura del texto */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Oscurece la imagen de fondo */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté por encima de la capa */
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.banner-content .btn-primary {
    background-color: #ffffff; /* Botón blanco para contrastar */
    color: var(--primary-color);
    font-size: 1.1em;
    padding: 14px 30px;
}

.banner-content .btn-primary:hover {
    background-color: var(--bg-light);
    color: var(--button-hover-bg);
}


/* Responsive Design */
@media (max-width: 992px) {
    .slider-overlay-content h1 {
        font-size: 3.5em;
    }

    .slider-overlay-content p {
        font-size: 1.5em;
    }

    /* Ajuste para la vista previa del catálogo en index.html */
    .catalog-section .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .catalog-item img {
        height: 180px;
    }

    .footer-grid {
        gap: 20px;
    }

    /* Mapa en pantallas medianas */
    .map-container {
        padding-bottom: 45%;
    }

    /* Catálogo completo: se adapta con minmax */
    .product-grid-full .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    .product-card img {
        height: 200px;
    }

    /* Slider de catálogo */
    #catalogo-slider {
        min-height: 45vh; /* Ajusta la altura del slider en pantallas medianas */
    }
    .banner-content h3 {
        font-size: 2em;
    }
    .banner-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* Header Responsive */
    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    nav.main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 75px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.main-nav.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 10px 0;
        color: var(--text-light);
        font-size: 1.2em;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
    }

    .nav-links li a::after {
        display: none;
    }

    .hamburger-menu {
        display: block;
        order: 2;
    }

    .header-icons {
        order: 1;
        margin-right: auto;
    }

    .logo {
        flex-grow: 1;
        text-align: center;
    }


    /* Fin Header Responsive */

    .slider-section.hero-slider {
        min-height: 70vh;
    }

    .slider-overlay-content h1 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .slider-overlay-content p {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .welcome-section {
        padding: 60px 20px;
    }

    .welcome-section h2 {
        font-size: 2.2em;
    }

    .welcome-section p {
        font-size: 1.1em;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    /* Catálogo en index.html */
    .catalog-section .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .catalog-item img {
        height: 150px;
    }

    .map-section .container {
        padding: 0 10px;
    }

    .map-container {
        padding-bottom: 50%;
    }

    .map-info {
        padding: 0 10px;
    }

    .social-buttons-container {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }

    .social-button {
        width: 45px;
        height: 45px;
        font-size: 1.5em;
    }

    .payment-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 18px;
        font-size: 0.85em;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .footer-col {
        margin-bottom: 15px;
    }
    .footer-col h3 {
        margin-bottom: 10px;
        
    }
        
    