﻿/*
================================================================================
                        NUTRI SOW - HOJA DE ESTILOS PRINCIPAL
================================================================================

Proyecto: Sistema Web Nutri Sow
Descripción: Stylesheet principal con sistema de temas claro/oscuro
Autor: Equipo de Desarrollo
Última actualización: Enero 2026

TABLA DE CONTENIDOS:
  1. Reset y Configuración Base
  2. Variables CSS (Tema Claro y Oscuro)
  3. Estilos Globales
  5. Header y Navegación Principal
  6. Menú Lateral Deslizante
  7. Sección Hero con Carrusel
  8. Botones Globales
  9. Sección de Productos
  10. Modales (Contacto Rápido)
  11. Sección de Catálogos
  12. Mini Blog y Comentarios
  13. Red Comercial y Mapa
  14. Chatbot Widget
  15. Bandas Promocionales
  16. Footer y Contacto Final
  17. Responsive Design

================================================================================
*/


/* ============================================================================
   1. RESET Y CONFIGURACIÓN BASE
   ============================================================================ */

/* Reset universal - elimina márgenes, padding y ajusta box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ============================================================================
   2. VARIABLES CSS
   ============================================================================ */

/* Variables para Tema Claro (predeterminado) */
:root {
    /* Colores de marca principal */
    --green: #00973a;
    --orange: #ff7a2a;
    --purple: #7a1fa2;
    /* Colores de interfaz - Tema Claro */
    --bg-body: #f3f9f5; /* Fondo principal de la página */
    --bg-card: #ffffff; /* Fondo de tarjetas */
    --bg-header: rgba(255, 255, 255, 0.95); /* Fondo del header con scroll */
    --bg-footer: #263238; /* Fondo del footer */
    --bg-lisCategori: #f1f1ef; /* Fondo de listas categorías */
    /* Colores de texto */
    --text-main: #111111; /* Texto principal */
    --text-muted: #4a5568; /* Texto secundario/atenuado */
    /* Bordes y divisores */
    --border-soft: #e5e5e5; /* Bordes sutiles */
    /* Transiciones predefinidas */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* Variables para Tema Oscuro */
body.dark-mode {
    --bg-body: #050709;
    --bg-card: #111827;
    --bg-header: rgba(15, 23, 42, 0.92);
    --bg-footer: #020617;
    --bg-lisCategori: #111827;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-soft: #1f2933;
}


/* ============================================================================
   3. ESTILOS GLOBALES
   ============================================================================ */

/* Estilos del body principal */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Contenedor principal de contenido */
.page-content {
    margin: 0 auto;
}

/* ============================================================================
   5. HEADER Y NAVEGACIÓN PRINCIPAL
   ============================================================================ */

/* Header fijo con efecto transparente */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-base);
    background-color: transparent;
}

    /* Header con fondo sólido al hacer scroll */
    .main-header.scrolled {
        background-color: var(--bg-header);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

/* Contenedor interno del header */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Contenedor de botones en el header */
.BtnsHeaderPrincipal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Logo del sitio */
.logo-right img {
    height: 4.5rem;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* --- Información de contacto en Header --- */
.header-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 20px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
    white-space: nowrap;
}

    .header-contact-item i {
        color: var(--green);
        font-size: 0.9rem;
    }

    .header-contact-item:hover {
        background: var(--orange);
        color: #ffffff;
        transform: translateX(3px);
    }

        .header-contact-item:hover i {
            color: #ffffff;
        }

/* Modo oscuro para contactos en header */
body.dark-mode .header-contact-item {
    background: rgba(17, 24, 39, 0.9);
    color: var(--text-main);
}

    body.dark-mode .header-contact-item:hover {
        background: var(--orange);
        color: #ffffff;
    }

/* --- Navegación Principal --- */
.new-main-nav {
    display: flex;
    gap: 24px;
    font-size: 20px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
}

    .new-main-nav a {
        text-decoration: none;
        color: var(--text-main);
        position: relative;
        font-weight: 550;
    }

        /* Subrayado animado al hover */
        .new-main-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 3px;
            background: var(--orange);
            transition: width 0.25s ease;
        }

        .new-main-nav a:hover::after {
            width: 100%;
        }

    .new-main-nav ul {
        display: flex;
        gap: 24px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }

    .new-main-nav li {
        position: relative;
    }

        .new-main-nav li::marker {
            content: none;
        }

