/* =========================================================================
   Raccoon Flow · estilos base. Los valores vienen de variables CSS (ver inc/css.php).
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--b-bg); color: var(--b-text); font-family: var(--b-font); font-size: var(--b-size); line-height: var(--b-lh); font-weight: var(--b-weight); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--b-link); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--b-link-hover); }
:focus-visible { outline: 2px solid var(--b-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--b-font-head); font-weight: var(--b-head-weight); letter-spacing: var(--b-head-ls); text-transform: var(--b-head-tt); color: var(--b-strong); line-height: 1.2; margin: 1.6em 0 .6em; }
h1 { font-size: var(--b-h1); } h2 { font-size: var(--b-h2); } h3 { font-size: var(--b-h3); } h4 { font-size: var(--b-h4); } h5 { font-size: var(--b-h5); } h6 { font-size: var(--b-h6); }
p, ul, ol, figure, blockquote, pre, table { margin: 0 0 1.2em; }
blockquote { border-left: 4px solid var(--b-accent); padding: .4em 0 .4em 1.2em; font-size: 1.1em; color: var(--b-strong); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
pre { background: var(--b-light); padding: 1em; border-radius: var(--b-radius); overflow: auto; }
:not(pre) > code { background: var(--b-light); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--b-border); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--b-border); padding: .6em .5em; text-align: left; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100000; background: var(--b-surface); color: var(--b-strong); padding: 10px 16px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.b-placeholder { font-size: 12px; color: var(--b-subtle); border: 1px dashed var(--b-border); padding: 2px 8px; border-radius: 4px; }
.b-muted { color: var(--b-subtle); }

/* Contenedores */
.b-container { width: 100%; max-width: calc(var(--b-width) + var(--b-gutter) * 2); margin-inline: auto; padding-inline: var(--b-gutter); }
.b-container.is-narrow, .is-narrow > .b-layout { max-width: calc(var(--b-narrow) + var(--b-gutter) * 2); margin-inline: auto; }
.is-full { width: 100%; }
.b-site-boxed .b-site { max-width: calc(var(--b-width) + var(--b-gutter) * 2); margin: 0 auto; background: var(--b-surface); box-shadow: 0 0 40px rgba(15,23,42,.08); }

/* Botones y formularios */
.b-btn, button.b-btn, .wp-block-button__link, input[type=submit], .button { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font-family: inherit; font-size: .95em; font-weight: var(--b-btn-weight); text-transform: var(--b-btn-tt); line-height: 1.2; padding: var(--b-btn-py) var(--b-btn-px); border-radius: var(--b-btn-radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.b-btn-solid, input[type=submit], .wp-block-button__link, .button { background: var(--b-btn-bg); color: var(--b-btn-color); }
.b-btn-solid:hover, input[type=submit]:hover, .wp-block-button__link:hover, .button:hover { background: var(--b-btn-bg-hover); color: var(--b-btn-color); }
.b-btn-outline { background: transparent; color: var(--b-accent); border-color: currentColor; }
.b-btn-outline:hover { background: var(--b-accent); color: #fff; border-color: var(--b-accent); }
.b-btn-ghost { background: transparent; color: var(--b-strong); }
.b-btn-ghost:hover { color: var(--b-accent); }
.b-btn-sm { padding: calc(var(--b-btn-py) * .6) calc(var(--b-btn-px) * .65); font-size: .85em; }
.b-btn-lg { padding: calc(var(--b-btn-py) * 1.3) calc(var(--b-btn-px) * 1.3); font-size: 1.05em; }
.b-btn-wa { background: #25d366; color: #fff; }
.b-btn-wa:hover { background: #1ebe5a; color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--b-accent); border-color: currentColor; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=date], select, textarea { width: 100%; font: inherit; font-size: .95em; color: var(--b-strong); background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-input-radius); padding: .7em .9em; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--b-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-accent) 20%, transparent); }
label { font-weight: 500; color: var(--b-strong); }
.b-icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; border-radius: 8px; line-height: 1; font: inherit; }
.b-icon-btn:hover { color: var(--b-accent); }

/* ------------------------------ Cabecera ------------------------------ */
.b-header { position: relative; z-index: 100; font-family: var(--b-font-nav); }
.b-hrow { position: relative; background: var(--b-h-main-bg); color: var(--b-h-main-c); transition: background .25s, min-height .25s; }
.b-hrow-top { background: var(--b-h-top-bg); color: var(--b-h-top-c); font-size: .88em; }
.b-hrow-bottom { background: var(--b-h-bottom-bg); color: var(--b-h-bottom-c); }
.b-hrow-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--b-h-main-h); }
.b-hrow-inner.is-full { padding-inline: var(--b-gutter); }
.b-hrow-top .b-hrow-inner { min-height: var(--b-h-top-h); }
.b-hrow-bottom .b-hrow-inner { min-height: var(--b-h-bottom-h); }
.b-header-mobile .b-hrow-main .b-hrow-inner { min-height: var(--b-m-h); }
.b-hzone { display: flex; align-items: center; gap: 14px; flex: 1 1 0; min-width: 0; }
.b-hzone-center { justify-content: center; flex: 0 1 auto; }
.b-hzone-right { justify-content: flex-end; }
.b-hrow a:not(.b-btn) { color: inherit; text-decoration: none; }
.b-hrow a.b-btn { text-decoration: none; }
.b-hitem { display: flex; align-items: center; }
.b-brand { display: flex; flex-direction: column; }
.b-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--b-font-head); font-weight: 800; font-size: 1.35em; color: var(--b-strong) !important; text-decoration: none; letter-spacing: -.01em; }
.b-logo-img { width: var(--b-logo-w); max-width: 100%; height: auto; display: block; transition: width .25s; }
.b-header-mobile .b-logo-img, .b-drawer .b-logo-img { width: var(--b-logo-w-m); }
.b-logo-dark, .b-logo-transparent { display: none; }
html[data-theme="dark"] .b-logo:has(.b-logo-dark) .b-logo-main { display: none; }
html[data-theme="dark"] .b-logo .b-logo-dark { display: block; }
.b-tagline { font-size: .8em; color: var(--b-subtle); }
.b-divider { width: 1px; height: 24px; background: currentColor; opacity: .25; }

