/* Zona: Estilos Base y Variables (base.css) — Variables de color, tipografía, estructura general y componentes globales */

:root {
            --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
            --ama: #FDC417;
            --nar: #D35914;
            --neg: #1D1D1B;
            --gri: #323231;
            --bla: #FFF;
            --gcl: #C5C5C5;
            --npu: #000;
            --gw: linear-gradient(135deg, #FFBD3B 0%, #FA6400 100%);
            --gd: linear-gradient(135deg, #1D1D1B, #323231)
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box
        }

        html {
            scroll-behavior: auto;
            overflow-y: scroll;
            scrollbar-gutter: stable;
            overflow-anchor: none;
        }

        section,
        .hero-wrapper {
            scroll-margin-top: 85px;
        }

        body {
            font-family: var(--font-main);
            color: var(--neg);
            background: #fff;
            line-height: 1.6;
            overflow-x: hidden;
            overflow-anchor: none;
        }

        h1,
        h2,
        h3 {
            font-weight: 800;
            font-style: italic;
            text-transform: uppercase;
            line-height: 1.1
        }

        h1 {
            font-size: clamp(2rem, 5vw, 3.4rem)
        }

        h2 {
            font-size: clamp(1.5rem, 3vw, 2.3rem)
        }

        p {
            font-style: normal
        }

.text-italic {
            font-style: italic
        }

        .container {
            width: min(1180px, 92%);
            margin: 0 auto
        }

        section {
            padding: clamp(3rem, 7vw, 6rem) 0
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .9rem 1.8rem;
            border: none;
            border-radius: 999px;
            font-family: var(--font-main);
            font-weight: 800;
            font-style: italic;
            text-transform: uppercase;
            font-size: .8rem;
            cursor: pointer;
            transition: .3s;
            text-decoration: none
        }

        .btn-w {
            background: var(--gw);
            color: var(--neg)
        }

        .btn-w:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(211, 89, 20, .45)
        }

        .btn-d {
            background: var(--neg);
            color: #fff
        }

        .btn-d:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, .35)
        }

        .btn-o {
            background: transparent;
            border: 2px solid var(--neg);
            color: var(--neg)
        }

        .btn-o:hover {
            background: var(--neg);
            color: #fff
        }

        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 1000;
            background: #000;
            border-bottom: 2px solid rgba(253, 196, 23, .18);
            transition: box-shadow .2s ease, border-color .2s ease;
        }

        .header-spacer {
            height: 122px;
            width: 100%;
            display: block;
            flex-shrink: 0;
        }

        header.header-scrolled {
            box-shadow: 0 8px 25px rgba(0, 0, 0, .75);
            border-bottom-color: rgba(253, 196, 23, .35);
        }

.nav-brand-row {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 100%;
            height: 70px;
            padding: .5rem 1.8rem;
            box-sizing: border-box;
            transition: height .18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        header.header-scrolled .nav-brand-row {
            height: 50px;
        }

.nav-brand-row .brand {
            display: inline-flex;
            align-items: center;
            gap: .85rem;
            text-decoration: none;
            cursor: pointer;
            white-space: nowrap;
        }

.nav-brand-row .brand-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            pointer-events: auto;
            transition: opacity .15s ease-out, transform .18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        header.header-scrolled .nav-brand-row .brand-center {
            opacity: 0;
            transform: translate(-54%, -50%) scale(0.92);
            pointer-events: none;
        }

.nav-brand-row .brand-left {
            position: absolute;
            top: 50%;
            left: 1.5rem;
            transform: translate(-8px, -50%) scale(0.82);
            opacity: 0;
            pointer-events: none;
            transition: opacity .18s ease-out, transform .18s cubic-bezier(0.16, 1, 0.3, 1);
        }

        header.header-scrolled .nav-brand-row .brand-left {
            opacity: 1;
            transform: translate(0, -50%) scale(0.84);
            pointer-events: auto;
        }

        @media (max-width: 680px) {
            .nav-brand-row .brand-left {
                left: 0.8rem;
            }

            header.header-scrolled .nav-brand-row .brand-left {
                transform: translate(0, -50%) scale(0.76);
            }
        }

.brand-logo-img {
            height: 48px;
            max-height: 52px;
            width: auto;
            max-width: min(300px, 60vw);
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 7px rgba(255, 255, 255, 0.45));
            transition: filter .2s ease;
        }

.brand-escudo-img {
            height: 48px;
            max-height: 52px;
            width: auto;
            max-width: 48px;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 7px rgba(255, 255, 255, 0.45));
            transition: filter .2s ease;
        }

        .brand:hover .brand-logo-img,
        .brand:hover .brand-escudo-img {
            filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 10px rgba(253, 196, 23, 0.5));
        }

.header-right-controls {
            position: absolute;
            right: 1.5rem;
            top: 50%;
            transform: translateY(-50%);
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            z-index: 5;
        }

