/* --- VARIABLES DE COLOR --- */
:root {
    --cyan: #04D9D9;
    --dark-blue: #002057;
    --dark-gray: #2B2B2B;
    --light-gray: #D9D9D9;
    --white: #ffffff;
    --black: #000000;
    --danger: #ff3b30; 
    --bg-light: #F4F8f9; 
    --text-dark: #2B2B2B;
    --text-light: #666666;
    --primary: #04D9D9;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden; /* Evita scroll horizontal indeseado provocado por expansiones al 100vw */
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* --- ESPACIADO GLOBAL ENTRE SECCIONES --- */
.hero, .features, .categories, .offers-section, .brands, .blog, .contact-map-section {
    margin-bottom: 70px; 
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span, .top-contact span {
    margin-right: 15px;
}

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

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

.social-icons a:hover {
       color: var(--white);
}

/* 🔥 CONTENEDOR MAESTRO FIJO (HEADER + CATEGORÍAS UNIFICADOS) 🔥 */
.sticky-header-container {
    position: sticky;
    top: 0;
    z-index: 1000;                  
    background-color: var(--white);
    transition: box-shadow 0.3s ease;
    margin-bottom: 40px; /* <--- Empuja hacia abajo todo lo que esté por debajo del header */ 
}

/* --- MAIN HEADER --- */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    background-color: var(--white);
}

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

.search-bar {
    flex-grow: 1;
    max-width: 600px;
    display: flex;
    border: 1px solid var(--light-gray);
    border-radius: 30px;
    overflow: hidden;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
}

.search-bar button {
    background-color: var(--cyan);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.search-bar button:hover {
    background-color: #03b5b5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.lang-switch {
    background: var(--cyan);
    border-radius: 20px;
    padding: 2px;
    display: flex;
}

.lang-switch span {
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.lang-switch .active {
    background: var(--white);
    color: var(--black);
}

.action-item {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.action-item i {
    font-size: 20px;
}

.cart .badge {
    position: absolute;
    top: -8px;
    left: 10px;
    background: var(--red-sale);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

.logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* --- NAVIGATION --- */
.main-nav {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease; 
}

.sticky-header-container.scrolled .main-nav {
    background-color: #f4f5f7; 
    border-bottom: 1px solid var(--light-gray);
}

.sticky-header-container.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Contenedor de botones de la derecha */
.nav-buttons { 
    display: flex; 
    align-items: center;
    gap: 10px; /* Opcional: espacio entre botones */
    margin: 0 !important; 
}

.btn-ingresar {
    color: var(--dark-blue);
    padding: 8px 20px; /* <--- Reemplaza height: 100% por padding definido */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    border-radius: 25px; /* Define forma estética de píldora/botón */
    transition: all 0.3s ease;
}

.btn-ingresar:hover { 
    background-color: var(--dark-blue); 
    color: var(--white); 
}

.btn-ingresar i { 
    margin-left: 8px; 
}

.btn-registrarse {
    background-color: var(--cyan);
    color: var(--white);
    padding: 8px 20px; /* <--- Reemplaza height: 100% por padding definido */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    border-radius: 25px; /* Define forma estética de píldora/botón */
    transition: all 0.3s ease;
}

.btn-registrarse:hover { 
    background-color: var(--light-gray); 
    color: var(--black); 
}

.btn-registrarse i { 
    margin-left: 8px; 
}
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    gap: 30px;
}

.nav-item.offers {
    color: var(--danger);
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    font-size: 16px;
    font-weight: 500;
    gap: 30px;
}

.nav-item:hover {
    color: var(--cyan);
}

.category-btn {
    font-weight: 600;
}

/* --- MENÚ DESPLEGABLE (SERVICIOS) --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
}

/* Mostrar menú al pasar el mouse */
.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    height: auto;
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: var(--dark-gray);
    font-weight: 400;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--cyan);
}


/* --- HERO SECTION --- */

.hero {
    background-color: var(--bg-light);
    border-radius: 0px;
    display: flex;
    align-items: center;
    margin-top: 30px;
    padding: 40px;
    gap: 40px;
}

.hero2 {
    background-color: var(--bg-light);
    align-items: center;
    margin-top: 10px;
    padding: 10px;
}

.hero-content {
    flex: 1;
}

.badge-hero {
    background-color: #d1f7f7;
    color: var(--cyan);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
}

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--cyan);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #002057;
}

