 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
 }

 html {
     overflow-x: hidden;
     scroll-behavior: smooth;
     width: 100%;
     margin: 0;
     padding: 0;
 }

 body {
     background-color: #f5f5f5;
     overflow-x: hidden;
     width: 100%;
     margin: 0;
     padding: 0;
 }

 header {
     height: 120px;
     width: 100%;
     background: linear-gradient(to right, #36498f, #087d4e);
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 50px;
     position: relative;
     z-index: 1000;
     margin: 0;
 }

 .logo_header {
     height: 100px;
     padding: 10px;
 }

 .texto_logo {
     height: 60px;
     margin-bottom: 20px;
 }

 .contenedor_logo {
     background-color: white;
     height: 90px;
     display: flex;
     justify-content: center;
     align-items: center;
     padding-right: 10px;
     border-radius: 10px;
 }

 .search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.barra_busqueda {
    width: 500px;
    height: 42px;
    border-radius: 25px;
    padding-left: 22px;
    padding-right: 45px; /* Espacio para el botón de limpiar */
    border: none;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.barra_busqueda:focus {
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.btn-clear-search {
    position: absolute;
    right: 12px;
    background: #e2e8f0;
    border: none;
    color: #64748b;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Se muestra con JS cuando hay texto */
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
    z-index: 5;
}

.btn-clear-search:hover {
    background: #cbd5e1;
    color: #1e293b;
    transform: scale(1.1);
}

.btn-clear-search.visible {
    display: flex;
}



 .contenedor_botones {
     display: flex;
     align-items: center;
     gap: 20px;
 }

 .btn-link {
     display: flex;
     justify-content: center;
     align-items: center;
     width: 100%;
     height: 60px;
     padding: 10px 20px;
     background: white;
     text-align: center;
     border-radius: 5px;
     color: #1f1c2c;
     font-size: 16px;
     text-decoration: none;
     transition: all 0.3s ease;
     cursor: pointer;
     font-weight: bold;
 }

 .btn-link:hover {
     background: rgb(214, 211, 211);
     transform: scale(1.05);
 }

 .button {
     display: flex;
     width: 150px;
     height: 100px;
     align-items: center;
 }

 /* Contenedores expandibles con Carrusel Horizontal */
.contenedores-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1100;
}

.contenedores-container {
    width: 100%;
    background: linear-gradient(to right, #36498f, #087d4e);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-end; /* Pegadas al fondo de la barra */
    justify-content: center;
    padding: 6px 20px 0 20px; /* Sin padding inferior para que asienten al ras */
    gap: 12px;
}

.tab-nav-btn {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    z-index: 5;
    margin-bottom: 7px; /* Centrado vertical con respecto a las pestañas */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tab-nav-btn:hover {
    background: #ffffff;
    color: #087d4e;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tab-nav-btn:active {
    transform: scale(0.95);
}

.contenedores-bar {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    background: transparent;
    padding: 6px 0 0 0; /* Espacio superior para que el hover y la serpiente suban sin recortarse */
    gap: 8px;
    overflow-x: auto;
    width: 800px;
    max-width: calc(100vw - 130px);
    scrollbar-width: none;
}

.contenedores-bar::-webkit-scrollbar {
    display: none;
}

.contenedor-item {
    position: relative;
    flex: 0 0 194px;
    width: 194px;
    display: flex;
    align-items: flex-end;
    padding-top: 4px; /* Permite elevación libre */
}

.contenedor-tab {
    background: rgba(255, 255, 255, 0.94);
    color: #1f2937;
    padding: 13px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 15.5px; /* Nombres de tarjetas más grandes y legibles */
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Borde blanco ligero para destacar */
    border-bottom: none;
    border-radius: 10px 10px 0 0; /* Asentadas en la base */
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.contenedor-tab:hover {
    background: #ffffff;
    color: #087d4e;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.9);
}

.contenedor-tab.active {
    background: #ffffff !important;
    color: #087d4e !important;
    border: 1px solid #ffffff !important;
    border-bottom: none !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12) !important;
    position: relative;
    overflow: hidden;
}

/* Base de la barra activa */
.contenedor-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4.5px;
    background: linear-gradient(90deg, #087d4e, #1a567a, #36498f, #1a567a, #087d4e);
    background-size: 300% 100%;
    z-index: 5;
}

/* 1.1 Carga hacia la DERECHA (cuando vas a una tarjeta a la derecha) */
.contenedor-tab.active.from-left::before {
    transform-origin: left center;
    animation: loadBarInFromLeft 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               snakeBorder 5s linear infinite 0.65s;
}

/* 1.2 Carga hacia la IZQUIERDA (cuando vuelves a una tarjeta a la izquierda) */
.contenedor-tab.active.from-right::before {
    transform-origin: right center;
    animation: loadBarInFromRight 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               snakeBorder 5s linear infinite 0.65s;
}

/* 2. Barra en estado de salida/descarga */
.contenedor-tab.deactivating {
    position: relative;
    overflow: hidden;
}

.contenedor-tab.deactivating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4.5px;
    background: linear-gradient(90deg, #087d4e, #1a567a, #36498f);
    background-size: 100% 100%;
    z-index: 5;
}

/* 2.1 Descarga hacia la DERECHA */
.contenedor-tab.deactivating.to-right::before {
    transform-origin: right center;
    animation: loadBarOutToRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 2.2 Descarga hacia la IZQUIERDA */
.contenedor-tab.deactivating.to-left::before {
    transform-origin: left center;
    animation: loadBarOutToLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadBarInFromLeft {
    0% { transform: scaleX(0); opacity: 0.8; }
    100% { transform: scaleX(1); opacity: 1; }
}

@keyframes loadBarInFromRight {
    0% { transform: scaleX(0); opacity: 0.8; }
    100% { transform: scaleX(1); opacity: 1; }
}

@keyframes loadBarOutToRight {
    0% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

@keyframes loadBarOutToLeft {
    0% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

@keyframes snakeBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Panel Desplegable de Categoría: Pegado directamente bajo las pestañas */
.contenedor-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(8, 125, 78, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1050;
    padding: 25px 20px 45px;
    max-height: 75vh;
    overflow-y: auto;
}

.contenedor-content.active {
    display: block !important;
    animation: modalSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.contenedor-content.closing {
    display: block !important;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-14px);
    }
}

.content-header {
    background: linear-gradient(135deg, #087d4e, #36498f);
    color: white;
    padding: 25px 60px 25px 35px; /* Espacio extra a la derecha para la X */
    text-align: center;
    border-radius: 14px;
    margin: 0 auto 25px;
    max-width: 1200px;
    position: relative;
    box-shadow: 0 8px 25px rgba(8, 125, 78, 0.2);
}

.btn-close-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-close-category:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: rotate(90deg) scale(1.1);
}

.content-header h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.content-header p {
    opacity: 0.95;
    font-size: 16.5px; /* Más grande y legible */
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Tarjeta de Producto en el Grid */
.image-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.image-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(8, 125, 78, 0.16);
    border-color: rgba(8, 125, 78, 0.3);
}

.image-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
    font-weight: bold;
    position: relative;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px dashed rgba(8, 125, 78, 0.3);
    border-radius: 10px;
}

.image-title {
    padding: 16px 18px 8px;
    text-align: left;
    font-size: 18px; /* Título de producto más grande */
    font-weight: 700;
    color: #111827;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background: white;
}

.image-description {
    padding: 0 18px 18px;
    text-align: left;
    font-size: 15px; /* Descripción de producto más clara */
    color: #4b5563;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.6;
    flex-grow: 1;
}

/* Empty State para categorías sin productos */
.empty-category-state {
    grid-column: 1 / -1;
    background: white;
    padding: 50px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border: 1px dashed #d1d5db;
    margin: 20px auto;
    max-width: 600px;
}

.empty-category-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.empty-category-text {
    font-size: 17px;
    color: #4b5563;
    font-weight: 600;
}

/* Contenido principal */
.main-content {
    padding: 50px 20px;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.welcome-section {
    background: white;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 45px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.welcome-section h2 {
    color: #36498f;
    margin-bottom: 15px;
    font-size: 2.3em;
    font-weight: 700;
    font-style: italic;
}

.welcome-section p {
    color: #4b5563;
    font-size: 1.15em;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

/* Grilla de Especialidades Principal */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Tarjeta de Especialidad Profesional */
.product-card {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(8, 125, 78, 0.14);
    border-color: rgba(8, 125, 78, 0.3);
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8, 125, 78, 0.12), rgba(54, 73, 143, 0.12));
    color: #087d4e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-icon {
    background: linear-gradient(135deg, #087d4e, #36498f);
    color: white;
    transform: scale(1.08);
}

.product-card h3 {
    color: #111827;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0;
}

.product-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card-action {
    color: #087d4e;
    font-weight: 700;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.product-card:hover .product-card-action {
    gap: 10px;
}

 /* Responsive Móvil & Tablet */
 @media (max-width: 768px) {
     header {
         height: auto;
         flex-direction: column;
         gap: 15px;
         padding: 15px 15px 20px;
     }

     .contenedor_logo {
         height: 75px;
         padding: 5px 15px;
     }

     .logo_header {
         height: 70px;
         width: auto;
         padding: 5px;
     }

     .texto_logo {
         height: 45px;
         width: auto;
         margin-bottom: 5px;
     }

     .search-container {
         display: flex;
         width: 100%;
         max-width: 500px;
         justify-content: center;
     }

     .barra_busqueda {
         display: block;
         width: 100%;
         max-width: 100%;
         height: 42px;
         font-size: 15px;
     }

     .contenedores-container {
         padding: 6px 10px 0 10px;
         gap: 8px;
         justify-content: flex-start;
         align-items: flex-end;
     }

     .tab-nav-btn {
         width: 30px;
         height: 30px;
         font-size: 12.5px;
         margin-bottom: 6px;
     }

     .contenedores-bar {
         display: flex;
         width: 100%;
         max-width: 100%;
         overflow-x: auto;
         -webkit-overflow-scrolling: touch;
         scrollbar-width: none; /* Firefox */
         padding-top: 4px;
         gap: 8px;
     }

     .contenedores-bar::-webkit-scrollbar {
         display: none; /* Chrome, Safari */
     }

     .contenedor-item {
         flex: 0 0 auto;
         width: auto;
         min-width: 130px;
         max-width: none;
         margin: 0;
     }

     .contenedor-tab {
         padding: 10px 14px;
         font-size: 13px;
     }

     .contenedor-content {
         position: absolute;
         top: 100%;
         bottom: auto;
         left: 0;
         right: 0;
         height: auto;
         max-height: 80vh;
         border-radius: 0 0 16px 16px;
         padding: 15px 12px 30px;
         z-index: 2000;
         box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
     }

     .content-header {
         padding: 15px 50px 15px 15px; /* 50px a la derecha para que la X jamás se monte sobre el texto */
         margin-bottom: 15px;
     }

     .content-header h3 {
         font-size: 1.35rem;
         word-break: break-word;
     }

     .content-header p {
         font-size: 0.95rem;
         line-height: 1.5;
     }

     .images-grid {
         grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
         gap: 14px;
         padding: 10px 5px;
     }

     .image-title {
         font-size: 15px !important;
         padding: 12px 12px 4px !important;
     }

     .image-description {
         font-size: 13px !important;
         padding: 0 12px 14px !important;
         line-height: 1.45 !important;
     }

     .main-content {
         padding: 30px 15px;
     }

     .welcome-section {
         padding: 25px 15px;
         margin-bottom: 25px;
     }

     .welcome-section h2 {
         font-size: 1.6em;
     }

     .welcome-section p {
         font-size: 0.95em;
     }

     .best-sellers-section {
         padding: 35px 15px;
         border-radius: 25px;
     }

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

     .section-subtitle {
         font-size: 0.95rem;
         margin-bottom: 25px;
     }

     .footer-container {
         flex-direction: column;
         align-items: center;
         text-align: center;
         gap: 25px;
     }

     .footer-col {
         border-right: none !important;
         padding-right: 0 !important;
         width: 100%;
     }

     .footer-contacto {
         align-items: center;
     }

     .footer-contact-info p {
         justify-content: center;
     }

     .footer-social-icons {
         justify-content: center;
     }

     .footer-logo-container {
         height: 65px;
     }

     .footer-logo-icon {
         height: 50px;
         width: auto;
     }

     .footer-logo-text {
         height: 32px;
         width: auto;
     }
 }

 /* ========== FOOTER ========== */
 .site-footer {
     background-color: #f0f0f0;
     border-top: 1px solid #ccc;
     padding: 35px 40px 0;
     margin-top: 40px;
     opacity: 1;
     visibility: visible;
     transform: none;
 }

 .footer-container {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     gap: 30px;
 }

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

 /* Logo Specialized */
 .footer-logo-col {
     flex: 0 0 auto;
 }

 .footer-logo-container {
     background-color: white;
     height: 80px;
     display: flex;
     justify-content: center;
     align-items: center;
     padding: 5px 10px;
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }

 .footer-logo-icon {
     height: 70px;
     padding: 5px;
 }

 .footer-logo-text {
     height: 45px;
     margin-bottom: 10px;
 }

 /* Redes Sociales */
 .footer-redes {
     flex: 0 0 auto;
     border-right: 1px solid #ccc;
     padding-right: 30px;
 }

 .footer-title {
     color: #333;
     font-size: 14px;
     font-weight: 700;
     letter-spacing: 1px;
     margin-bottom: 12px;
     text-transform: uppercase;
 }

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

 .social-icon {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 44px;
     height: 44px;
     border-radius: 10px;
     color: white;
     font-size: 22px;
     text-decoration: none;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 .social-icon:hover {
     transform: scale(1.1);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
 }

 .social-icon.whatsapp {
     background-color: #25D366;
 }

 .social-icon.instagram {
     background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
 }

 .social-icon.facebook {
     background-color: #1877F2;
 }

 /* Contacto */
.footer-contacto {
    flex: 1;
    align-items: flex-start;
}

.footer-contact-info p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #374151;
    font-size: 14.5px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.75;
    margin: 0;
}

.footer-contact-info p i {
    color: #087d4e;
    font-size: 15px;
    min-width: 18px;
}

.footer-contact-info a {
    color: #087d4e;
    text-decoration: underline;
    font-weight: 600;
}

.footer-contact-info a:hover {
    color: #065f3b;
}

.horario-detalle {
    padding-left: 26px;
    font-size: 14px;
    color: #4b5563;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/* INVIMA */
.footer-invima {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
}

.footer-invima-img {
    height: 65px;
    object-fit: contain;
    margin-bottom: 6px;
}

.invima-text {
    font-size: 13px;
    color: #4b5563;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
}

.invima-numero {
    font-size: 13px;
    color: #1f2937;
    font-weight: 700;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
}

 /* ========== FOOTER RESPONSIVE ========== */

 /* Tablet */
 @media (max-width: 1024px) {
     .site-footer {
         padding: 30px 25px;
     }

     .footer-container {
         justify-content: center;
         gap: 25px;
     }

     .footer-redes {
         border-right: none;
         padding-right: 0;
     }

     .footer-contacto {
         flex: 1 1 100%;
         align-items: center;
         border-top: 1px solid #ccc;
         padding-top: 20px;
         margin-top: 5px;
     }

     .footer-contact-info p {
         justify-content: center;
     }

     .horario-detalle {
         padding-left: 0;
     }
 }

 /* Móvil */
 @media (max-width: 768px) {
     .site-footer {
         padding: 25px 20px;
     }

     .footer-container {
         flex-direction: column;
         align-items: center;
         text-align: center;
         gap: 20px;
     }

     .footer-col {
         width: 100%;
         border-right: none !important;
         padding-right: 0 !important;
     }

     .footer-redes {
         border-right: none;
         padding-right: 0;
         border-bottom: 1px solid #ccc;
         padding-bottom: 20px;
     }

     .footer-contacto {
         align-items: center;
         border-top: none;
         padding-top: 0;
     }

     .footer-contact-info p {
         justify-content: center;
         flex-wrap: wrap;
     }

     .footer-logo-container {
         height: 65px;
     }

     .footer-logo-icon {
         height: 55px;
     }

     .footer-logo-text {
         height: 35px;
         margin-bottom: 5px;
     }

     .footer-invima {
         border-top: 1px solid #ccc;
         padding-top: 15px;
         width: 100%;
     }
 }

 /* Móvil pequeño */
 @media (max-width: 480px) {
     .site-footer {
         padding: 20px 15px;
     }

     .social-icon {
         width: 36px;
         height: 36px;
         font-size: 18px;
     }

     .footer-contact-info p {
         font-size: 12px;
     }

     .footer-title {
         font-size: 12px;
     }

     .footer-logo-container {
         height: 55px;
     }

     .footer-logo-icon {
         height: 45px;
     }

     .footer-logo-text {
         height: 28px;
     }
 }
/* ========== BADGE DE NOTIFICACIONES ========== */
.badge-notif {
    background-color: #dc3545;
    color: white !important;
    border-radius: 50%;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.4);
    animation: pulse-red 2s infinite;
    vertical-align: middle;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ========== FOOTER COPYRIGHT ========== */
.footer-copyright {
    border-top: 3px solid #087d4e;
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    text-align: center;
}

.copyright-content p {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
}

.copyright-legal {
    font-size: 11px !important;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== BEST SELLERS CAROUSEL ========== */
.best-sellers-section {
    margin-top: 30px;
    padding: 60px 40px;
    background: linear-gradient(180deg, #f4f7f6 0%, #fdfdfd 100%);
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
    font-style: italic;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 30 px;
    padding-top: 30px;
}

/* Swiper Container Adjustments */
.swiper {
    width: 100%;
    padding: 20px 10px 60px 10px !important; /* Espacio inferior para la paginación */
}

/* Custom Slide Styling */
.swiper-slide {
    background: white;
    border-radius: 20px;
    padding: 20px 15px; /* Ligeramente más compacto para 4 elementos */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: auto !important; /* Para que todas las tarjetas midan lo mismo */
    display: flex;
    justify-content: center;
}

.swiper-slide:hover {
    animation: jumpAndLandCarousel 1s ease-in-out;
    border-color: rgba(8, 125, 78, 0.2);
    box-shadow: 0 20px 40px rgba(8, 125, 78, 0.1);
}

@keyframes jumpAndLandCarousel {
    0% { transform: translateY(0); }
    30% { transform: translateY(-20px); } /* Se levanta */
    50% { transform: translateY(-20px) rotate(2deg); } /* Se mueve a la derecha */
    70% { transform: translateY(-20px) rotate(-2deg); } /* Se mueve a la izquierda */
    100% { transform: translateY(0) rotate(0); } /* Cae y aterriza */
}

.carousel-slide-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Swiper Pagination (Dots) */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #ddd !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #087d4e !important;
    transform: scale(1.3);
}

.slide-img-container {
    width: 100%;
    height: 150px; /* Reducido para que la tarjeta sea más pequeña y elegante */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #fdfdfd;
    border-radius: 15px;
    overflow: hidden;
}

.slide-img-container img {
    max-width: 85%; /* Ajustado para dar más margen interno */
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.swiper-slide:hover .slide-img-container img {
    transform: scale(1.1);
}

.slide-category {
    display: inline-block;
    background: rgba(8, 125, 78, 0.1);
    color: #087d4e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.slide-title {
    font-size: 1.15rem; /* Letra un poco más pequeña */
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.slide-price {
    font-size: 1.3rem; /* Precio un poco más ajustado */
    color: #087d4e;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #087d4e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
