:root {
        --cf-red-main:   #cc0000;
        --cf-red-dark:   #990000;
        --cf-red-hover:  #a60000;
        --cf-black:      #111111;
        --cf-gray-dark:  #1a1a1a;
        --cf-text-main:  #1f2937;
        --cf-text-muted: #6b7280;
        --cf-bg-light:   #f9fafb;
        --cf-border:     #e5e7eb;
    }

    .cf-wrapper * {
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
    .cf-wrapper {
        color: var(--cf-text-main);
        /* Romper el contenedor de Odoo y ocupar 100vw */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 100vw !important;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background-color: var(--cf-bg-light);
        overflow-x: hidden;
    }
    .cf-wrapper a { text-decoration: none; }
    .cf-wrapper button { cursor: pointer; outline: none; border: none; }

    .svg-icon {
        display: inline-block; width: 1em; height: 1em;
        vertical-align: -0.125em; fill: none; stroke: currentColor;
        stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    }

    /* HEADER */
    .cf-wrapper header { position: relative; }
    .top-bar {
        background-color: var(--cf-red-dark); color: white; font-size: 11px;
        padding: 8px 24px; display: flex; justify-content: space-between; align-items: center;
    }
    .top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }
    .contact-info { display: flex; gap: 18px; align-items: center; font-size: .95rem; }
    .contact-info a { color: #ffffff !important; font-weight: 600; transition: opacity .2s; }
    .contact-info a:hover { opacity: .85; }
    .social-icons { display: flex; gap: 14px; align-items: center; }
    .social-icons a, .social-icons span { cursor: pointer; transition: opacity .2s; font-size: 14px; color: white; }
    .social-icons a:hover, .social-icons span:hover { opacity: .7; }
    .tiktok-txt { font-weight: bold; letter-spacing: -.5px; }

    .main-nav {
        background-color: var(--cf-black); padding: 16px 24px;
        position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    }
    .nav-container {
        max-width: 1400px; margin: 0 auto;
        display: flex; align-items: center; justify-content: space-between; gap: 40px;
    }
    .logo-text {
        color: white; font-weight: 900; font-size: 1.75rem;
        font-style: italic; letter-spacing: .02em; white-space: nowrap; cursor: pointer;
    }
    .logo-text sup { font-size: .4em; font-style: normal; position: relative; top: -1em; }
    .search-box { flex-grow: 1; max-width: 800px; position: relative; }
    .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 16px; }
    .search-input {
        width: 100%; background-color: #222; color: white; border: 1px solid #333;
        border-radius: 8px; padding: 12px 16px 12px 42px; font-size: 14px; transition: all .3s ease;
    }
    .search-input::placeholder { color: #6b7280; }
    .search-input:focus { outline: none; border-color: var(--cf-red-main); background-color: #2a2a2a; box-shadow: 0 0 0 3px rgba(204,0,0,.15); }
    .nav-actions { display: flex; align-items: center; gap: 24px; }
    .action-item {
        color: white; display: flex; flex-direction: column; align-items: center;
        font-size: 11px; font-weight: 500; cursor: pointer; transition: color .2s; position: relative;
    }
    .action-item:hover { color: var(--cf-red-main); }
    .action-item svg { font-size: 20px; margin-bottom: 4px; }
    .cart-badge {
        position: absolute; top: -4px; right: -8px; background-color: var(--cf-red-main); color: white;
        border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center;
        justify-content: center; font-size: 9px; font-weight: bold;
    }
    .red-ribbon { background-color: var(--cf-red-main); color: white; padding: 0 24px; }
    .ribbon-menu {
        max-width: 1400px; margin: 0 auto; display: flex; gap: 32px; overflow-x: auto;
        align-items: center; -ms-overflow-style: none; scrollbar-width: none;
    }
    .ribbon-menu::-webkit-scrollbar { display: none; }
    .ribbon-menu a {
        color: white; font-size: 13px; font-weight: 600; display: flex; align-items: center;
        white-space: nowrap; padding: 12px 0; transition: opacity .2s; border-bottom: 2px solid transparent; cursor: pointer;
    }
    .ribbon-menu a:hover { opacity: .9; border-bottom-color: white; }
    .ribbon-menu a.active { border-bottom-color: white; }
    .ribbon-menu a svg { margin-right: 8px; font-size: 16px; }

    /* MEGA MENÚ */
    .mega-menu-wrapper {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: white; box-shadow: 0 20px 40px rgba(0,0,0,.2);
        z-index: 1000; border-top: 1px solid var(--cf-border); color: var(--cf-text-main);
    }
    .mega-menu-wrapper.active { display: block; animation: cfSlideDown .2s ease-out; }
    @keyframes cfSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    .mega-menu-top {
        display: flex; justify-content: space-between; align-items: center;
        padding: 12px 32px; border-bottom: 1px solid var(--cf-border); background-color: #fdfdfd;
    }
    .mega-menu-top h3 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--cf-text-main); }
    .mega-close-btn { background: none; font-size: 1.5rem; color: var(--cf-text-muted); transition: color .2s; display: flex; align-items: center; }
    .mega-close-btn:hover { color: var(--cf-red-main); }
    .mega-menu-content { display: flex; padding: 24px 32px; gap: 40px; max-height: 75vh; overflow-y: auto; }
    .mega-col { flex: 1; }
    .mega-col-header {
        display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700;
        color: var(--cf-text-main); margin-bottom: 20px; padding-bottom: 8px;
        border-bottom: 2px solid var(--cf-red-main); text-transform: uppercase;
    }
    .mega-col-header svg { color: var(--cf-red-main); }
    .mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
    .mega-item {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-align: center; padding: 12px 8px; border: 1px solid var(--cf-border);
        border-radius: 8px; background-color: white; transition: all .2s;
        text-decoration: none; color: var(--cf-text-main); height: 95px;
    }
    .mega-item:hover { border-color: var(--cf-red-main); box-shadow: 0 4px 8px rgba(204,0,0,.1); transform: translateY(-2px); }
    .mega-item-icon { font-size: 1.6rem; color: var(--cf-red-main); margin-bottom: 8px; transition: transform .2s; }
    .mega-item:hover .mega-item-icon { transform: scale(1.1); }
    .mega-item-text { font-size: .6rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
    .mega-brand-logo { font-size: .8rem; font-weight: 900; color: #333; display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; font-style: italic; }
    .mega-brand-logo.red  { color: var(--cf-red-main); }
    .mega-brand-logo.blue { color: #1e3a8a; }

    /* VISTAS */
    .cf-view { display: none; flex-grow: 1; flex-direction: column; }
    .cf-view.active { display: flex; }

    /* LOGIN */
    .main-content { display: flex; flex-grow: 1; flex-direction: row; background-color: var(--cf-bg-light); }
    .info-panel {
        width: 60%;
        background: linear-gradient(135deg, #111111 0%, #2a0505 40%, #700b0b 100%);
        color: white; padding: 5rem; position: relative;
        display: flex; flex-direction: column; justify-content: center; overflow: hidden;
    }
    .bg-overlay {
        position: absolute; inset: 0; opacity: .05;
        background-image: url('https://images.unsplash.com/photo-1586864387967-d02ef85d93e8?q=80&w=2070&auto=format&fit=crop');
        background-size: cover; background-position: center; mix-blend-mode: overlay;
    }
    .info-content { position: relative; z-index: 10; max-width: 650px; margin-left: auto; margin-right: 2rem; }
    .info-title { font-size: 3rem; font-weight: 900; font-style: italic; margin-bottom: 1rem; letter-spacing: .02em; }
    .info-title sup { font-size: 1.2rem; font-style: normal; position: relative; top: -1.2rem; }
    .info-subtitle { font-size: 1.25rem; font-weight: 600; margin-bottom: 2rem; color: #f3f4f6; }
    .info-text { font-size: .9rem; color: #d1d5db; margin-bottom: 1.5rem; line-height: 1.6; }
    .info-link { color: white; font-weight: bold; text-decoration: underline; transition: color .2s; }
    .info-link:hover { color: #fca5a5; }
    .benefits-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
    .benefit-item {
        display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05);
        padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08);
        backdrop-filter: blur(4px); transition: transform .2s, background .2s;
    }
    .benefit-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
    .benefit-item svg { color: #f87171; font-size: 1.25rem; }
    .benefit-item span { font-size: .875rem; font-weight: 500; }
    .login-panel {
        width: 40%; background-color: white; padding: 4rem;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        box-shadow: -15px 0 30px rgba(0,0,0,.1); z-index: 10;
    }
    .login-box { width: 100%; max-width: 400px; }
    .login-header { text-align: center; margin-bottom: 2rem; }
    .user-avatar-icon {
        background-color: var(--cf-red-main); color: white; width: 72px; height: 72px;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        font-size: 32px; margin: 0 auto 1.5rem; box-shadow: 0 10px 20px -5px rgba(204,0,0,.3);
    }
    .login-header h2 { font-size: 1.75rem; font-weight: 800; color: #111827; margin-bottom: .5rem; }
    .login-header p { font-size: .9rem; color: var(--cf-text-muted); }
    .form-group { margin-bottom: 1.25rem; }
    .form-label { display: flex; align-items: center; font-size: .8rem; font-weight: 600; color: #4b5563; margin-bottom: .5rem; }
    .form-label svg { margin-right: 8px; color: #9ca3af; }
    .input-wrapper { position: relative; }
    .form-control {
        width: 100%; border: 1px solid var(--cf-border); border-radius: 8px;
        padding: 12px 16px; font-size: .9rem; color: #1f2937; background-color: #fdfdfd; transition: all .2s;
    }
    .form-control::placeholder { color: #9ca3af; }
    .form-control:focus { outline: none; border-color: var(--cf-red-main); background-color: white; box-shadow: 0 0 0 4px rgba(204,0,0,.1); }
    .btn-icon-right {
        position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
        color: #9ca3af; background: transparent; font-size: 1.2rem; display: flex; align-items: center;
    }
    .forgot-pass { text-align: right; margin-top: .5rem; }
    .forgot-pass a { color: var(--cf-red-main); font-size: .8rem; font-weight: 600; transition: color .2s; }
    .forgot-pass a:hover { text-decoration: underline; color: var(--cf-red-dark); }
    .btn-primary {
        width: 100%; background-color: var(--cf-red-main); color: white; border-radius: 8px;
        padding: 14px 16px; font-weight: bold; font-size: 1rem;
        display: flex; justify-content: center; align-items: center; gap: 10px;
        margin-top: 2rem; transition: all .3s; box-shadow: 0 4px 6px -1px rgba(204,0,0,.2);
    }
    .btn-primary:hover { background-color: var(--cf-red-hover); transform: translateY(-1px); box-shadow: 0 6px 12px -2px rgba(204,0,0,.3); }
    .register-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--cf-border); text-align: center; }
    .register-section p { font-size: .85rem; color: var(--cf-text-muted); margin-bottom: 1rem; }
    .btn-outline {
        width: 100%; background-color: white; color: var(--cf-red-main); border: 2px solid var(--cf-red-main);
        border-radius: 8px; padding: 12px 16px; font-weight: bold; font-size: .95rem;
        display: flex; justify-content: center; align-items: center; gap: 10px; transition: all .2s;
    }
    .btn-outline:hover { background-color: #fef2f2; }

    /* DÓNDE COMPRAR */
    .dc-page { max-width: 1400px; margin: 0 auto; padding: 28px 24px 48px; width: 100%; }
    .dc-page-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
    .dc-page-header h1 { font-size: 1.875rem; font-weight: 900; color: var(--cf-text-main); display: flex; align-items: center; gap: 10px; }
    .dc-page-header h1 svg { color: var(--cf-red-main); font-size: 1.6rem; }
    .dc-page-header p { font-size: .9rem; color: var(--cf-text-muted); margin-top: 4px; }
    .dc-count { font-size: .85rem; font-weight: 700; color: var(--cf-text-muted); white-space: nowrap; }
    .dc-count strong { color: var(--cf-text-main); font-size: 1rem; }
    .dc-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
    .dc-banner { border-radius: 12px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: transform .2s, box-shadow .2s; }
    .dc-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
    .dc-banner-dark { background: linear-gradient(135deg, #111 0%, #2a0505 60%, #700b0b 100%); color: white; }
    .dc-banner-blue { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%); color: white; }
    .dc-banner-label { font-size: .7rem; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
    .dc-banner-name { font-size: 1.3rem; font-weight: 900; font-style: italic; letter-spacing: .02em; }
    .dc-banner-desc { font-size: .78rem; opacity: .75; margin-top: 6px; max-width: 380px; }
    .dc-banner-badge { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); border-radius: 20px; padding: 6px 14px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
    .dc-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
    .dc-list-panel { background: white; border-radius: 12px; border: 1px solid var(--cf-border); overflow: hidden; position: sticky; top: 80px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
    .dc-list-header { padding: 16px 20px; border-bottom: 1px solid var(--cf-border); display: flex; justify-content: space-between; align-items: center; }
    .dc-list-header h3 { font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
    .dc-list-header h3 svg { color: var(--cf-red-main); }
    .dc-list-total { background: var(--cf-red-main); color: white; font-size: .75rem; font-weight: 700; border-radius: 20px; padding: 2px 10px; }
    .dc-search-wrap { padding: 12px 16px; border-bottom: 1px solid var(--cf-border); }
    .dc-search-input {
        width: 100%; border: 1px solid var(--cf-border); border-radius: 8px; padding: 9px 12px 9px 36px; font-size: .85rem;
        background: #fdfdfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 10px 50% no-repeat;
        transition: all .2s;
    }
    .dc-search-input:focus { outline: none; border-color: var(--cf-red-main); box-shadow: 0 0 0 3px rgba(204,0,0,.1); }
    .dc-list-items { overflow-y: auto; flex: 1; }
    .dc-item { padding: 16px 20px; border-bottom: 1px solid var(--cf-border); cursor: pointer; transition: background .15s; }
    .dc-item:hover, .dc-item.selected { background: #fef2f2; }
    .dc-item.selected { border-left: 3px solid var(--cf-red-main); }
    .dc-item-name { font-size: .9rem; font-weight: 800; color: var(--cf-text-main); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
    .dc-item-name svg { color: var(--cf-red-main); flex-shrink: 0; }
    .dc-item-tag { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: white; border-radius: 4px; padding: 2px 7px; }
    .dc-item-detail { font-size: .78rem; color: var(--cf-text-muted); display: flex; align-items: flex-start; gap: 6px; margin-bottom: 5px; }
    .dc-item-detail svg { flex-shrink: 0; margin-top: 1px; }
    .dc-item-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
    .dc-btn-sm { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; transition: all .2s; border: none; cursor: pointer; }
    .dc-btn-maps  { background: #e8f0fe; color: #1a73e8; } .dc-btn-maps:hover  { background: #1a73e8; color: white; }
    .dc-btn-waze  { background: #e8f5e9; color: #00c7b9; } .dc-btn-waze:hover  { background: #00c7b9; color: white; }
    .dc-btn-apple { background: #f3f4f6; color: #374151; } .dc-btn-apple:hover { background: #374151; color: white; }
    .dc-map-panel { position: sticky; top: 80px; }
    #cf-map { width: 100%; height: calc(100vh - 120px); min-height: 520px; border-radius: 12px; border: 1px solid var(--cf-border); box-shadow: 0 4px 12px rgba(0,0,0,.08); overflow: hidden; }
    .leaflet-popup-content-wrapper { border-radius: 10px !important; box-shadow: 0 8px 24px rgba(0,0,0,.15) !important; padding: 0 !important; overflow: hidden; }
    .leaflet-popup-content { margin: 0 !important; width: 240px !important; }
    .cf-popup-inner { padding: 14px 16px; }
    .cf-popup-tag { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: white; border-radius: 4px; padding: 2px 7px; display: inline-block; margin-bottom: 8px; }
    .cf-popup-name { font-size: .9rem; font-weight: 800; color: var(--cf-text-main); margin-bottom: 6px; }
    .cf-popup-addr { font-size: .75rem; color: var(--cf-text-muted); line-height: 1.4; margin-bottom: 10px; }
    .cf-popup-btns { display: flex; gap: 6px; flex-wrap: wrap; }
    .cf-popup-btn { font-size: .7rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all .2s; }
    .breadcrumb-bar { background: white; border-bottom: 1px solid var(--cf-border); }
    .breadcrumb { max-width: 1400px; margin: 0 auto; padding: 14px 24px; font-size: 13px; color: var(--cf-text-muted); display: flex; gap: 8px; align-items: center; }
    .breadcrumb a { color: var(--cf-text-muted); transition: color .2s; cursor: pointer; }
    .breadcrumb a:hover { color: var(--cf-red-main); }
    .breadcrumb span { color: var(--cf-text-main); font-weight: 600; }

    /* ── DETALLE DE PRODUCTO ── */
    .prod-breadcrumb {
        background: white; border-bottom: 1px solid var(--cf-border);
        padding: 12px 24px; font-size: .8rem; color: var(--cf-text-muted);
        display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }
    .prod-breadcrumb a { color: var(--cf-text-muted); cursor: pointer; transition: color .15s; }
    .prod-breadcrumb a:hover { color: var(--cf-red-main); }
    .prod-breadcrumb span { color: var(--cf-text-main); font-weight: 600; }
    .prod-breadcrumb svg { flex-shrink: 0; }

    .prod-page { max-width: 1400px; margin: 0 auto; padding: 32px 24px 64px; width: 100%; }
    .prod-layout { display: grid; grid-template-columns: 500px 1fr; gap: 56px; align-items: start; }

    /* ── Galería mejorada ── */
    .prod-gallery { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; }

    /* Imagen principal con lupa */
    .prod-zoom-wrap {
        border: 1px solid var(--cf-border); border-radius: 16px; overflow: hidden;
        background: #f9fafb; aspect-ratio: 1; position: relative; cursor: zoom-in;
    }
    .prod-zoom-wrap.zoomed { cursor: zoom-out; }
    .prod-zoom-img {
        width: 100%; height: 100%; object-fit: contain; padding: 20px;
        transition: transform .1s ease; transform-origin: center center;
        display: block; user-select: none;
    }
    .prod-zoom-wrap.zoomed .prod-zoom-img { transition: none; }

    /* Icono lupa */
    .prod-zoom-hint {
        position: absolute; bottom: 12px; right: 12px;
        background: rgba(0,0,0,.45); color: white; border-radius: 8px;
        padding: 6px 10px; font-size: .72rem; font-weight: 600;
        display: flex; align-items: center; gap: 5px;
        pointer-events: none; transition: opacity .2s;
    }
    .prod-zoom-wrap.zoomed .prod-zoom-hint { opacity: 0; }

    /* Flechas del carrusel sobre la imagen */
    .prod-arr {
        position: absolute; top: 50%; transform: translateY(-50%);
        background: rgba(255,255,255,.9); border: 1px solid var(--cf-border);
        border-radius: 50%; width: 36px; height: 36px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; font-size: 1rem; color: var(--cf-text-main);
        transition: all .2s; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,.1);
    }
    .prod-arr:hover { background: var(--cf-red-main); color: white; border-color: var(--cf-red-main); }
    .prod-arr-prev { left: 10px; }
    .prod-arr-next { right: 10px; }
    .prod-arr[disabled] { opacity: .3; pointer-events: none; }

    /* Placeholder sin imagen */
    .prod-img-placeholder {
        display: flex; flex-direction: column; align-items: center;
        justify-content: center; height: 100%; gap: 12px; color: #d1d5db; font-size: .85rem;
    }
    .prod-img-placeholder svg { width: 80px; height: 80px; }

    /* Miniaturas */
    .prod-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
    .prod-thumb {
        width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
        border: 2px solid var(--cf-border); cursor: pointer; background: #f9fafb;
        transition: all .15s; flex-shrink: 0;
    }
    .prod-thumb:hover { border-color: #9ca3af; }
    .prod-thumb.active { border-color: var(--cf-red-main); box-shadow: 0 0 0 2px rgba(204,0,0,.15); }
    .prod-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

    /* Contador de imágenes */
    .prod-img-counter {
        text-align: center; font-size: .75rem; color: var(--cf-text-muted); font-weight: 600;
    }

    /* Info derecha */
    .prod-info { display: flex; flex-direction: column; }
    .prod-info-header { margin-bottom: 20px; }
    .prod-categ {
        font-size: .72rem; font-weight: 800; color: var(--cf-red-main);
        text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
    }
    .prod-name { font-size: 1.75rem; font-weight: 900; color: var(--cf-text-main); line-height: 1.2; margin-bottom: 12px; }
    .prod-code-badge {
        display: inline-flex; align-items: center; gap: 6px;
        background: #f3f4f6; border: 1px solid var(--cf-border);
        border-radius: 6px; padding: 5px 12px; font-size: .8rem;
        font-family: monospace; font-weight: 700; color: var(--cf-text-muted);
    }
    .prod-code-badge svg { color: var(--cf-red-main); }
    .prod-divider { height: 1px; background: var(--cf-border); margin: 20px 0; }
    .prod-desc-title { font-size: .8rem; font-weight: 800; color: var(--cf-text-main); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
    .prod-desc-body { font-size: .875rem; color: var(--cf-text-muted); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
    .prod-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    .prod-meta-chip {
        display: flex; align-items: center; gap: 6px;
        background: #f9fafb; border: 1px solid var(--cf-border);
        border-radius: 8px; padding: 8px 14px; font-size: .78rem; color: var(--cf-text-muted); font-weight: 600;
    }
    .prod-meta-chip svg { color: var(--cf-red-main); }
    .prod-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
    .prod-btn-contact {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        background: var(--cf-red-main); color: white; border: none;
        border-radius: 10px; padding: 16px; font-size: 1rem; font-weight: 700;
        cursor: pointer; transition: all .2s; text-decoration: none;
    }
    .prod-btn-contact:hover { background: var(--cf-red-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(204,0,0,.25); }
    .prod-btn-catalog {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        background: white; color: var(--cf-text-main); border: 1.5px solid var(--cf-border);
        border-radius: 10px; padding: 14px; font-size: .9rem; font-weight: 600;
        cursor: pointer; transition: all .2s;
    }
    .prod-btn-catalog:hover { border-color: var(--cf-text-main); }
    .prod-loading {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        min-height: 400px; gap: 16px; color: var(--cf-text-muted); font-size: .9rem; grid-column: 1/-1;
    }

    /* ── VISTA LOGUEADO (PRECIOS Y CARRITO) ── */
    .prod-badge-disp { display: inline-flex; align-items: center; gap: 6px; background: #dcfce7; color: #166534; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 20px; }
    .prod-badge-disp::before { content: ""; display: block; width: 6px; height: 6px; background: #16a34a; border-radius: 50%; }
    .prod-price-box { background: #f9fafb; border: 1px solid var(--cf-border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
    .prod-price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
    .prod-price-row:last-child { margin-bottom: 0; }
    .pp-label { font-size: .85rem; color: var(--cf-text-muted); font-weight: 600; }
    .pp-list { font-size: .95rem; color: #9ca3af; text-decoration: line-through; }
    .pp-yours { font-size: 1.6rem; font-weight: 900; color: var(--cf-red-main); display: flex; align-items: center; gap: 10px; }
    .pp-discount { background: var(--cf-red-main); color: white; font-size: .7rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
    .prod-pack-box { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; margin-bottom: 24px; padding: 12px 0; border-top: 1px dashed var(--cf-border); border-bottom: 1px dashed var(--cf-border); }
    .prod-pack-box span { color: var(--cf-text-main); display: flex; align-items: center; gap: 6px; }
    .prod-pack-box span svg { color: var(--cf-red-main); }
    .prod-pack-box span strong { color: var(--cf-text-muted); font-weight: 600; margin-right: 2px; }
    .prod-qty-box { margin-bottom: 24px; padding: 16px; background: #f9fafb; border: 1px solid var(--cf-border); border-radius: 12px; }
    .pq-label { font-size: .85rem; font-weight: 800; color: var(--cf-text-main); margin-bottom: 4px; }
    .pq-hint { font-size: .75rem; color: var(--cf-red-main); margin-bottom: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
    .pq-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .pq-input-group { display: flex; align-items: stretch; width: 160px; border: 2px solid var(--cf-border); border-radius: 10px; overflow: hidden; background: white; transition: border-color .2s; }
    .pq-input-group:focus-within { border-color: var(--cf-red-main); box-shadow: 0 0 0 3px rgba(204,0,0,.08); }
    .pq-btn { width: 44px; min-height: 48px; background: #f3f4f6; border: none; font-size: 1.4rem; font-weight: 300; cursor: pointer; color: var(--cf-text-main); transition: background .15s; display: flex; align-items: center; justify-content: center; line-height: 1; user-select: none; }
    .pq-btn:hover { background: #e5e7eb; color: var(--cf-red-main); }
    .pq-btn:active { background: #d1d5db; }
    .pq-input { flex: 1; min-width: 0; height: 48px; border: none; border-left: 1px solid var(--cf-border); border-right: 1px solid var(--cf-border); text-align: center; font-weight: 900; font-size: 1.1rem; color: var(--cf-text-main); outline: none; background: white; }
    .pq-input::-webkit-inner-spin-button, .pq-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
    .pq-input[type=number] { -moz-appearance: textfield; }
    .pq-unit { font-size: .78rem; color: var(--cf-text-muted); font-weight: 700; text-transform: uppercase; background: #f9fafb; border: 1px solid var(--cf-border); border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; white-space: nowrap; }
    .prod-actions { display: flex; gap: 12px; margin-bottom: 24px; }
    .prod-btn-cart { flex: 1; background: var(--cf-red-main); color: white; border: none; border-radius: 8px; padding: 14px; font-size: .95rem; font-weight: 800; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(204,0,0,.2); }
    .prod-btn-cart:hover { background: var(--cf-red-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(204,0,0,.3); }
    .prod-btn-fav { width: 50px; background: white; border: 1px solid var(--cf-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--cf-text-muted); transition: all .2s; }
    .prod-btn-fav:hover { color: var(--cf-red-main); border-color: var(--cf-red-main); }
    .prod-share { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--cf-text-muted); margin-bottom: 32px; font-weight: 600; }
    .prod-share button { background: white; border: 1px solid var(--cf-border); border-radius: 6px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--cf-text-muted); transition: all .2s; }
    .prod-share button:hover { color: var(--cf-text-main); border-color: var(--cf-text-main); }
    .prod-tabs { display: flex; border-bottom: 2px solid var(--cf-border); margin-bottom: 20px; }
    .prod-tab { padding: 12px 24px; font-size: .9rem; font-weight: 800; color: var(--cf-text-muted); cursor: pointer; position: relative; top: 2px; border-bottom: 2px solid transparent; }
    .prod-tab.active { color: var(--cf-red-main); border-bottom-color: var(--cf-red-main); }
    .prod-tab-content h4 { font-size: .95rem; font-weight: 800; margin-bottom: 16px; color: var(--cf-text-main); }
    .prod-doc-card { display: flex; align-items: center; padding: 16px; border: 1px solid var(--cf-border); border-radius: 8px; background: #fdfdfd; gap: 16px; max-width: 400px; transition: all .2s; }
    .prod-doc-card:hover { border-color: #d1d5db; background: white; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
    .pdc-icon { background: #fef2f2; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .pdc-info { flex: 1; }
    .pdc-name { font-size: .85rem; font-weight: 800; color: var(--cf-text-main); margin-bottom: 4px; }
    .pdc-type { font-size: .7rem; color: var(--cf-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
    .pdc-dl { display: flex; align-items: center; justify-content: center; opacity: .7; transition: opacity .2s; }
    .prod-doc-card:hover .pdc-dl { opacity: 1; }

    @media (max-width: 900px) {
        .prod-layout { grid-template-columns: 1fr; gap: 24px; }
        .prod-gallery { position: static; }
        .prod-name { font-size: 1.4rem; }
    }

    /* ── CATÁLOGO ── */
    .cat-page { max-width: 1400px; margin: 0 auto; padding: 28px 24px 64px; width: 100%; }

    .cat-toolbar {
        display: flex; align-items: center; justify-content: space-between;
        gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
    }
    .cat-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .cat-title { font-size: 1.5rem; font-weight: 900; color: var(--cf-text-main); }
    .cat-count { font-size: .85rem; color: var(--cf-text-muted); font-weight: 500; }

    .cat-search-wrap { position: relative; flex-grow: 1; max-width: 360px; }
    .cat-search-input {
        width: 100%; border: 1px solid var(--cf-border); border-radius: 8px;
        padding: 10px 14px 10px 38px; font-size: .875rem; background: white;
        transition: all .2s; font-family: inherit;
    }
    .cat-search-input:focus { outline: none; border-color: var(--cf-red-main); box-shadow: 0 0 0 3px rgba(204,0,0,.08); }
    .cat-search-icon {
        position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
        color: #9ca3af; pointer-events: none;
    }

    .cat-filter-select {
        border: 1px solid var(--cf-border); border-radius: 8px; padding: 10px 14px;
        font-size: .875rem; color: var(--cf-text-main); background: white;
        cursor: pointer; font-family: inherit; transition: border-color .2s;
    }
    .cat-filter-select:focus { outline: none; border-color: var(--cf-red-main); }

    .cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }

    /* Sidebar filtros */
    .cat-sidebar { position: sticky; top: 80px; }
    .cat-filter-card {
        background: white; border: 1px solid var(--cf-border); border-radius: 12px;
        overflow: hidden; margin-bottom: 16px;
    }
    .cat-filter-header {
        padding: 14px 16px; font-size: .8rem; font-weight: 800; color: var(--cf-text-main);
        text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
        display: flex; justify-content: space-between; align-items: center;
        border-bottom: 1px solid var(--cf-border); background: #fdfdfd;
        user-select: none;
    }
    .cat-filter-header svg { transition: transform .2s; color: var(--cf-text-muted); }
    .cat-filter-header.open svg { transform: rotate(180deg); }
    .cat-filter-body { padding: 12px 16px; max-height: 240px; overflow-y: auto; }
    .cat-filter-body.collapsed { display: none; }
    .cat-filter-item {
        display: flex; align-items: center; gap: 8px; padding: 5px 0;
        font-size: .82rem; color: var(--cf-text-main); cursor: pointer;
        border-radius: 4px; transition: color .15s;
    }
    .cat-filter-item:hover { color: var(--cf-red-main); }
    .cat-filter-item input { accent-color: var(--cf-red-main); cursor: pointer; }
    .cat-clear-btn {
        width: 100%; padding: 8px; font-size: .75rem; font-weight: 600;
        color: var(--cf-red-main); background: #fef2f2; border: none; border-top: 1px solid var(--cf-border);
        cursor: pointer; transition: background .2s;
    }
    .cat-clear-btn:hover { background: #fee2e2; }

    /* Grid de productos */
    .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
    .cat-card {
        background: white; border: 1px solid var(--cf-border); border-radius: 12px;
        overflow: hidden; transition: all .2s; cursor: pointer;
    }
    .cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: #d1d5db; }
    .cat-card-img {
        aspect-ratio: 1; background: #f9fafb; display: flex; align-items: center;
        justify-content: center; overflow: hidden; border-bottom: 1px solid var(--cf-border);
    }
    .cat-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
    .cat-card-img-placeholder {
        width: 64px; height: 64px; color: #d1d5db;
    }
    .cat-card-body { padding: 12px; }
    .cat-card-brand {
        font-size: .65rem; font-weight: 800; color: var(--cf-red-main);
        text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px;
    }
    .cat-card-code { font-size: .7rem; color: var(--cf-text-muted); margin-bottom: 4px; font-family: monospace; }
    .cat-card-name { font-size: .8rem; font-weight: 700; color: var(--cf-text-main); line-height: 1.3; }

    /* Estados de carga */
    .cat-loading {
        grid-column: 1/-1; display: flex; flex-direction: column;
        align-items: center; justify-content: center; padding: 64px 0; gap: 16px; color: var(--cf-text-muted);
    }
    .cat-spinner {
        width: 40px; height: 40px; border: 3px solid var(--cf-border);
        border-top-color: var(--cf-red-main); border-radius: 50%;
        animation: catSpin .7s linear infinite;
    }
    @keyframes catSpin { to { transform: rotate(360deg); } }
    .cat-empty {
        grid-column: 1/-1; text-align: center; padding: 64px 0;
        color: var(--cf-text-muted); font-size: .95rem;
    }
    .cat-empty svg { font-size: 3rem; color: #d1d5db; display: block; margin: 0 auto 16px; width: 3rem; height: 3rem; }

    /* Paginación */
    .cat-pagination {
        display: flex; align-items: center; justify-content: center;
        gap: 6px; margin-top: 32px; flex-wrap: wrap;
    }
    .cat-page-btn {
        min-width: 36px; height: 36px; border: 1px solid var(--cf-border);
        border-radius: 8px; background: white; font-size: .85rem; font-weight: 600;
        color: var(--cf-text-main); cursor: pointer; transition: all .2s;
        display: flex; align-items: center; justify-content: center; padding: 0 10px;
    }
    .cat-page-btn:hover { border-color: var(--cf-red-main); color: var(--cf-red-main); }
    .cat-page-btn.active { background: var(--cf-red-main); border-color: var(--cf-red-main); color: white; }
    .cat-page-btn:disabled { opacity: .4; cursor: not-allowed; }
    .cat-page-info { font-size: .82rem; color: var(--cf-text-muted); padding: 0 8px; }

    /* Error banner */
    .cat-error {
        grid-column: 1/-1; background: #fef2f2; border: 1px solid #fecaca;
        border-radius: 10px; padding: 20px 24px; text-align: center;
        color: #991b1b; font-size: .875rem;
    }
    .cat-error strong { display: block; margin-bottom: 4px; }

    @media (max-width: 900px) {
        .cat-layout { grid-template-columns: 1fr; }
        .cat-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    }
    @media (max-width: 600px) {
        .cat-grid { grid-template-columns: repeat(2, 1fr); }
        .cat-sidebar { grid-template-columns: 1fr; }
    }

    /* ── SER DISTRIBUIDOR ── */
    .dist-hero {
        background: linear-gradient(135deg, #111111 0%, #2a0505 45%, #700b0b 100%);
        color: white; padding: 56px 24px; position: relative; overflow: hidden;
    }
    .dist-hero-bg {
        position: absolute; inset: 0; opacity: .05;
        background-image: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?q=80&w=2070&auto=format&fit=crop');
        background-size: cover; background-position: center;
    }
    .dist-hero-inner {
        max-width: 1400px; margin: 0 auto; position: relative; z-index: 2;
        display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    }
    .dist-hero-label {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
        border-radius: 20px; padding: 5px 14px; font-size: .72rem; font-weight: 700;
        letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
        color: #fca5a5;
    }
    .dist-hero h1 { font-size: 2.4rem; font-weight: 900; font-style: italic; margin-bottom: 10px; }
    .dist-hero p  { color: #e5e7eb; font-size: .95rem; line-height: 1.6; max-width: 560px; }
    .dist-hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
    .dist-badge {
        background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
        border-radius: 8px; padding: 10px 16px; font-size: .78rem; font-weight: 600;
        display: flex; align-items: center; gap: 7px;
    }
    .dist-badge svg { color: #f87171; }

    /* Layout form */
    .dist-page { max-width: 1000px; margin: 0 auto; padding: 40px 24px 64px; width: 100%; }

    /* Pasos / stepper */
    .dist-stepper {
        display: flex; gap: 0; margin-bottom: 40px;
        border: 1px solid var(--cf-border); border-radius: 12px; overflow: hidden;
        background: white;
    }
    .dist-step {
        flex: 1; padding: 14px 10px; text-align: center; font-size: .75rem;
        font-weight: 700; color: var(--cf-text-muted); cursor: pointer;
        border-right: 1px solid var(--cf-border); transition: all .2s;
        display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .dist-step:last-child { border-right: none; }
    .dist-step.active { background: var(--cf-red-main); color: white; }
    .dist-step.done   { background: #fef2f2; color: var(--cf-red-main); }
    .dist-step-num {
        width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor;
        display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0;
    }
    .dist-step.active .dist-step-num { background: rgba(255,255,255,.3); border-color: white; }

    /* Secciones del form */
    .dist-section {
        background: white; border: 1px solid var(--cf-border); border-radius: 16px;
        overflow: hidden; margin-bottom: 24px;
    }
    .dist-section-header {
        background: var(--cf-black); color: white; padding: 14px 24px;
        display: flex; align-items: center; gap: 10px;
        font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    }
    .dist-section-header svg { color: #f87171; }
    .dist-section-body { padding: 24px; }

    /* Grid de campos */
    .dist-row { display: grid; gap: 16px; margin-bottom: 16px; }
    .dist-row:last-child { margin-bottom: 0; }
    .dist-row-2 { grid-template-columns: 1fr 1fr; }
    .dist-row-3 { grid-template-columns: 1fr 1fr 1fr; }
    .dist-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .dist-row-1-2 { grid-template-columns: 2fr 1fr; }
    .dist-row-2-1 { grid-template-columns: 1fr 2fr; }
    .dist-row-3-1 { grid-template-columns: 3fr 1fr; }

    .dist-field { display: flex; flex-direction: column; gap: 5px; }
    .dist-label {
        font-size: .72rem; font-weight: 700; color: #374151;
        text-transform: uppercase; letter-spacing: .05em;
    }
    .dist-label span { color: var(--cf-red-main); }
    .dist-input, .dist-select, .dist-textarea {
        border: 1px solid var(--cf-border); border-radius: 8px;
        padding: 10px 14px; font-size: .875rem; color: var(--cf-text-main);
        background: #fdfdfd; transition: all .2s; width: 100%;
        font-family: inherit;
    }
    .dist-input:focus, .dist-select:focus, .dist-textarea:focus {
        outline: none; border-color: var(--cf-red-main);
        box-shadow: 0 0 0 3px rgba(204,0,0,.08); background: white;
    }
    .dist-textarea { resize: vertical; min-height: 90px; }

    /* Sub-header de persona (Gerente General, etc.) */
    .dist-person-header {
        background: #f9fafb; border: 1px solid var(--cf-border); border-radius: 8px;
        padding: 10px 14px; font-size: .8rem; font-weight: 800; color: var(--cf-text-main);
        margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
    }
    .dist-person-header svg { color: var(--cf-red-main); }

    /* Checkboxes */
    .dist-check-group { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
    .dist-check-label {
        display: flex; align-items: center; gap: 7px; cursor: pointer;
        font-size: .875rem; color: var(--cf-text-main); font-weight: 500;
    }
    .dist-check-label input[type="checkbox"],
    .dist-check-label input[type="radio"] { accent-color: var(--cf-red-main); width: 16px; height: 16px; cursor: pointer; }

    /* Upload de documentos */
    .dist-docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .dist-doc-item {
        border: 2px dashed var(--cf-border); border-radius: 10px; padding: 16px;
        display: flex; flex-direction: column; gap: 10px; transition: all .2s;
        background: #fdfdfd;
    }
    .dist-doc-item:hover { border-color: var(--cf-red-main); background: #fef2f2; }
    .dist-doc-item.uploaded { border-color: #10b981; border-style: solid; background: #f0fdf4; }
    .dist-doc-label {
        font-size: .78rem; font-weight: 700; color: var(--cf-text-main);
        display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
    }
    .dist-doc-label svg { color: var(--cf-red-main); flex-shrink: 0; margin-top: 1px; }
    .dist-doc-item.uploaded .dist-doc-label svg { color: #10b981; }
    .dist-doc-sub { font-size: .7rem; color: var(--cf-text-muted); }
    .dist-file-btn {
        display: inline-flex; align-items: center; gap: 6px;
        background: var(--cf-bg-light); border: 1px solid var(--cf-border);
        border-radius: 6px; padding: 7px 12px; font-size: .75rem; font-weight: 600;
        color: var(--cf-text-main); cursor: pointer; transition: all .2s; width: 100%; justify-content: center;
    }
    .dist-file-btn:hover { background: var(--cf-red-main); color: white; border-color: var(--cf-red-main); }
    .dist-file-input { display: none; }
    .dist-file-name { font-size: .7rem; color: #10b981; font-weight: 600; display: none; }
    .dist-file-name.visible { display: block; }

    /* Botones del form */
    .dist-form-actions {
        display: flex; justify-content: space-between; align-items: center;
        margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--cf-border);
        flex-wrap: wrap; gap: 12px;
    }
    .dist-btn-next {
        background: var(--cf-red-main); color: white; border: none;
        padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: .95rem;
        cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 8px;
    }
    .dist-btn-next:hover { background: var(--cf-red-hover); transform: translateY(-1px); }
    .dist-btn-back {
        background: white; color: var(--cf-text-muted); border: 1px solid var(--cf-border);
        padding: 14px 24px; border-radius: 8px; font-weight: 600; font-size: .9rem;
        cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 8px;
    }
    .dist-btn-back:hover { border-color: var(--cf-text-main); color: var(--cf-text-main); }

    /* Paso visible / oculto */
    .dist-paso { display: none; }
    .dist-paso.active { display: block; }

    /* Aviso legal */
    .dist-legal {
        background: #f9fafb; border: 1px solid var(--cf-border); border-radius: 8px;
        padding: 14px 18px; font-size: .78rem; color: var(--cf-text-muted); line-height: 1.6;
        margin-bottom: 20px;
    }
    .dist-legal strong { color: var(--cf-text-main); }

    /* Success */
    .dist-success {
        display: none; text-align: center; padding: 64px 24px;
    }
    .dist-success.active { display: block; }
    .dist-success-icon {
        width: 80px; height: 80px; border-radius: 50%; background: #dcfce7;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 24px; font-size: 2.5rem; color: #16a34a;
    }
    .dist-success h2 { font-size: 1.75rem; font-weight: 900; color: var(--cf-text-main); margin-bottom: 12px; }
    .dist-success p  { color: var(--cf-text-muted); font-size: .95rem; max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }

    @media (max-width: 768px) {
        .dist-row-2, .dist-row-3, .dist-row-4,
        .dist-row-1-2, .dist-row-2-1, .dist-row-3-1 { grid-template-columns: 1fr; }
        .dist-docs-grid { grid-template-columns: 1fr; }
        .dist-stepper { flex-direction: column; border-radius: 8px; }
        .dist-step { border-right: none; border-bottom: 1px solid var(--cf-border); }
        .dist-step:last-child { border-bottom: none; }
        .dist-hero h1 { font-size: 1.75rem; }
    }

    /* ── NOSOTROS ── */
    .nos-hero {
        background: linear-gradient(135deg, #111111 0%, #2a0505 45%, #700b0b 100%);
        color: white; position: relative; overflow: hidden;
        padding: 80px 24px;
    }
    .nos-hero-bg {
        position: absolute; inset: 0; opacity: .06;
        background-image: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?q=80&w=2070&auto=format&fit=crop');
        background-size: cover; background-position: center;
    }
    .nos-hero-inner {
        max-width: 1400px; margin: 0 auto; position: relative; z-index: 2;
        display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    }
    .nos-hero-label {
        display: inline-flex; align-items: center; gap: 8px;
        background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
        border-radius: 20px; padding: 6px 16px; font-size: .75rem; font-weight: 700;
        letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px;
    }
    .nos-hero-label svg { color: #f87171; }
    .nos-hero h1 {
        font-size: 3rem; font-weight: 900; font-style: italic;
        line-height: 1.1; margin-bottom: 20px; letter-spacing: .01em;
    }
    .nos-hero h1 sup { font-size: 1rem; font-style: normal; position: relative; top: -1rem; }
    .nos-hero p { font-size: 1.05rem; color: #e5e7eb; line-height: 1.7; margin-bottom: 32px; }
    .nos-hero-stats {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
    }
    .nos-stat {
        background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px; padding: 20px; text-align: center; backdrop-filter: blur(4px);
        transition: background .2s;
    }
    .nos-stat:hover { background: rgba(255,255,255,.12); }
    .nos-stat-num { font-size: 2.2rem; font-weight: 900; font-style: italic; color: white; line-height: 1; }
    .nos-stat-num span { font-size: 1.4rem; color: #f87171; }
    .nos-stat-label { font-size: .75rem; color: #d1d5db; font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }
    .nos-hero-image {
        border-radius: 16px; overflow: hidden;
        box-shadow: 0 32px 64px rgba(0,0,0,.4);
        border: 1px solid rgba(255,255,255,.1);
        aspect-ratio: 4/3;
        background: linear-gradient(135deg, #2a0505, #990000);
        display: flex; align-items: center; justify-content: center;
        font-size: 5rem; color: rgba(255,255,255,.15);
        position: relative;
    }
    .nos-hero-image-overlay {
        position: absolute; inset: 0;
        background: url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?q=80&w=2070&auto=format&fit=crop') center/cover;
        opacity: .6; border-radius: 16px;
    }

    /* Sección historia */
    .nos-section { padding: 72px 24px; }
    .nos-section-inner { max-width: 1400px; margin: 0 auto; }
    .nos-section-title {
        font-size: 1.875rem; font-weight: 900; color: var(--cf-text-main);
        margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
    }
    .nos-section-title::after {
        content: ''; flex: 1; height: 2px;
        background: linear-gradient(90deg, var(--cf-red-main), transparent);
    }
    .nos-section-sub { font-size: .95rem; color: var(--cf-text-muted); margin-bottom: 48px; }

    /* Valores */
    .nos-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .nos-value-card {
        background: white; border: 1px solid var(--cf-border); border-radius: 16px;
        padding: 32px 28px; transition: all .25s; position: relative; overflow: hidden;
    }
    .nos-value-card::before {
        content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
        background: linear-gradient(90deg, var(--cf-red-main), var(--cf-red-dark));
        transform: scaleX(0); transition: transform .25s; transform-origin: left;
    }
    .nos-value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
    .nos-value-card:hover::before { transform: scaleX(1); }
    .nos-value-icon {
        width: 52px; height: 52px; border-radius: 12px;
        background: #fef2f2; display: flex; align-items: center; justify-content: center;
        margin-bottom: 20px; font-size: 1.4rem; color: var(--cf-red-main);
        transition: background .2s;
    }
    .nos-value-card:hover .nos-value-icon { background: var(--cf-red-main); color: white; }
    .nos-value-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; color: var(--cf-text-main); }
    .nos-value-card p { font-size: .875rem; color: var(--cf-text-muted); line-height: 1.65; }

    /* Timeline */
    .nos-timeline { position: relative; padding-left: 32px; }
    .nos-timeline::before {
        content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px;
        width: 2px; background: linear-gradient(180deg, var(--cf-red-main), #fca5a5, transparent);
    }
    .nos-tl-item { position: relative; margin-bottom: 40px; }
    .nos-tl-dot {
        position: absolute; left: -28px; top: 4px;
        width: 16px; height: 16px; border-radius: 50%;
        background: var(--cf-red-main); border: 3px solid white;
        box-shadow: 0 0 0 2px var(--cf-red-main);
    }
    .nos-tl-year {
        font-size: .75rem; font-weight: 800; color: var(--cf-red-main);
        text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px;
    }
    .nos-tl-title { font-size: 1rem; font-weight: 800; color: var(--cf-text-main); margin-bottom: 4px; }
    .nos-tl-desc { font-size: .875rem; color: var(--cf-text-muted); line-height: 1.6; }

    /* Layout historia+timeline */
    .nos-about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
    .nos-about-text p { font-size: .95rem; color: var(--cf-text-muted); line-height: 1.8; margin-bottom: 20px; }
    .nos-about-text strong { color: var(--cf-text-main); }

    /* CTA */
    .nos-cta {
        background: linear-gradient(135deg, #111 0%, #2a0505 60%, #700b0b 100%);
        color: white; padding: 64px 24px; text-align: center;
    }
    .nos-cta-inner { max-width: 640px; margin: 0 auto; }
    .nos-cta h2 { font-size: 2rem; font-weight: 900; font-style: italic; margin-bottom: 12px; }
    .nos-cta p { color: #d1d5db; font-size: .95rem; margin-bottom: 32px; line-height: 1.6; }
    .nos-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
    .nos-btn-primary {
        background: var(--cf-red-main); color: white; border: none;
        padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: .95rem;
        cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
        text-decoration: none;
    }
    .nos-btn-primary:hover { background: var(--cf-red-hover); transform: translateY(-1px); }
    .nos-btn-outline {
        background: transparent; color: white;
        border: 2px solid rgba(255,255,255,.4); padding: 14px 28px; border-radius: 8px;
        font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .2s;
        display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    }
    .nos-btn-outline:hover { border-color: white; background: rgba(255,255,255,.08); }

    @media (max-width: 1024px) {
        .nos-hero-inner { grid-template-columns: 1fr; gap: 40px; }
        .nos-hero-image { display: none; }
        .nos-values { grid-template-columns: 1fr 1fr; }
        .nos-about-grid { grid-template-columns: 1fr; gap: 40px; }
    }
    @media (max-width: 640px) {
        .nos-values { grid-template-columns: 1fr; }
        .nos-hero-stats { grid-template-columns: 1fr 1fr; }
        .nos-hero h1 { font-size: 2rem; }
    }

    /* FOOTER */
    .footer { background-color: var(--cf-gray-dark); color: #9ca3af; padding: 4rem 24px 2rem; border-top: 1px solid #2d3748; }
    .footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 48px; }
    .footer-brand h3 { color: white; font-weight: 900; font-size: 1.25rem; font-style: italic; margin-bottom: 1rem; }
    .footer-brand h3 sup { font-size: 10px; font-style: normal; position: relative; top: -5px; }
    .footer-brand p { font-size: .85rem; line-height: 1.6; margin-bottom: 1.5rem; padding-right: 1rem; }
    .footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.5rem; }
    .footer-contact a { color: #ffffff !important; font-size: .9rem; font-weight:600; transition: color .2s; }
    .footer-contact a:hover { color: white; text-decoration: underline; }
    .footer-social { display: flex; gap: 16px; }
    .footer-social a { color: #9ca3af; font-size: 1.25rem; cursor: pointer; transition: all .2s; background: #2d3748; width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
    .footer-social a:hover { color: white; background: var(--cf-red-main); }
    .footer-title { color: white; font-weight: 700; font-size: 1rem; margin-bottom: 1.25rem; }
    .footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
    .footer-links-col { display: flex; flex-direction: column; gap: 12px; }
    .footer a { color: #9ca3af; font-size: .85rem; transition: color .2s; text-decoration: none; }
    .footer a:hover { color: white; text-decoration: underline; }
    .footer-bottom { max-width: 1400px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid #2d3748; font-size: .8rem; color: var(--cf-text-muted); display: flex; justify-content: space-between; }

    /* RESPONSIVE */
    @media (max-width: 1024px) {
        .main-content { flex-direction: column; }
        .info-panel { width: 100%; padding: 4rem 2rem; }
        .info-content { margin: 0 auto; max-width: 100%; text-align: center; }
        .login-panel { width: 100%; padding: 4rem 2rem; }
        .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
        .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
        .mega-menu-content { flex-direction: column; gap: 24px; }
        .dc-layout { grid-template-columns: 1fr; }
        .dc-list-panel { position: static; max-height: 420px; }
        .dc-map-panel { position: static; }
        #cf-map { height: 400px; }
        .dc-banners { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
        .top-bar-left span.hidden-mobile { display: none; }
        .benefits-list { grid-template-columns: 1fr; }
        .footer-links-grid { grid-template-columns: 1fr; }
        .footer-container  { grid-template-columns: 1fr; gap: 32px; }
        .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
        .dc-page-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    }

    /* ─────────────────────────────────────────────
       PORTAL LOGUEADO TIPO CONTINENTE FERRETERO
       Se activa con showView('portal')
    ───────────────────────────────────────────── */
    .cf-wrapper.cf-logged-mode > header,
    .cf-wrapper.cf-logged-mode > .footer {
        display: none !important;
    }

    .portal-page,
    .portal-page * {
        box-sizing: border-box;
    }

    .portal-page {
        min-height: 100vh;
        background: #f4f5f7;
        color: #111827;
        width: 100%;
    }

    .portal-page a {
        text-decoration: none;
    }

    .portal-topbar {
        min-height: 58px;
        background: #202020;
        color: white;
        display: flex;
        align-items: center;
        gap: 22px;
        padding: 8px 18px;
        position: sticky;
        top: 0;
        z-index: 90;
        box-shadow: 0 4px 14px rgba(0,0,0,.18);
    }

    .portal-logo {
        color: white;
        font-weight: 950;
        font-style: normal;
        font-size: 20px;
        letter-spacing: .2px;
        line-height: .92;
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 178px;
    }

    .portal-logo span {
        display: block;
        color: #ffffff;
        font-size: 19px;
        font-weight: 950;
        letter-spacing: .4px;
    }

    .portal-logo strong {
        display: block;
        color: #e11d1d;
        font-size: 17px;
        font-weight: 950;
        letter-spacing: .6px;
    }

    .portal-logo small {
        display: block;
        color: #f3f4f6;
        font-size: 6px;
        letter-spacing: .85px;
        font-style: normal;
        text-align: left;
        margin-top: 3px;
        opacity: .9;
    }

    .portal-search {
        flex: 1;
        max-width: 760px;
        position: relative;
    }

    .portal-search svg {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 17px;
        height: 17px;
        color: #9ca3af;
        pointer-events: none;
    }

    .portal-search input {
        width: 100%;
        height: 38px;
        background: #1d1d1d;
        border: 1px solid var(--cf-red-main);
        border-radius: 8px;
        color: white;
        padding: 0 14px 0 40px;
        font-size: 14px;
        outline: none;
        font-weight: 600;
    }

    .portal-search input::placeholder {
        color: #c7c7c7;
    }

    .portal-search input:focus {
        background: #111;
        box-shadow: 0 0 0 3px rgba(204,0,0,.22);
    }

    .portal-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 16px;
        white-space: nowrap;
    }

    .portal-coins-mini {
        height: 25px;
        background: #f6b400;
        color: #111;
        border-radius: 999px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        font-weight: 950;
    }

    .portal-action {
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 11px;
        font-weight: 700;
        position: relative;
        opacity: .95;
    }

    .portal-action:hover {
        color: #ffb3b3;
    }

    .portal-action svg {
        width: 18px;
        height: 18px;
    }

    .portal-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--cf-red-main);
        color: white;
        width: 17px;
        height: 17px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 950;
    }

    .portal-main {
        padding: 14px 18px 38px;
    }

    /* ─────────────────────────────────────────────
       PORTAL: BANNERS DE INICIO TIPO HOME
    ───────────────────────────────────────────── */
    .portal-home-top {
        margin-bottom: 26px;
    }

    .portal-hero-main {
        min-height: 305px;
        border-radius: 18px;
        overflow: hidden;
        position: relative;
        display: grid;
        grid-template-columns: 1.05fr .95fr;
        align-items: stretch;
        background:
            radial-gradient(circle at 70% 20%, rgba(255,255,255,.18), transparent 0 24%, transparent 25%),
            linear-gradient(135deg, #383838 0%, #6f6f6f 45%, #2d2d2d 100%);
        color: white;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
        isolation: isolate;
    }

    .portal-hero-main::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.08)),
            repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px);
        z-index: 0;
    }

    .portal-hero-content {
        position: relative;
        z-index: 2;
        padding: 38px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .portal-hero-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        background: #f59e0b;
        color: white;
        border-radius: 999px;
        padding: 7px 18px;
        font-size: 14px;
        font-weight: 950;
        letter-spacing: 4px;
        margin-bottom: 18px;
        box-shadow: 0 8px 18px rgba(245,158,11,.22);
    }

    .portal-hero-content h1 {
        margin: 0;
        font-size: clamp(32px, 4.1vw, 58px);
        line-height: .98;
        font-weight: 1000;
        letter-spacing: -.8px;
        text-transform: uppercase;
        text-shadow: 0 4px 18px rgba(0,0,0,.32);
        max-width: 760px;
    }

    .portal-hero-brand {
        margin-top: 18px;
        font-size: clamp(22px, 2.7vw, 38px);
        line-height: 1;
        font-weight: 1000;
        letter-spacing: .5px;
    }

    .portal-hero-brand span {
        color: #ff2b2b;
    }

    .portal-hero-cta {
        margin-top: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        background: #d80000;
        color: white;
        border: 2px solid rgba(255,255,255,.9);
        border-radius: 16px;
        padding: 12px 24px;
        font-size: 16px;
        font-weight: 1000;
        box-shadow: 0 10px 24px rgba(216,0,0,.32);
        transition: transform .18s ease, background .18s ease;
    }

    .portal-hero-main:hover .portal-hero-cta {
        transform: translateY(-2px);
        background: #b90000;
    }

    .portal-hero-products {
        position: relative;
        z-index: 2;
        min-height: 305px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        align-items: center;
        padding: 26px 30px 26px 10px;
    }

    .portal-hero-prod {
        height: 112px;
        background: rgba(255,255,255,.92);
        border: 1px solid rgba(255,255,255,.55);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 24px rgba(0,0,0,.18);
        transform: rotate(var(--r, 0deg));
        overflow: hidden;
    }

    .portal-hero-prod:nth-child(2n) { margin-top: 34px; }
    .portal-hero-prod:nth-child(3n) { margin-bottom: 28px; }

    .portal-hero-prod img {
        max-width: 88%;
        max-height: 92px;
        object-fit: contain;
        display: block;
        mix-blend-mode: multiply;
    }

    .portal-feature-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 16px;
    }

    .portal-feature-card {
        min-height: 142px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        color: white;
        display: flex;
        align-items: flex-end;
        padding: 24px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
        background: linear-gradient(135deg, #4b5563, #111827);
    }

    .portal-feature-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.04));
        z-index: 1;
    }

    .portal-feature-card::after {
        content: "";
        position: absolute;
        right: 22px;
        bottom: -18px;
        width: 210px;
        height: 135px;
        opacity: .24;
        background: radial-gradient(circle, rgba(255,255,255,.65), transparent 60%);
    }

    .portal-feature-card-content {
        position: relative;
        z-index: 2;
        max-width: 560px;
    }

    .portal-feature-card h3 {
        margin: 0 0 5px;
        font-size: 20px;
        font-weight: 950;
    }

    .portal-feature-card p {
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
        font-weight: 650;
        opacity: .96;
    }

    .portal-feature-products {
        background:
            linear-gradient(135deg, rgba(17,24,39,.88), rgba(17,24,39,.54)),
            radial-gradient(circle at 80% 45%, rgba(204,0,0,.35), transparent 0 28%, transparent 29%),
            linear-gradient(135deg, #333, #111);
    }

    .portal-feature-location {
        background:
            linear-gradient(135deg, rgba(17,24,39,.86), rgba(17,24,39,.48)),
            radial-gradient(circle at 82% 45%, rgba(204,0,0,.55), transparent 0 24%, transparent 25%),
            linear-gradient(135deg, #575757, #161616);
    }

    .portal-banners {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
        margin-bottom: 22px;
    }

    .portal-banner {
        height: 96px;
        border-radius: 12px;
        color: white;
        padding: 20px;
        display: flex;
        align-items: flex-end;
        font-weight: 950;
        font-size: 15px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 10px 24px rgba(0,0,0,.17);
        transition: transform .18s ease, box-shadow .18s ease;
    }

    .portal-banner:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(0,0,0,.22);
    }

    .portal-banner span {
        position: relative;
        z-index: 2;
    }

    .portal-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 82% 45%, rgba(255,255,255,.34), transparent 0 24%, transparent 25%),
            linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.03));
        z-index: 1;
    }

    .portal-banner::after {
        content: "";
        position: absolute;
        right: 15px;
        bottom: -12px;
        width: 178px;
        height: 98px;
        opacity: .28;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        filter: drop-shadow(0 8px 8px rgba(0,0,0,.25));
    }

    .portal-banner-blue {
        background: linear-gradient(135deg, #0645a7, #103f92);
    }

    .portal-banner-red {
        background: linear-gradient(135deg, #b00000, #650000);
    }

    .portal-banner-orange {
        background: linear-gradient(135deg, #ba4c1f, #81401d);
    }

    .portal-banner-dark {
        background: linear-gradient(135deg, #666, #181818);
    }

    .portal-banners-mini {
        margin-top: 16px;
    }

    .portal-banners-mini .portal-banner {
        height: 92px;
    }

    .portal-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 8px 0 16px;
    }

    .portal-section-title h2 {
        margin: 0;
        font-size: 21px;
        font-weight: 950;
        line-height: 1;
        padding-left: 12px;
        border-left: 4px solid var(--cf-red-main);
    }

    .portal-section-title a {
        color: var(--cf-red-main);
        font-size: 13px;
        font-weight: 950;
    }

    .portal-families {
        margin-bottom: 28px;
    }

    .portal-family-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 14px;
        padding: 4px 0 2px;
    }

    .portal-family-grid::-webkit-scrollbar {
        display: none;
    }

    .portal-family-card {
        min-height: 118px;
        background: white;
        border: 1px solid var(--cf-border);
        border-radius: 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 10px;
        color: #1f2937;
        transition: transform .16s ease, box-shadow .16s ease;
    }

    .portal-family-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(0,0,0,.07);
    }

    .portal-family-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        overflow: hidden;
    }

    .portal-family-icon svg {
        width: 28px;
        height: 28px;
        color: var(--cf-red-main);
    }

    .portal-family-name {
        text-align: center;
        text-transform: uppercase;
        font-size: 11px;
        line-height: 1.15;
        font-weight: 950;
    }

    .portal-family-count {
        margin-top: 4px;
        color: #9ca3af;
        font-size: 11px;
        font-weight: 700;
    }

    .portal-westcoins {
        background: linear-gradient(90deg, #fff8d9, #fff4bf);
        border: 1px solid #ffdd70;
        border-radius: 14px;
        min-height: 122px;
        padding: 24px 28px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 28px;
    }

    .portal-westcoins-left {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .portal-westcoins-icon {
        width: 48px;
        height: 48px;
        color: #e4a500;
        flex: 0 0 auto;
    }

    .portal-westcoins-text h3 {
        margin: 0 0 6px;
        font-size: 17px;
        font-weight: 950;
    }

    .portal-westcoins-text p {
        margin: 0;
        color: #666;
        font-size: 13px;
        font-weight: 600;
    }

    .portal-westcoins-amount {
        background: white;
        border: 1px solid #f5cf62;
        border-radius: 10px;
        min-width: 138px;
        padding: 17px 22px;
        text-align: center;
    }

    .portal-westcoins-amount strong {
        display: block;
        color: #e4a500;
        font-size: 27px;
        line-height: 1;
        font-weight: 950;
    }

    .portal-westcoins-amount small {
        display: block;
        color: #9ca3af;
        margin-top: 7px;
        font-size: 10px;
        font-weight: 800;
    }


    .portal-products-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 16px;
        align-items: stretch;
    }

    .portal-product-card {
        background: #ffffff;
        border: 1px solid #e7eaf0;
        border-radius: 18px;
        min-height: 402px;
        padding: 14px;
        position: relative;
        display: flex;
        flex-direction: column;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
        box-shadow: 0 3px 10px rgba(15, 23, 42, .045);
        overflow: hidden;
    }

    .portal-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
        border-color: #d8dde6;
    }

    .portal-product-badges {
        position: absolute;
        top: 12px;
        left: 12px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 3;
    }

    .portal-product-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        border-radius: 7px;
        padding: 5px 8px;
        font-size: 10px;
        font-weight: 950;
        width: fit-content;
        line-height: 1;
        box-shadow: 0 3px 7px rgba(0,0,0,.12);
    }

    .portal-product-badge-new { background: #ff7214; }
    .portal-product-badge-promo { background: #2563eb; }

    .portal-product-img {
        height: 168px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 4px 0 13px;
        background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
        border: 1px solid #f0f2f5;
        border-radius: 14px;
        overflow: hidden;
    }

    .portal-product-img img {
        max-width: 92%;
        max-height: 146px;
        object-fit: contain;
        display: block;
        mix-blend-mode: multiply;
    }

    .portal-product-img-placeholder {
        width: 86px;
        height: 86px;
        border-radius: 18px;
        background: #f4f6f8;
        border: 1px solid #e8ebf0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #b6beca;
        font-size: 34px;
    }

    .portal-product-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
    }

    .portal-product-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        min-width: 0;
    }

    .portal-chip,
    .portal-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: 112px;
        min-width: 0;
        height: auto;
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        border: 1px solid transparent;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;
    }

    .portal-chip-brand,
    .portal-brand {
        background: #fff4f4;
        color: #b40000;
        border-color: #ffd4d4;
    }

    .portal-chip-family {
        background: #f4f6f8;
        color: #4b5563;
        border-color: #e3e8ef;
    }

    .portal-product-brand-code {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

    .portal-code {
        font-size: 12px;
        font-weight: 950;
        color: #5d6675;
        text-align: right;
        white-space: nowrap;
        padding-top: 4px;
        max-width: 86px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .portal-product-name {
        color: #111827;
        font-size: 13px;
        line-height: 1.32;
        font-weight: 900;
        min-height: 45px;
        margin-bottom: 10px;
        text-transform: uppercase;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .portal-product-name:hover { color: var(--cf-red-main); }

    .portal-stock {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        width: fit-content;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 11px;
        font-weight: 950;
        margin-bottom: 9px;
        line-height: 1;
    }

    .portal-stock-ok {
        background: #e9f9ee;
        color: #16813a;
        border: 1px solid #cdeed8;
    }

    .portal-stock-no {
        background: #f3f4f6;
        color: #6b7280;
        border: 1px solid #e5e7eb;
    }

    .portal-list-price {
        color: #9aa3af;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .portal-price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 12px;
    }

    .portal-price {
        font-size: 20px;
        line-height: 1;
        font-weight: 950;
        color: #0f172a;
        letter-spacing: -.02em;
    }

    .portal-discount {
        color: var(--cf-red-main);
        font-size: 11px;
        font-weight: 950;
    }

    .portal-cart-row {
        margin-top: auto;
        display: grid;
        grid-template-columns: 1fr 42px;
        gap: 8px;
    }

    .portal-qty-control {
        display: grid;
        grid-template-columns: 30px 1fr 30px;
        height: 38px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
        background: white;
    }

    .portal-qty-control button {
        border: 0;
        background: #f8fafc;
        color: #64748b;
        font-weight: 950;
        cursor: pointer;
        font-size: 14px;
    }

    .portal-qty-control button:hover {
        background: #eef2f7;
        color: #111827;
    }

    .portal-qty-control input {
        border: 0;
        background: white;
        text-align: center;
        font-size: 13px;
        font-weight: 900;
        outline: none;
        min-width: 0;
        color: #111827;
    }

    .portal-cart-btn {
        height: 38px;
        border: 0;
        border-radius: 10px;
        background: var(--cf-red-main);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
        box-shadow: 0 6px 12px rgba(204,0,0,.18);
    }

    .portal-cart-btn:hover {
        background: var(--cf-red-hover);
        transform: scale(1.03);
        box-shadow: 0 8px 16px rgba(204,0,0,.25);
    }

    .portal-cart-btn svg {
        width: 18px;
        height: 18px;
    }

    .portal-product-meta {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #e5e7eb;
        border-left: 0;
        background: transparent;
        font-size: 10px;
        color: #6b7280;
        font-weight: 750;
        line-height: 1.5;
    }

    .portal-product-meta strong {
        color: #374151;
        font-weight: 950;
    }


    .portal-loading,
    .portal-empty {
        grid-column: 1 / -1;
        background: white;
        border: 1px solid var(--cf-border);
        border-radius: 14px;
        padding: 36px;
        text-align: center;
        color: #6b7280;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    @media (max-width: 1600px) {
        .portal-products-grid {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }
    }

    @media (max-width: 1320px) {
        .portal-products-grid {
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }

        .portal-family-grid {
            grid-template-columns: repeat(6, minmax(145px, 1fr));
        }
    }

    @media (max-width: 1024px) {
        .portal-topbar {
            height: auto;
            flex-wrap: wrap;
            padding: 12px 16px;
        }

        .portal-search {
            order: 3;
            max-width: none;
            width: 100%;
            flex-basis: 100%;
        }

        .portal-hero-main {
            grid-template-columns: 1fr;
        }

        .portal-hero-products {
            min-height: auto;
            padding: 0 24px 24px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .portal-feature-grid {
            grid-template-columns: 1fr;
        }

        .portal-banners {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .portal-products-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 760px) {
        .portal-main {
            padding: 12px;
        }

        .portal-logo {
            font-size: 22px;
        }

        .portal-actions {
            width: 100%;
            justify-content: space-between;
            gap: 8px;
        }

        .portal-coins-mini {
            display: none;
        }

        .portal-action {
            font-size: 10px;
        }

        .portal-hero-main {
            min-height: auto;
        }

        .portal-hero-content {
            padding: 26px 20px;
        }

        .portal-hero-content h1 {
            font-size: 27px;
        }

        .portal-hero-products {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            padding: 0 18px 20px;
        }

        .portal-hero-prod {
            height: 96px;
        }

        .portal-banners {
            grid-template-columns: 1fr;
        }

        .portal-banner {
            height: 82px;
        }

        .portal-family-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .portal-family-card {
            min-width: 0;
        }

        .portal-westcoins {
            flex-direction: column;
            align-items: stretch;
        }

        .portal-westcoins-left {
            align-items: flex-start;
        }

        .portal-products-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .portal-product-card {
            min-height: 340px;
        }
    }

    /* ─────────────────────────────────────────────
       VISTA: CARRITO (SPA B2B)
    ───────────────────────────────────────────── */
    #cf-view-carrito {
        padding: 24px 18px 48px;
        background: #f4f5f7;
        min-height: calc(100vh - 58px);
    }

    /* Stepper */
    .cart-stepper-bar {
        background: white;
        border-radius: 12px;
        padding: 20px 24px;
        margin-bottom: 24px;
        box-shadow: 0 2px 8px rgba(0,0,0,.03);
        border: 1px solid var(--cf-border);
    }
    .cart-stepper {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 680px;
        margin: 0 auto;
    }
    .cst-step {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #9ca3af;
        font-size: 13px;
        font-weight: 700;
        transition: all .2s;
    }
    .cst-step.cst-active {
        color: #111827;
    }
    .cst-step.cst-active .cst-num {
        background: var(--cf-red-main);
        color: white;
        border-color: var(--cf-red-main);
        box-shadow: 0 4px 10px rgba(204,0,0,.25);
    }
    .cst-num {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 2px solid #e5e7eb;
        background: white;
        color: #9ca3af;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 950;
        font-size: 13px;
    }
    .cst-line {
        flex: 1;
        height: 2px;
        background: #e5e7eb;
        margin: 0 16px;
    }
    .cst-line.cst-active {
        background: var(--cf-red-main);
    }

    /* Cart Main Layout */
    .cart-page {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 24px;
        align-items: start;
        max-width: 1400px;
        margin: 0 auto;
    }

    .cart-left {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .cart-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .cart-main-title {
        font-size: clamp(20px, 2.5vw, 24px);
        font-weight: 950;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #111827;
    }

    .cart-meta {
        font-size: 13px;
        font-weight: 800;
        color: #6b7280;
        background: white;
        border: 1px solid var(--cf-border);
        border-radius: 999px;
        padding: 5px 14px;
    }

    /* Empty state */
    .cart-empty-state {
        background: white;
        border: 1px solid var(--cf-border);
        border-radius: 14px;
        padding: 64px 32px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,.02);
    }
    .cart-empty-state p {
        color: #6b7280;
        font-size: 15px;
        font-weight: 750;
        margin-bottom: 24px;
    }
    .cart-btn-shop {
        background: var(--cf-red-main);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 12px 24px;
        font-weight: 950;
        font-size: 14px;
        cursor: pointer;
        transition: all .2s;
        box-shadow: 0 4px 10px rgba(204,0,0,.15);
    }
    .cart-btn-shop:hover {
        background: var(--cf-red-hover);
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(204,0,0,.22);
    }

    /* Category Group block */
    .cart-cat-group {
        background: white;
        border: 1px solid var(--cf-border);
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,.02);
    }
    .cart-cat-header {
        background: #f8fafc;
        border-bottom: 1px solid var(--cf-border);
        padding: 12px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .cart-cat-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .cart-cat-icon {
        color: var(--cf-red-main);
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
    }
    .cart-cat-name {
        font-size: 12px;
        font-weight: 950;
        text-transform: uppercase;
        color: #111827;
        letter-spacing: .5px;
    }
    .cart-cat-count {
        font-size: 11px;
        font-weight: 800;
        color: #9ca3af;
        margin-left: 6px;
        text-transform: none;
    }
    .cart-cat-total {
        font-size: 13px;
        font-weight: 950;
        color: #111827;
    }

    /* Product row card */
    .cart-item-row {
        display: grid;
        grid-template-columns: 60px 1.5fr 1fr 140px 1fr 40px;
        align-items: center;
        gap: 16px;
        padding: 16px 18px;
        border-bottom: 1px solid #f1f5f9;
        background: white;
        transition: background .15s;
    }
    .cart-item-row:last-child {
        border-bottom: none;
    }
    .cart-item-row:hover {
        background: #fafbfc;
    }

    .cart-item-img {
        width: 60px;
        height: 60px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
    }
    .cart-item-img img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }

    .cart-item-details {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .cart-item-code {
        font-size: 10px;
        font-weight: 800;
        color: #9ca3af;
        text-transform: uppercase;
    }
    .cart-item-name {
        font-size: 11.5px;
        font-weight: 900;
        color: #111827;
        line-height: 1.35;
        text-transform: uppercase;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }

    .cart-item-price-unit {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .cart-item-price-label {
        font-size: 8px;
        font-weight: 800;
        color: #9ca3af;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
    .cart-item-price-val {
        font-size: 12px;
        font-weight: 950;
        color: #4b5563;
    }

    .cart-item-qty {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .cart-item-qty-control {
        display: grid;
        grid-template-columns: 28px 1fr 28px;
        height: 32px;
        width: 100px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
        background: white;
    }
    .cart-item-qty-btn {
        border: none;
        background: #f8fafc;
        color: #64748b;
        font-weight: 950;
        cursor: pointer;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-item-qty-btn:hover {
        background: #e2e8f0;
        color: #111827;
    }
    .cart-item-qty-val {
        border: none;
        text-align: center;
        font-size: 12px;
        font-weight: 900;
        outline: none;
        width: 100%;
        color: #111827;
    }
    .cart-item-qty-hint {
        font-size: 9px;
        font-weight: 700;
        color: #9ca3af;
    }

    .cart-item-subtotal {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .cart-item-subtotal-label {
        font-size: 8px;
        font-weight: 800;
        color: #9ca3af;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
    .cart-item-subtotal-val {
        font-size: 13px;
        font-weight: 950;
        color: #111827;
    }

    .cart-item-delete {
        border: none;
        background: transparent;
        color: #9ca3af;
        cursor: pointer;
        padding: 6px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .15s;
    }
    .cart-item-delete:hover {
        color: var(--cf-red-main);
        background: #fef2f2;
    }
    .cart-item-delete svg {
        width: 16px;
        height: 16px;
    }

    /* Right Sidebar Summary */
    .cart-right {
        position: sticky;
        top: 80px;
    }
    .cart-summary-box {
        background: white;
        border: 1px solid var(--cf-border);
        border-radius: 14px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,.02);
        display: flex;
        flex-direction: column;
    }
    .cs-status-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f1f5f9;
    }
    .cs-disp-badge {
        background: #e9f9ee;
        color: #16813a;
        font-size: 11px;
        font-weight: 950;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid #cdeed8;
    }
    .cs-disp-count {
        font-size: 12px;
        font-weight: 800;
        color: #6b7280;
    }
    .cs-lines {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    .cs-line {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: #4b5563;
        font-weight: 800;
    }
    .cs-line span:last-child {
        color: #111827;
        font-weight: 900;
    }
    .cs-divider {
        height: 1px;
        background: #e2e8f0;
        margin: 4px 0 16px;
    }
    .cs-total-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 2px;
    }
    .cs-total-label {
        font-size: 13px;
        font-weight: 950;
        color: #111827;
    }
    .cs-total-val {
        font-size: 24px;
        font-weight: 1000;
        color: var(--cf-red-main);
        letter-spacing: -.02em;
    }
    .cs-total-note {
        font-size: 9px;
        font-weight: 800;
        color: #9ca3af;
        text-align: right;
        margin-bottom: 20px;
    }
    .cs-btn-continue {
        width: 100%;
        height: 44px;
        background: var(--cf-red-main);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 950;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: all .2s;
        box-shadow: 0 4px 12px rgba(204,0,0,.2);
        margin-bottom: 12px;
    }
    .cs-btn-continue:hover {
        background: var(--cf-red-hover);
        box-shadow: 0 6px 16px rgba(204,0,0,.3);
    }
    .cs-btn-empty {
        width: 100%;
        background: transparent;
        color: #9ca3af;
        border: none;
        font-size: 11px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        padding: 8px 0;
        transition: color .2s;
    }
    .cs-btn-empty:hover {
        color: #4b5563;
    }

    /* Stepper responsive adjustments */
    @media (max-width: 1024px) {
        .cart-page {
            grid-template-columns: 1fr;
        }
        .cart-right {
            position: static;
        }
    }

    @media (max-width: 768px) {
        .cart-item-row {
            grid-template-columns: 50px 1fr 1fr;
            gap: 12px;
            padding: 12px;
        }
        .cart-item-price-unit,
        .cart-item-subtotal {
            text-align: left;
            align-items: flex-start;
        }
        .cart-item-qty {
            grid-column: 2 / -1;
            flex-direction: row;
            justify-content: space-between;
            width: 100%;
        }
        .cart-item-delete {
            grid-column: 3;
            grid-row: 1;
        }
    }

    /* ─────────────────────────────────────────────
       NOTIFICACIONES Y MODALES PERSONALIZADOS B2B
       (Premium, sin usar alerts del navegador)
    ───────────────────────────────────────────── */
    #cf-toast-container {
        position: fixed;
        top: 24px;
        right: 24px;
        z-index: 999999;
        display: flex;
        flex-direction: column;
        gap: 12px;
        pointer-events: none;
    }

    .cf-toast {
        pointer-events: auto;
        display: flex;
        align-items: center;
        gap: 12px;
        background: white;
        border-left: 4px solid var(--cf-red-main);
        border-radius: 10px;
        padding: 14px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.02);
        min-width: 300px;
        max-width: 450px;
        transform: translateX(120%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cf-toast.show {
        transform: translateX(0);
        opacity: 1;
    }

    .cf-toast-success { border-left-color: #10b981; }
    .cf-toast-error { border-left-color: #ef4444; }
    .cf-toast-warning { border-left-color: #f59e0b; }
    .cf-toast-info { border-left-color: #3b82f6; }

    .cf-toast-icon {
        font-size: 18px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cf-toast-body {
        font-size: 13px;
        font-weight: 750;
        color: #1f2937;
        line-height: 1.4;
    }

    /* Modal de Confirmación y Alerta */
    .cf-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 9999999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .cf-modal-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .cf-modal-box {
        background: white;
        border-radius: 20px;
        padding: 32px 28px;
        max-width: 440px;
        width: 90%;
        box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
        text-align: center;
        transform: scale(0.92) translateY(10px);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .cf-modal-overlay.show .cf-modal-box {
        transform: scale(1) translateY(0);
    }

    .cf-modal-icon {
        font-size: 48px;
        margin-bottom: 16px;
        display: inline-block;
    }

    .cf-modal-title {
        font-size: 19px;
        font-weight: 950;
        color: #0f172a;
        margin: 0 0 10px 0;
    }

    .cf-modal-message {
        font-size: 14.5px;
        font-weight: 700;
        color: #475569;
        line-height: 1.5;
        margin: 0 0 26px 0;
    }

    .cf-modal-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    .cf-modal-btn {
        border: none;
        border-radius: 12px;
        height: 44px;
        padding: 0 24px;
        font-weight: 950;
        font-size: 13.5px;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 120px;
        outline: none;
    }

    .cf-modal-btn-cancel {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
    }

    .cf-modal-btn-cancel:hover {
        background: #e2e8f0;
        color: #0f172a;
    }

    .cf-modal-btn-ok {
        background: var(--cf-red-main);
        color: white;
        box-shadow: 0 4px 12px rgba(204,0,0,0.18);
    }

    .cf-modal-btn-ok:hover {
        background: var(--cf-red-hover);
        box-shadow: 0 6px 18px rgba(204,0,0,0.28);
        transform: translateY(-1px);
    }

    .cf-modal-btn-ok:active {
        transform: translateY(0);
    }


    /* ── PANEL ADMINISTRATIVO B2B PREMIUM DESIGN ── */
    .admin-page-container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 32px 24px;
        font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .admin-header-row {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-radius: 20px;
        padding: 28px 36px;
        margin-bottom: 32px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.05);
        color: white;
    }

    .admin-header-title {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .admin-main-icon {
        width: 48px;
        height: 48px;
        color: #f59e0b;
        background: rgba(245, 158, 11, 0.1);
        padding: 10px;
        border-radius: 12px;
        border: 1px solid rgba(245, 158, 11, 0.2);
    }

    .admin-header-title h1 {
        font-size: 26px;
        font-weight: 800;
        margin: 0 0 4px 0;
        letter-spacing: -0.02em;
        color: #ffffff;
    }

    .admin-header-title p {
        font-size: 14px;
        color: #94a3b8;
        margin: 0;
    }

    .admin-cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
        margin-bottom: 32px;
    }

    .admin-stat-card {
        background: white;
        border-radius: 20px;
        padding: 24px 28px;
        display: flex;
        align-items: center;
        gap: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        border: 1px solid #f1f5f9;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        overflow: hidden;
    }

    .admin-stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: transparent;
        transition: all 0.3s ease;
    }

    .admin-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

    .admin-stat-card.card-gold::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
    .admin-stat-card.card-blue::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
    .admin-stat-card.card-green::before { background: linear-gradient(90deg, #10b981, #047857); }

    .admin-stat-card.card-gold { border-left: 4px solid #f59e0b; }
    .admin-stat-card.card-blue { border-left: 4px solid #3b82f6; }
    .admin-stat-card.card-green { border-left: 4px solid #10b981; }

    .card-icon {
        font-size: 32px;
        width: 64px;
        height: 64px;
        background: #f8fafc;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        transition: all 0.3s ease;
    }

    .admin-stat-card:hover .card-icon {
        transform: scale(1.05);
    }

    .card-info {
        flex: 1;
    }

    .card-info h3 {
        font-size: 13.5px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin: 0 0 6px 0;
    }

    .card-info strong {
        font-size: 24px;
        font-weight: 1000;
        color: #0f172a;
        letter-spacing: -0.03em;
        display: block;
        margin-bottom: 4px;
    }

    .card-info p {
        font-size: 12px;
        color: #94a3b8;
        margin: 0;
        font-weight: 700;
    }

    .admin-layout-row {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 32px;
        align-items: start;
    }

    @media (max-width: 1024px) {
        .admin-layout-row {
            grid-template-columns: 1fr;
        }
    }

    .admin-section-card {
        background: white;
        border-radius: 20px;
        padding: 28px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        border: 1px solid #f1f5f9;
    }

    .admin-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f1f5f9;
    }

    .admin-card-header h2 {
        font-size: 18px;
        font-weight: 850;
        color: #0f172a;
        margin: 0;
        letter-spacing: -0.02em;
    }

    .admin-badge-count {
        background: #f1f5f9;
        color: #475569;
        font-size: 12px;
        font-weight: 900;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid #e2e8f0;
    }

    .admin-table-responsive {
        width: 100%;
        overflow-x: auto;
        border-radius: 12px;
        border: 1px solid #f1f5f9;
    }

    .admin-data-table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
        font-size: 14px;
    }

    .admin-data-table th {
        background: #f8fafc;
        color: #475569;
        font-weight: 900;
        padding: 16px 20px;
        border-bottom: 2px solid #f1f5f9;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 0.05em;
    }

    .admin-data-table td {
        padding: 18px 20px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        vertical-align: middle;
    }

    .admin-data-table tbody tr {
        transition: background-color 0.2s ease;
    }

    .admin-data-table tbody tr:hover {
        background-color: #f8fafc;
    }

    .admin-data-table tbody tr:last-child td {
        border-bottom: none;
    }

    .admin-info-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .admin-info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-bottom: 12px;
        border-bottom: 1px dashed #f1f5f9;
    }

    .admin-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .admin-info-item .label {
        font-size: 11px;
        font-weight: 900;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .admin-info-item strong {
        font-size: 14.5px;
        font-weight: 850;
        color: #0f172a;
    }

    .admin-info-item span {
        font-size: 14px;
        font-weight: 700;
        color: #334155;
    }

    .admin-state-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 900;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        line-height: 1;
        width: fit-content;
    }

    .admin-state-badge.state-draft {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
    }

    .admin-state-badge.state-sale {
        background: #dcfce7;
        color: #15803d;
        border: 1px solid #bbf7d0;
    }

    .admin-state-badge.state-done {
        background: #e0f2fe;
        color: #0369a1;
        border: 1px solid #bae6fd;
    }

    .admin-state-badge.state-cancel {
        background: #fee2e2;
        color: #b91c1c;
        border: 1px solid #fecaca;
    }

    /* Utilerías */
    .text-right { text-align: right !important; }
    .text-center { text-align: center !important; }
    .text-red { color: #cc0000 !important; }
    .text-green { color: #15803d !important; }
    .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .text-muted { color: #64748b !important; }