.btn-outline {
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.btn-outline:hover { 
    background-color: #03b5b5; 
    color: var(--white); 
}


/* --- categoria y subcategoria --- */
/* --- BREADCRUMBS (CATEGORÍA Y SUBCATEGORÍA) --- */
.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--cyan); /* Usando el color de tu identidad */
    margin-top: 20px;
    margin-bottom: 10px;
}

.product-breadcrumbs a {
    color: #333333;
    transition: color 0.2s ease;
}

.product-breadcrumbs a:hover {
    color: var(--cyan);
}

.product-breadcrumbs .back-link {
    font-weight: 500;
}

.product-breadcrumbs .divider {
    color: #ccc;
    margin: 0 4px;
}

.product-breadcrumbs i {
    font-size: 10px;
    color: #888888;
}

.product-breadcrumbs .current-category {
    color: #666666;
    font-weight: 400;
}

/* Ajuste opcional para reducir el margen superior del detalle si queda muy separado */
.product-detail-wrapper {
    margin-top: 30px !important; 
}

/* --- FEATURES --- */
.features.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);       
    border: 2px solid var(--light-gray);         
    padding: 30px 40px; 
    border-radius: 15px; 
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 40px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 18px;
    color: var(--black);                   
}

.feature-item i {
    color: var(--cyan);                   
    font-size: 22px;
}

/* --- CATEGORIES --- */
.categories h2 {
    margin-bottom: 30px;
    color: var(--black);
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); 
    gap: 15px;
    justify-items: center;
}

.cat-card {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.cat-card span {
    font-size: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; 
    height: 80px;
    border-radius: 50%;
    background-color: #D9D9D9;
    color: #ffffff; 
    margin-bottom: 10px;
    transition: all 0.3s ease; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cat-card span img {
    max-width: 80%; 
    max-height: 80%; 
    height: auto;
    display: block; 
}

.cat-card:hover span {
    background-color: #002057; 
    transform: translateY(-5px); 
}

.cat-card:hover p {
    color: #002057; 
}

/* --- GRIDS DE PRODUCTOS BASE (CORREGIDO: CENTRADO) --- */
.section-header {
    display: flex;
    justify-content: center; /* Centrado absoluto */
    align-items: center;
    position: relative;     /* Ancla el botón Ver Todo */
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.view-all {
    position: absolute;
    right: 0;                /* Flota a la derecha sin empujar el título */
    color: var(--cyan);
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-grid {
    display: grid;
    /* Esto crea 4 columnas iguales en pantallas grandes */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Espacio entre productos */
    margin-top: 20px;
}

.product-grid2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Cambiado de 4 a 6 */
    gap: 15px; /* Reducido ligeramente de 20px a 15px para que quepan mejor */
    padding: 15px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 15px;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    /* Ajusta estos valores para controlar el tamaño */
    max-width: 100%; 
    height: 100%; /* Asegura que todas tengan la misma altura dentro del grid */
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--cyan); 
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.product-img-box {
    width: 100%;
    aspect-ratio: 1 / 1; 
    max-height: 200px; /* <--- Añade esto para limitar la altura de la imagen */
    margin: 0 auto 15px auto;
    overflow: hidden;
    position: relative;
    display: block;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Esto mantiene la proporción sin deformar */
}

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

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-info h4 {
    font-size: 15px;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 600;
}

.rating {
    font-size: 12px;
    color: #ffb300;
    margin-bottom: 10px;
}

.rating span {
    color: #aaa;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 15px;
}

.product-card .price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger); 
}

.price .old {
    font-size: 13px;
    text-decoration: line-through;
    color: #aaa;
}

.add-to-cart-btn {
    width: 100%;
    background-color: var(--cyan); 
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    visibility: visible;
}



/* --- SECCIÓN OFERTAS DEL DÍA --- */
.offers-section {
    background-color: var(--bg-light);
    padding: 60px 0; 
}

.offers-section .section-header {
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative;
    margin-bottom: 35px;
}

.offers-section .section-header h3 {
    font-size: 28px;
    color: var(--black);
}

.offers-section .view-all {
    position: absolute;
    right: 0; 
    color: var(--black);
}

.offers-section .view-all:hover {
    color: #04d9d9;
}

/* --- SECCIÓN MARCAS (CARRUSEL ALTA ESTÉTICA - CORREGIDO: CENTRADO + CAPAS) --- */
.brands {
    background-color: var(--white);
    padding: 20px 0;
}

.brands-header {
    display: flex;
    justify-content: center; /* Centrado absoluto */
    align-items: center;
    position: relative;     /* Ancla las flechas nav */
    margin-bottom: 30px;
    z-index: 10;            /* Capa base de control */
}

.brands-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
}