/* Modo oscuro para navegación */
body.dark-mode .new-main-nav {
    background: rgba(17, 24, 39, 0.9);
}

/* --- Dropdown en Navegación --- */
.dropdown-nav {
    position: relative;
    display: inline-block;
}

    .dropdown-nav .dropdown-link {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 550;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        position: relative;
    }

/* Ícono de flecha en dropdown */
.dropdown-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.dropdown-nav:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Subrayado animado para dropdown */
.dropdown-nav .dropdown-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: var(--orange);
    transition: width 0.25s ease;
}

.dropdown-nav:hover .dropdown-link::after {
    width: 100%;
}

/* Menú desplegable */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 200px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mostrar dropdown al hacer hover */
.dropdown-nav:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Enlaces dentro del dropdown */
.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

    .dropdown-menu a:hover {
        background: rgba(122, 31, 162, 0.08);
        color: var(--purple);
        font-weight: bold;
        font-size: 17px;
        padding-left: 28px;
    }

/* Modo oscuro para dropdown */
body.dark-mode .dropdown-menu {
    background: var(--bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* --- Botón Menú Lateral --- */
.menu-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 25%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f9f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--purple);
    cursor: pointer;
    transition: var(--transition-base);
}

    .menu-toggle-btn:hover {
        transform: scale(1.05);
        background: var(--orange);
        color: #fff;
    }

/* Botón de tema oscuro/claro */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f9f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--purple);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1.2rem;
}

    .theme-toggle-btn:hover {
        transform: scale(1.05) rotate(15deg);
        background: var(--orange);
        color: #fff;
    }


/* ============================================================================
   6. MENÚ LATERAL DESLIZANTE
   ============================================================================ */

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
}

    .side-menu.open {
        transform: translateX(0);
    }

/* Header del menú lateral */
.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
}

    .side-menu-header h3 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--purple);
        font-weight: 900;
    }

.side-menu-close {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Navegación del menú lateral */
.side-menu-nav {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .side-menu-nav a {
        text-decoration: none;
        color: var(--text-main);
        padding: 8px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 0.95rem;
        transition: var(--transition-fast);
    }

        .side-menu-nav a:hover {
            background: var(--orange);
            color: white;
            transform: translateX(4px);
            padding: 8px 16px;
            font-weight: 900;
        }

/* Overlay oscuro del menú lateral */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 1100;
}

    .side-menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }


/* ============================================================================
   7. SECCIÓN HERO CON CARRUSEL
   ============================================================================ */

.hero-section.new-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 40px 20px 60px;
    overflow: hidden;
}

/* Contenedor del carrusel de fondos */
.hero-carousel-container {
    position: absolute;
    inset: 0;
    z-index: -2;
}

/* Slides del carrusel */
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

    .hero-bg-slide.active {
        opacity: 1;
    }

/* Overlay oscuro sobre las imágenes */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25));
    z-index: -1;
}

/* --- Contenido del Hero --- */
.hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    z-index: 5;
    position: relative;
}

.hero-content {
    flex: 1;
}

/* Título principal con degradado */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

    .hero-title span {
        display: block;
    }

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Tarjetas flotantes decorativas */
.hero-visual {
    display: contents;
}

.product-card {
    width: 100px;
    height: 100px;
    backdrop-filter: blur(10px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    color: var(--orange);
    font-size: 14px;
}

    .product-card i {
        font-size: 2rem;
    }

/* --- Navegación del Carrusel --- */

/* Botones de navegación (prev/next) */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-nav-btn:hover {
        background: var(--orange);
        border-color: var(--orange);
        transform: translateY(-50%) scale(1.1);
    }

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

.hero-nav-btn i {
    font-size: 18px;
}

/* Paginación (bullets) */
.hero-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-pagination-bullet {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
}

    .hero-pagination-bullet.active,
    .hero-pagination-bullet:hover {
        background: var(--orange);
        transform: scale(1.2);
    }

/* Swiper personalización */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper-pagination {
    bottom: 40px !important;
}

.swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: var(--orange);
}

.hero-swiper-prev,
.hero-swiper-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
}

    .hero-swiper-prev:hover,
    .hero-swiper-next:hover {
        background: var(--orange);
    }


/* ============================================================================
   8. BOTONES GLOBALES
   ============================================================================ */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
}

/* Botón primario (morado) */
.btn-primary {
    background: var(--purple);
    color: #ffffff;
}

    .btn-primary:hover {
        transform: translateY(-4px);
        background: var(--orange);
        box-shadow: 0 20px 40px rgba(255, 122, 42, 0.6);
    }

