
.productos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0px;
}


@media (max-width: 768px) {
    .productos-container {
        grid-template-columns: 1fr;
    }
}



.beta-tag {
    background-color: #f0f0f0;
    color: #000000;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid #7cff00;
    background: linear-gradient(135deg, #60e562 0%, #daff00 100%);
    box-shadow: 0 1px 2px rgb(207 177 177 / 5%);
}


.layout {
    margin: 0;
    font-family: sans-serif;
    background-color: #130505;
    height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.boulevar{

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #f0f4f8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    list-style: none;
}


.logo-img {
  height: 3rem; /* ajusta según tu diseño */
  max-width: 100%;
  vertical-align: middle;
}

.logo-link {
  display: inline-block;
}


html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}


.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


main.container.body-content {
    flex: 1;
    padding-top: 0rem;
    /* evita que el contenido quede debajo del header */
}

.main-header {
    background: #ffffff ;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}


.top-bar {
    display: flex;
    justify-content: space-between;
    /* distribuye extremos */
    align-items: center;
    padding: 10px 5px;
    height: 3rem;
}

/* Botón menú a la izquierda */
.menu-toggle {
    font-size: 25px;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
}

.badge-notif {
    position: absolute;
    top: -9px;
    right: 5rem;
    background-color: #d11a1a;
    color: #f5f2f2;
    font-size: 1rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 1px solid #dce3e0;
    min-width: 1rem;
    height: 20px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.menu-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ef4444; /* Rojo alerta */
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none; /* Se controla por JS */
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.menu-toggle {
    position: relative; /* Necesario para posicionar el badge */
}




/* Título centrado */
.site-title {
    margin: 0;
    font-size: 21px;
    text-align: center;
    flex: 1;
    /* ocupa espacio central */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    /* separación entre texto e icono */
    color: white;
    /* color del texto */
    text-decoration: none;
    /* quita el subrayado */
}


/* Login + favoritos a la derecha */
.login-area {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    color: #516784;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.login-block,
.wishlist-block {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#Welcomeuser{
pointer-events: none;
}

.login-block i,
.wishlist-block i {
    margin-right: 6px;
    margin-left: 6px;
    font-size: 1.3rem;
    color: #cda811;
    
}

.login-text,
.wishlist-text {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}


.fa {
    font-size: 1rem;
    color:#22a9a2;
    margin-right: 8px;
}

.pd-badge-wrapper .fa{
    font-size: 1.5rem;
}

.fa-whatsapp, .fa-paper-plane, .fa-phone, .fa-map-marker{

color: #f5f5f5;
    
}



.menu-toggle {
    position: relative;
    background: none;
    border: none;
    color: #000000;
    font-size: 70px;
    cursor: pointer;
}

/* Badge de alerta */
.alert-icon {
    position: absolute;
    top: -8px;
    /* lo coloca arriba */
    right: -8px;
    /* lo coloca a la derecha */
    background-color: #e74c3c;
    /* rojo profesional */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    /* círculo */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s infinite;
}







.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}


.menu-links,
.category-list,
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links li,
.category-list li {
    margin-bottom: 10px;
}

.menu-links a,
.category-list a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 6px 0;
}

.menu-links a:hover,
.category-list a:hover {
    background-color: #444;
}

.has-submenu>.submenu {
    display: none;
    padding-left: 15px;
    font-weight: normal;
}

.has-submenu:hover>.submenu {
    display: block;
}




.menu-toggle {
    font-size: 25px;
        -webkit-tap-highlight-color: transparent;
}





/* Oculto por defecto */
.oculto { display: none; }

/* Pestaña pequeña */
.category-toggle {
    position: relative;
    margin: 0;
    padding: 6px 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
        background: #0b6156;
}

/* Ubicar la pestaña en esquina derecha */
header { position: relative; }
.category-toggle {
    position: absolute;
    right: 10px;   /* esquina derecha */
    top: 100%;     /* justo debajo de la top-bar */
    color: bisque;
}

/* Menú desplegable pequeño */
.category-bar {
    position: absolute;
    right: 10px;   /* alineado con la pestaña */
    top: calc(100% + 28px); /* debajo de la pestaña */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    width: 220px;  /* ancho fijo pequeño */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    
}

.category-bar ul {
    list-style: none;
    margin: 0;
    padding: 8px;
}
.category-bar li {
    margin: 4px 0;
}
.category-bar a {
    display: block;
    padding: 7px 9px;
    font-size: 18px;
    color: #0c0c0c;
    text-decoration: none;
    border-radius: 4px;
            border-bottom: 1px solid #eee;
}
.category-bar a:hover {
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .category-bar ul {
        grid-template-columns: repeat(2, 1fr);
    }
}




.hidden{

        display:none !important;

}

.encp {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: aquamarine;
    /*background: linear-gradient(179deg, #0a0e12, #437c8d);*/
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.life-icon {
    position: relative;
    transform: translateY(-20%);
    color: #ffc107;
    font-size: smaller;
    /* Amarillo vibrante */
    pointer-events: painted;
}


/*  ******************     FUTER   ******************/
footer {
    background-color: #1f2a38;
    color: #ffffff;
    padding: 20px 20px;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    align-items: baseline;
}


/* 🧱 Sección principal en grid responsivo */
footer .footer-section {
    display: grid;
}

footer .footer-section h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

footer .footer-section ul li {
    margin-bottom: 8px;
}

footer .footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
}

footer .footer-section ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 🌐 Parte inferior */
footer .footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer .language-selector select {
    background-color: #2e3b4e;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
}

footer .footer-bottom p {
    font-size: 13px;
    margin: 0;
}

footer .legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

footer .legal-links li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 12px;
}

footer .legal-links li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.name-title {
    color: white;
    text-decoration: none;
}

.name-title-life {
    text-decoration: none;
}


.badge {
    display: inline-block;
    min-width: 18px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    margin-left: 5px;
}

.badge-mensaje {
    background-color: #3498db;
    /* azul para mensajes */
}

.badge-notificacion {
    background-color: #e74c3c;
    /* rojo para notificaciones */
}


/* Aplica a todas las categorías con submenú */
.has-submenu > a {
  display: flex;              /* permite alinear texto + flecha */
  align-items: center;        /* centra verticalmente */
  justify-content: space-between; /* empuja la flecha a la derecha */
  text-decoration: none;
  color: #333;
  font-size: 16px;            /* tamaño del texto */
  padding: 10px 15px;
}


.has-submenu > a::after {
  content: "›";               /* símbolo de flecha */
  font-size: 20px;            /* tamaño de la flecha */
  font-weight: bold;
  color:#dde7e6;                /* color de la flecha */
  margin-left: 10px;          /* espacio entre texto y flecha */
  display: inline-block;
  line-height: 1;             /* evita que se desplace */
}










.quick-tags li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.quick-tags li a:hover {
  background: #f5f5f5;
}

.quick-tags li a.active {
  font-weight: 600;
  color: #000;
  background: #e0e0e0;
}



.hidden { display: none; }
.shared-product-card { border:1px solid #ccc; padding:1rem; margin-bottom:1rem; background:#fff; }


/* Contenedor del riel */
.category-track {
    display: flex;
    width: 200%; /* Dos columnas = 200% de ancho */
    transition: transform 0.3s ease-in-out;
}

/* Estilo para cada columna */
.column {
    width: 50%; /* Cada columna es el 50% del track (o sea, 100% del menú) */
    flex-shrink: 0;
}

/* Clase para mover el riel a la segunda columna */
.track-step-2 {
    transform: translateX(-50%);
}

/* Estilo para los ejemplos de subcategorías /
.sub-example {
    display: block;
    font-size: 12px;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
    font-style: italic;
}

*/

/* Ajuste para el contenedor dinámico de subcategorías */
#subContainer li a {
    display: flex;
    flex-direction: column; /* Alineación vertical */
    align-items: flex-start;
    padding: 12px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

#subContainer li a:hover {
    background-color: #f9f9f9;
}

/* Estilo para el nombre (ahora en un span) */
.cat-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #white;
}

