/* ============================================================
   Bericenter — Agregados al header (cuenta + cart) + fix footer
   Solo lo nuevo. NO toca tipografia/colores existentes del header.
   Aplica design-taste para que armonice con la marca (rojo bericenter).
   ============================================================ */

/* ---------- CART + CHECKOUT PADDING FIX ---------- */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
body.woocommerce-cart main,
body.woocommerce-checkout main {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
    padding-block: 36px;
}
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 900px) {
    body.woocommerce-cart .woocommerce {
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
        align-items: start;
    }
}
body.woocommerce-cart .woocommerce > .cart-collaterals {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
body.woocommerce-cart table.cart,
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-checkout .woocommerce-checkout {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    padding: 24px 28px !important;
    box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 12px 28px -10px rgba(15,23,42,.08);
}
body.woocommerce-cart .cart-collaterals .cart_totals h2,
body.woocommerce-checkout #order_review h3 {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #525c69;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f5;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .cart_totals a[href*="checkout"],
body.woocommerce-cart a.checkout-button,
body.woocommerce-checkout #place_order {
    display: inline-block !important;
    background: linear-gradient(180deg, #ff040e, #d9040d) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 13px 28px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 18px -4px rgba(255,4,14,.28);
    text-transform: none !important;
    letter-spacing: 0;
    text-decoration: none !important;
}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    text-align: center;
    margin-top: 18px;
}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-checkout #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(255,4,14,.38);
}

/* ---------- FOOTER (rediseno 4-columnas + legal + pagos + RUC) ---------- */
footer.site-footer .site-footer-row-container.site-info,
footer.site-footer .footer-widget-area.site-info,
footer.site-footer .site-info-inner,
footer#colophon {
    background: #005aa0 !important;
    color: #fff !important;
}
footer#colophon .site-footer-row-container-inner,
footer#colophon .site-container,
footer#colophon .footer-widget-area-inner,
footer#colophon .footer-html,
footer#colophon .footer-html-inner {
    background: transparent !important;
}


/* wpautop wraps grid divs in <p> — make them invisible to grid layout */
footer#colophon .footer-html-inner > p {
    display: contents;
}

/* 4-column grid */
.bc-site-footer {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
    gap: 28px;
    padding-block: 48px 32px;
    max-width: 1200px;
    margin-inline: auto;
}
.bc-site-footer h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 6px;
}
.bc-site-footer h4 {
    color: rgba(255,255,255,.55);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 14px;
}
.bc-site-footer p,
.bc-site-footer li {
    font-size: .835rem;
    line-height: 1.65;
    color: rgba(255,255,255,.72);
    margin: 0;
}
.bc-site-footer a {
    color: rgba(255,255,255,.85) !important;
    text-decoration: none !important;
    transition: color .18s ease;
}
.bc-site-footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
.bc-site-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bc-site-footer-tagline {
    color: rgba(255,255,255,.48) !important;
    font-size: .78rem !important;
    margin-bottom: 10px !important;
}
.bc-site-footer-ruc {
    margin-top: 10px !important;
    font-size: .75rem !important;
    color: rgba(255,255,255,.45) !important;
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
}
.bc-site-footer-hours {
    font-size: .76rem !important;
    color: rgba(255,255,255,.45) !important;
    margin-top: 4px !important;
}


/* Bottom bar */
.bc-site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-block: 14px;
    text-align: center;
    font-size: .72rem;
    color: rgba(255,255,255,.38);
    max-width: 1200px;
    margin-inline: auto;
}

