    /* PALETA DE COLORES E IDENTIDAD DE MARCA (ESTILO luraf RETAIL) */
        /* ==========================================
    1. VARIABLES GLOBALES UNIFICADAS (:root)
    ========================================== */
    :root {
        /* Paleta luraf Navigation & Layout */
        --lurf-nav-dark: #11100f;
        --lurf-nav-sub: hsl(207, 87%, 50%);
        --lurf-orange: #ee800b;
        --lurf-orange-hover: #f3a847;
        --lurf-btn-yellow: #ffd814;
        --lurf-btn-yellow-hover: #f7ca00;
        --lurf-btn-orange: #ee800b;
        --lurf-btn-orange-hover: #e59316;
        --bg-luraf: #eaeded;
        
        /* Tipografía y Bordes luraf */
        --text-luraf-black: #11100f;
        --text-luraf-gray: #565959;
        --text-luraf-link: #df6118;
        --text-luraf-link-hover: #c45500;
        --price-red: #b12704;
        --border-luraf: #d5d9d9;
        --radius-luraf: 8px;
        --radius-btn: 20px;
        

        /* Equivalencias para Panel de Clientes (Unificadas) */
        --text-black: #212b2b;
        --text-gray: #565959;
        --text-link: #007185;
        --border-color: #d5d9d9;
        --bg-light: #f0f2f2;
        
        /* Paleta WhatsApp Moderno */
        --wa-bg: #efeae2;
        --wa-in: #ffffff;
        --wa-text: #f56104;
        --wa-header: #f0f2f3;
    }

    /* ==========================================
    2. REGLAS BASE Y RESET
    ========================================== */
    * { 
        box-sizing: border-box; 
        margin: 0; 
        padding: 0; 
    }


    body { 
        background-color: var(--bg-luraf); 
        color: var(--text-luraf-black); 
        font-size: 13px; 
        line-height: 1.4; 
        font-family: "luraf Ember", Arial, sans-serif;
    }

    /* ==========================================
    3. LAYOUT SUPERIOR (HEADER & NAVBAR)
    ========================================== */
    header { 
        width: 100%; 
        position: sticky; 
        top: 0; 
        z-index: 100; 
    }

    .navbar-main { 
        background-color: var(--lurf-nav-dark); 
        height: 60px; 
        display: flex; 
        align-items: center; 
        padding: 0 1rem; 
        gap: 1rem; 
    }

    .navbar-main .logo-container { 
        display: flex; 
        align-items: center; 
        text-decoration: none; 
        padding: 4px 8px; 
        border: 1px solid transparent; 
        border-radius: 2px; 
    }

    .navbar-main .logo-container:hover { 
        border-color: white; 
    }

    .navbar-main .logo-text { 
        color: white; 
        font-size: 1.25rem; 
        font-weight: 700; 
        letter-spacing: -0.03em; 
    }

    .navbar-main .logo-text span { 
        color: var(--lurf-orange); 
    }

    /* COMPONENTE CENTRAL: BUSCADOR */
    .search-bar-wrapper {
        flex: 1; 
        display: flex; 
        max-width: 800px; 
        height: 40px; 
        background: white; 
        border-radius: 4px; 
        overflow: hidden; 
        border: 2px solid transparent;
        margin: 0 auto;
        gap: 0 !important; 
        justify-content: flex-start !important;
    }
    /* Contenedor del selector (Ahora fluye a la derecha del buscador) */
    .select-container {
        display: flex !important;
        align-items: center !important;
        order: 3 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        
        /* Agrega estas líneas */
        gap: 0 !important; 
        justify-content: flex-start !important;        /* Evita que se encoja si la pantalla es pequeña */
    }

    /* Estilos de la Etiqueta (Label) */
    .select-container label {
        font-size: 14px;
        font-weight: 600;
        color: #4a5568;         /* Gris oscuro elegante */
        letter-spacing: 0.5px;
        white-space: nowrap;    /* Evita que el texto de la etiqueta se rompa en dos líneas */
    }

    /* Estilos del Selector (Select) */
    .select-container select {
        height: 40px;           /* Ajustado a 40px para que coincida exactamente con la altura de tu buscador */
        padding: 0 35px 0 12px; /* Espacio interno cómodo */
        font-size: 14px;
        color: #2d3748;
        background-color: #ffffff;
        border: 2px solid #e2e8f0;
        border-radius: 4px;     /* Redondeado de 4px para que haga juego con el buscador */
        cursor: pointer;
        outline: none;
        transition: all 0.2s ease-in-out;
        
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
    }

    /* Efectos de interactividad */
    .select-container select:hover {
        border-color: #cbd5e0;
    }

    .select-container select:focus {
        border-color: #3182ce;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    }

    .search-bar-wrapper:focus-within { 
        border-color: var(--lurf-btn-orange); 
        box-shadow: 0 0 0 3px rgba(255, 164, 28, 0.25);
        
    }

    .search-select { 
        background-color: #f3f3f3; 
        border: none; 
        border-right: 1px solid var(--border-luraf); 
        padding: 0 0.75rem; 
        font-size: 0.75rem; 
        color: var(--text-luraf-gray); 
        outline: none; 
        cursor: pointer; 
        max-width: 130px; 
    }

    .search-select:hover { 
        background-color: #dadada; 
        color: var(--text-luraf-black); 
    }

    .search-input { 
        flex: 1; 
        border: none; 
        padding: 0 0.75rem; 
        font-size: 0.95rem; 
        outline: none; 
        color: var(--text-luraf-black); 
    }

    .search-btn { 
        background-color: var(--lurf-orange); 
        border: none; 
        width: 45px; 
        height: 100%; 
        cursor: pointer; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 1.1rem; 
        font-weight: bold; 
        transition: background 0.1s; 
    }

    .search-btn:hover { 
        background-color: var(--lurf-orange-hover); 
    }

    /* ENLACES E ICONOS DERECHA */
    .nav-right-menu { 
        display: flex; 
        align-items: center; 
        gap: 0.25rem; 
    }

    .nav-box { 
        color: white; 
        text-decoration: none; 
        padding: 6px 9px; 
        border: 1px solid transparent; 
        border-radius: 2px; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
    }

    .nav-box:hover { 
        border-color: white; 
    }

    .nav-line-1 { 
        font-size: 11px; 
        color: #cccccc; 
        font-weight: 400; 
    }

    .nav-line-2 { 
        font-size: 13px; 
        font-weight: 700; 
        color: white; 
        display: flex; 
        align-items: center; 
        gap: 4px; 
    }

    .nav-cart-count { 
        color: var(--lurf-btn-orange); 
        font-family: monospace; 
        font-size: 15px; 
        font-weight: 800; 
    }

    .nav-cart-total { 
        font-size: 12px; 
        color: var(--lurf-orange); 
        font-weight: 700; 
        margin-top: 1px; 
    }

    /* SUB-BARRA DE NAVEGACIÓN */
    .navbar-sub { 
        background-color: var(--lurf-nav-sub); 
        height: 39px; 
        display: flex; 
        align-items: center; 
        padding: 0 1rem; 
    }

    .navbar-sub ul { 
        list-style: none; 
        display: flex; 
        gap: 0.25rem; 
    }

    .navbar-sub ul li a { 
        color: white; 
        text-decoration: none; 
        font-size: 13px; 
        font-weight: 500; 
        padding: 5px 8px; 
        border: 1px solid transparent; 
        border-radius: 2px; 
    }

    .navbar-sub ul li a:hover { 
        border-color: white; 
    }

    .navbar-sub ul li a.active-sub { 
        border-color: var(--lurf-orange); 
        font-weight: 700; 
    }

    /* ==========================================
    4. ESTRUCTURA CENTRAL DE LA TIENDA
    ========================================== */
    .container { 
        max-width: 1500px; 
        margin: 0 auto; 
        padding: 1.5rem; 
    }

    /* Alertas */
    .alert { 
        padding: 0.75rem 1.25rem; 
        border-radius: 4px; 
        margin-bottom: 1.25rem; 
        font-weight: 600; 
        font-size: 0.85rem; 
        box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    }

    .alert-success { 
        background: #f4fdf8; 
        color: #007600; 
        border: 1px solid #b2d8b2; 
        border-left: 4px solid #007600; 
    }

    .alert-error { 
        background: #fff6f6; 
        color: var(--price-red); 
        border: 1px solid #f5c4c4; 
        border-left: 4px solid var(--price-red); 
    }

    /* Grid de la Tienda */
    .tienda-layout { 
        display: grid; 
        grid-template-columns: 210px 1fr; /* Reducimos el lateral para que el '1fr' de los productos sea más ancho */
        gap: 1.5rem; 
        align-items: start; 
    }

    /* Barra lateral fija */
    .sidebar-catalogos { 
        background: white; 
        padding: 1.25rem; 
        border-radius: 4px; 
        border: 1px solid var(--border-luraf); 
        position: sticky;
        top: 115px; 
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .sidebar-catalogos h3 { 
        font-size: 14px; 
        font-weight: 700; 
        color: var(--text-luraf-black); 
        margin-bottom: 0.75rem; 
    }

    .lista-catalogos { 
        list-style: none; 
        display: flex; 
        flex-direction: column; 
        gap: 0.25rem; 
    }

    .item-catalogo a { 
        font-size: 13px; 
        color: var(--text-luraf-black); 
        text-decoration: none; 
        display: flex; 
        align-items: center; 
        padding: 6px 8px; 
        border-radius: 3px; 
        gap: 10px; 
    }

    .item-catalogo a i { 
        width: 16px; 
        text-align: center; 
        color: var(--text-luraf-gray); 
        font-size: 14px; 
    }

    .item-catalogo a:hover { 
        color: var(--text-luraf-link-hover); 
        text-decoration: none; 
        background: #f7f7f7; 
    }

    .item-catalogo a:hover i { 
        color: var(--text-luraf-link-hover); 
    }

    .item-catalogo a.active-cat { 
        font-weight: 700; 
        color: var(--text-luraf-link-hover); 
        background-color: #f0fafd; 
    }

    .item-catalogo a.active-cat i { 
        color: var(--text-luraf-link-hover); 
    }

    /* Feed de Artículos */
    /* =========================================================================
    COMPORTAMIENTO DEL FEED DE PRODUCTOS (RESPONSIVE)
    ========================================================================= */

    /* 1. Por defecto (Móviles y Tablets): Estrictamente 2 columnas */
    .feed-productos { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.25rem; 
    }
    /* Centrado responsive para mensaje de estado vacío */
.feed-productos .mensaje-vacio {
    /* Ocupa todas las columnas si .feed-productos usa CSS Grid */
    grid-column: 1 / -1;           
    
    /* Centrado absoluto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    width: 100%;
    min-height: 250px; /* Altura ideal en PC */
    padding: 2rem 1.5rem;
    margin: 1.5rem auto;
    
    background-color: #f8f9fa;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Ajuste específico para Celulares */
@media (max-width: 600px) {
    .feed-productos .mensaje-vacio {
        min-height: 180px; /* Reduce altura en móviles */
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Ajuste para Tabletas */
@media (min-width: 601px) and (max-width: 1024px) {
    .feed-productos .mensaje-vacio {
        min-height: 220px;
        padding: 1.8rem;
    }
}
    /* 2. Para PC (Pantallas de ordenador a partir de 1024px de ancho): Estrictamente 3 columnas */
    @media (min-width: 1024px) {
        .feed-productos { 
            grid-template-columns: repeat(3, 1fr); 
            gap: 1.25rem; 
        }
    }

    .producto-card { 
        background: white; 
        border: 1px solid var(--border-luraf); 
        padding: 1rem; 
        border-radius: 4px; 
        display: flex; 
        flex-direction: column; 
        position: relative; 
        transition: box-shadow 0.2s; 
    }

    .producto-card:hover { 
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    }

    .badge-estado { 
        font-size: 11px; 
        background-color: #fa7014; 
        color: white; 
        padding: 2px 6px; 
        border-radius: 2px; 
        position: absolute; 
        top: 10px; 
        left: 10px; 
        z-index: 10; 
        font-weight: 600; 
    }

    .producto-imagen-wrapper { 
        width: 100%; 
        height: 100%; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        margin-bottom: 1rem; 
        overflow: hidden; 
        background: #fafafa; 
    }

    .producto-imagen { 
        max-width: 100%; 
        max-height: 100%; 
        object-fit: contain; 
    }

    .producto-detalles { 
        display: flex; 
        flex-direction: column; 
        flex-grow: 1; 
    }

    .producto-detalles h3 { 
        font-size: 15px; 
        font-weight: 500; 
        color: var(--text-luraf-black); 
        margin-bottom: 0.25rem; 
        line-height: 1.3; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        display: -webkit-box; 
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical; 
    }

    .producto-detalles h3:hover { 
        color: var(--text-luraf-link-hover); 
        cursor: pointer; 
    }

    .vendedor-tag { 
        font-size: 12px; 
        color: var(--text-luraf-gray); 
        margin-bottom: 0.5rem; 
    }

    /* Precios luraf */
    .producto-precio { 
        color: var(--text-luraf-black); 
        font-size: 21px; 
        font-weight: 500; 
        margin-top: auto; 
        margin-bottom: 0.75rem; 
        display: flex; 
        align-items: flex-start; 
    }

    .producto-precio span { 
        font-size: 12px; 
        margin-left: 3px; 
        font-weight: bold; 
        color: var(--price-red); 
    }

    /* Botones de Acción */
    .btn-luraf-action { 
        display: block; 
        width: 100%; 
        text-align: center; 
        background-color: var(--lurf-btn-yellow); 
        border: 1px solid #a88734; 
        padding: 0.5rem; 
        border-radius: var(--radius-btn); 
        color: #111; 
        font-size: 12px; 
        font-weight: 500; 
        text-decoration: none; 
        cursor: pointer; 
        outline: none; 
        transition: background 0.1s; 
        box-shadow: 0 2px 5px 0 rgba(213,217,217,.5); 
    }

    .btn-luraf-action:hover { 
        background-color: var(--lurf-btn-yellow-hover); 
        border-color: #846a29; 
    }

    .btn-luraf-orange { 
        background-color: var(--lurf-btn-orange); 
        border-color: #846a29; 
    }

    .btn-luraf-orange:hover { 
        background-color: var(--lurf-btn-orange-hover); 
    }

    /* Footer de la App */
    .market-footer { 
        margin-top: 3rem; 
        background-color: #fff; 
        border: 1px solid var(--border-luraf); 
        border-radius: 4px; 
        padding: 1.5rem; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        flex-wrap: wrap; 
        gap: 1rem; 
    }

    .market-footer-info { 
        font-size: 12px; 
        color: var(--text-luraf-gray); 
    }

    .market-footer-brand { 
        font-weight: 700; 
        color: var(--lurf-nav-dark); 
        font-size: 14px; 
    }

    .market-footer-brand span { 
        color: var(--lurf-btn-orange); 
    }

    .form-group { 
        margin-bottom: 0.75rem; 
    }

    .form-group label { 
        display: block; 
        margin-bottom: 2px; 
        font-weight: 700; 
        font-size: 13px; 
        color: var(--text-luraf-black); 
    }

    .form-control { 
        width: 100%; 
        padding: 0.4rem 0.5rem; 
        border: 1px solid #a6a9a9; 
        border-radius: 3px; 
        font-size: 13px; 
        outline: none; 
        background: #fff; 
        box-shadow: 0 1px 2px rgba(0,0,0,0.05) inset; 
    }

    .form-control:focus { 
        border-color: #e77600; 
        box-shadow: 0 0 3px 2px rgba(228,121,17,.5); 
    }

    /* ==========================================
    5. LAYOUT PANEL DE SOUCIONES / CUENTA VENDEDOR
    ========================================== */
    .layout-cuenta-vendedor {
        display: flex;
        flex-direction: column;
        gap: 1.5rem; 
        width: 100%;
        margin-top: 1.5rem;
        /* Corrección: Tipografía heredada de forma más limpia sin romper la consistencia */
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        box-sizing: border-box;
    }

    .linea-paneles {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem; 
        box-sizing: border-box;
    }

            /* CONFIGURACIÓN DE LOS DIVS PARA QUE ENTREN EXACTAMENTE DOS POR LÍNEA */
            /* ==========================================
    PANELES Y CONTENEDORES PRINCIPALES
    ========================================== */
    .panel-blanco {
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1.25rem;
        
        /* Cálculo matemático: 50% del espacio menos la mitad de la separación (gap) */
        flex: 0 0 calc(50% - 0.75rem); 
        max-width: calc(50% - 0.75rem);
        height: 420px; /* Altura unificada fija para control técnico */
        box-sizing: border-box;
        
        /* CORRECCIÓN: Se cambia a hidden para evitar el doble scroll junto con .contenido-scroll-interno */
        overflow: hidden; 
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
    }

    /* Custom scrolls para los paneles */
    .panel-blanco::-webkit-scrollbar,
    .contenido-scroll-interno::-webkit-scrollbar {
        width: 6px;
    }
    .panel-blanco::-webkit-scrollbar-track,
    .contenido-scroll-interno::-webkit-scrollbar-track {
        background: transparent;
    }
    .panel-blanco::-webkit-scrollbar-thumb,
    .contenido-scroll-interno::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 10px;
    }

    /* Títulos fijos arriba mientras se baja el scroll interno */
    .panel-blanco h3 {
        font-size: 15px;
        font-weight: 700;
        color: var(--text-black);
        margin-top: 0;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5rem;
        position: sticky;      
        top: 0;
        background: #ffffff;
        z-index: 10;
        flex-shrink: 0;
    }

    /* Envoltorio para scroll de datos */
    .contenido-scroll-interno {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
    }

    /* ==========================================
    INPUTS Y SELECTS FORMULARIOS
    ========================================== */
    .form-group {
        margin-bottom: 0.85rem;
    }

    .form-group label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-black);
        margin-bottom: 4px;
    }

    .form-control {
        width: 100%;
        padding: 0.5rem 0.6rem;
        font-size: 13px;
        border: 1px solid #a6a9a9;
        border-radius: 4px;
        outline: none;
        background-color: #fff;
        color: var(--text-black);
        box-sizing: border-box;
    }

    .form-control:focus {
        border-color: #007185;
        box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.15);
    }

    .form-control:disabled {
        background-color: #f7f7f7;
        color: #777;
        border-color: #ddd;
        cursor: not-allowed;
    }

    /* BOTONES DE ENVIAR */
    .btn-luraf-action {
        display: inline-block;
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        border-radius: 6px;
        border: 1px solid;
        cursor: pointer;
        box-sizing: border-box;
    }

    .btn-luraf-orange {
        background: var(--lurf-orange);
        border-color: #ff9900;
        color: var(--text-black);
    }

    .btn-luraf-orange:hover:not(:disabled) {
        background: var(--lurf-orange-hover);
    }

    /* ==========================================
    TABLAS DE DATOS LIMPIAS (Estilo luraf unificado)
    ========================================== */
    .tabla-general { 
        width: 100%; 
        border-collapse: collapse; 
        font-size: 13px; 
        text-align: left; 
    }
    .tabla-general th { 
        background: #f0f2f2; 
        font-weight: 700; 
        color: var(--text-black); 
        padding: 0.5rem 0.75rem; 
        border: 1px solid var(--border-color); 
        position: sticky;       
        top: 0;
        z-index: 9;
    }
    .tabla-general td { 
        padding: 0.75rem; 
        border: 1px solid var(--border-color); 
        vertical-align: middle; 
        color: var(--text-black); 
    }
    .tabla-general tr:hover td { 
        background-color: #f7f7f7; 
    }

    .badge { 
        padding: 2px 6px; 
        border-radius: 3px; 
        font-size: 11px; 
        font-weight: 700; 
        display: inline-block; 
        border: 1px solid transparent; 
    }

    .mini-galeria { 
        display: flex; 
        gap: 4px; 
        flex-wrap: wrap; 
        margin-top: 4px; 
    }
    .mini-foto { 
        width: 35px; 
        height: 35px; 
        object-fit: cover; 
        border-radius: 3px; 
        border: 1px solid var(--border-color); 
        background: #fafafa; 
    }

    /* ==========================================
    ESTILO INTERFAZ DE CHAT / WHATSAPP HÍBRIDO
    ========================================== */
    .panel-blanco:has(.badge-pedido, .badge-soporte) {
        background-color: var(--wa-bg) !important;
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) h3 {
        background: var(--wa-header);
        margin: -1.25rem -1.25rem 0.75rem -1.25rem;
        padding: 0.75rem 1.25rem;
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid var(--border-color);
    }

    /* Forzado de tabla nativa a diseño conversacional flexible */
    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general,
    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general thead {
        display: none;
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general tr {
        display: flex;
        flex-direction: column;
        border: none !important;
        background: transparent !important;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general td {
        display: block;
        padding: 0;
        border: none !important;
        background: transparent !important;
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general td:nth-child(1) {
        margin-bottom: -2px;
        z-index: 2;
        padding-left: 8px;
    }

    .badge-pedido, .badge-soporte,
    .panel-blanco:has(.badge-pedido, .badge-soporte) .badge,
    .panel-blanco:has(.badge-pedido, .badge-soporte) [style*="background"] {
        font-size: 10px !important;
        font-weight: bold;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        color: #ffffff !important;
        display: inline-block;
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) tr td:nth-child(1) span {
        background-color: #00a884 !important; 
    }
    .panel-blanco:has(.badge-pedido, .badge-soporte) tr:has([style*="background:#565959"]) td:nth-child(1) span {
        background-color: #53bdeb !important; 
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general td:nth-child(2) {
        background-color: var(--wa-in) !important;
        color: var(--wa-text) !important;
        padding: 10px 12px !important;
        border-radius: 0px 8px 8px 8px !important;
        max-width: 90%;
        align-self: flex-start;
        box-shadow: 0 1px 1.5px rgba(0,0,0,0.12);
        font-size: 13px !important;
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) .tabla-general td:nth-child(3) {
        background-color: rgba(255, 255, 255, 0.6) !important;
        border-radius: 6px !important;
        padding: 4px !important;
        margin-top: 4px;
        display: inline-block;
        max-width: fit-content;
        align-self: flex-start;
        box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    }

    .panel-blanco:has(.badge-pedido, .badge-soporte) td:nth-child(3) a {
        color: var(--text-link);
        text-decoration: none;
        font-weight: 700;
    }

    /* ==========================================
    ESTILOS COMPONENTES CHAT NATIVO (.panel-chat-wa)
    ========================================== */
    .panel-chat-wa {
        background-color: var(--wa-bg) !important;
    }

    .panel-chat-wa h3 {
        background: var(--wa-header);
        margin: -1.25rem -1.25rem 0.75rem -1.25rem;
        padding: 0.75rem 1.25rem;
        border-radius: 8px 8px 0 0;
        border-bottom: 1px solid var(--border-color);
    }

    .chat-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    .globo-mensaje {
        max-width: 85%;
        padding: 8px 12px;
        border-radius: 8px;
        box-shadow: 0 1px 1.5px rgba(0,0,0,0.15);
        font-size: 13px;
        line-height: 1.4;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .msg-cliente {
        align-self: flex-start;
        background-color: #ffffff !important;
        color: #111b21 !important;
        border-top-left-radius: 0px;
    }

    .msg-admin {
        align-self: flex-end;
        background-color: #d9fdd3 !important; 
        color: #111b21 !important;
        border-top-right-radius: 0px; 
        box-shadow: 0 1px 1.5px rgba(0,128,0,0.1);
    }

    .badge-chat {
        font-size: 10px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 4px;
        color: #ffffff;
        width: fit-content;
        margin-bottom: 4px;
    }

    .badge-msg-cliente { background-color: #53bdeb; }
    .badge-msg-admin { background-color: #00a884; }

    .adjunto-chat {
        margin-top: 6px;
        background-color: rgba(0, 0, 0, 0.04);
        padding: 6px;
        border-radius: 6px;
        font-size: 11px;
    }

    /* ==========================================
    RESPONSIVIDAD MEDIA QUERIES (Unificadas)
    ========================================== */
    @media (max-width: 992px) {
        .linea-paneles {
            flex-direction: column;
            gap: 1.5rem;
        }
        .panel-blanco {
            flex: 0 0 100%;
            max-width: 100%;
            height: auto;
            max-height: 450px;
        }
    }

    @media (max-width: 900px) {
        header { height: auto; }
        .navbar-main { flex-direction: column; height: auto; padding: 0.75rem 1rem; gap: 0.75rem; align-items: stretch; }
        .search-bar-wrapper { max-width: 100%; width: 100%; }
        .nav-right-menu { justify-content: space-between; }
        .tienda-layout { grid-template-columns: 1fr; gap: 1rem; }
        .sidebar-catalogos { position: relative; top: 0; max-height: none; }
    }
            /* Layout General del Fondo del Modal */
    .modal-layout {
        display: none; /* Se mantiene oculto por defecto */
        position: fixed;
        z-index: 25000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.55);
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(2px);
    }

    /* CORRECCIÓN INTERACTIVA: Cuando añadas la clase 'active' con JS, se mostrará como Flexbox centrado */
    .modal-layout.active {
        display: flex !important;
    }

    .modal-contenido {
        background-color: #fff;
        width: 92%;
        max-width: 950px;
        max-height: 85vh;
        border-radius: 8px;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
        position: relative;
        overflow-y: auto;
        padding: 2rem;
    }

    .modal-cerrar {
        position: absolute;
        right: 1.2rem;
        top: 0.8rem;
        font-size: 2rem;
        font-weight: bold;
        color: #aaa;
        cursor: pointer;
        transition: color 0.2s;
        z-index: 10;
    }
    .modal-cerrar:hover { color: #111; }

    .modal-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 2rem;
    }

    /* Lienzo e Imagen del Producto */
    .modal-col-izq { display: flex; flex-direction: column; align-items: center; }

    .luraf-zoom-container {
        width: 100%;
        height: 380px;
        background: #fff;
        border: 1px solid #e7e7e7;
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: zoom-in;
    }
    .luraf-zoom-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.1s ease-out;
        pointer-events: none;
    }
    .txt-ayuda-zoom { font-size: 0.8rem; color: #565959; margin-top: 0.6rem; text-align: center; }

    /* Tipografía de Características */
    .luraf-title { font-size: 1.4rem; font-weight: 500; line-height: 1.3; color: #0F1111; margin-bottom: 0.4rem; }
    .luraf-meta-row { font-size: 0.85rem; color: #565959; margin-bottom: 0.8rem; }
    .luraf-link { color: #007185; text-decoration: none; cursor: pointer; }
    .luraf-link:hover { color: #C45500; text-decoration: underline; }
    .separador-pipe { color: #CCCCCC; margin: 0 0.5rem; }
    .luraf-divider { border: 0; border-top: 1px solid #E7E7E7; margin: 0.8rem 0; }

    /* Caja de Precios y Detalles */
    .luraf-price-box { display: flex; align-items: baseline; gap: 0.3rem; }
    .precio-etiqueta { font-size: 0.9rem; color: #565959; }
    .precio-monto { font-size: 1.8rem; font-weight: 400; color: #B12704; }
    .precio-moneda { font-size: 0.95rem; font-weight: bold; color: #B12704; }

    .luraf-details-box h3 { font-size: 1rem; color: #0F1111; font-weight: 700; margin-bottom: 0.4rem; }
    .luraf-description { font-size: 0.9rem; line-height: 1.5; color: #111111; white-space: pre-line; }

    /* Botón de Compra Redondeado de luraf */
    .luraf-action-footer { margin-top: auto; padding-top: 1.5rem; }
    .btn-luraf-modal-buy {
        background: #FFD814;
        border: 1px solid #FCD200;
        color: #0F1111;
        padding: 0.7rem 2rem;
        font-size: 0.95rem;
        text-align: center;
        border-radius: 100px;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(213,217,217,.5);
        transition: background 0.2s;
        cursor: pointer;
    }
    .btn-luraf-modal-buy:hover { background: #F7CA00; border-color: #F2C200; }

    @media (max-width: 768px) {
        .modal-grid { grid-template-columns: 1fr; gap: 1rem; }
        .luraf-zoom-container { height: 280px; }
        
        /* CORRECCIÓN MÓVIL: Evita que el contenido largo quede inaccesible en pantallas pequeñas */
        .modal-contenido {
            max-height: 90vh;
            padding: 1.5rem 1rem;
        }
    }

    /* Contenedor para una sola fila horizontal infinita */
    .bloque-imagenes {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;          /* Evita estrictamente que las fotos bajen a la siguiente línea */
        gap: 20px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0)), #fff;
        border: 1px solid var(--border-luraf);
        padding: 1.5rem;
        border-radius: 4px;
        margin-bottom: 1.25rem;
        
        /* Activa el scroll horizontal si hay muchas imágenes */
        overflow-x: auto;           
        -webkit-overflow-scrolling: touch; /* Desplazamiento suave en teléfonos */
    }

    /* Enlaces (Contenedores de foto + texto) */
    .bloque-imagenes a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
        text-align: center;
        
        /* Evita que las celdas se aplasten o se deformen */
        flex: 0 0 auto;             
        width: 230px;               /* Ancho fijo para mantener la consistencia */
    }

    /* Imágenes fijas y perfectas */
    .bloque-imagenes img {
        object-fit: cover;
        border-radius: 4px;
        width: 230px;
        height: 230px;
    }
    /* Texto debajo */
    .nombre-categoria {
        margin-top: 12px;
        font-size: 15px;
        font-weight: 600;
        color: #111;
    }

    .bloque-imagenes a:hover .nombre-categoria {
        color: #c45500;
    }

    /* OPCIONAL: Pon la barra de scroll más bonita (estilo luraf/Moderna) */
    .bloque-imagenes::-webkit-scrollbar {
        height: 6px;
    }
    .bloque-imagenes::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.15);
        border-radius: 4px;
    }
    .bloque-imagenes::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0,0,0,0.3);
    }
    /* Contenedor principal de la barra secundaria */
    .navbar-sub {
        width: 100%;
        background-color: #3e2f23; /* Tu color de fondo actual (ej. estilo luraf) */
        box-sizing: border-box;
        
        /* Activa el movimiento manual horizontal */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Desplazamiento ultra suave en teléfonos */
    }

    /* Lista interna que contiene los elementos */
    .navbar-sub ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* Fuerza a que todos los elementos se queden en una sola línea */
        align-items: center;
        margin: 0;
        padding: 8px 15px; /* Ajusta el espaciado interno a tu gusto */
        list-style: none;
    }

    /* Cada elemento de la lista */
    .navbar-sub ul li {
        /* Evita que el texto se encoja o se rompa en dos líneas */
        flex: 0 0 auto; 
    }

    /* Estilo para los enlaces de texto */
    .navbar-sub ul li a {
        display: block;
        padding: 6px 12px;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        white-space: nowrap; /* Evita que las palabras largas salten de línea */
    }

    /* OPCIONAL: Oculta o estiliza la barra de scroll para que se vea más limpia */
    .navbar-sub::-webkit-scrollbar {
        height: 4px; /* Una barra muy fina que casi no se note */
    }

    .navbar-sub::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }
    /* ==========================================================================
    DISEÑO ADAPTABLE (MÓVIL Y TABLET): 3 IMÁGENES EN FILA DE BORDE A BORDE
    ========================================================================== */

    /* Se aplica a pantallas de hasta 1200px (abarca móviles y tablets) */
    @media screen and (max-width: 1200px) {
        
        /* 1. Blindaje total anti-scroll horizontal en la raíz */
        html, body {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            overflow-x: hidden !important; /* CORRECCIÓN: Blinda los laterales de la web sin congelar los elementos internos */
        }

        /* 2. Ocultamos la barra lateral en estos dispositivos */
        .sidebar-catalogos {
            display: none !important;
        }

        /* 3. Forzamos a la estructura padre a pegarse al cristal de la pantalla */
        .tienda-layout, 
        .contenido-principal,
        main, 
        section,
        .container, 
        .wrapper { 
            width: 100% !important;
            max-width: 100% !important;
            min-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
            box-sizing: border-box !important;
            float: none !important;
            /* CORRECCIÓN: Se eliminó overflow: hidden !important; para permitir el libre deslizamiento de la barra secundaria */
        }

        /* 4. Contenedor horizontal: pegado a los marcos izquierdo y derecho */
        .bloque-imagenes {
            display: flex !important;
            flex-direction: row !important;   /* Mantiene las 3 imágenes en la misma fila */
            flex-wrap: nowrap !important;     /* Prohíbe terminantemente saltos de línea */
            justify-content: space-between !important;
            align-items: flex-start !important;
            direction: ltr !important;
            
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 0 20px 0 !important;
            padding: 0 !important;            /* Cero espacio libre en los extremos */
            box-sizing: border-box !important;
            overflow: hidden !important;      /* Cero barras de scroll internas */
            
            /* Hueco de separación limpio entre columnas (se adapta genial a tablets) */
            gap: 10px !important; 
        }

        /* 5. Los 3 enlaces se reparten el espacio disponible equitativamente */
        .bloque-imagenes a {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            text-decoration: none !important;
            
            flex: 1 1 0% !important;  /* Se expanden y encogen idénticamente en tablets o móviles */
            min-width: 0 !important;  /* Clave para obligar a flexbox a respetar los límites físicos */
            margin: 0 !important;
            padding: 0 !important;
            box-sizing: border-box !important;
        }

        /* Limpieza absoluta de márgenes residuales */
        .bloque-imagenes a:not(:last-child) {
            margin-right: 0 !important;
        }

        /* 6. Las imágenes reescalan de forma fluida según el tamaño de pantalla */
        .bloque-imagenes a img {
            width: 100% !important;
            height: auto !important;
            max-width: 100% !important;
            display: block !important;
            border-radius: 6px !important; /* Esquinas ligeramente suaves */
        }

        /* 7. Texto protegido e íntegro (en tablets se verá más amplio) */
        .bloque-imagenes a .nombre-categoria {
            font-size: 12px !important;       /* Un pelín más grande para leerse bien en tablets */
            line-height: 1.3 !important;
            text-align: center !important;
            margin-top: 8px !important;
            width: 100% !important;
            max-width: 100% !important;
            
            white-space: normal !important;   /* Salto de línea limpio si el texto lo requiere */
            overflow: visible !important;     /* No corta letras */
            word-wrap: break-word !important; /* Evita que palabras técnicas descoloquen la caja */
            box-sizing: border-box !important;
        }
    }
    /* ==========================================================================
    ESTRUCTURA DE DOS NIVELES:
    Fila 1: Logo -> Buscador -> Ubicación (De izquierda a derecha)
    Fila 2: Menú Derecho (Cuenta, Pedidos, Carrito) alineados abajo
    ========================================================================== */

    @media screen and (max-width: 1200px) {

        /* 1. Contenedor principal: Activa el salto de línea controlado */
        .navbar-main {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: wrap !important; /* Permite separar la fila de arriba de la de abajo */
            align-items: center !important;
            justify-content: space-between !important;
            width: 100% !important;
            padding: 8px 12px !important;
            box-sizing: border-box !important;
            gap: 10px 0px !important; /* Separación vertical de 10px entre la fila 1 y la fila 2 */
        }

        /* ==================== FILA 1 (SUPERIOR) ==================== */

        /* [Elemento 1] - LOGO (Extremo izquierdo) */
        .logo-container {
            order: 1 !important; /* Fuerza su posición al inicio */
            flex-shrink: 0 !important;
            margin: 0 !important;
        }
        
        .logo-text {
            font-size: 18px !important;
        }

        /* [Elemento 2] - BUSCADOR (Exactamente en el medio) */
        .search-bar-wrapper {
            order: 2 !important; /* Se posiciona en el centro */
            flex: 1 !important;  /* Absorbe de forma elástica todo el espacio central disponible */
            margin: 0 12px !important; /* Espaciado lateral para no pegarse al logo ni a la bandera */
            min-width: 150px !important; /* Espacio mínimo para mantener la usabilidad */
        }

        .search-bar-wrapper form {
            display: flex !important;
            width: 100% !important;
            height: 35px !important;
            border-radius: 4px !important;
            overflow: hidden !important;
        }

        /* ==========================================================================
    CONFIGURACIÓN PARA PC (Diseño por defecto - No cambia)
    ========================================================================== */

    /* La ubicación se mantiene al extremo derecho */
    .nav-ubicacion-container {
        display: flex !important;
        align-items: center !important;
        order: 3 !important; /* Mantiene su posición original en PC */
        margin: 0 !important;
        flex-shrink: 0 !important;
        gap: 0 !important; 
        justify-content: flex-start !important; 
    }

    /* El selector de ciudades en PC */
    .select-container {
        display: flex !important; 
        align-items: center !important;
        order: 2 !important; /* Su posición normal en PC */
    }

    #ciudad {
        height: 36px;
        font-size: 14px;
        border-radius: 4px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }


    /* ==========================================================================
    CONFIGURACIÓN EXCLUSIVA PARA MÓVILES (Pantallas menores a 768px)
    ========================================================================== */
    @media (max-width: 767px) {
        
        /* En el móvil, la ubicación pasa al primer lugar (Izquierda) */
        .nav-ubicacion-container {
            order: 1 !important; 
            margin-right: 10px !important; /* Añade un espacio de separación con el select */
        }

        /* En el móvil, las ciudades pasan al segundo lugar (Derecha) */
        .select-container {
            order: 2 !important; 
            flex: 0 0 250px !important;  /* flex-grow: 0, flex-shrink: 0, flex-basis: 250px */
            width: 250px !important;     /* Asegura el ancho fijo exacto */
            margin-left: 50px !important;
        }

        #ciudad {
            width: 100%;                /* Se estira para rellenar su contenedor */
            font-size: 13px;            /* Letra ligeramente más compacta para pantallas pequeñas */
            height: 34px;
        }
    }

        /* ==================== FILA 2 (INFERIOR) ==================== */

        /* Contenedor del menú: Pasa por completo a la línea de abajo */
        .nav-right-menu {
            display: flex !important;
            order: 4 !important; /* Va abajo de los primeros 3 elementos */
            width: 100% !important; /* Ocupa todo el ancho de la pantalla */
            justify-content: flex-end !important; /* Alinea Cuenta y Carrito a la derecha (puedes cambiarlo a space-around si prefieres centrado) */
            gap: 20px !important; /* Espaciado generoso y cómodo para tocar con el dedo */
            margin-top: 4px !important; /* Separación extra de la barra de búsqueda */
            border-top: 1px solid rgba(255, 255, 255, 0.1) !important; /* Opcional: una línea sutil de división */
            padding-top: 6px !important;
        }

        /* Ajuste de fuentes para que luzcan perfectas en el segundo nivel */
        .nav-line-1 {
            font-size: 11px !important;
            white-space: nowrap !important;
        }

        .nav-line-2 {
            font-size: 12px !important;
            font-weight: bold !important;
            white-space: nowrap !important;
        }
    }

    /* ==========================================================================
    OPTIMIZACIÓN PARA SMARTPHONES MUY ESTRECHOS (Menos de 480px)
    ========================================================================== */
    @media screen and (max-width: 480px) {
        /* Si la pantalla es demasiado angosta, distribuimos el menú de abajo de forma equitativa */
        .nav-right-menu {
            justify-content: space-between !important; /* Distribución simétrica en el ancho móvil */
            gap: 0 !important;
            padding-left: 5px !important;
            padding-right: 5px !important;
        }
        
        .search-bar-wrapper {
            margin: 0 8px !important; /* Compactamos márgenes en teléfonos pequeños */
        }
        
        .search-select {
            max-width: 70px !important; /* Reducimos el selector "Todos" para dar más campo de texto */
            font-size: 11px !important;
        }
    }/* =========================================================================
    REGLA PARA MÓVIL: ALINEACIÓN AUTOMÁTICA DE 2 EN 2 (OPTIMIZADA)
    ========================================================================= */
    @media (max-width: 480px) {
        
        /* Si tienes un layout de tienda con barra lateral, la desactivamos en móvil 
        para que no le robe espacio a los productos */
        .tienda-layout {
            display: block !important;
        }
        .sidebar-catalogos {
            display: none !important; /* La ocultamos en móvil para liberar toda la pantalla */
        }

        .productos-grid {
            display: grid !important;                  /* Cambiamos a Grid nativo, es más estable para esto */
            grid-template-columns: repeat(2, 1fr) !important; /* Dos columnas idénticas que se estiran al máximo */
            gap: 8px !important;                       /* Espacio mínimo entre tarjetas para maximizar su ancho */
            padding: 8px !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }

        .productos-grid::after {
            display: none !important;
        }

        .producto-card {
            float: none !important;
            width: 100% !important;                    /* Ahora el ancho lo controla el 1fr del Grid padre */
            min-width: 0 !important;                   /* Evita que contenidos internos fuercen desbordamientos */
            max-width: 100% !important;
            
            margin-right: 0 !important;
            margin-bottom: 4px !important;             /* Pegamos un poco más las filas verticalmente */
            
            background: #ffffff !important;
            border: 1px solid #eef0f2 !important;
            border-radius: 6px !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
            overflow: hidden !important;
            box-sizing: border-box !important;
        }

        .producto-card:nth-child(2n) {
            margin-right: 0 !important;
        }

        /* Contenedor de la foto equilibrado */
        .producto-imagen-wrapper {
            width: 100% !important;
            height: 100% !important;                  /* Subido de 95px a 130px para que la tarjeta gane altura y no parezca flaca o achatada */
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: #fafafa !important;
            padding: 6px !important;
            box-sizing: border-box !important;
        }

        .producto-imagen {
            max-width: 100% !important;
            max-height: 100% !important;
            object-fit: contain !important; 
        }

        /* Detalles del producto */
        .producto-detalles {
            padding: 8px !important;                   /* Un poco más de aire interno */
            display: flex !important;
            flex-direction: column !important;
            flex-grow: 1 !important; 
            box-sizing: border-box !important;
        }

        /* Título legible */
        .producto-detalles h3 {
            font-size: 12px !important;                /* Subido un punto para mejor lectura */
            color: #111 !important;
            margin: 0 0 4px 0 !important;
            font-weight: 500 !important;
            line-height: 1.3 !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important; 
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }

        .vendedor-tag,
        .descripcion-corta-tarjeta {
            display: none !important;
        }

        /* Precio */
        .producto-precio {
            font-size: 14px !important;                /* Un precio más grande hace que la tarjeta se vea más profesional */
            font-weight: 700 !important;
            color: #11100f !important;
            margin: auto 0 6px 0 !important;           /* Empuja el precio al fondo de la zona de texto */
        }

        .producto-precio span {
            font-size: 10px !important;
            color: #565959 !important;
        }

        /* Botón de la cesta */
        .btn-luraf-action1 {
            display: block !important;
            text-align: center !important;
            background: #ffd814 !important;
            border: 1px solid #fcd200 !important;
            color: #0f1111 !important;
            padding: 6px 4px !important;               /* Ajustamos el tamaño táctil del botón */
            font-size: 13px !important;
            border-radius: 4px !important;
            text-decoration: none !important;
            font-weight: 500 !important;
            margin-top: auto !important; 
        }
    }
    /* =========================================================================
    ESTILOS GENERALES DEL CARRITO (BASE: PC Y PANTALLAS GRANDES)
    ========================================================================= */

    .carrito-titulo {
        margin-bottom: 1.5rem; 
        font-weight: 700; 
        color: var(--text-luraf-black);
    }

    .carrito-contenedor-principal {
        display: flex; 
        gap: 1.5rem; 
        align-items: stretch; 
        flex-wrap: nowrap; 
        width: 100%; 
        height: calc(100vh - 140px); 
        box-sizing: border-box; 
        overflow: hidden; 
        padding: 0.5rem 0;
    }

    /* =========================================================================
    1. VARIABLES Y ESTILOS BASE
    ========================================================================= */
    :root {
        --border-luraf: #ddd;
        --text-luraf-gray: #666;
    }

    /* =========================================================================
    2. ESTRUCTURA GLOBAL: ORDEN VERTICAL
    ========================================================================= */
    .linea-paneles {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }

    .linea-paneles > section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .panel-blanco {
        background: white;
        border: 1px solid var(--border-luraf);
        border-radius: 4px;
        padding: 1rem;
        box-sizing: border-box;
        width: 100%;
    }

    /* =========================================================================
    3. COMPONENTES: SCROLL Y BOTONES (CONFIGURACIÓN PC)
    ========================================================================= */

    /* A. Formulario: SIEMPRE COMPLETO (Sin scroll en PC ni Móvil) */
    #contenedor-formulario .contenido-scroll-interno {
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* B. Pedidos y Comunicaciones: CON SCROLL EN PC */
    #contenedor-pedidos .contenido-scroll-interno,
    #contenedor-comunicaciones .contenido-scroll-interno {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 8px;
    }

    /* Estilización del scroll */
    .contenido-scroll-interno::-webkit-scrollbar { width: 6px; }
    .contenido-scroll-interno::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }

    .btn-toggle {
        background-color: #f8f9fa;
        color: #333;
        border: 1px solid #ddd;
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 10px;
        display: block;
    }

    .btn-toggle:hover { background-color: #e2e6ea; border-color: #ccc; }

    /* =========================================================================
    4. ADAPTACIONES MÓVILES (ELIMINAR SCROLL)
    ========================================================================= */
    @media (max-width: 576px) {
        .panel-blanco { padding: 0.85rem; }
        
        .btn-toggle { width: 100%; } /* Corregido de 800% a 100% */

        /* Forzamos que TODO se vea completo en móvil, eliminando cualquier restricción */
        .contenido-scroll-interno {
            max-height: none !important;
            overflow-y: visible !important;
        }
    }
        /* Contenedor externo para centrar la caja en toda la pantalla */
        .login-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 1vh;
            background-color: var(--bg-luraf, #eaeded);
            padding: 20px;
        }

        /* Caja principal del formulario */
        .seccion-caja {
            background: #ffffff;
            padding: 40px 30px;
            border-radius: var(--radius-luraf, 8px);
            border: 1px solid var(--border-luraf, #d5d9d9);
            width: 100%;
            max-width: 400px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
        }

        /* Diseño del Avatar circular */
        .avatar-container {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .avatar-img {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--border-luraf, #d5d9d9);
            background-color: #f7f7f7;
            padding: 4px;
        }
        * {
        box-sizing: border-box;
    }

    /* CAJA DEL FORMULARIO CENTRADA */
    .seccion-caja {
        width: 100%;
        max-width: 420px;
        margin: 2rem auto; /* Centra la caja horizontalmente dentro del panel */
        background-color: #ffffff;
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .seccion-caja h2 {
        margin-top: 0;
        margin-bottom: 1.2rem;
        font-size: 1.5rem;
        text-align: center;
        color: #333333;
    }

    /* GRUPOS Y CAMPOS DEL FORMULARIO */
    .form-group {
        margin-bottom: 0.85rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.3rem;
        font-weight: 600;
        font-size: 0.85rem;
        color: #444444;
    }

    .form-control {
        width: 100%;
        padding: 0.65rem 0.8rem;
        border: 1px solid #cccccc;
        border-radius: 5px;
        font-size: 0.95rem;
        transition: border-color 0.2s ease;
    }

    .form-control:focus {
        border-color: #0066c0;
        outline: none;
    }

    /* ADAPTACIÓN MÓVIL */
    @media (max-width: 480px) {
        .seccion-caja {
            width: 95%; /* Aprovecha casi todo el ancho en pantallas muy pequeñas */
            margin: 1rem auto;
            padding: 1.25rem 1rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .seccion-caja h2 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        .form-group {
            margin-bottom: 0.65rem;
        }

        .form-control {
            padding: 0.55rem 0.7rem;
            font-size: 16px; /* Evita zoom automático en Safari/iOS */
        }
    }

        /* Título */
        .seccion-caja h2 {
            font-size: 24px;
            font-weight: 500;
            color: var(--text-luraf-black, #11100f);
            margin-bottom: 24px;
            text-align: center;
        }

        /* Grupos del formulario */
        .form-group {
            display: flex;
            flex-direction: column;
            margin-bottom: 18px;
        }

        .form-group label {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-luraf-black, #11100f);
            margin-bottom: 6px;
        }

        /* Estilos de los Inputs */
        .form-control {
            width: 100%;
            height: 40px;
            padding: 0 12px;
            font-size: 14px;
            border: 1px solid var(--text-luraf-gray, #a6a6a6);
            border-radius: 4px;
            outline: none;
            transition: all 0.2s ease;
        }

        .form-control:focus {
            border-color: var(--lurf-orange, #ee800b);
            box-shadow: 0 0 0 3px rgba(238, 128, 11, 0.15);
        }

        /* Botón de Acción */
        .btn-luraf-action {
            width: 100%;
            height: 40px;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.15s ease;
            margin-top: 10px;
        }

        .btn-luraf-orange {
            background-color: var(--lurf-orange, #ee800b);
            color: #ffffff;
        }

        .btn-luraf-orange:hover {
            background-color: var(--lurf-orange-hover, #f3a847);
        }

        /* Enlace inferior de cambio de vista */
        .cambio-vista {
            margin-top: 24px;
            text-align: center;
            font-size: 13px;
            color: var(--text-luraf-gray, #565959);
        }

        .cambio-vista a {
            color: var(--text-link, #007185);
            text-decoration: none;
            font-weight: 500;
        }

        .cambio-vista a:hover {
            color: var(--text-luraf-link-hover, #c45500);
            text-decoration: underline;
        }
        /*CREAR CUENTA================*/
        /* ==========================================
    ESTILOS PANEL DE REGISTRO EN 2 PASOS
    ========================================== */

    .seccion-caja {
        max-width: 420px;
        margin: 2rem auto;
        padding: 2rem;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        font-family: Arial, sans-serif;
        box-sizing: border-box;
    }

    .seccion-caja h2 {
        margin: 0 0 0.2rem 0;
        text-align: center;
        color: #1a1a1a;
        font-size: 1.6rem;
    }

    .subtitulo {
        text-align: center;
        color: #666;
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }

    /* Indicador de pasos */
    .pasos-indicador {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .paso-dot {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #e0e0e0;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        font-weight: bold;
        transition: all 0.3s;
    }

    .paso-dot.active {
        background-color: #ff6b00;
        color: #fff;
    }

    .paso-linea {
        width: 40px;
        height: 2px;
        background-color: #e0e0e0;
        margin: 0 8px;
    }

    .paso-oculto {
        display: none !important;
    }

    /* Campos de entrada */
    .form-group {
        margin-bottom: 1.1rem;
    }

    .form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0.4rem;
    }

    .input-icon-wrapper {
        position: relative;
        width: 100%;
    }

    .input-icon-wrapper .icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1rem;
        color: #aaa;
        pointer-events: none; /* Permite hacer clic a través del ícono en el select */
        z-index: 2;
    }

    .form-control {
        width: 100%;
        padding: 0.75rem 2.2rem 0.75rem 0.85rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 0.95rem;
        box-sizing: border-box;
        background-color: #fff;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    .form-control:focus {
        border-color: #ff6b00;
        outline: none;
    }

    /* Grupo de teléfono y país */
    .phone-input-group {
        display: flex;
        gap: 0.5rem;
    }

    .country-select {
        padding: 0.75rem 0.4rem;
        width: 110px;
        background-color: #f8f9fa;
        cursor: pointer;
    }

    .flex-grow {
        flex: 1;
    }

    /* Botones */
    .btn-luraf-action {
        background-color: #ff6b00;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.2s;
    }

    .btn-luraf-action:hover {
        background-color: #e05e00;
    }

    .btn-group-step {
        display: flex;
        gap: 0.5rem;
        margin-top: 1.2rem;
    }

    .btn-secundario {
        background-color: #f0f0f0;
        color: #333;
        border: 1px solid #ccc;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.9rem;
    }

    .btn-secundario:hover {
        background-color: #e5e5e5;
    }
    /*====================*/
    /*TIENDA */
    /*=====================*/
    .tienda-layout {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        padding: 20px;
    }
    .sidebar-catalogos {
        width: 260px;
        flex-shrink: 0;
    }
    .contenido-principal {
        flex: 1;
        min-width: 0;
        
    }
    .bloque-imagenes {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 15px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0)), #fff;
        border: 1px solid var(--border-luraf);
        padding: 1.5rem;
        border-radius: 4px;
        margin-bottom: 1.25rem;
    }
    .bloque-imagenes a {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .bloque-imagenes img {
        object-fit: cover;
        border-radius: 4px;
        max-width: 100%;
        height: auto;
    }
    /*=============================*/
    /*ANUNCIOS PUBLICITARIOS*/
    /*============================*/
    .slider-img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        animation: carrusel 16s infinite;
    }
    /* Desfase de tiempo para que se muestren una tras otra */
    .slider-img:nth-child(1) { animation-delay: 0s; }
    .slider-img:nth-child(2) { animation-delay: 4s; }
    .slider-img:nth-child(3) { animation-delay: 8s; }
    .slider-img:nth-child(4) { animation-delay: 12s; }

    @keyframes carrusel {
        0% { opacity: 0; }
        6% { opacity: 1; }  /* Aparece */
        25% { opacity: 1; } /* Se mantiene visible */
        31% { opacity: 0; } /* Desaparece */
        100% { opacity: 0; }
    }

    /*======================================*/
    /* --- ESTILOS GENERALES DEL FOOTER --- */
    /*======================================*/
    .market-footer {
        background-color: #11100f;
        color: #fff;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        padding: 40px 20px 20px 20px;
        box-sizing: border-box;
    }

    /* --- CONTENEDOR PRINCIPAL Y REJILLA RESPONSIVA --- */
    .market-footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        /* Móviles por defecto: 1 columna */
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 20px;
    }

    /* --- COLUMNAS DEL FOOTER --- */
    .market-footer-col h3 {
        color: #febd69; 
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .market-footer-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .market-footer-col ul li {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.4;
    }

    .market-footer-col ul li a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .market-footer-col ul li a:hover {
        color: #fff;
        text-decoration: underline;
    }

    /* --- REDES SOCIALES --- */
    .footer-social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-social-links a {
        color: #fff;
        background-color: #3a4553;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        text-decoration: none;
        transition: background-color 0.2s, transform 0.2s;
    }

    .footer-social-links a:hover {
        background-color: #ee800b;
        color: #131a22;
        transform: translateY(-3px);
    }

    /* --- SEPARADOR Y PARTE INFERIOR --- */
    .market-footer-divider {
        border: 0;
        border-top: 1px solid #3a4553;
        margin: 25px 0 15px 0;
    }

    .market-footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: #aaa;
        text-align: center;
    }

    /* --- MEDIA QUERIES (RESPONSIVE) --- */

    /* Tablets y pantallas medianas (3 columnas) */
    @media (min-width: 600px) {
        .market-footer-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }
        .market-footer-bottom {
            flex-direction: row;
            text-align: left;
        }
    }
    /*=======================================*/
    /*boton de retroceso*/
    /*=======================================*/
.tienda-layout .btn-flotante-circular {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #ee800b;
    color: white;
    border-radius: 50%;
    display: flex; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 10000;
    font-size: 22px;
    transition: transform 0.2s, background-color 0.2s;
}

.tienda-layout .btn-flotante-circular:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.tienda-layout .btn-flotante-circular a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
