/*
Theme Name: Modo Bravo
Theme URI: https://modobravo.com/
Author: Modo Bravo
Description: Tema premium para soluciones de vending en Argentina, compatible con WooCommerce.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: modo-bravo
*/

:root {
  --mb-ink: #090a0b;
  --mb-ink-soft: #131517;
  --mb-panel: #181b1e;
  --mb-paper: #f4f1ea;
  --mb-white: #fff;
  --mb-muted: #a8adb2;
  --mb-orange: #ff6a00;
  --mb-orange-bright: #ff8a1f;
  --mb-line: rgba(255, 255, 255, .14);
  --mb-radius: 22px;
  --mb-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  --mb-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mb-ink);
  color: var(--mb-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.mb-container { width: min(calc(100% - 40px), var(--mb-width)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 12px; left: 12px; z-index: 9999; width: auto; height: auto; padding: 12px 16px; clip: auto; background: var(--mb-white); color: var(--mb-ink); }

/* Header */
.mb-site-header { position: fixed; inset: 0 0 auto; z-index: 1000; transition: background .25s ease, box-shadow .25s ease; }
.mb-site-header.is-scrolled { background: rgba(9, 10, 11, .9); box-shadow: 0 10px 40px rgba(0,0,0,.25); backdrop-filter: blur(18px); }
.mb-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.mb-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.mb-brand-mark { width: 13px; height: 29px; display: inline-block; border-radius: 2px; background: var(--mb-orange); transform: skew(-15deg); box-shadow: 12px 0 0 rgba(255,106,0,.28); }
.mb-brand em { color: var(--mb-orange); font-style: normal; }
.mb-nav { display: flex; align-items: center; gap: 28px; }
.mb-nav ul { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.mb-nav a { position: relative; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; }
.mb-nav ul a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--mb-orange); transition: width .2s ease; }
.mb-nav ul a:hover::after, .mb-nav .current-menu-item a::after { width: 100%; }
.mb-menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--mb-line); border-radius: 50%; background: rgba(0,0,0,.3); color: #fff; cursor: pointer; }
.mb-menu-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .2s ease; }

/* Buttons */
.mb-button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid var(--mb-orange) !important; border-radius: 999px !important; background: var(--mb-orange) !important; color: #fff !important; font-size: 14px; font-weight: 850 !important; letter-spacing: .01em; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.mb-button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:hover { transform: translateY(-2px); background: var(--mb-orange-bright) !important; box-shadow: 0 12px 28px rgba(255,106,0,.25); }
.mb-button--ghost { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.4) !important; }
.mb-button--ghost:hover { background: rgba(255,255,255,.12) !important; box-shadow: none; }
.mb-link { display: inline-flex; align-items: center; gap: 9px; color: var(--mb-orange-bright); font-weight: 800; }
.mb-link::after { content: "→"; transition: transform .2s ease; }
.mb-link:hover::after { transform: translateX(4px); }