/* Mobile collapse */
@media (max-width: 800px) {
    .bc-site-footer {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
        padding-block: 36px 24px;
        padding-inline: 16px;
    }
    .bc-site-footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .bc-site-footer {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .bc-site-footer-bottom { padding-inline: 14px; }
}

/* Cuenta del usuario en main_right del header */
.header-html .bc-header-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1;
    white-space: nowrap;
}
body.logged-in [data-section="kadence_customizer_header_button"] {
    display: none !important;
}
.bc-header-account a {
    text-decoration: none !important;
    transition: color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.header-html .bc-header-account .bc-acct-link,
.bc-header-account .bc-acct-link {
    color: #1a1a2e !important;
    font-weight: 600 !important;
    letter-spacing: -.005em;
    padding: 6px 2px !important;
    border-bottom: 1px solid transparent;
    text-decoration: none !important;
    background: transparent !important;
}
.bc-header-account .bc-acct-link:hover {
    color: #ff040e;
    border-bottom-color: rgba(255, 4, 14, .35);
}
.bc-header-account .bc-acct-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #1a1a2e;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 13px;
}
.bc-header-account .bc-acct-cta:hover {
    background: #1a1a2e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgba(26, 26, 46, .28);
}
.bc-header-account .bc-acct-cta:active {
    transform: translateY(0);
}
.header-html .bc-header-account .bc-acct-chip,
.bc-header-account .bc-acct-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 14px 7px 12px !important;
    border-radius: 999px !important;
    background: #f6f8fb !important;
    border: 1px solid #e4e8ee !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
    line-height: 1 !important;
}
.bc-header-account .bc-acct-chip:hover {
    background: #fff;
    border-color: rgba(255, 4, 14, .3);
    color: #ff040e;
}
.bc-header-account .bc-acct-chip-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #2dd4bf !important;
    display: inline-block !important;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, .6) !important;
    animation: bc-acct-pulse 2.4s ease-out infinite !important;
    flex-shrink: 0 !important;
}
@keyframes bc-acct-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.header-cart-wrap .header-cart-button { color: #1a1a2e; }
.header-cart-wrap .header-cart-button:hover { color: #ff040e; }
.header-cart-wrap .header-cart-total {
    background: #ff040e;
    color: #fff;
    font-family: 'Geist Mono', 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: -.02em;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 6px rgba(255, 4, 14, .28);
}
.site-mobile-header-wrap .bc-header-account,
.popup-mobile-popup-content .bc-header-account,
.mobile-html .bc-header-account {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 16px 18px !important;
    border-top: 1px solid #e4e8ee;
    margin-top: 16px;
}
.site-mobile-header-wrap .bc-header-account a,
.popup-mobile-popup-content .bc-header-account a,
.mobile-html .bc-header-account a {
    text-align: center;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 13px 18px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #1a1a2e !important;
    text-decoration: none !important;
    box-sizing: border-box;
}
.site-mobile-header-wrap .bc-header-account .bc-acct-link,
.popup-mobile-popup-content .bc-header-account .bc-acct-link,
.mobile-html .bc-header-account .bc-acct-link {
    background: #f6f8fb !important;
    border: 1px solid #e4e8ee !important;
}
.site-mobile-header-wrap .bc-header-account .bc-acct-cta,
.popup-mobile-popup-content .bc-header-account .bc-acct-cta,
.mobile-html .bc-header-account .bc-acct-cta {
    background: #ff040e !important;
    color: #fff !important;
    border: 1.5px solid #ff040e !important;
}
.site-mobile-header-wrap .bc-header-account .bc-acct-chip,
.popup-mobile-popup-content .bc-header-account .bc-acct-chip,
.mobile-html .bc-header-account .bc-acct-chip {
    background: #f6f8fb !important;
    border: 1px solid #e4e8ee !important;
    gap: 8px !important;
}
.header-html-inner {
    display: inline-block;
    margin-right: 0;
    margin-left: 4px;
}
.site-header-main-section-right {
    justify-content: flex-end !important;
    align-items: center !important;
}
.site-header-main-section-right .header-html,
.site-header-main-section-right .header-html-inner,
.site-header-main-section-right .bc-header-account {
    display: inline-flex;
    align-items: center;
}
.site-header-main-section-right .site-header-item + .site-header-item {
    margin-left: 0;
}
.site-header-main-section-right .header-navigation .menu > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14.5px;
    letter-spacing: -.005em;
}
.site-header-main-section-right .header-navigation .menu,
.site-header-main-section-right .menu,
nav.main-navigation ul.menu {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}
.button.header-button,
.header-button-wrap .button {
    white-space: nowrap !important;
    text-transform: none !important;
}
.site-header-main-section-right .header-cart-wrap { margin-left: 4px; }
.site-header-main-section-right .header-cart-wrap .header-cart-button { padding: 6px 8px; }
@media (max-width: 1024px) {
    .header-html .bc-header-account .bc-acct-link,
    .header-html .bc-header-account .bc-acct-cta { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .bc-header-account .bc-acct-chip-dot { animation: none !important; }
    .bc-header-account *,
    .bc-header-account *::before,
    .bc-header-account *::after { transition-duration: .01ms !important; }
}

/* === Hide floating CALL/MAP buttons (#rpb) on carrito + checkout + my-account === */
body.woocommerce-cart #rpb,
body.woocommerce-cart #rpb_spacer,
body.woocommerce-checkout #rpb,
body.woocommerce-checkout #rpb_spacer,
body.woocommerce-account #rpb,
body.woocommerce-account #rpb_spacer,
body.woocommerce-order-received #rpb,
body.woocommerce-order-received #rpb_spacer { display:none !important; visibility:hidden !important; }

/* === Cart "TOTALES DEL CARRITO" header readable, button visible === */
body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart .cart_totals {
    overflow: visible !important;
    min-width: 280px !important;
}
body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart .cart-collaterals h2 {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 13px !important;
}
body.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 18px !important;
    padding: 0 !important;
    overflow: visible !important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