/* Estilo para los ejemplos (el elemento small) */
.sub-example {
    display: block;
    font-size: 13px;
    color: #afb3af;
    font-weight: normal;
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
}



/* =========================================
   SIDE MENU - ESTILO PREMIUM
   ========================================= */

/* 1. Contenedor Principal */
.side-menu {
    position: fixed;
    top: 3.5rem; /* Ajustado al header */
    left: -330px; /* Un poco más ancho para mejor lectura */
    width: 300px;
    height: calc(100% - 3.5rem);
    
    /* Fondo moderno con ligero efecto cristal */
    background: linear-gradient(160deg, #102a33 0%, #050709 100%);
    box-shadow: 1px 0 1px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s ease;
    z-index: 1000;
    padding: 20px 15px;
    
    /* Tipografía */
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #e0e6ed;
}

.side-menu.show {
    left: 0;
}

/* 2. Scrollbar Personalizado (Elegante y discreto) */
.side-menu::-webkit-scrollbar,
.side-submenu::-webkit-scrollbar {
    width: 6px;
}
.side-menu::-webkit-scrollbar-track,
.side-submenu::-webkit-scrollbar-track {
    background: transparent;
}
.side-menu::-webkit-scrollbar-thumb,
.side-submenu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* 3. Encabezado del Menú (Perfil / Info) */
.side-menu .menu-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-info {
    font-size: 0.95rem;
    color: #ffcc00; /* Acento dorado */
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 4. Secciones y Títulos */
.menu-section {
    margin-bottom: 30px;
    list-style: none;
}

/* 5. Enlaces y Elementos de Lista */
.menu-links, .menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links li, .menu-section ul li {
    margin-bottom: 4px;
}

.menu-links a, 
.menu-section ul li a,
.has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Para flechas a la derecha */
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto Hover Premium */
.menu-links a:hover, 
.menu-section ul li a:hover,
.has-submenu > a:hover {
    background-color: rgba(255, 204, 0, 0.15); /* Fondo dorado muy sutil */
    color: #ffcc00;
    transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Flecha de submenú mejorada */
.has-submenu > a::after {
    content: "›";
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    line-height: 0;
    margin-top: -4px;
}

.has-submenu > a:hover::after {
    color: #ffcc00;
}

/* 6. Elementos Bloqueados (Locked) */
.menu-links a.locked {
    pointer-events: none;
    opacity: 0.5;
    background: transparent !important;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.menu-links a.locked::after {
    content: "🔒";
    font-size: 0.8em;
    opacity: 0.7;
}

/* =========================================
   SUBMENU DESLIZANTE (PANEL SECUNDARIO)
   ========================================= */

.side-submenu {
    position: fixed;
    top: 0;
    left: -320px; /* Mismo ancho que el padre */
    width: 320px;
    height: 100%;
    
    background: #ffffff; /* Fondo claro para contraste con el menú oscuro */
    color: #333;
    
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002; /* Encima del menú principal */
}

.side-submenu.show {
    left: 0;
}

/* Header del Submenú */
.side-submenu .menu-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Botón Volver */
.side-submenu .menu-header button {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.side-submenu .menu-header button::before {
    content: "←";
    font-size: 1.1em;
}

.side-submenu .menu-header button:hover {
    background: #f7f7f7;
    border-color: #bbb;
    transform: translateX(-3px);
}

/* Lista del Submenú */
.side-submenu .submenu-list {
    padding: 10px 0;
}

.side-submenu .submenu-list li {
    border-bottom: 1px solid #f5f5f5;
}

.side-submenu .submenu-list li a {
    display: block;
    padding: 14px 24px;
    color: #444;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.side-submenu .submenu-list li a:hover {
    background: #fef9e6; /* Dorado muy pálido */
    color: #b38f00;
    padding-left: 28px; /* Animación de slide */
}

/* Descripción pequeña en submenús */
.side-submenu .submenu-list li small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}



/* Ajuste para que coincida con .product-result-card */
.skeleton-card {
    display: flex;
    padding: 15px;
    gap: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    align-items: flex-start;
}

.sk-left {
    width: 120px; /* Tamaño similar a tu miniatura en la imagen */
    height: 120px;
    flex-shrink: 0;
}

.sk-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Elementos de pulso */
.sk-placeholder {
    background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 50%, #f2f2f2 75%);
    background-size: 200% 100%;
    animation: sk-pulse 1.5s infinite;
    border-radius: 4px;
}

@keyframes sk-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tamaños específicos de los elementos */
.sk-title { width: 90%; height: 16px; }
.sk-stars { width: 60px; height: 12px; }
.sk-price { width: 80px; height: 20px; margin-top: 5px; }
.sk-button { width: 100px; height: 32px; border-radius: 15px; margin-top: 5px; }
.sk-info  { width: 70%; height: 12px; }




/* Contenedor relativo para posicionamiento */
.notification-container {
    position: relative;
    display: inline-block;
}

/* Badge de notificaciones moderno */
.badge-notif {
    position: absolute;
    top: -8px;
    right: -8px;
    
    /* Colores con gradiente */
    background: linear-gradient(135deg, #ff4d4d, #d11a1a);
    color: white;
    
    /* Tamaño y forma */
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    
    /* Centrado perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Bordes y sombras */
    border-radius: 20px;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(209, 26, 26, 0.3);
    
    /* Animación y efectos */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    
    /* Tipografía */
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Efecto hover */
.badge-notif:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff3333, #b30000);
    box-shadow: 0 6px 12px rgba(209, 26, 26, 0.4);
}

/* Badge pequeño (1 dígito) */
.badge-notif.small {
    width: 20px;
    padding: 0;
}

/* Badge grande (2+ dígitos) */
.badge-notif.large {
    min-width: 24px;
    height: 24px;
    font-size: 0.8rem;
    padding: 0 8px;
}

/* Variante de color (nuevas notificaciones) */
.badge-notif.new {
    background: linear-gradient(135deg, #ff6b6b, #ff3333);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Variante de color (notificaciones leídas) */
.badge-notif.read {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: 0 4px 8px rgba(100, 116, 139, 0.3);
}

/* Variante de color (urgente) */
.badge-notif.urgent {
    background: linear-gradient(135deg, #ffb347, #ff8c00);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

/* Animación de pulso para notificaciones no leídas */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(209, 26, 26, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(209, 26, 26, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(209, 26, 26, 0.3);
    }
}

/* Para múltiples notificaciones (ej: carrito + mensajes) */
.badge-notif.secondary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Posición en el icono */
.icon-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ejemplo de uso en header */
.header-icon {
    position: relative;
    font-size: 1.5rem;
    color: #4a5568;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.header-icon:hover {
    color: #2563eb;
}

.header-icon:hover .badge-notif {
    transform: scale(1.1);
}







/* Banner de detección de provincia */
.provincia-banner-detecting,
.provincia-banner-success,
.provincia-banner-error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 12px 20px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.provincia-banner-detecting {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.provincia-banner-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.provincia-banner-error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.provincia-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.provincia-banner-content button {
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Indicador de provincia en el menú */
.provincia-indicator {
    margin-top: 10px;
}

.provincia-indicator button:hover {
    background: rgba(255,255,255,0.3) !important;
}

/* Modal de selección de provincia */
.provincia-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.provincia-modal {
    background: white;
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.provincia-modal h3 {
    margin-bottom: 10px;
    color: #333;
}

.provincia-modal p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.provincia-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.provincia-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-confirmar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cancelar {
    background: #ccc;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.provincia-banner-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 12px 20px;
    text-align: center;
}





/* En tu archivo CSS */
#subContainer {
    min-height: auto;
    height: auto;
}

#subContainer li:last-child a {
    border-bottom: none;
}

/* Asegurar que el track no tenga altura extra */
.category-track {
    display: flex;
    width: 200%;
    transition: transform 0.3s ease-in-out;
    min-height: auto;
}

.column {
    width: 50%;
    flex-shrink: 0;
    min-height: auto;
}




#backStep {
    display: none;
}

/* Mostrar el botón volver solo cuando el track está en la segunda columna */
.category-track.track-step-2 #backStep {
    display: block;
}



/* La segunda columna debe estar oculta visualmente por defecto */
#col-subcategories {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Cuando el track está en step-2, mostrar la segunda columna */
.category-track.track-step-2 #col-subcategories {
    opacity: 1;
    pointer-events: auto;
}

/* La primera columna se desvanece ligeramente cuando está en step-2 */
.category-track.track-step-2 #col-categories {
    opacity: 0.5;
    pointer-events: none;
}



/* El contenedor del track debe ocultar el desbordamiento */
.menu-section:has(.category-track) {
    overflow: hidden;
    position: relative;
}

.category-track {
    display: flex;
    width: 200%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: auto;
    /* Asegurar que no hay desbordamiento visible */
    overflow: visible;
}