.show-map-btn {
    background: var(--green);
    color: #ffffff;
}
    .show-map-btn:hover {
        transform: translateY(-4px);
        background: var(--orange);
        box-shadow: 0 20px 40px rgba(255, 122, 42, 0.6);
    }

/* Botón secundario (transparente con borde) */
.btn-secondary {
    background: transparent;
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 3px solid var(--purple);
}

    .btn-secondary:hover {
        background: var(--orange);
        color: #ffffff;
        transform: translateY(-2px);
    }

/* Botón pequeño */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}


/* ============================================================================
   9. SECCIÓN DE PRODUCTOS
   ============================================================================ */

.products-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 20px;
    background: var(--purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones de contacto rápido */
.extra-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.quick-contact-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: var(--purple);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1rem;
}

    .quick-contact-btn:hover {
        transform: translateY(-2px);
        background: var(--orange);
        box-shadow: 0 20px 40px rgba(255, 122, 42, 0.6);
    }

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Tarjeta individual de producto */
.product-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-top: 4px solid transparent;
    transition: var(--transition-base);
}

    .product-item:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
        border-top-color: var(--orange);
    }

/* Contenedor de media del producto */
.product-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

    .product-media img.product-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* Botón dentro de la imagen */
.product-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    backdrop-filter: blur(10px);
    border: 3px solid var(--purple);
    color: var(--orange);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    position: absolute;
    left: 27%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2;
}

    .product-btn:hover {
        background: var(--orange);
        color: #fff;
        transform: translateX(-50%) translateY(-4px);
    }

/* Texto del producto */
.product-item h3,
.product-item p {
    padding: 0 24px;
}

.product-item h3 {
    margin-top: 16px;
    margin-bottom: 8px;
}

.product-item p {
    margin-bottom: 24px;
}


/* ============================================================================
   10. MODALES (Contacto Rápido)
   ============================================================================ */

.quick-contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    padding: 24px 24px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1300;
    width: 320px;
    max-width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

    .quick-contact-modal.show {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

/* Overlay del modal */
.quick-contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1250;
}

    .quick-contact-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* Botón cerrar modal */
.quick-contact-close {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    color: var(--text-main);
}

/* Opciones de contacto */
.quick-contact-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-contact-btn-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

    .quick-contact-btn-opt.whatsapp {
        background: rgba(37, 211, 102, 0.1);
        color: #25d366;
    }

        .quick-contact-btn-opt.whatsapp:hover {
            background: #25d366;
            color: white;
        }

    .quick-contact-btn-opt.call {
        background: rgba(0, 151, 58, 0.1);
        color: var(--green);
    }

        .quick-contact-btn-opt.call:hover {
            background: var(--green);
            color: white;
        }


/* ============================================================================
   11. SECCIÓN DE CATÁLOGOS
   ============================================================================ */

.catalogo-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

/*Start catalogo Circular*/
/*.catalogo-circle-container {
    position: relative;
    width: 100%;
    height: 700px;
    max-width: 1000px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.central-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    object-fit: contain;
    background: var(--bg-card);
    padding: 25px;
    border: 5px solid var(--purple);
}

.catalogos-circle {
    position: relative;
    width: 800px;
    height: 800px;
}

.catalogo-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 340px;
    margin-top: -170px;
    margin-left: -120px;
     Sobrescribe hover original para círculo 

}

.position-0 {
    transform: translate(-50%, -50%) rotate(0deg) translateX(350px) rotate(0deg);
}

.position-1 {
    transform: translate(-50%, -50%) rotate(60deg) translateX(350px) rotate(-60deg);
}

.position-2 {
    transform: translate(-50%, -50%) rotate(120deg) translateX(350px) rotate(-120deg);
}

.position-3 {
    transform: translate(-50%, -50%) rotate(180deg) translateX(350px) rotate(-180deg);
}

.position-4 {
    transform: translate(-50%, -50%) rotate(240deg) translateX(350px) rotate(-240deg);
}

.position-5 {
    transform: translate(-50%, -50%) rotate(300deg) translateX(350px) rotate(-300deg);
}

 Responsive 
@media (max-width: 1024px) {
    .catalogos-circle {
        width: 650px;
        height: 650px;
    }

    .position-0 {
        transform: translate(-50%, -50%) rotate(0deg) translateX(280px) rotate(0deg);
    }
     Repite ajuste translateX(280px) para todas position-X 
}

@media (max-width: 768px) {
    .catalogo-circle-container {
        height: 500px;
    }

    .catalogos-circle {
        width: 500px;
        height: 500px;
    }

    .catalogo-item {
        width: 180px;
        height: 260px;
    }

    .central-logo {
        width: 140px;
        height: 140px;
        padding: 15px;
    }
}*/