/* Menú */
.b-nav .b-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--b-nav-gap); flex-wrap: wrap; }
.b-nav li { position: relative; }
.b-nav .b-mi { display: flex; align-items: center; }
.b-nav .b-menu > li > .b-mi > a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-size: var(--b-nav-size); font-weight: var(--b-nav-weight); text-transform: var(--b-nav-tt); color: var(--b-nav-color); position: relative; }
.b-nav .b-menu > li.current-menu-item > .b-mi > a, .b-nav .b-menu > li.current-menu-ancestor > .b-mi > a, .b-nav .b-menu > li > .b-mi > a:hover { color: var(--b-nav-active); }
.b-nav-underline .b-nav .b-menu > li > .b-mi > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.b-nav-underline .b-nav .b-menu > li > .b-mi > a:hover::after, .b-nav-underline .b-nav .b-menu > li.current-menu-item > .b-mi > a::after { transform: scaleX(1); }
.b-nav-pill .b-nav .b-menu > li > .b-mi > a { padding: 8px 14px; border-radius: 999px; }
.b-nav-pill .b-nav .b-menu { gap: calc(var(--b-nav-gap) / 3); }
.b-nav-pill .b-nav .b-menu > li > .b-mi > a:hover, .b-nav-pill .b-nav .b-menu > li.current-menu-item > .b-mi > a { background: var(--b-light); }
.b-nav .b-menu > li.b-menu-button > .b-mi > a { background: var(--b-btn-bg); color: var(--b-btn-color); padding: 9px 18px; border-radius: var(--b-btn-radius); }
.b-nav .b-menu > li.b-menu-button > .b-mi > a::after { display: none; }
.b-sub-toggle { background: none; border: 0; padding: 4px; margin-left: 2px; color: inherit; cursor: pointer; display: inline-flex; opacity: .7; }
.b-sub-toggle svg { transition: transform .2s; }
.b-mi-icon { display: inline-flex; }
.b-mi-text { display: inline-flex; flex-direction: column; }
.b-mi-label { display: inline-flex; align-items: center; gap: 6px; }
.b-mi-badge { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; background: var(--b-accent); color: #fff; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.b-mi-desc { font-size: .8em; color: var(--b-subtle); font-weight: 400; line-height: 1.35; margin-top: 2px; }
.b-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -12px; min-width: var(--b-dd-w); background: var(--b-dd-bg); border: 1px solid var(--b-border); border-radius: var(--b-radius); box-shadow: 0 16px 40px rgba(15,23,42,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 50; }
.b-dd-fade .b-nav .sub-menu { transform: none; }
.b-dd-none .b-nav .sub-menu { transition: none; transform: none; }
.b-nav .sub-menu .sub-menu { top: -9px; left: 100%; }
/* Los submenús de los dos últimos elementos se abren hacia la izquierda (no se salen de la pantalla). */
.b-nav .b-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: -12px; }
.b-nav .b-menu > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; }
.b-site { overflow-x: clip; }
.b-nav .sub-menu li.b-flip > .sub-menu { left: auto; right: 100%; }
.b-nav .b-menu > li.b-flip > .sub-menu { left: auto; right: -12px; }
.b-nav li:hover > .sub-menu, .b-nav li.is-open > .sub-menu, .b-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.b-nav li:hover > .b-mi .b-sub-toggle svg, .b-nav li.is-open > .b-mi .b-sub-toggle svg { transform: rotate(180deg); }
.b-nav .sub-menu a { display: flex; gap: 8px; padding: 9px 12px; border-radius: calc(var(--b-radius) * .6); color: var(--b-strong); font-size: .95em; font-weight: 500; text-transform: none; }
.b-nav .sub-menu a:hover { background: var(--b-light); color: var(--b-accent); }
.b-nav .sub-menu .b-mi { justify-content: space-between; }
.b-nav .sub-menu .b-sub-toggle svg { transform: rotate(-90deg); }

