﻿/*
================================================================================
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: Febrero 2026

TABLA DE CONTENIDOS:
  1.  Reset y Configuración Base
  2.  Variables CSS (Tema Claro y Oscuro)
  3.  Estilos Globales
  4.  Header y Navegación Principal
  5.  Menú Lateral Deslizante
  6.  Sección Hero con Carrusel
  7.  Botones Globales
  8.  Sección de Filosofía
  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. Botón Flotante de WhatsApp
  16. Bandas Promocionales
  17. Footer y Contacto Final
  18. Títulos Centrados
  19. Responsive Design (≤1024px | ≤768px | ≤480px)
================================================================================
*/

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

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

:root {
    --green: #00973a;
    --orange: #ff7a2a;
    --purple: #7a1fa2;
    --bg-body: #f3f9f5;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-footer: #263238;
    --bg-lisCategori: #f1f1ef;
    --text-main: #111111;
    --text-muted: #4a5568;
    --border-soft: #e5e5e5;
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

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
   ============================================================================ */

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-content {
    margin: 0 auto;
}

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

.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;
    overflow: visible;
}

    .main-header.scrolled {
        background-color: var(--bg-header);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

.header-inner {
    margin: 0 auto;
    padding: 0px 13rem 0px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Cambiar de space-between a flex-start */
    gap: 20px; /* Agregar espacio entre elementos */
}

.BtnsHeaderPrincipal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-shrink: 0; /* Evitar que se encoja */
}

.logo-flotante {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 1001;
    transition: all 0.3s ease;
}

    .logo-flotante img {
        height: 10rem;
        border-radius: 15px;
        background-color: rgba(255, 255, 255, 0.85);
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
        transition: transform 0.3s ease, filter 0.3s ease;
    }

        .logo-flotante img:hover {
            transform: scale(1.07);
            filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.32));
        }

/*.header-contact-info {
    display: flex;
    padding-right: 1rem;
    gap: 8px;
}*/

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

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

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

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

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 10rem; /* Aumentar padding horizontal */
    flex: 1;
    justify-content: center;
    margin-right: 40px;
    max-width: calc(100% - 200px); /* Agregar: limitar el ancho máximo para no chocar con el logo */
}

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

        .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 ul {
        display: flex;
        gap: 32px; /* Aumentar el espacio entre elementos */
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

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

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

body.dark-mode .new-main-nav {
    background: rgba(17, 24, 39, 0.9);
}

/* Dropdown */
.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;
    }

.dropdown-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

.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%;
}

.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;
}

.dropdown-nav:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.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;
    }

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

/* Botones del header */
.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;
    }

.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;
    }

/* --- SUBMENÚS DESPLEGABLES (Solo Desktop) --- */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

        .dropdown-submenu > a i {
            font-size: 0.8rem;
            opacity: 0.7;
            transition: transform 0.2s ease;
        }

    .dropdown-submenu:hover > a i {
        transform: translateX(3px);
    }

    .dropdown-submenu .submenu-content {
        visibility: hidden;
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 150px;
        background: var(--bg-card);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        padding: 1px 0;
        z-index: 1001;
        opacity: 0;
        transform: translateX(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

body.dark-mode .dropdown-submenu .submenu-content {
    background: var(--bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.dropdown-submenu:hover .submenu-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.dropdown-submenu .submenu-content a {
    display: block !important;
}

/* ============================================================================
   5. 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);
    }

.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);
}

.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;
        }

.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;
    }

/* ============================================================================
   6. 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;
}

.hero-carousel-container {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.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;
    }

.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;
}

.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: flex-start;
    z-index: 5;
    position: relative;
    padding: 0 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    left: 0;
}

.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-eslogan {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-style: italic;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .hero-eslogan i {
        font-size: 0.75em;
        opacity: 0.7;
    }

.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 */
.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-nav-btn i {
        font-size: 18px;
    }

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

/* Paginación */
.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);
    }

/* ============================================================================
   7. 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;
}

.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);
    }

.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);
    }

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ============================================================================
   8. SECCIÓN DE FILOSOFÍA
   ============================================================================ */

.filosofia-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}

    /* Título con subrayado degradado */
    .filosofia-section .section-title {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--text-main);
        margin-bottom: 30px;
        position: relative;
    }

        .filosofia-section .section-title::after {
            content: '';
            display: block;
            width: 80px;
            height: 5px;
            background: var(--orange);
            margin: 20px auto 0;
            border-radius: 5px;
        }