/*Fin catalogo Circular*/


/*descomentar para el catalogo en grid*/
.catalogo-grid {  
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin-top: 40px;
}

.catalogo-item {
    position: relative;
    height: 320px !important;
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
    transition: var(--transition-base);
}

/*Fin catolg grid*/

    .catalogo-item:hover {
        transform: translateY(-12px); /*descomentar para el catalogo en grid*/
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    }

.catalogo-image {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

    .catalogo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

.catalogo-item:hover .catalogo-image img {
    opacity: 0.7;
}

.catalogo-name {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.catalogo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.catalogo-item:hover .catalogo-overlay {
    opacity: 1;
}

.subcatalogos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-self: flex-start;
}

.subcat-btn {
    background: var(--purple);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    white-space: nowrap;
}

    .subcat-btn:hover {
        background: var(--orange);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 122, 42, 0.4);
    }

.catalogo-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    align-self: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.catalogo-item:hover .catalogo-footer {
    opacity: 1;
    transform: translateY(0);
}

.catalogo-footer i {
    font-size: 1.2rem;
}

.catalogo-footer a {
    text-decoration: none;
    color: white;
}

.catalogo-footer:hover a {
    color: var(--orange) !important;
}

.catalogo-footer:hover i {
    color: var(--orange);
}


/* ============================================================================
   12. MINI BLOG Y COMENTARIOS
   ============================================================================ */

.news-comments-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.news-comments-inner {
    display: flex;
    gap: 40px;
}

.news-container-mini,
.comments-container {
    flex: 1;
}

.news-list,
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tarjetas de noticias y comentarios */
.news-mini-item,
.comment-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

    .news-mini-item:hover,
    .comment-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    }

.news-date {
    display: inline-block;
    font-size: 0.8rem;
    background: var(--green);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.comment-text {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-style: italic;
}

.comment-author {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}


/* ============================================================================
   13. RED COMERCIAL Y MAPA
   ============================================================================ */

.red-comercial-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.red-comercial-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
}

/* Contenedor de filtros */
.filters-container {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    border-radius: 25px;
    border: 2px solid var(--border-soft);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

    .filter-select:hover {
        border-color: var(--purple);
    }

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--purple);
    background: transparent;
    color: var(--purple);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

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

/* Lista de sucursales */
.sucursales-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.sucursal-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: var(--transition-base);
    border-left: 4px solid transparent;
}

    .sucursal-item:hover,
    .sucursal-item.selected {
        border-left-color: var(--orange);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        transform: translateX(4px);
    }

    .sucursal-item h3 {
        color: var(--purple);
        margin-bottom: 8px;
        font-size: 1.5rem;
    }

    .sucursal-item p {
        color: var(--text-muted);
        font-size: 1.2rem;
        margin: 10px 0;
    }

/*botones de telefonos*/
.sucursal-actions {
    display: flex;
    flex-wrap: wrap; /* ← Permite salto de línea si hay muchos */
    gap: 8px; /* ← Espacio entre botones */
    align-items: center;
}

/* Contenedor del mapa */
.mapa-container {
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#sucursalesMapa {
    width: 100%;
    height: 100%;
}

/* Estilos para Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.leaflet-popup-content h4 {
    color: var(--purple);
    margin-bottom: 8px;
}


/* ============================================================================
   14. CHATBOT WIDGET
   ============================================================================ */

.chatbot-widget {
    position: fixed;
    right: 20px;
    bottom: 60px;
    z-index: 1300;
}

/* Botón flotante del chatbot */
.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--purple);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

    .chatbot-toggle i {
        font-size: 1.4rem;
    }

    .chatbot-toggle:hover {
        transform: translateY(-3px) scale(1.05);
        background: var(--orange);
    }