/* Mega menú */
.b-nav li.b-has-mega { position: static; }
.b-nav li.b-has-mega > .b-mega-panel { left: 50%; transform: translate(-50%, 8px); display: grid; gap: 8px 24px; padding: 24px; width: min(var(--b-width), calc(100vw - var(--b-gutter) * 2)); }
.b-nav li.b-has-mega:hover > .b-mega-panel, .b-nav li.b-has-mega.is-open > .b-mega-panel, .b-nav li.b-has-mega:focus-within > .b-mega-panel { transform: translate(-50%, 0); }
.b-nav li.b-mega-w-full > .b-mega-panel { width: 100vw; border-radius: 0; border-inline: 0; }
.b-nav li.b-mega-w-content > .b-mega-panel { width: max-content; max-width: calc(100vw - 32px); }
.b-mega-cols-2 > .b-mega-panel { grid-template-columns: repeat(2, 1fr); }
.b-mega-cols-3 > .b-mega-panel { grid-template-columns: repeat(3, 1fr); }
.b-mega-cols-4 > .b-mega-panel { grid-template-columns: repeat(4, 1fr); }
.b-mega-cols-5 > .b-mega-panel { grid-template-columns: repeat(5, 1fr); }
.b-mega-cols-6 > .b-mega-panel { grid-template-columns: repeat(6, 1fr); }
.b-mega-panel > li > .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 0; min-width: 0; background: transparent; }
.b-mega-panel > li > .b-mi .b-sub-toggle { display: none; }
.b-mega-panel > li.b-mega-heading > .b-mi > a { font-family: var(--b-font-head); font-weight: 700; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: var(--b-subtle); pointer-events: none; padding-bottom: 4px; }
.b-mi-image { display: block; width: 100%; border-radius: calc(var(--b-radius) * .6); margin-bottom: 8px; aspect-ratio: 16/10; object-fit: cover; }
.b-nav .sub-menu a:has(.b-mi-image) { flex-direction: column; }