.carousel-nav {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 0;                /* Flotan a la derecha */
    z-index: 20;            /* Al frente de todo para capturar los clics del JS */
}

.nav-btn {
    background-color: var(--white);
    border: 1px solid #eee;
    color: var(--dark-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-btn:hover {
    background-color: var(--cyan);
    color: var(--white);
    border-color: var(--cyan);
}

.brands-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.brands-track .brand-card {
    background: var(--white);
    padding: 0; 
    border-radius: 12px; 
    display: flex;
    align-items: center;
    justify-content: center;
    /* Cambiamos el divisor a 7 y multiplicamos 6 espacios de 20px */
    flex: 0 0 calc((100% - (6 * 20px)) / 7); 
    aspect-ratio: 1 / 1; 
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    overflow: hidden; 
}

.brands-track .brand-card img {
    width: 100%;        
    height: 100%;       
    object-fit: cover;  
    display: block;
    filter: grayscale(100%); 
    opacity: 0.5;
    transition: all 0.3s ease;
}

.brands-track .brand-card:hover img {
    filter: grayscale(0%); 
    opacity: 1;
}

/* --- BLOG (CORREGIDO: CENTRADO) --- */
.blog h2 {
    margin-bottom: 30px;
    text-align: center; /* Añadido para asegurar centrado del título del blog */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.blog-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-card h3 a:hover {
    color: var(--cyan);
    transition: color 0.2s ease;
}

/* --- SECCIÓN CONTACTO Y MAPA PREMIUM --- */
.contact-map-section {
    padding: 60px 0; 
    background-color: var(--bg-light);
}

.contact-map-wrapper {
    display: flex;
    gap: 30px; 
    align-items: stretch;
}

.map-box, .form-box {
    flex: 1;
    min-width: 0;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 380px; 
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 32, 87, 0.03); 
}

.form-box {
    background-color: var(--white);
    padding: 30px 35px; 
    border-radius: 10px;
    border: 1px solid rgba(0, 32, 87, 0.05);
    box-shadow: 0 8px 24px rgba(0, 32, 87, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.form-header {
    text-align: left; /* Centrado estético del bloque de formulario */
}

.form-header h2 {
    font-size: 21px;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 4px;
}

.form-header p {
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1; 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
}

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    background-color: #f8fafc; 
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--dark-gray);
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: var(--white);
    border-color: var(--light-gray);
}

.form-submit {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

.contact-info i {
    margin-right: 10px;
    color: var(--cyan);
}

.footer-socials {
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--cyan);
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-col ul a {
    color: #ccc;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul a:hover {
    color: var(--cyan);
}

.footer-col p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

/* --- FORMULARIO DE SUSCRIPCIÓN CON FONDO BLANCO --- */
.newsletter-form {
    display: flex;
    background-color: var(--white); 
    padding: 4px;                  
    border-radius: 30px;           
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    width: 100%;
    margin-top: 10px;
}

.newsletter-form input {
    padding: 10px 18px;
    border: none;
    background-color: transparent; 
    outline: none;
    flex-grow: 1;
    color: var(--dark-gray);       
    font-size: 14px;
    width: 100%;
}

.newsletter-form input::placeholder {
    color: #999; 
}

.newsletter-form button {
    background-color: var(--cyan);
    color: var(--white);
    border: none;
    padding: 0 22px;
    border-radius: 25px;           
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--dark-blue); 
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 13px;
    color: #aaa;
}

.back-to-top {
    background: var(--cyan);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PANEL DESLIZANTE DE PRODUCTO --- */

.product-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; 
    visibility: hidden;
    transition: visibility 0.4s;
}

.product-panel.open {
    visibility: visible;
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-panel.open .panel-overlay {
    opacity: 1;
}

.panel-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 600px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px 30px;
    overflow-y: auto;
    position: relative; 
}

.product-panel.open .panel-content {
    right: 0; 
}

.panel-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--dark-gray);
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
}