/* Ventana del chatbot */
.chatbot-window {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 320px;
    max-height: 420px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

    .chatbot-window.show {
        display: flex;
    }

/* Header del chatbot */
.chatbot-header {
    padding: 10px 14px;
    background: var(--purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
}

    .chatbot-header .chatbot-close {
        border: none;
        background: transparent;
        color: #fff;
        cursor: pointer;
        font-size: 1rem;
    }

/* Cuerpo de mensajes */
.chatbot-body {
    padding: 10px 12px;
    background: var(--bg-body);
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

    /* Mensajes del bot */
    .chatbot-message.bot {
        background: var(--purple);
        color: white;
        align-self: flex-start;
        border-bottom-left-radius: 4px;
    }

    /* Mensajes del usuario */
    .chatbot-message.user {
        background: var(--orange);
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 4px;
    }

/* Footer del chatbot (input) */
.chatbot-footer {
    padding: 10px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
}

.chatbot-send {
    padding: 8px 16px;
    border: none;
    background: var(--purple);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

    .chatbot-send:hover {
        background: var(--orange);
    }


/* ============================================================================
   15. BANDAS PROMOCIONALES
   ============================================================================ */

.promo-band {
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #2c5f2d 0%, #97ba97 100%);
    position: relative;
    overflow: hidden;
    margin: 0;
}

.promo-band-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* Banda 1 - Estilo */
.promo-band-1 {
    background: linear-gradient(135deg, #1a472a 0%, #2c5f2d 50%, #4a7c59 100%);
}

.promo-icon {
    font-size: 4rem;
    color: #ffd700;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.promo-text {
    flex: 1;
    color: white;
    min-width: 250px;
}

    .promo-text h3 {
        font-size: 1.8rem;
        margin: 0 0 0.5rem 0;
        font-weight: 700;
        color: #ffd700;
    }

    .promo-text p {
        font-size: 1rem;
        margin: 0;
        opacity: 0.95;
        line-height: 1.6;
    }

.promo-cta {
    flex-shrink: 0;
}

/* Banda 2 - Estilo */
.promo-band-2 {
    background: linear-gradient(135deg, #1a472a 0%, #2c5f2d 50%, #4a7c59 100%);
}

    .promo-band-2 .promo-band-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 2.5rem;
    }

.promo-partners {
    color: white;
    width: 100%;
}

.partners-label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    transition: transform 0.3s ease;
}

    .partner-item:hover {
        transform: translateY(-5px);
    }

    .partner-item i {
        font-size: 2.5rem;
        color: #ffd700;
    }

    .partner-item span {
        font-size: 0.9rem;
        font-weight: 600;
    }

.promo-action {
    color: white;
}

    .promo-action h3 {
        font-size: 2rem;
        margin: 0 0 1.5rem 0;
        font-weight: 700;
        color: white;
    }

/* Contenedor 2 columnas banda 2 */
.promo-band-2-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.promo-video-col {
    /*flex: 1 1 50%;*/
    margin-left: 13rem;
}

.promo-text-col {
    flex: 1 1 50%;
    color: white;
}

.promo-video {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    display: block;
}


/* ============================================================================
   16. FOOTER Y CONTACTO FINAL
   ============================================================================ */

.final-contact-section {
    background: var(--bg-card);
    padding: 80px 20px;
    margin-top: 80px;
    border-top: 4px solid var(--purple);
}

.final-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.8fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.final-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.final-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    max-width: 280px;
}

.final-column-title {
    color: var(--purple);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

    .final-column-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--orange);
    }

.final-column-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .final-column-list li {
        margin-bottom: 12px;
    }

    .final-column-list a {
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition-base);
        display: block;
    }

        .final-column-list a:hover {
            color: var(--orange);
            padding-left: 8px;
        }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    line-height: 1.4;
}

    .contact-item i {
        width: 24px;
        font-size: 1.1rem;
        color: var(--green);
    }

    .contact-item:hover {
        color: var(--orange);
        transform: translateX(4px);
    }

    .contact-item.whatsapp i {
        color: #25d366;
    }

    .contact-item span {
        font-size: 0.95rem;
    }

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition-base);
    font-size: 0.95rem;
}

    .social-link i {
        width: 20px;
        font-size: 1.1rem;
        color: var(--green);
    }

    .social-link:hover {
        color: var(--orange);
        transform: translateX(4px);
    }

        .social-link:hover i {
            color: var(--orange);
        }