.filosofia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Tarjeta base */
.filosofia-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-soft);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    /* Círculo expansivo oculto (activado en hover y mobile-active) */
    .filosofia-card::before {
        content: '';
        position: absolute;
        top: 50px;
        left: 40px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        z-index: 0;
        transform: scale(0);
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* El contenido queda siempre por encima del círculo expansivo */
    .filosofia-card > * {
        position: relative;
        z-index: 2;
    }

    .filosofia-card h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        transition: color 0.4s ease;
    }

    .filosofia-card p {
        font-size: 1.05rem;
        color: var(--text-muted);
        transition: color 0.4s ease;
    }

/* Ícono estilo squircle */
.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 30px;
    transition: all 0.5s ease;
    background: var(--bg-card);
}

/* Hover — expande el color y rota el ícono */
.filosofia-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

    .filosofia-card:hover::before {
        transform: scale(15);
    }

    .filosofia-card:hover .icon-wrapper {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        box-shadow: none !important;
        transform: rotateY(360deg);
    }

    .filosofia-card:hover h3,
    .filosofia-card:hover p {
        color: #ffffff !important;
    }

/* Variantes de color por tarjeta */
.card-purple {
    border-bottom: 5px solid var(--purple);
}

    .card-purple::before {
        background: linear-gradient(135deg, var(--purple), #5e147d);
    }

    .card-purple h3 {
        color: var(--purple);
    }

    .card-purple .icon-wrapper {
        color: var(--purple);
        box-shadow: 0 10px 25px rgba(122, 31, 162, 0.15);
    }

.card-green {
    border-bottom: 5px solid var(--green);
}

    .card-green::before {
        background: linear-gradient(135deg, var(--green), #007a2e);
    }

    .card-green h3 {
        color: var(--green);
    }

    .card-green .icon-wrapper {
        color: var(--green);
        box-shadow: 0 10px 25px rgba(0, 151, 58, 0.15);
    }

.card-orange {
    border-bottom: 5px solid var(--orange);
}

    .card-orange::before {
        background: linear-gradient(135deg, var(--orange), #e65c00);
    }

    .card-orange h3 {
        color: var(--orange);
    }

    .card-orange .icon-wrapper {
        color: var(--orange);
        box-shadow: 0 10px 25px rgba(255, 122, 42, 0.15);
    }

/* Animaciones de entrada (reveal) */
.reveal-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

    .reveal-title.visible,
    .reveal-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ============================================================================
   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: center;
    margin-bottom: 20px;
    background: var(--purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Títulos centrados (Nueva sección) */
.centered-title {
    text-align: center;
    width: 100%;
    margin-bottom: 40px;
}

/* Contenedor para título centrado + botón a la derecha en productos */
.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

    .products-header .centered-title {
        flex: 1;
        text-align: center;
        margin-bottom: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .products-header .quick-contact-btn {
        margin-left: auto;
        position: relative;
        z-index: 1;
    }

.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);
    }

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

.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);
    }

.product-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.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);
    }

.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);
    }

.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;
    }

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

.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;
}

    /* Asegurar que el título de Catálogos quede centrado */
    .catalogo-section .centered-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

.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);
}

    .catalogo-item:hover {
        transform: translateY(-12px);
        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;
}

.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;
}

    /* Asegurar que el título de Red Comercial quede centrado */
    .red-comercial-section .centered-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

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

.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;
    }

.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;
    }

.sucursal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.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%;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

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

body.dark-mode .sucursal-item,
body.dark-mode .filter-select,
body.dark-mode .filter-btn {
    background: var(--bg-card);
}

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

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

.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);
    }

.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;
    }

.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;
    }

.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;
}

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

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

.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. BOTÓN FLOTANTE DE WHATSAPP
   ============================================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 90px;
    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;
    transition: var(--transition-base);
    cursor: pointer;
}

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

    .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;
    }
}

.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;
}

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

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

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);
    }


/* ============================================================================
   15.5. BOTONES FLOTANTES (Teléfono, Email, Ubicación)
   ============================================================================ */