.theme-toggle-btn {
            background: rgba(255, 255, 255, .08);
            border: 1px solid rgba(253, 196, 23, .42);
            color: #fff;
            height: 34px;
            padding: 0 .75rem;
            border-radius: 999px;
            font-family: Poppins, sans-serif;
            font-size: .74rem;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .35rem;
            transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
        }

        .theme-toggle-btn:hover {
            background: var(--ama);
            border-color: var(--ama);
            color: #111;
            transform: translateY(-1px);
        }

.scrolled-header-cart {
            background: rgba(253, 196, 23, .12);
            border: 1px solid var(--ama);
            color: #fff;
            padding: .32rem .85rem;
            border-radius: 999px;
            font-family: Poppins, sans-serif;
            font-size: .75rem;
            font-weight: 700;
            cursor: pointer;
            display: none;
            align-items: center;
            gap: .4rem;
            transition: background .18s ease, color .18s ease;
        }

        .scrolled-header-cart:hover {
            background: var(--ama);
            color: #000;
        }

        header.header-scrolled .scrolled-header-cart {
            display: inline-flex;
        }

        @media (max-width: 680px) {
            .header-right-controls {
                right: 0.8rem;
                gap: .35rem;
            }

            .theme-toggle-btn {
                width: 34px;
                padding: 0;
            }

            .theme-toggle-label {
                display: none;
            }

            .scrolled-header-cart {
                padding: .28rem .6rem;
                font-size: .7rem;
            }
        }

.modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .75);
            z-index: 10000; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem
        }

                .modal.open,
        .modal.active {
            display: flex !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }

        .modal.open {
            display: flex
        }

        .modal-box {
            background: #fff;
            border-radius: 20px;
            padding: 2rem;
            width: min(560px, 100%);
            max-height: 90vh;
            overflow: auto;
            position: relative
        }

        .modal-box h3 {
            margin-bottom: 1rem
        }

        .modal-box input,
        .modal-box select,
        .modal-box textarea {
            width: 100%;
            padding: .8rem;
            border: 1.5px solid #ddd;
            border-radius: 10px;
            margin-bottom: .8rem;
            font-family: Poppins;
            font-style: normal;
            font-size: .85rem
        }

        .modal-box input:focus,
        .modal-box textarea:focus {
            outline: none;
            border-color: var(--nar)
        }

        .close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gri)
        }

        .dash-row {
            display: flex;
            justify-content: space-between;
            padding: .7rem 0;
            border-bottom: 1px solid #eee;
            font-size: .85rem;
            font-style: normal
        }

        footer {
            background: #0c0c0b;
            color: var(--gcl);
            padding: 3.5rem 0 1.5rem;
            font-size: .83rem;
            border-top: 1px solid rgba(253, 196, 23, 0.2);
            position: relative;
            z-index: 10;
        }

        footer .fg {
            display: grid;
            grid-template-columns: 1.15fr 0.75fr 2.1fr;
            gap: 2.2rem;
            margin-bottom: 2.5rem;
            align-items: start;
        }

        @media (max-width: 1024px) {
            footer .fg {
                grid-template-columns: 1fr 1fr;
                gap: 1.8rem;
            }

            .footer-col-maps {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 640px) {
            footer .fg {
                grid-template-columns: 1fr;
                gap: 1.8rem;
            }
        }

        footer h5 {
            color: var(--ama);
            text-transform: uppercase;
            font-style: normal;
            font-weight: 800;
            margin-bottom: .9rem;
            font-size: .85rem;
            letter-spacing: .5px;
            display: flex;
            align-items: center;
            gap: .4rem;
        }

        footer a {
            color: var(--gcl);
            text-decoration: none;
            display: block;
            padding: .25rem 0;
            transition: color .2s ease;
        }

        footer a:hover {
            color: var(--ama);
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: .75rem;
            margin-bottom: .85rem;
        }

        .footer-logo-img {
            height: 38px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 8px rgba(253, 196, 23, 0.5));
        }

        .footer-contact-pills {
            display: flex;
            flex-direction: column;
            gap: .45rem;
            margin-top: .85rem;
        }

        .footer-link-pill {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            color: #d1d5db !important;
            font-size: .78rem;
            padding: .3rem .6rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            width: fit-content;
            transition: all .2s ease;
        }

        .footer-link-pill:hover {
            background: rgba(253, 196, 23, 0.12);
            border-color: rgba(253, 196, 23, 0.35);
            color: var(--ama) !important;
            transform: translateX(3px);
        }

        .footer-social-wrapper {
            margin-top: .85rem;
            display: flex;
            flex-direction: column;
            gap: .35rem;
        }

        .footer-social-label {
            font-size: .72rem;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: .05em;
            color: var(--ama);
            display: flex;
            align-items: center;
            gap: .35rem;
        }

        .footer-social-chips {
            display: flex;
            flex-wrap: wrap;
            gap: .45rem;
        }

        .footer-social-pill {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            color: #d1d5db !important;
            font-size: .78rem;
            font-weight: 600;
            padding: .3rem .65rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            transition: all .2s ease;
            text-decoration: none;
            cursor: pointer;
        }

        .footer-social-pill:hover {
            background: rgba(253, 196, 23, 0.15);
            border-color: var(--ama);
            color: var(--ama) !important;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }

.unifortex-toast {
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #1d1d1b;
            color: #fff;
            border: 1px solid var(--ama);
            padding: .75rem 1.4rem;
            border-radius: 999px;
            font-size: .82rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: .6rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
            z-index: 1100;
            opacity: 0;
            transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
        }

        .unifortex-toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

.btn-emoji, .nav-ico, .novedad-item-ico, .promo-chip, [class*="badge"], [class*="chip"] {
            font-style: normal !important;
            font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif !important;
            display: inline-block;
            vertical-align: middle;
        }

/* Tema Oscuro Global (Tienda Pública) */
html[data-theme="dark"] body,
html[data-theme="dark"] .views-viewport,
html[data-theme="dark"] .hero-wrapper,
html[data-theme="dark"] .inicio-promos-section,
html[data-theme="dark"] .inicio-star-section,
html[data-theme="dark"] .ofertas-view-section {
    background: #0f1115 !important;
    color: #e5e7eb;
}

html[data-theme="dark"] #config,
html[data-theme="dark"] #diseno,
html[data-theme="dark"] #orden-compra,
html[data-theme="dark"] #cotiza {
    background: #0f1115 !important;
    color: #e5e7eb !important;
}

html[data-theme="dark"] .prod-card-moto,
html[data-theme="dark"] .diseno-panel,
html[data-theme="dark"] .oc-card,
html[data-theme="dark"] .modal-box {
    background: #171a21 !important;
    border-color: #2b313d !important;
    color: #e5e7eb !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .card-moto-media {
    background: linear-gradient(135deg, #212630, #161920) !important;
}

html[data-theme="dark"] .card-moto-title,
html[data-theme="dark"] .card-moto-price b,
html[data-theme="dark"] .diseno-card-title,
html[data-theme="dark"] .modal-box h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .card-moto-specs {
    background: #111318 !important;
    border-color: #262b36 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .card-moto-specs span,
html[data-theme="dark"] .card-moto-price span,
html[data-theme="dark"] .catalog-page-info {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .card-moto-bulk,
html[data-theme="dark"] .card-moto-price .card-moto-from {
    color: #fbbf24 !important;
}

html[data-theme="dark"] .btn-moto-details {
    background: #232833 !important;
    border-color: #3a4252 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .btn-moto-cart {
    background: #232833 !important;
    border-color: #3a4252 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .catalog-pagination {
    border-top-color: #262b36 !important;
}

html[data-theme="dark"] .catalog-page-btn {
    background: #171a21 !important;
    border-color: #2e3440 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .catalog-page-btn.active {
    background: var(--gw) !important;
    color: #111 !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .diseno-step-pill,
html[data-theme="dark"] .diseno-radio-card,
html[data-theme="dark"] .diseno-upload-box,
html[data-theme="dark"] .uploaded-logo-card,
html[data-theme="dark"] .oc-tipo-selector {
    background: #12151b !important;
    border-color: #2b313d !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .diseno-step-pill .step-num {
    background: #262c38;
    color: #cbd5e1;
}

html[data-theme="dark"] .diseno-step-pill.active,
html[data-theme="dark"] .diseno-radio-card.selected {
    background: rgba(253, 196, 23, .14) !important;
    border-color: var(--ama) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .diseno-step-hint,
html[data-theme="dark"] .diseno-card-sub,
html[data-theme="dark"] .opt-label,
html[data-theme="dark"] .oc-field-label,
html[data-theme="dark"] .oc-table th,
html[data-theme="dark"] .oc-tipo-btn {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .oc-tipo-btn.active {
    background: #232834 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .oc-tipo-icon {
    background: #1e232d !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .diseno-input,
html[data-theme="dark"] .diseno-textarea,
html[data-theme="dark"] .oc-input,
html[data-theme="dark"] .modal-box input,
html[data-theme="dark"] .modal-box select,
html[data-theme="dark"] .modal-box textarea {
    background: #0f1218 !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .oc-table td {
    border-bottom-color: #262b36 !important;
    color: #e5e7eb !important;
}

html[data-theme="dark"] .diseno-wizard-nav {
    border-top-color: #262b36 !important;
}

html[data-theme="dark"] .diseno-wizard-alert {
    background: #3b181b !important;
    border-color: #7f1d1d !important;
    color: #fecaca !important;
}

html[data-theme="dark"] .btn-o {
    border-color: #64748b !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] #uploadedLogoFilename,
html[data-theme="dark"] #disenoLogoFilename {
    color: #f8fafc !important;
}

html[data-theme="dark"] #uploadedLogoStatus,
html[data-theme="dark"] #disenoLogoFilesize {
    color: #94a3b8 !important;
}