/* Footer fijo inferior */
.fixed-footer {
    background: var(--bg-footer);
    color: white;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.9rem;
}

    .fixed-footer p {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

.footer-icons {
    display: flex;
    gap: 12px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 14px;
}

    .footer-icon:hover {
        background: var(--orange);
        transform: translateY(-3px);
    }


/* ============================================================================
   17. RESPONSIVE DESIGN
   ============================================================================ */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    /* Navegación principal oculta en tablets */
    .new-main-nav {
        display: none;
    }

    /* Hero responsive */
    .hero-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    /* Grid de catálogos a 2 columnas */
    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero navegación */
    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }

    /* Mini blog responsive */
    .news-comments-inner {
        flex-direction: column;
    }

    /* Header responsive */
    .header-inner {
        padding: 0 20px;
    }

    /* Red comercial responsive */
    .red-comercial-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        justify-content: center;
    }

    .final-contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .final-contact-column {
        order: 2;
    }

    .logo-column {
        order: 1;
    }
}

/* Móviles */
@media (max-width: 768px) {
    /* Header */
    .header-contact-info {
        display: none;
    }

    /* Hero mobile */
    .hero-pagination {
        bottom: 30px;
        gap: 8px;
    }

    .hero-prev,
    .hero-next {
        width: 45px;
        height: 45px;
    }

    .hero-pagination-bullet {
        width: 12px;
        height: 12px;
    }

    /* Catálogos a 1 columna */
    .catalogo-grid {
        grid-template-columns: 1fr !important;
    }

    .fixed-footer p {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .footer-icons {
        order: -1;
    }

    .footer-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .final-contact-section {
        padding: 60px 15px;
    }

    .final-logo {
        max-width: 160px;
    }

    /* Bandas promocionales */
    .promo-band {
        padding: 2rem 1rem;
    }

    .promo-band-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .promo-text h3 {
        font-size: 1.4rem;
    }

    .promo-text p {
        font-size: 0.9rem;
    }

    .promo-icon {
        font-size: 3rem;
    }

    .partners-logos {
        gap: 1.5rem;
    }

    .partner-item i {
        font-size: 2rem;
    }

    .promo-action h3 {
        font-size: 1.5rem;
    }

    .promo-band-2-inner {
        flex-direction: column;
    }

    .promo-video {
        max-width: 100%;
    }
}

/* Modo oscuro específico */
body.dark-mode .sucursal-item,
body.dark-mode .filter-select,
body.dark-mode .filter-btn {
    background: var(--bg-card);
}

/* Footer fijo inferior */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-footer);
    color: white;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.9rem;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

    .fixed-footer p {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

.footer-icons {
    display: flex;
    gap: 12px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 14px;
}

    .footer-icon:hover {
        background: var(--orange);
        transform: translateY(-3px);
    }

/* Agregar padding al body para que el contenido no quede debajo del footer */
body {
    padding-bottom: 60px;
}

/* ============================================================================
   FIN DE HOJA DE ESTILOS
   ============================================================================ */

/* ============================================================================
   14. BOTÓN FLOTANTE DE WHATSAPP
   ============================================================================ */

/* Botón principal flotante */
.whatsapp-float {
    position: fixed;
    bottom: 90px; /* Arriba del footer fijo (16px padding + altura del footer) */
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999; /* Debajo del header (1000) pero arriba del contenido */
    transition: var(--transition-base);
    cursor: pointer;
}

    /* Efecto hover */
    .whatsapp-float:hover {
        transform: scale(1.1) translateY(-5px);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
        background: #20ba5a;
    }

    /* Animación de pulso constante */
    .whatsapp-float::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(37, 211, 102, 0.3);
        animation: whatsapp-pulse 2s ease-out infinite;
        z-index: -1;
    }

@keyframes whatsapp-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Tooltip/mensaje flotante */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    pointer-events: none;
}

/* Mostrar tooltip al hover */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Flecha del tooltip */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent var(--bg-card);
}

/* Modo oscuro para tooltip */
body.dark-mode .whatsapp-tooltip {
    background: var(--bg-card);
    color: var(--text-main);
}

    body.dark-mode .whatsapp-tooltip::after {
        border-color: transparent transparent transparent var(--bg-card);
    }

/* ============================================================================
   RESPONSIVE PARA WHATSAPP FLOTANTE
   ============================================================================ */

/* Tablets */
@media (max-width: 1024px) {
    .whatsapp-float {
        bottom: 80px;
        right: 25px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 70px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    /* Ocultar tooltip en móviles */
    .whatsapp-tooltip {
        display: none;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 65px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}