.floating-buttons {
    position: fixed;
    bottom: 160px; /* Espacio para el botón de WhatsApp */
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Colores específicos para cada botón */
.floating-phone {
    background: #00973a; /* Verde */
}

.floating-email {
    background: #7a1fa2; /* Púrpura */
}

.floating-location {
    background: #ff7a2a; /* Naranja */
}

/* Efecto hover */
.floating-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-phone:hover {
    background: #00b347;
}

.floating-email:hover {
    background: #9c27b0;
}

.floating-location:hover {
    background: #ff8f4d;
}

/* Tooltips */
.floating-tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

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

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

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

/* Animación de pulso para todos los botones flotantes */
.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
    animation: floating-pulse 2s ease-out infinite;
    z-index: -1;
}

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

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

/* ============================================================================
   16. 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;
}

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

.promo-band-Sabias-que {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0'/%3E%3Cstop offset='100%25' stop-color='%2397ba97' stop-opacity='0.8'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0'/%3E%3Cstop offset='100%25' stop-color='%23638c6d' stop-opacity='0.9'/%3E%3C/linearGradient%3E%3ClinearGradient id='g3' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2397ba97' stop-opacity='0.2'/%3E%3Cstop offset='100%25' stop-color='%232c5f2d' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g1)' d='M0,192L48,197.3C96,203,192,213,288,224C384,235,480,245,576,224C672,203,768,149,864,149.3C960,149,1056,203,1152,218.7C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3Cpath fill='url(%23g2)' d='M0,256L48,240C96,224,192,192,288,186.7C384,181,480,203,576,218.7C672,235,768,245,864,245.3C960,245,1056,235,1152,213.3C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3Cpath fill='url(%23g3)' d='M0,160L48,176C96,192,192,224,288,240C384,256,480,256,576,240C672,224,768,192,864,176C960,160,1056,160,1152,176C1248,192,1344,224,1392,240L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: bottom center !important;
    padding-bottom: 5rem;
}

.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;
        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;
}

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

.promo-band-2-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.promo-video-col {
    margin-left: 13rem;
}

.promo-text-col {
    flex: 1 1 50%;
    color: white;
    font-size: 1.6rem;
}

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

.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;
        font-weight: 700;
        color: white;
    }

/* Sabías que */
.sabias-que-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 0;
    width: 100%;
}

#TitleSabiasQue {
    font-size: 2.8rem;
    font-weight: 800;
    color: #eab308;
    margin-bottom: 25px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.1);
}

.sabias-que-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 1;
}

.sabias-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .sabias-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.sabias-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green, #00973a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 151, 58, 0.3);
}

.sabias-item p {
    margin: 0;
    color: #1a1a1a; /* Cambiado de #333333 a un negro más sólido para mejor contraste */
    font-size: 1.05rem;
    line-height: 1.5;
}