/* Elementos de la cabecera */
.b-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.b-social a { display: inline-flex; align-items: center; justify-content: center; color: inherit; transition: transform .15s, color .15s, background .15s; }
.b-social a:hover { color: var(--b-accent); transform: translateY(-2px); }
.b-social-filled a, .b-social-outline a, .b-social-brand a { width: calc(var(--b-social) * 2); height: calc(var(--b-social) * 2); border-radius: 50%; }
.b-social-filled a { background: var(--b-light); color: var(--b-strong); }
.b-social-filled a:hover { background: var(--b-accent); color: #fff; }
.b-social-outline a { border: 1px solid currentColor; }
.b-social-brand a { background: var(--b-brand); color: #fff; }
.b-social-brand a:hover { color: #fff; filter: brightness(1.1); }
.b-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.b-contact.is-stacked { flex-direction: column; align-items: flex-start; }
.b-contact > a, .b-contact > span { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.b-contact svg { opacity: .75; flex: none; }
.b-account, .b-cart { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.b-cart-count { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--b-accent); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.b-search-form { display: flex; align-items: stretch; position: relative; width: 100%; min-width: 220px; }
.b-search-form input { padding-right: 44px; border-radius: 999px; }
.b-search-form button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--b-subtle); cursor: pointer; display: inline-flex; }
.b-search-dd { position: relative; }
.b-search-dd-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; padding: 10px; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-radius); box-shadow: 0 16px 40px rgba(15,23,42,.12); display: none; }
.b-search-dd.is-open .b-search-dd-panel { display: block; }

/* Modo oscuro */
.b-dark-toggle .b-icon-sun { display: none; }
html[data-theme="dark"] .b-dark-toggle .b-icon-sun { display: block; }
html[data-theme="dark"] .b-dark-toggle .b-icon-moon { display: none; }

/* Idiomas */
.b-lang { position: relative; }
.b-lang-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: inherit; font: inherit; font-size: .9em; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.b-lang-btn:hover { border-color: currentColor; }
.b-lang-current { display: inline-flex; align-items: center; gap: 4px; }
.b-lang-list { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: var(--b-radius); box-shadow: 0 16px 40px rgba(15,23,42,.12); display: none; z-index: 60; }
.b-lang.is-open .b-lang-list { display: block; }
.b-lang-list a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--b-strong) !important; text-decoration: none; font-size: .95em; }
.b-lang-list a:hover, .b-lang-list a[aria-current] { background: var(--b-light); }
.b-lang-float { position: fixed; left: 20px; bottom: 20px; z-index: 90; background: var(--b-surface); border: 1px solid var(--b-border); border-radius: 999px; box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.b-lang-float .b-lang-list { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.b-footer .b-lang-list { top: auto; bottom: calc(100% + 6px); }
#google_translate_element, .goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }
font[style] { background: none !important; box-shadow: none !important; }

/* Cabecera fija */
.b-header.is-stuck .b-hrow-main .b-hrow-inner { min-height: var(--b-sticky-h); }
.b-header.is-stuck .b-hrow-main { background: var(--b-sticky-bg); box-shadow: 0 4px 20px rgba(15,23,42,.08); }
.b-header.is-stuck .b-header-desktop .b-hrow-main .b-logo-img { width: calc(var(--b-logo-w) * .82); }
.b-sticky-main .b-header-desktop, .b-sticky-all .b-header-desktop, .b-sticky-top_main .b-header-desktop, .b-sticky-bottom .b-header-desktop { position: relative; }
.b-header.b-sticky-main, .b-header.b-sticky-all, .b-header.b-sticky-top_main, .b-header.b-sticky-bottom { position: sticky; top: var(--b-stick-top, 0px); }
.admin-bar .b-header.b-sticky-main, .admin-bar .b-header.b-sticky-all, .admin-bar .b-header.b-sticky-top_main, .admin-bar .b-header.b-sticky-bottom { top: calc(var(--b-stick-top, 0px) + 32px); }
.b-header.b-sticky-top_main.is-stuck .b-hrow-bottom { display: none; }
.b-header.b-hide-on-scroll { transition: transform .3s; }
.b-header.b-hide-on-scroll.is-hidden { transform: translateY(-110%); }
@media (max-width: 782px) { .admin-bar .b-header[class*="b-sticky-"] { top: calc(var(--b-stick-top, 0px) + 46px); } }
@media (max-width: 600px) { .admin-bar .b-header[class*="b-sticky-"] { top: var(--b-stick-top, 0px); } }

/* Cabecera transparente */
.b-transparent-header .b-header { position: absolute; left: 0; right: 0; top: 0; }
.b-transparent-header.admin-bar .b-header { top: 32px; }
.b-transparent-header .b-header[class*="b-sticky-"]:not(.b-sticky-none) { position: fixed; }
.b-header.is-transparent:not(.is-stuck) .b-hrow { background: transparent; color: var(--b-trans-color); border-color: rgba(255,255,255,.15); }
.b-header.is-transparent:not(.is-stuck) .b-nav .b-menu > li > .b-mi > a, .b-header.is-transparent:not(.is-stuck) .b-logo { color: var(--b-trans-color) !important; }
.b-header.is-transparent:not(.is-stuck) .b-logo:has(.b-logo-transparent) .b-logo-main, .b-header.is-transparent:not(.is-stuck) .b-logo:has(.b-logo-transparent) .b-logo-dark { display: none; }
.b-header.is-transparent:not(.is-stuck) .b-logo .b-logo-transparent { display: block; }
.b-header.is-transparent:not(.is-stuck)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,var(--b-trans-overlay)), transparent); pointer-events: none; z-index: -1; }
.b-header.is-transparent:not(.is-stuck) .b-btn-outline, .b-header.is-transparent:not(.is-stuck) .b-btn-ghost { color: var(--b-trans-color); }
.b-transparent-header .b-page-header.b-title-hero { padding-top: calc(var(--b-h-main-h) + 80px); }

