/*!
 * Patch #117 Latyon · Anti-Frankenstein Global Override · 2026-05-12
 * Pivote estratégico Open-Door: armonizar Bootstrap legacy + 6Valley defaults
 * a Latyon Design System (BrandBook 2025). Aplicado AL FINAL del cascade CSS
 * para garantizar precedencia, con !important sobre Bootstrap.
 *
 * NO TARGETING (intencional · regla #9 premium estandar Latyon):
 *  - .fp-nav-item  (v22 cápsula glass · S1.1 cerrado tras 22 iteraciones)
 *  - .latyon-cart-badge  (WS-2 F2 badge cart broadcastable)
 *  - .liquid-glass  (Zen Breathe iOS 18 port)
 *  - .zen-input, .fp-search  (inputs custom Latyon)
 *  - .latyon-warm-cta  (CTA warm gradient Sculpted del Cart v15.1)
 */

/* ═══════════════════════════════════════════════════════════════════════
   1. BOTONES PRIMARIOS — Bootstrap legacy + 6Valley defaults
   ─────────────────────────────────────────────────────────────────────── */
.btn-primary,
.btn--primary,
button.btn-primary,
.btn.btn-success,
input[type="submit"]:not(.btn-secondary):not(.btn-outline):not(.btn-link),
button[type="submit"]:not(.btn-secondary):not(.btn-outline):not(.btn-link):not(.fp-nav-item):not(.latyon-warm-cta):not(.liquid-glass) {
    background: #EAA03F !important;
    background-color: #EAA03F !important;
    background-image: none !important;
    color: #15151A !important;
    border: none !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px rgba(21, 21, 26, 0.08) !important;
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}

.btn-primary:hover,
.btn--primary:hover,
button.btn-primary:hover,
.btn.btn-success:hover {
    background: #d99238 !important;
    background-color: #d99238 !important;
    color: #15151A !important;
    transform: translateY(-1px);
}

.btn-primary:focus,
.btn-primary:active,
.btn.btn-success:focus,
.btn.btn-success:active {
    box-shadow: 0 0 0 3px rgba(234, 160, 63, 0.25) !important;
    outline: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   2. INPUTS — radius 1rem · focus ring warm sutil · bg blanco puro
   ─────────────────────────────────────────────────────────────────────── */
.form-control,
.form-select,
input[type="text"]:not(.fp-search):not(.zen-input),
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"]:not(.fp-search):not(.zen-input),
textarea.form-control,
select.form-control {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E5EA !important;
    border-radius: 1rem !important;
    box-shadow: none !important;
    color: #15151A !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.form-control:focus,
.form-select:focus,
input[type="text"]:not(.fp-search):not(.zen-input):focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:not(.fp-search):not(.zen-input):focus,
textarea.form-control:focus,
select.form-control:focus {
    border-color: #EAA03F !important;
    box-shadow: 0 0 0 3px rgba(234, 160, 63, 0.18) !important;
    outline: none !important;
    background: #FFFFFF !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   3. CARDS — radius 1rem · sombras sutiles · sin sombras pesadas 6Valley
   ─────────────────────────────────────────────────────────────────────── */
.card,
.product-card,
.shop-card,
.order-card,
.address-card,
.checkout-card,
.cart-card {
    border-radius: 1rem !important;
    box-shadow: 0 1px 3px rgba(21, 21, 26, 0.06), 0 1px 2px rgba(21, 21, 26, 0.04) !important;
    border: 1px solid rgba(21, 21, 26, 0.06) !important;
}

.card .card-header,
.card .card-footer {
    border-color: rgba(21, 21, 26, 0.06) !important;
    background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   4. BOTTOM NAV LEGACY 6VALLEY (NO afecta v22 .fp-nav-item Latyon)
   ─────────────────────────────────────────────────────────────────────── */
.footer-fixed-nav .nav-link.active,
.footer-fixed-nav .nav-item.active,
.app-bottom-nav .nav-link.active,
.app-bottom-nav .nav-item.active,
.bottom-fixed-menu .active,
.fixed-bottom-bar .nav-link.active,
.navbar-bottom .nav-link.active {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #EAA03F !important;
    font-weight: 700 !important;
}

.footer-fixed-nav .nav-link.active::before,
.footer-fixed-nav .nav-link.active::after,
.app-bottom-nav .nav-link.active::before,
.app-bottom-nav .nav-link.active::after,
.bottom-fixed-menu .active::before,
.bottom-fixed-menu .active::after,
.fixed-bottom-bar .nav-link.active::before,
.fixed-bottom-bar .nav-link.active::after,
.navbar-bottom .nav-link.active::before,
.navbar-bottom .nav-link.active::after {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.footer-fixed-nav .nav-link.active i,
.footer-fixed-nav .nav-link.active svg,
.app-bottom-nav .nav-link.active i,
.app-bottom-nav .nav-link.active svg,
.bottom-fixed-menu .active i,
.bottom-fixed-menu .active svg,
.fixed-bottom-bar .nav-link.active i,
.fixed-bottom-bar .nav-link.active svg {
    color: #EAA03F !important;
    fill: #EAA03F !important;
    stroke: #EAA03F !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   5. DEFENSAS ADICIONALES — Bootstrap residual shadow noise
   ─────────────────────────────────────────────────────────────────────── */
.shadow-lg, .shadow-xl {
    box-shadow: 0 4px 12px rgba(21, 21, 26, 0.08) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   Patch #144B Latyon · 2026-05-13 · CODE RED · CIRUGÍA ESTÉTICA GLOBAL
   ─────────────────────────────────────────────────────────────────────
   CEO validó #144A en Xiaomi · reportó Frankenstein UI.
   Aplicamos limpieza absoluta GLOBAL · no solo /conversational.
   ─────────────────────────────────────────────────────────────────────

   1. MUERTE BARRA AZUL TURBO PROGRESS · NO arruina UX nativa
   2. MUERTE BOTTOM-NAV v22 GLOBAL · gestural-only mode total
   ═══════════════════════════════════════════════════════════════════════ */

.turbo-progress-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
}

#latyon-bottom-nav-permanent,
nav.fp-nav-container,
.fp-nav-container {
    display: none !important;
    visibility: hidden !important;
}

/* Recuperar el padding-bottom que el bottom-nav reservaba en /vendors y resto */
body { padding-bottom: 0 !important; }