.panel-close-btn:hover {
    color: var(--cyan);
}

.panel-prod-detail .prod-title {
    font-size: 26px;
    color: var(--dark-blue);
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.panel-prod-detail .product-gallery-inline {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.panel-prod-detail .product-gallery-inline img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
}

.panel-prod-detail .specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

.panel-prod-detail .specs-table th, 
.panel-prod-detail .specs-table td {
    padding: 10px 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--light-gray);
}

.panel-prod-detail .specs-table th {
    background: var(--bg-light);
    color: var(--dark-blue);
    font-weight: 600;
    text-align: left;
}


/* --- ADAPTABILIDAD RESPONSIVA (MEDIA QUERIES COMPLETO) --- */

@media (max-width: 1100px) {
    .brands-track .brand-card {
        flex: 0 0 calc((100% - (3 * 20px)) / 4); 
    }
}

@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    .header-content { flex-direction: column; gap: 15px; }
    .search-bar { width: 100%; }
    .nav-container {
        flex-wrap: wrap;         /* Permite que los elementos bajen a otra línea[cite: 8] */
        justify-content: center; /* Centra los botones[cite: 8] */
        gap: 15px;               /* Reduce un poco el espacio para que quepan mejor[cite: 8] */
        padding: 0 10px;
    }
    
    .nav-container .nav-item {
        font-size: 14px;         /* Reduce un poco la fuente en móviles[cite: 8] */
    }
    
    .hero { flex-direction: column; text-align: center; padding: 30px 20px; }
    .hero-content h1 { font-size: 32px; }
    .hero-buttons { justify-content: center; }
    
    .features.container {
    display: grid;                           
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;                               
    background-color: var(--white);       
    border: 2px solid var(--light-gray);         
    padding: 30px 40px; 
    border-radius: 15px; 
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 20px);
    }

    .feature-item { width: 100%; align-items: justify; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px; /* Espacio equilibrado entre las tarjetas del blog */
    }

    .blog-card h3 { font-size: 1rem; margin-bottom: 8px;}
    .blog-card p {font-size: 13px; margin-bottom: 10px;}
    .blog-card img {  height: 140px !important;}
    .brands-track .brand-card {flex: 0 0 calc((100% - (3 * 20px)) / 4);}
    .contact-map-wrapper { flex-direction: column; gap: 20px; }
    .form-row { flex-direction: column; gap: 15px; }
    .map-box iframe { min-height: 280px; }
    .form-box { padding: 20px; }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px; /* Reduce ligeramente el espacio entre tarjetas para que respiren bien en móviles */
        padding: 0 10px;
    }

    /* Opcional: ajusta los tamaños internos para que no se compriman demasiado */
    .store-product-card {
        min-height: unset; /* Permite que la altura se adapte al contenido de dos columnas */
        padding: 12px;
    }

    .product-img-wrapper {
        height: 120px; /* Reduce un poco la altura de la imagen en móvil */
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .store-product-card .current-price {
        font-size: 18px; /* Ajusta el tamaño del precio para móviles */
    }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); } /* 4 productos en pantallas medianas */
}

/* Ajuste para tablets (3 columnas) */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajuste para móviles (2 columnas) */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* ==========================================================================
   5.6 SECCIÓN DE TIENDA (Estilo Fiel a Imagen Adjunta)
   ========================================================================== */
.store-offers-section {
    padding: 60px 0;
    width: 100%;
    background-color: var(--white);
}

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 25px auto;
    padding: 0 20px;
}