/* Menú móvil */
.b-menu-toggle { padding: 6px; }
.b-toggle-label { font-size: .9em; font-weight: 600; }
.b-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; }
.b-drawer.is-open { visibility: visible; pointer-events: auto; }
.b-drawer-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.5); opacity: 0; transition: opacity .25s; }
.b-drawer.is-open .b-drawer-backdrop { opacity: 1; }
.b-drawer-panel { position: absolute; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--b-drawer-bg); color: var(--b-drawer-color); display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.b-drawer.from-right .b-drawer-panel { right: 0; transform: translateX(100%); }
.b-drawer.from-left .b-drawer-panel { left: 0; transform: translateX(-100%); }
.b-drawer.is-open .b-drawer-panel { transform: none; }
.b-drawer-full .b-drawer-panel { width: 100%; left: 0; right: 0; transform: translateY(-16px); opacity: 0; transition: transform .25s, opacity .25s; }
.b-drawer-full.is-open .b-drawer-panel { transform: none; opacity: 1; }
.b-drawer-dropdown .b-drawer-panel { width: 100%; left: 0; right: 0; bottom: auto; max-height: 85vh; transform: translateY(-100%); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.b-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--b-border); }
.b-drawer-close { margin-left: auto; }
.b-drawer-body { padding: 12px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.b-drawer-body > .b-hitem { display: block; }
.b-drawer a:not(.b-btn) { color: inherit; } .b-drawer a { text-decoration: none; }
.b-mmenu, .b-mmenu ul { list-style: none; margin: 0; padding: 0; }
.b-mmenu li { border-bottom: 1px solid var(--b-border); }
.b-mmenu .b-mi { display: flex; align-items: center; justify-content: space-between; }
.b-mmenu .b-mi > a { flex: 1; display: flex; align-items: center; gap: 8px; padding: 13px 0; font-size: 1.05em; font-weight: 600; }
.b-mmenu .sub-menu { display: none; padding-left: 14px; border-top: 1px solid var(--b-border); }
.b-mmenu li.is-open > .sub-menu { display: block; }
.b-mmenu .sub-menu li:last-child { border-bottom: 0; }
.b-mmenu .sub-menu .b-mi > a { font-weight: 500; font-size: 1em; padding: 10px 0; }
.b-mmenu .b-sub-toggle { padding: 10px; }
.b-mmenu li.is-open > .b-mi .b-sub-toggle svg { transform: rotate(180deg); }
.b-drawer .b-btn { width: 100%; }
.b-drawer .b-lang-list { position: static; box-shadow: none; margin-top: 6px; }
body.b-drawer-open { overflow: hidden; }

/* Modales y ventanas emergentes */
.b-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: start center; padding: 12vh 16px 16px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.b-modal.is-open { visibility: visible; opacity: 1; }
.b-modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.6); backdrop-filter: blur(3px); }
.b-modal-box { position: relative; width: 100%; max-width: 640px; background: var(--b-surface); border-radius: calc(var(--b-radius) * 1.2); padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.3); transform: translateY(12px); transition: transform .2s; }
.b-modal.is-open .b-modal-box { transform: none; }
.b-modal-close { position: absolute; top: 8px; right: 8px; }
.b-modal .b-search-form input { font-size: 1.2em; padding: 16px 52px 16px 20px; }
.b-popup { place-items: center; padding: 16px; }
.b-popup-box { max-height: 90vh; overflow: auto; }
.b-popup-box > .b-element > :first-child { margin-top: 0; }

/* ------------------------------ Contenido ------------------------------ */
.b-content { min-height: 40vh; }
.b-main-wrap { padding-block: var(--b-space); }
.b-main-wrap.no-pad { padding-block: 0; }
.b-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.b-sidebar-right .b-layout { grid-template-columns: minmax(0, 1fr) var(--b-sidebar); }
.b-sidebar-left .b-layout { grid-template-columns: var(--b-sidebar) minmax(0, 1fr); }
.b-sidebar-left .b-sidebar { order: -1; }
@media (max-width: 960px) { .b-sidebar-right .b-layout, .b-sidebar-left .b-layout { grid-template-columns: minmax(0, 1fr); } .b-sidebar-left .b-sidebar { order: 0; } }
.b-sticky-sidebar .b-sidebar-inner { position: sticky; top: calc(var(--b-sticky-h) + 24px); }
.b-main { min-width: 0; outline: none; }
.b-content-boxed .b-card-box, .b-force-boxed .b-card-box { background: var(--b-surface); border-radius: var(--b-radius); box-shadow: var(--b-shadow); padding: clamp(20px, 4vw, 48px); border: 1px solid color-mix(in srgb, var(--b-border) 60%, transparent); }
.b-force-unboxed .b-card-box { background: none; box-shadow: none; padding: 0; border: 0; }
.is-full .b-card-box { border-radius: 0; box-shadow: none; padding: 0; background: none; border: 0; }
.is-full .b-layout { gap: 0; }
.is-full .b-entry > *:not(.alignfull):not(.alignwide) { max-width: calc(var(--b-width)); margin-inline: auto; padding-inline: var(--b-gutter); }