.sabias-item strong {
    color: var(--green, #00973a);
    font-weight: 700;
}

/*imagen de sabias que*/
/*.sabias-que-mascota {
    width: 22rem;
}*/


/* video "Sabías que" */
.sabias-que-media-wrapper {
    width: 22rem;
    max-width: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px; /* Espacio interno como marco */
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sabias-que-video {
    width: 22rem;
    height: 100%;
    object-fit: cover;
    border-radius: 18px; /* Ligeramente menor que el contenedor */
    display: block;
}

body.dark-mode .sabias-que-media-wrapper {
    background: linear-gradient(135deg, rgba(30, 35, 48, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Efecto hover sutil */
.sabias-que-media-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.6); /* Borde dorado al hacer hover */
}

/* Modo oscuro */
body.dark-mode .sabias-que-media-wrapper {
    background: rgba(30, 35, 48, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

    body.dark-mode .sabias-que-media-wrapper:hover {
        border-color: rgba(255, 215, 0, 0.5);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }


/* ===== MODO OSCURO - CORRECCIÓN PARA SABIAS-QUE ===== */
body.dark-mode .sabias-item {
    background: rgba(30, 35, 48, 0.95); /* Fondo oscuro sólido, no translúcido */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

    body.dark-mode .sabias-item p {
        color: #e5e7eb; /* Texto blanco/gris claro para buen contraste */
    }

    body.dark-mode .sabias-item strong {
        color: #4ade80; /* Verde más brillante para destacar en modo oscuro */
    }

    body.dark-mode .sabias-item.active {
        background: rgba(30, 35, 48, 0.98);
        border-left: 3px solid #eab308;
    }

        body.dark-mode .sabias-item.active .sabias-icon {
            background: #eab308;
            color: #1a1a2e;
        }

/* ============================================================================
   17. 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 {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.8fr 1.5fr;
    gap: 5rem;
    align-items: start;
    text-align: center;
}

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

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

.final-column-title {
    color: var(--purple);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: auto;
}

    .final-column-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 8rem;
        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;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0;
}

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

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

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

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

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

.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 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--bg-footer);
    color: white;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.9rem;
    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);
    }

/* ============================================================================
   18. RESPONSIVE DESIGN
   ============================================================================ */

/* ── Desktop (≥ 992px) — Filosofía ─────────────────────────────────────── */
@media (min-width: 992px) {
    .filosofia-card:nth-child(2) {
        transform: translateY(30px);
    }

    .filosofia-card:nth-child(1):hover,
    .filosofia-card:nth-child(3):hover {
        transform: translateY(-15px);
    }

    .filosofia-card:nth-child(2):hover {
        transform: translateY(15px);
    }

    .filosofia-card:nth-child(1).reveal-card {
        transition-delay: 0.1s;
    }

    .filosofia-card:nth-child(2).reveal-card {
        transition-delay: 0.3s;
    }

    .filosofia-card:nth-child(3).reveal-card {
        transition-delay: 0.5s;
    }

    .filosofia-card:nth-child(2).reveal-card.visible {
        transform: translateY(30px);
    }

        .filosofia-card:nth-child(2).reveal-card.visible:hover {
            transform: translateY(15px);
        }

    .filosofia-card:nth-child(1).reveal-card.visible:hover,
    .filosofia-card:nth-child(3).reveal-card.visible:hover {
        transform: translateY(-15px);
    }
}

/* ── Tablets (≤ 1024px) ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0px 13rem 0px 40px;
    }

    .new-main-nav {
        display: none;
    }

    .hero-content-wrapper {
        padding: 0 30px;
        gap: 40px;
    }

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

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }

    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

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

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

    .news-comments-inner {
        flex-direction: column;
        gap: 30px;
    }

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

    .final-contact-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .logo-column {
        order: 1;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 25px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ── Filosofía — carrusel horizontal en móvil (≤ 991px) ─────────────────── */
@media (max-width: 991px) {
    .filosofia-section {
        padding: 0 10px;
    }

    .filosofia-grid {
        display: flex;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 20px 10px 40px 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

        .filosofia-grid::-webkit-scrollbar {
            display: none;
        }

    .filosofia-card {
        min-width: 280px;
        max-width: 300px;
        flex: 0 0 auto;
        scroll-snap-align: center;
        padding: 40px 25px;
    }

        .filosofia-card.mobile-active {
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            border-color: transparent;
        }

            .filosofia-card.mobile-active::before {
                transform: scale(15);
            }

            .filosofia-card.mobile-active .icon-wrapper {
                background: rgba(255, 255, 255, 0.2) !important;
                color: #ffffff !important;
                box-shadow: none !important;
                transform: rotateY(360deg);
            }

            .filosofia-card.mobile-active h3,
            .filosofia-card.mobile-active p {
                color: #ffffff !important;
            }
}

/* ── Móviles (≤ 768px) ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }

    .header-contact-info {
        display: none;
    }

    .logo-flotante {
        top: 10px;
        right: 20px;
    }

        .logo-flotante img {
            height: 7rem;
        }

    .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;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .extra-btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sabias-que-media-wrapper {
        width: 16rem; /* Reducir tamaño en móvil */
    }

    /* Ajuste responsive para products-header */
    .products-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-bottom: 30px;
    }

        .products-header .centered-title {
            position: static;
            transform: none;
            white-space: normal;
            flex: 0 0 100%;
            order: 1;
        }

        .products-header .quick-contact-btn {
            order: 2;
            margin-left: 0;
        }

    .hero-section.new-hero {
        min-height: 100svh;
        padding: 100px 20px 80px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .hero-content-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        width: 100%;
        padding: 0 20px;
        margin: 0;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.8rem);
        margin-bottom: 14px;
        text-align: left;
    }

    .hero-subtitle {
        font-size: 18px;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 20px;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        position: static;
        top: 22rem;
        left: 2rem;
    }

        .hero-buttons .btn-primary,
        .hero-buttons .btn-secondary {
            justify-content: center;
            padding: 14px 24px;
            font-size: 15px;
        }

    .hero-visual {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-top: 30rem;
        width: 100%;
    }

        .hero-visual .product-card {
            flex: 1;
            width: auto;
            height: 80px;
            font-size: 12px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.15);
        }

            .hero-visual .product-card i {
                font-size: 1.5rem;
            }

    .hero-nav-btn {
        width: 36px;
        height: 36px;
    }

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

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .hero-pagination {
        bottom: 24px;
        gap: 8px;
    }

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

    .filosofia-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 16px !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

        .filosofia-grid::-webkit-scrollbar {
            display: none;
        }

    .filosofia-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 0;
        padding: 20px !important;
    }

        .filosofia-card > div:first-child {
            display: none !important;
        }

    .products-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding-bottom: 8px;
    }

        .products-grid::-webkit-scrollbar {
            display: none;
        }

    .product-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
        min-width: 0;
    }

    .product-btn {
        left: 50%;
        transform: translateX(-50%);
    }

        .product-btn:hover {
            transform: translateX(-50%) translateY(-4px);
        }

    .catalogo-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .catalogo-item {
        height: 200px !important;
        min-height: 200px;
    }

    .catalogo-overlay {
        padding: 16px;
    }

    .subcat-btn {
        font-size: 0.8rem;
        padding: 7px 14px;
    }

    .mapa-container {
        height: 320px;
    }

    .sucursales-list {
        max-height: 300px;
    }

    .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;
        align-items: center;
        gap: 1.5rem;
    }

    .promo-video-col {
        margin-left: 0;
        width: 100%;
    }

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

    .promo-text-col {
        text-align: center;
    }

    .sabias-que-inner {
        flex-direction: column;
        text-align: center;
    }

    .sabias-que-list {
        flex-direction: column;
    }

    .sabias-item {
        align-items: center;
        text-align: center;
    }

    .sabias-que-mascota {
        width: 16rem;
    }

    #TitleSabiasQue {
        font-size: 1.9rem;
        text-align: center;
        justify-content: center;
    }

    .sabias-item p {
        font-size: 0.98rem;
    }

    .sabias-icon {
        width: 40px;
        height: 40px;
    }

    .sabias-item.active {
        transform: translateY(-5px) translateX(4px);
        box-shadow: 0 16px 36px rgba(0,0,0,0.22);
        border-left-color: #ffd700;
        /*background: rgba(255, 255, 255, 0.16);*/
    }

        .sabias-item.active .sabias-icon {
            background: #ffd700;
            color: #1a472a;
            transform: rotate(12deg) scale(1.1);
            box-shadow: 0 6px 18px rgba(255,215,0,0.45);
        }

    .whatsapp-float {
        bottom: 70px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .whatsapp-tooltip {
        display: none;
    }

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

    .logo-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .final-column-title {
        text-align: center;
        position: relative;
        display: inline-block;
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }

        .final-column-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50% !important;
            transform: translateX(-50%);
            width: 40px;
            height: 3px;
            background: var(--orange);
        }

    .final-column-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .final-column-list li {
            text-align: center;
            width: fit-content;
        }

        .final-column-list a:hover {
            padding-left: 0;
            transform: scale(1.05);
        }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-left: 0 !important;
    }

    .contact-item {
        justify-content: center;
        width: fit-content;
        min-width: auto;
        text-align: center;
    }

        .contact-item span {
            text-align: center;
        }

        .contact-item:hover {
            transform: translateX(0) translateY(-2px);
        }

    .social-icons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-left: 0 !important;
    }

    .social-link {
        justify-content: center;
        width: fit-content;
        text-align: center;
    }

        .social-link:hover {
            transform: translateX(0) translateY(-2px);
        }

    .floating-buttons {
        bottom: 130px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .floating-tooltip {
        display: none; /* Ocultar tooltips en móvil */
    }

}

/* ── Móviles pequeños (≤ 480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .hero-section.new-hero {
        padding: 90px 16px 70px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-nav-btn {
        width: 30px;
        height: 30px;
    }

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

    .filosofia-card {
        flex: 0 0 92%;
    }

    .product-item {
        flex: 0 0 90%;
    }

    .catalogo-grid {
        grid-template-columns: 1fr !important;
    }

    .catalogo-item {
        height: 180px !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .mapa-container {
        height: 260px;
    }

    .whatsapp-float {
        bottom: 65px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .final-contact-container {
        gap: 30px;
    }

    .contact-item span,
    .social-link span {
        font-size: 0.9rem;
    }

    .floating-buttons {
        bottom: 120px;
        right: 15px;
        gap: 8px;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .sabias-que-media-wrapper {
        width: 14rem;
    }

}

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