.offers-header h2 {
    font-size: 30px;
    font-weight: 500;
    color: var(--black);
    font-family: 'Inter', sans-serif;
}

.view-all-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--cyan);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.store-product-card {
    background: var(--white);
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 430px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Badge rojo de descuento idéntico */
.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff3b30;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    z-index: 5;
}

.product-img-wrapper {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

/* Subtítulo gris de categoría */
.product-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: #b5b5b5;
    letter-spacing: 0.5px;
}

/* Título de producto */
.product-title {
    font-size: 15px;
    color: var(--black);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2px;
}

/* Puntuación de estrellas */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.product-rating i {
    color: #ffb300; /* Tono dorado de la estrella */
}

.rating-value {
    font-weight: 700;
    color: #ffb300;
}

.rating-count {
    color: #aaaaaa;
}

/* Formato de precios */
.product-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 8px;
}

.store-product-card .current-price {
    color: #ff3b30; /* El color rojo destacado para el precio de oferta */
    font-size: 22px;
    font-weight: 700;
}

.store-product-card .old-price {
    color: #b5b5b5;
    text-decoration: line-through;
    font-size: 13px;
}

/* Espacio inferior para el botón interactivo */
.product-action-slot {
    margin-top: 15px;
    width: 100%;
    height: 44px;
}

.btn-add-cart {
    width: 100%;
    height: 100%;
    background-color: transparent;
    color: transparent; /* Permanece invisible en texto pero mantiene la estructura */
    border: 1px solid #f3f3f3; /* Rectángulo redondeado vacío sutil de la imagen */
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Comportamiento al pasar el cursor y estado seleccionado por defecto */
.store-product-card:hover,
.store-product-card.default-hover {
    border-color: var(--cyan);
    box-shadow: 0 4px 20px rgba(4, 217, 217, 0.05);
}

.store-product-card:hover .btn-add-cart,
.store-product-card.default-hover .btn-add-cart {
    background-color: var(--cyan);
    color: var(--white);
    border-color: var(--cyan);
}

/* Por defecto en escritorio el botón móvil no se muestra */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 992px) {
    .shop-layout {
        flex-direction: column !important;
        padding: 0 10px !important;
        gap: 15px !important;
        margin-top: 10px !important;
    }

    .sidebar-filters {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        padding: 12px !important;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }

    /* Mostrar el botón en móvil */
    .mobile-filter-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background-color: var(--dark-blue, #002057);
        color: #fff;
        border: none;
        padding: 10px 15px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
    }

    /* Ocultar contenido de filtros por defecto en móvil */
    .sidebar-mobile-content {
        display: none;
        margin-top: 15px;
    }

    /* Clase que activa la apertura desde JavaScript */
    .sidebar-filters.mobile-open .sidebar-mobile-content {
        display: block !important;
    }

    .sidebar-filters.mobile-open #filterChevron {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .floating-receptionist {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        bottom: 15px !important;
        right: 15px !important;
        box-shadow: 0 5px 15px rgba(43, 92, 67, 0.3) !important;
    }

    .category-main-title {
        font-size: 1.3rem !important;
        text-align: center;
        margin-bottom: 10px !important;
    }

    /* Forzar estrictamente 2 columnas de productos sin importar reglas heredadas */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .product-card {
        padding: 10px !important;
        border-radius: 8px !important;
        min-height: unset !important;
    }

    .product-img-wrapper {
        height: 110px !important;
        margin-bottom: 8px !important;
    }

    .product-info h4 {
        font-size: 12px !important;
        line-height: 1.25 !important;
        height: 2.5em; /* Limita visualmente el espacio a dos líneas */
        overflow: hidden;
        margin-bottom: 5px !important;
    }

    .product-info .rating {
        font-size: 10px !important;
        margin-bottom: 5px !important;
    }

    .price {
        margin-bottom: 8px !important;
        gap: 4px !important;
    }

    .price .current {
        font-size: 14px !important;
    }

    .price .bs-equiv {
        font-size: 11px !important;
    }

    .add-to-cart-btn {
        padding: 6px !important;
        font-size: 11px !important;
        border-radius: 4px !important;
    }

    /* Pestañas de secciones horizontales */
    .sections-bar {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
    }
}