/* Título de página */
.b-page-header { padding-top: calc(var(--b-space) * .9); }
.b-page-header .b-page-title { margin: .2em 0 .3em; }
.b-page-header.has-text-align-center { text-align: center; }
.b-page-header.has-text-align-center .b-meta { justify-content: center; }
.b-page-header.has-text-align-right { text-align: right; }
.b-title-hero { background: var(--b-hero-bg); color: var(--b-hero-color); padding: clamp(56px, 10vw, 120px) 0; position: relative; isolation: isolate; }
.b-title-hero .b-page-title, .b-title-hero .b-meta, .b-title-hero .b-meta a, .b-title-hero .b-breadcrumbs, .b-title-hero .b-breadcrumbs a { color: inherit; }
.b-title-hero.has-bg { background: #0f172a var(--b-hero-img) center/cover no-repeat; color: #fff; }
.b-title-hero.has-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.45), rgba(2,6,23,.7)); z-index: -1; }
.b-title-hero + .b-main-wrap { padding-top: var(--b-space); }
.b-archive-desc { color: var(--b-subtle); max-width: 70ch; }
.b-page-header.has-text-align-center .b-archive-desc { margin-inline: auto; }
.b-eyebrow { display: inline-block; font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-accent); text-decoration: none; }
.b-breadcrumbs { font-size: .88em; color: var(--b-subtle); margin-bottom: 8px; }
.b-breadcrumbs a { color: var(--b-subtle); text-decoration: none; }
.b-breadcrumbs a:hover { color: var(--b-accent); }
.b-breadcrumbs .bseo-breadcrumbs ol { gap: .4em; }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .88em; color: var(--b-subtle); }
.b-meta a { color: inherit; text-decoration: none; }
.b-meta a:hover { color: var(--b-accent); }
.b-meta-author { display: inline-flex; align-items: center; gap: 6px; }
.b-meta-author img { border-radius: 50%; }
.b-meta-cat a { color: var(--b-accent); font-weight: 600; }