/* Hero carousel */
.mb-hero { position: relative; min-height: 760px; height: min(900px, 100svh); overflow: hidden; background: #050606; }
.mb-slider, .mb-slide { position: absolute; inset: 0; }
.mb-slide { opacity: 0; visibility: hidden; transition: opacity .85s ease, visibility .85s ease; }
.mb-slide.is-active { opacity: 1; visibility: visible; }
.mb-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 7s ease; }
.mb-slide.is-active .mb-slide-bg { transform: scale(1); }
.mb-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,6,.96) 0%, rgba(5,6,6,.78) 34%, rgba(5,6,6,.14) 68%, rgba(5,6,6,.08) 100%), linear-gradient(0deg, rgba(5,6,6,.62), transparent 45%); }
.mb-slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 680px; padding-top: 75px; }
.mb-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--mb-orange-bright); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.mb-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.mb-slide h1, .mb-slide h2 { max-width: 650px; margin: 0; font-size: clamp(48px, 6.6vw, 94px); line-height: .96; letter-spacing: -.065em; text-wrap: balance; }
.mb-slide p { max-width: 590px; margin: 26px 0 34px; color: rgba(255,255,255,.74); font-size: clamp(17px, 1.4vw, 21px); }
.mb-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.mb-slider-nav { position: absolute; z-index: 5; left: 50%; bottom: 34px; width: min(calc(100% - 40px), var(--mb-width)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.mb-slider-dot { width: 48px; height: 5px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.32); cursor: pointer; transition: background .2s ease, width .2s ease; }
.mb-slider-dot.is-active { width: 78px; background: var(--mb-orange); }
.mb-slider-count { margin-left: auto; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 800; letter-spacing: .12em; }

/* Sections */
.mb-section { padding: 112px 0; }
.mb-section--light { background: var(--mb-paper); color: var(--mb-ink); }
.mb-section--panel { background: var(--mb-ink-soft); }
.mb-section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; margin-bottom: 56px; }
.mb-section-head h2 { max-width: 720px; margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.mb-section-head p { max-width: 570px; margin: 0; color: #686c70; }
.mb-section:not(.mb-section--light) .mb-section-head p { color: var(--mb-muted); }
.mb-kicker { margin-bottom: 14px; color: var(--mb-orange); font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }

.mb-trustbar { position: relative; z-index: 10; margin-top: -1px; background: var(--mb-orange); color: #fff; }
.mb-trustbar-grid { min-height: 94px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.mb-trust-item { padding: 12px 24px; border-right: 1px solid rgba(255,255,255,.28); }
.mb-trust-item:first-child { padding-left: 0; }
.mb-trust-item:last-child { border: 0; }
.mb-trust-item strong { display: block; font-size: 16px; }
.mb-trust-item span { display: block; color: rgba(255,255,255,.72); font-size: 12px; }

.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mb-card { position: relative; min-height: 330px; padding: 32px; overflow: hidden; border: 1px solid rgba(0,0,0,.09); border-radius: var(--mb-radius); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.mb-card:hover { transform: translateY(-7px); box-shadow: 0 25px 70px rgba(0,0,0,.12); }
.mb-card-number { color: var(--mb-orange); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.mb-card h3 { margin: 80px 0 14px; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.mb-card p { margin: 0; color: #73777a; }
.mb-card-arrow { position: absolute; top: 28px; right: 28px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #f1eee7; font-size: 20px; transition: transform .2s ease, background .2s ease; }
.mb-card:hover .mb-card-arrow { transform: rotate(-45deg); background: var(--mb-orange); color: white; }

.mb-feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 600px; overflow: hidden; border: 1px solid var(--mb-line); border-radius: 30px; background: var(--mb-panel); box-shadow: var(--mb-shadow); }
.mb-feature-media { min-height: 520px; }
.mb-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.mb-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 80px); }
.mb-feature-copy h2 { margin: 0 0 24px; font-size: clamp(39px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.mb-feature-copy p { color: var(--mb-muted); }
.mb-checks { margin: 24px 0 34px; padding: 0; list-style: none; }
.mb-checks li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--mb-line); }
.mb-checks li::before { content: "✓"; color: var(--mb-orange); font-weight: 900; }

.mb-process { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(0,0,0,.09); border-radius: var(--mb-radius); background: rgba(0,0,0,.08); }
.mb-process article { min-height: 295px; padding: 32px; background: var(--mb-paper); }
.mb-process article::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 80px; color: var(--mb-orange); font-size: 13px; font-weight: 900; }
.mb-process h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.mb-process p { margin: 0; color: #6d7174; font-size: 15px; }

.mb-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mb-product-placeholder { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); background: radial-gradient(circle at 75% 25%, rgba(255,106,0,.22), transparent 30%), #17191b; }
.mb-product-placeholder small { color: var(--mb-orange-bright); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.mb-product-placeholder h3 { margin: 10px 0; font-size: 27px; }
.mb-product-placeholder p { margin: 0; color: var(--mb-muted); }
.woocommerce ul.products li.product { padding: 18px 18px 25px; border: 1px solid var(--mb-line); border-radius: var(--mb-radius); background: var(--mb-panel); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: #fff; font-size: 20px; }
.woocommerce ul.products li.product .price { color: var(--mb-orange-bright); }

.mb-cta { position: relative; overflow: hidden; padding: clamp(55px, 8vw, 105px); border-radius: 30px; background: var(--mb-orange); }
.mb-cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -110px; top: -180px; border: 80px solid rgba(255,255,255,.1); border-radius: 50%; }
.mb-cta h2 { position: relative; z-index: 1; max-width: 800px; margin: 0 0 20px; font-size: clamp(42px, 6vw, 76px); line-height: .96; letter-spacing: -.06em; }
.mb-cta p { position: relative; z-index: 1; max-width: 650px; margin: 0 0 30px; color: rgba(255,255,255,.8); }
.mb-cta .mb-button { position: relative; z-index: 1; background: #fff !important; border-color: #fff !important; color: var(--mb-ink) !important; }

/* Interior pages and WooCommerce */
.mb-page-hero { padding: 190px 0 90px; background: radial-gradient(circle at 85% 20%, rgba(255,106,0,.18), transparent 28%), var(--mb-ink-soft); }
.mb-page-hero h1 { max-width: 860px; margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: .96; letter-spacing: -.06em; }
.mb-content { padding: 80px 0 120px; }
.mb-content > * { max-width: 850px; }
.mb-content h2, .mb-content h3 { letter-spacing: -.04em; }
.mb-content a:not(.mb-button):not(.wp-element-button):not(.wc-block-components-button) { color: var(--mb-orange-bright); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-page .mb-content > * { max-width: none; }
.woocommerce table.shop_table { border-color: var(--mb-line); border-radius: 16px; }
.woocommerce .quantity .qty, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select, .wc-block-components-text-input input, .wc-block-components-combobox-control input, .select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple { min-height: 48px; padding: 10px 14px; border: 1px solid var(--mb-line); border-radius: 10px; background: #1a1c1e; color: #fff; }
.wc-block-components-text-input label, .wc-block-components-combobox-control label { color: var(--mb-muted); }
.wc-block-components-sidebar, .wc-block-components-totals-wrapper, .wc-block-cart-items { border-color: var(--mb-line) !important; }
.wc-block-components-order-summary-item__quantity { background: var(--mb-orange) !important; border-color: var(--mb-orange) !important; color: #fff !important; }
.wc-block-cart__submit-container { background: var(--mb-ink); border-top: 1px solid var(--mb-line); }

/* Footer */
.mb-footer { padding: 75px 0 30px; border-top: 1px solid var(--mb-line); background: #050606; }
.mb-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 70px; }
.mb-footer-brand p { max-width: 420px; margin: 22px 0; color: var(--mb-muted); }
.mb-footer h3 { margin: 0 0 20px; color: #777d82; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.mb-footer-nav { list-style: none; margin: 0; padding: 0; }
.mb-footer-nav li { margin: 9px 0; }
.mb-footer-nav a:hover { color: var(--mb-orange-bright); }
.mb-socials { display: flex; flex-wrap: wrap; gap: 9px; }
.mb-social { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 11px; border: 1px solid var(--mb-line); border-radius: 50%; color: #fff; font-size: 11px; font-weight: 900; text-transform: uppercase; transition: border-color .2s ease, background .2s ease; }
a.mb-social:hover { border-color: var(--mb-orange); background: var(--mb-orange); }
.mb-social.is-pending { opacity: .34; cursor: default; }
.mb-footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 60px; padding-top: 25px; border-top: 1px solid var(--mb-line); color: #6f7478; font-size: 12px; }

@media (max-width: 980px) {
  .mb-menu-toggle { display: block; }
  .mb-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 90px 30px 40px; background: rgba(9,10,11,.98); transform: translateX(100%); transition: transform .3s ease; }
  .mb-nav.is-open { transform: translateX(0); }
  .mb-nav ul { flex-direction: column; gap: 24px; }
  .mb-nav a { font-size: 21px; }
  .mb-section-head, .mb-feature, .mb-footer-grid { grid-template-columns: 1fr; }
  .mb-feature-media { min-height: 430px; }
  .mb-cards { grid-template-columns: repeat(2, 1fr); }
  .mb-process { grid-template-columns: repeat(2, 1fr); }
  .mb-products { grid-template-columns: repeat(2, 1fr); }
  .mb-trustbar-grid { grid-template-columns: repeat(2, 1fr); padding-block: 18px; }
  .mb-trust-item:nth-child(2) { border-right: 0; }
  .mb-footer-grid { gap: 42px; }
}

@media (max-width: 640px) {
  .mb-container { width: min(calc(100% - 28px), var(--mb-width)); }
  .mb-header-inner { min-height: 72px; }
  .mb-hero { min-height: 700px; height: 100svh; }
  .mb-slide::after { background: linear-gradient(0deg, rgba(5,6,6,.97) 0%, rgba(5,6,6,.72) 58%, rgba(5,6,6,.32) 100%); }
  .mb-slide-bg { object-position: 65% center; }
  .mb-slide-content { justify-content: flex-end; padding: 0 0 112px; }
  .mb-slide h1, .mb-slide h2 { font-size: clamp(44px, 14vw, 62px); }
  .mb-slide p { margin: 18px 0 25px; font-size: 16px; }
  .mb-hero-actions .mb-button { width: 100%; }
  .mb-slider-nav { bottom: 28px; }
  .mb-section { padding: 78px 0; }
  .mb-section-head { gap: 22px; margin-bottom: 38px; }
  .mb-cards, .mb-process, .mb-products { grid-template-columns: 1fr; }
  .mb-card { min-height: 285px; }
  .mb-feature-media { min-height: 300px; }
  .mb-feature-copy { padding: 32px 24px 40px; }
  .mb-trustbar-grid { grid-template-columns: 1fr; }
  .mb-trust-item, .mb-trust-item:first-child { padding: 12px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .mb-trust-item:last-child { border-bottom: 0; }
  .mb-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