/* Listados */
.b-posts { display: grid; grid-template-columns: repeat(var(--b-cols), minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .b-posts { grid-template-columns: repeat(min(var(--b-cols), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .b-posts { grid-template-columns: minmax(0, 1fr); } }
.b-posts-masonry { display: block; columns: var(--b-cols) 280px; column-gap: 28px; }
.b-posts-masonry .b-card { break-inside: avoid; margin-bottom: 28px; }
.b-card { display: flex; flex-direction: column; background: var(--b-surface); border-radius: var(--b-radius); overflow: hidden; box-shadow: var(--b-shadow); border: 1px solid color-mix(in srgb, var(--b-border) 60%, transparent); transition: transform .2s, box-shadow .2s; }
.b-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 16px 40px rgba(15,23,42,.1); }
.b-content-unboxed .b-card { background: none; box-shadow: none; border: 0; border-radius: 0; }
.b-content-unboxed .b-card .b-card-media { border-radius: var(--b-radius); }
.b-content-unboxed .b-card .b-card-body { padding-inline: 0; }
.b-card-media { display: block; overflow: hidden; aspect-ratio: var(--b-ratio); background: var(--b-light); }
.b-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.b-card:hover .b-card-media img { transform: scale(1.04); }
.b-posts-masonry .b-card-media { aspect-ratio: auto; }
.b-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-card-title { font-size: var(--b-h4); margin: 0; line-height: 1.3; }
.b-card-title a { color: var(--b-strong); text-decoration: none; }
.b-card-title a:hover { color: var(--b-accent); }
.b-card-excerpt { color: var(--b-text); font-size: .95em; }
.b-card-excerpt p { margin: 0; }
.b-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: .92em; }
.b-more svg { transition: transform .15s; }
.b-more:hover svg { transform: translateX(3px); }
.b-posts-list .b-card { flex-direction: row; }
.b-posts-list .b-card-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
@media (max-width: 640px) { .b-posts-list .b-card { flex-direction: column; } .b-posts-list .b-card-media { aspect-ratio: var(--b-ratio); min-height: 0; } }
.b-posts-classic .b-card-title { font-size: var(--b-h2); }
.sticky .b-card-title::before { content: "★ "; color: var(--b-accent); }
.pagination, .nav-links { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; background: var(--b-surface); border: 1px solid var(--b-border); color: var(--b-strong); text-decoration: none; font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--b-accent); border-color: var(--b-accent); color: #fff; }
.b-loadmore { text-align: center; margin-top: 40px; }
.b-loadmore[data-mode="infinite"] .b-btn { opacity: .6; }

/* Artículo */
.b-featured-top { padding-top: var(--b-space); }
.b-featured { display: block; width: 100%; border-radius: var(--b-radius); margin-bottom: 1.6em; }
.b-featured-top .b-featured { margin: 0; max-height: 560px; object-fit: cover; }
.b-entry > :first-child { margin-top: 0; }
.b-entry > :last-child { margin-bottom: 0; }
.b-entry .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.b-entry .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.b-sidebar-right .b-entry .alignfull, .b-sidebar-left .b-entry .alignfull, .b-sidebar-right .b-entry .alignwide, .b-sidebar-left .b-entry .alignwide { margin-inline: 0; width: auto; }
.b-entry img { border-radius: calc(var(--b-radius) * .6); }
.b-entry figcaption { font-size: .85em; color: var(--b-subtle); text-align: center; margin-top: .5em; }
.b-entry h2, .b-entry h3 { scroll-margin-top: calc(var(--b-sticky-h) + 24px); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; display: block; }
.b-toc { background: var(--b-light); border-radius: var(--b-radius); padding: 14px 20px; margin: 0 0 1.6em; }
.b-toc summary { cursor: pointer; font-weight: 700; color: var(--b-strong); display: flex; gap: 8px; align-items: center; }
.b-toc ol { margin: 10px 0 0; padding-left: 1.2em; }
.b-toc li { margin: 4px 0; }
.b-toc .b-toc-l3 { margin-left: 1.2em; list-style: circle; }
.b-toc a { text-decoration: none; color: var(--b-text); }
.b-toc a:hover { color: var(--b-accent); }
.b-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.b-tags a { font-size: .85em; padding: 4px 12px; border-radius: 999px; background: var(--b-light); color: var(--b-strong); text-decoration: none; }
.b-tags a:hover { background: var(--b-accent); color: #fff; }
.b-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--b-border); }
.b-share-label { font-weight: 600; color: var(--b-strong); margin-right: 4px; }
.b-share a, .b-share button { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--b-light); color: var(--b-strong); border: 0; cursor: pointer; transition: background .15s, color .15s; position: relative; }
.b-share a:hover { background: var(--b-brand); color: #fff; }
.b-share button:hover { background: var(--b-accent); color: #fff; }
.b-copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--b-strong); color: var(--b-surface); font-size: 12px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.b-author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 24px; background: var(--b-surface); border-radius: var(--b-radius); box-shadow: var(--b-shadow); border: 1px solid color-mix(in srgb, var(--b-border) 60%, transparent); }
.b-author-box img { border-radius: 50%; flex: none; }
.b-author-name { margin: 2px 0 6px; font-size: var(--b-h4); }
.b-author-name a { color: var(--b-strong); text-decoration: none; }
.b-author-box p { margin: 0; color: var(--b-text); font-size: .95em; }
.post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--b-surface); border-radius: var(--b-radius); border: 1px solid var(--b-border); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--b-accent); }
.post-navigation .nav-next { text-align: right; }
.b-nav-title { color: var(--b-strong); font-weight: 600; }
@media (max-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr; } }
.b-related { margin-top: 48px; }
.b-section-title { font-size: var(--b-h3); margin: 0 0 20px; }
.b-grid { display: grid; gap: 24px; }
.b-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .b-grid-cols-2, .b-grid-cols-3 { grid-template-columns: minmax(0, 1fr); } }
.b-comments { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--b-border); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-meta { font-size: .88em; color: var(--b-subtle); }
.comment-meta a { color: inherit; text-decoration: none; }
.comment-form p { margin-bottom: 1em; }
.b-404 { text-align: center; max-width: 640px; margin: 0 auto; }
.b-404-code { font-size: clamp(80px, 18vw, 160px); font-weight: 900; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--b-accent), var(--b-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-404 .b-search-form { max-width: 420px; margin: 0 auto 24px; }

/* Barra lateral y widgets */
.b-sidebar .widget { background: var(--b-surface); border-radius: var(--b-radius); padding: 22px; margin-bottom: 24px; box-shadow: var(--b-shadow); border: 1px solid color-mix(in srgb, var(--b-border) 60%, transparent); }
.b-content-unboxed .b-sidebar .widget { background: none; box-shadow: none; padding: 0; border: 0; }
.widget-title { font-size: 1.05em; margin: 0 0 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; }
.widget a { text-decoration: none; }

/* ------------------------------ Pie ------------------------------ */
.b-footer { font-size: .95em; }
.b-frow { background: var(--b-f-top-bg); color: var(--b-f-top-c); padding-block: var(--b-f-top-pad); }
.b-frow-middle { background: var(--b-f-middle-bg); color: var(--b-f-middle-c); padding-block: var(--b-f-middle-pad); }
.b-frow-bottom { background: var(--b-f-bottom-bg); color: var(--b-f-bottom-c); padding-block: var(--b-f-bottom-pad); font-size: .9em; }
.b-fgrid { display: grid; grid-template-columns: var(--b-fcols); gap: 32px; align-items: start; }
.b-frow-bottom .b-fgrid { align-items: center; }
.b-frow-bottom .b-fcol:last-child:not(:first-child) { justify-content: flex-end; text-align: right; }
@media (max-width: 900px) { .b-frow-top .b-fgrid, .b-frow-middle .b-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .b-fgrid { grid-template-columns: minmax(0, 1fr) !important; gap: 24px; } .b-frow-bottom .b-fcol:last-child:not(:first-child) { text-align: inherit; } }
.b-fcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.b-footer a:not(.b-btn) { color: var(--b-footer-link); } .b-footer a { text-decoration: none; }
.b-footer a:not(.b-btn):hover { color: var(--b-accent); }
.b-footer .widget-title, .b-footer h2, .b-footer h3, .b-footer h4 { color: var(--b-footer-head); font-size: 1.02em; margin: 0 0 14px; }
.b-footer .widget { margin: 0; }
.b-footer .b-logo { color: var(--b-footer-head) !important; }
.b-footer .b-about { margin: 0; opacity: .9; line-height: 1.7; }
.b-footer .b-hours { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.b-footer .b-hours svg { opacity: .75; flex: none; margin-top: 5px; }
.b-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.b-footer-nav.is-vertical ul { flex-direction: column; }
.b-frow-bottom .b-fcol:last-child:not(:first-child) .b-footer-nav ul { justify-content: flex-end; }
@media (max-width: 767px) { .b-frow-bottom .b-footer-nav ul { justify-content: inherit !important; } }
.b-copyright p { margin: 0; }

/* ------------------------------ Extras ------------------------------ */
.b-announce { position: relative; background: var(--b-ann-bg); color: var(--b-ann-color); text-align: center; font-size: .9em; font-weight: 500; padding: 9px 44px; }
.b-announce a { color: inherit; }
.b-announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; display: inline-flex; opacity: .8; }
.b-announce.is-hidden { display: none; }
.b-totop { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--b-strong); color: var(--b-surface); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(15,23,42,.2); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s, background .15s; }
.b-totop.is-left { right: auto; left: 24px; }
.b-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.b-totop:hover { background: var(--b-accent); }
.b-wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 95; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff !important; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s; }
.b-wa-float:hover { transform: scale(1.06); }
.b-wa-float.is-left { right: auto; left: 24px; }
.b-wa-tip { position: absolute; right: calc(100% + 12px); white-space: nowrap; background: var(--b-surface); color: var(--b-strong); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(15,23,42,.15); }
.b-wa-float.is-left .b-wa-tip { right: auto; left: calc(100% + 12px); }
@media (max-width: 640px) { .b-wa-tip { display: none; } }
.b-wa-float.is-right ~ .b-totop.is-right, .b-wa-float.is-right + .b-totop.is-right { bottom: 96px; }
body:has(.b-wa-float.is-right) .b-totop.is-right { bottom: 96px; }
body:has(.b-wa-float.is-left) .b-totop.is-left { bottom: 96px; }
.b-dark-float { position: fixed; left: 24px; bottom: 24px; z-index: 90; background: var(--b-surface); color: var(--b-strong); border: 1px solid var(--b-border); border-radius: 50%; box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.b-preloader { position: fixed; inset: 0; z-index: 2000; background: var(--b-bg); display: grid; place-items: center; transition: opacity .4s, visibility .4s; }
.b-preloader span { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--b-border); border-top-color: var(--b-accent); animation: b-spin .8s linear infinite; }
.b-preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes b-spin { to { transform: rotate(360deg); } }
.b-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200; pointer-events: none; }
.b-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--b-accent), var(--b-accent-2)); }
.admin-bar .b-progress { top: 32px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
html[data-theme="dark"] img { opacity: .94; }
html[data-theme="dark"] .b-card, html[data-theme="dark"] .b-sidebar .widget, html[data-theme="dark"] .b-card-box { border-color: var(--b-border); }

/* WooCommerce básico */
.woocommerce ul.products li.product { background: var(--b-surface); border-radius: var(--b-radius); padding: 14px; box-shadow: var(--b-shadow); }
.woocommerce span.onsale { background: var(--b-accent); }
.woocommerce .price { color: var(--b-strong) !important; font-weight: 700; }
