/* Fuentes alojadas en el propio tema (sin Google Fonts) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); }


/* ==========================================================================
   Enertran 2026 — sistema visual "ingeniería eléctrica / tecnológico"
   ========================================================================== */
:root {
  --bg: #05080e;
  --bg-2: #08101b;
  --surface: #0c1420;
  --surface-2: #111b2a;
  --line: rgba(140, 170, 220, 0.13);
  --line-2: rgba(140, 170, 220, 0.24);
  --text: #e8eef7;
  --muted: #8e9bb1;
  --dim: #5d6a80;
  --blue: #2f6bff;
  --blue-2: #6b95ff;
  --cyan: #3ee0ff;
  --amber: #ffb547;
  --ok: #3ddc97;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-disp: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.grad { background: linear-gradient(100deg, #fff 10%, var(--blue-2) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 0.95rem/1 var(--f-sans); border: 1px solid var(--b); cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(47,107,255,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover { background: #4579ff; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(47,107,255,.95); }
.btn--ghost { background: rgba(255,255,255,0.03); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--blue-2); background: rgba(47,107,255,.1); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* Topbar + header */
.topbar { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; background: #04070c; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a:hover { color: var(--text); }
.hdr { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .3s; }
/* el desenfoque va en una capa aparte: backdrop-filter en .hdr encerraría el menú móvil (position: fixed) dentro de la cabecera */
.hdr::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(5,8,14,0.72); backdrop-filter: blur(16px) saturate(140%); transition: background .3s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr.is-scrolled::before { background: rgba(5,8,14,0.9); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* «.brand img» gana a la regla de WooCommerce «.woocommerce-page img { height: auto }», que agrandaba el logo en la tienda */
.brand img.brand__logo { display: block; height: 38px; width: auto; max-width: none; }
.ftr .brand img.brand__logo { height: 46px; }
@media (max-width: 640px) { .hdr .brand img.brand__logo { height: 32px; } }
.brand__mark { width: 34px; height: 34px; fill: #fff; }
.brand__txt { display: flex; flex-direction: column; font: 600 1.12rem/1 var(--f-disp); letter-spacing: 0.08em; }
.brand__txt small { font-size: 0.58rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 4px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; font-weight: 500; color: #c9d3e3; transition: color .2s, background .2s; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link[aria-current] { color: #fff; background: rgba(255,255,255,0.05); }
.hot { font: 500 0.6rem/1 var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); border: 1px solid rgba(255,181,71,.35); padding: 3px 5px; border-radius: 5px; }
.mega {
  position: absolute; top: calc(100% + 10px); left: -10px; min-width: 330px;
  display: grid; gap: 2px; padding: 10px; border-radius: 16px;
  background: rgba(12,20,32,0.97); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.nav__item:last-child .mega { left: auto; right: -10px; } /* el último desplegable se abre hacia la izquierda para no salirse de la pantalla */
.mega::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__main { display: grid; gap: 2px; align-content: start; }
.mi { display: flex; flex-wrap: wrap; align-items: center; border-radius: 12px; transition: background .2s; }
.mi:hover { background: rgba(47,107,255,0.12); }
.mi__main { flex: 1 1 100%; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; }
.mega--thumbs .mi__main { padding: 8px 10px; }
.mi__img { flex: none; width: 64px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.mi__txt { display: grid; gap: 2px; min-width: 0; }
.mi__txt b { font-weight: 600; font-size: 0.93rem; color: var(--text); }
.mi__txt > span { color: var(--muted); font-size: 0.8rem; }
.mi__extra { flex: none; margin: -4px 0 10px 88px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(62,224,255,.4); color: var(--cyan); font: 500 .74rem/1 var(--f-mono); white-space: nowrap; transition: background .2s, color .2s; }
.mi__extra:hover { background: var(--cyan); color: #05080e; }
.mega__all { display: block; margin-top: 6px; padding: 12px 14px 6px; border-top: 1px solid var(--line); color: var(--blue-2); font-weight: 600; font-size: .88rem; }
.mega__all:hover { color: var(--cyan); }
.mega--thumbs { min-width: 440px; }
.nav { position: relative; }
.nav__toggle { display: none; }
.nav__item.has-mega--wide { position: static; } /* el desplegable ancho se alinea con el borde derecho del menú */
.mega--wide { left: auto; right: 0; width: min(780px, calc(100vw - 48px)); grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; }
.mega__aside { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding: 4px 0 0 14px; }
.mega__title { margin: 6px 0 6px 6px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.mega__sectors { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__sectors a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; font-size: .9rem; font-weight: 500; color: #dbe3f0; transition: background .2s, color .2s; }
.mega__sectors a:hover { background: rgba(47,107,255,0.12); color: #fff; }
.mega__sectors .mi__img { width: 48px; height: 34px; border-radius: 6px; }
.mega__aside .mega__all { margin-top: auto; }
.hdr__cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: .25s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px 60px; margin-bottom: 56px; }
.section__head > p { margin: 0; }
.section__head > .btn { justify-self: end; }
.section__head h2 { margin: 0; }
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: .5; }

/* ---------- HERO 3D ---------- */
.hero { position: relative; min-height: max(640px, calc(100svh - 116px)); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero__canvas { position: absolute; inset: 0; z-index: -1; }
.hero__canvas canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.hero__canvas canvas:active { cursor: grabbing; }
.hero__fallback { position: absolute; inset: 0; background: url('/img/entrega-planta-solar.webp') center/cover; opacity: .35; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(5,8,14,.94) 0%, rgba(5,8,14,.7) 32%, rgba(5,8,14,0) 62%), linear-gradient(0deg, rgba(5,8,14,.9) 0%, rgba(5,8,14,0) 26%); }
.hero__content { position: relative; padding-top: clamp(40px, 8vh, 96px); padding-bottom: 32px; flex: 1; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__copy { max-width: 620px; transition: opacity .5s, transform .5s; }
.hero__shade { transition: opacity .6s; }
.hero.is-exploring .hero__copy { opacity: 0; transform: translateX(-24px); pointer-events: none; }
.hero.is-exploring .hero__shade { opacity: .35; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { color: #b2bed1; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(12,20,32,.6); backdrop-filter: blur(8px); font: 500 0.76rem/1 var(--f-mono); color: #c3cee0; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero__dock { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(5,8,14,0.72); backdrop-filter: blur(14px); }
.dock { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.dock__label { color: var(--muted); flex-shrink: 0; }
.dock__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dock__tabs::-webkit-scrollbar { display: none; }
.dock__tab { flex-shrink: 0; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #c3cee0; font: 500 0.82rem/1 var(--f-sans); cursor: pointer; transition: .2s; }
.dock__tab:hover { border-color: var(--blue-2); color: #fff; }
.dock__tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.dock__hint { margin-left: auto; color: var(--dim); flex-shrink: 0; }

/* hotspots */
.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; transform: translate(-11px, -11px); background: none; border: 0; padding: 0; cursor: pointer; color: #fff; transition: opacity .3s; will-change: transform; }
.hs[hidden] { display: flex; opacity: 0; pointer-events: none; }
.hs__dot { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(47,107,255,.25); border: 1.5px solid var(--cyan); display: grid; place-items: center; font: 600 0.62rem/1 var(--f-mono); }
.hs__dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--cyan); opacity: 0; animation: ping 2.4s infinite; }
.hs__lbl { font: 500 0.74rem/1 var(--f-sans); padding: 6px 10px; border-radius: 8px; background: rgba(8,14,24,.86); border: 1px solid var(--line-2); white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: .2s; }
.hs:hover .hs__lbl, .hs:focus-visible .hs__lbl, .hs.is-active .hs__lbl { opacity: 1; transform: none; }
.hs.is-active .hs__dot { background: var(--cyan); color: #04121a; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

aside.panel { position: absolute; z-index: 3; right: 24px; top: 24px; width: min(380px, calc(100% - 48px)); border-radius: var(--radius-lg); background: rgba(9,15,25,0.9); border: 1px solid var(--line-2); backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); overflow: hidden; transform: translateX(calc(100% + 40px)); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
aside.panel.is-open { transform: none; }
.panel__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--surface); }
.panel__body { padding: 20px 22px 22px; }
.panel__tag { color: var(--cyan); margin-bottom: 8px; }
aside.panel h3 { margin-bottom: 8px; }
aside.panel p { color: var(--muted); font-size: 0.92rem; }
aside.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: 0.85rem; }
aside.panel dt { color: var(--dim); font-family: var(--f-mono); font-size: 0.74rem; padding-top: 2px; }
aside.panel dd { margin: 0; }
.panel__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5,8,14,.7); color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 34px 28px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi b { display: block; font: 600 clamp(2rem, 3.6vw, 2.9rem)/1 var(--f-disp); letter-spacing: -0.03em; }
.kpi b small { font-size: .5em; color: var(--muted); margin-left: 4px; }
.kpi > span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

/* ---------- Featured (más buscados) ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fcard { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.fcard:hover { border-color: rgba(107,149,255,.5); transform: translateY(-3px); }
.fcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.fcard:hover .fcard__media img { transform: scale(1.04); }
.fcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,14,0) 40%, var(--surface)); }
.fcard__rank { position: absolute; z-index: 1; top: 16px; left: 16px; }
.fcard__body { padding: 0 30px 30px; margin-top: -40px; position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.fcard__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.fcard__body p { color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0 24px; }
.specs div { background: var(--bg-2); padding: 14px 14px; }
.specs dt { font: 500 0.68rem/1.2 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.specs dd { margin: 6px 0 0; font: 600 1.02rem/1.2 var(--f-disp); }
.fcard__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-2); font-weight: 600; font-size: .95rem; }
.tlink:hover { color: var(--cyan); }

/* ---------- Install map (equipment list) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: z; }
.zone { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.zone__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.zone__head .mono { color: var(--cyan); }
.zone h3 { margin: 0; }
.zone ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.zone li a { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; transition: background .2s; }
.zone li a:hover { background: rgba(47,107,255,.1); }
.zone li .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 0.7rem/1 var(--f-mono); color: var(--cyan); }
.zone li small { display: block; color: var(--muted); font-size: .8rem; }
.zone li .go { color: var(--dim); }
.flow__arrow { display: none; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.why__item { background: var(--bg); padding: 36px 32px; position: relative; transition: background .3s; }
.why__item:hover { background: var(--surface); }
.why__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,107,255,.12); border: 1px solid rgba(107,149,255,.3); margin-bottom: 22px; color: var(--blue-2); }
.why__ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why__item p { color: var(--muted); margin: 0; font-size: .95rem; }
.why__big { font: 600 2.6rem/1 var(--f-disp); color: #fff; letter-spacing: -.03em; display: block; margin-bottom: 10px; }

/* ---------- Timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; list-style: none; padding: 0; margin: 0; }
.steps::before { content: ''; position: absolute; top: 18px; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: .5; }
.step { padding-right: 24px; position: relative; }
.step__n { width: 37px; height: 37px; border-radius: 50%; background: var(--bg); border: 1px solid var(--cyan); color: var(--cyan); display: grid; place-items: center; font: 500 .8rem/1 var(--f-mono); position: relative; margin-bottom: 22px; }
.step b { display: block; font: 600 1.05rem/1.25 var(--f-disp); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }
.step .mono { color: var(--amber); display: block; margin-bottom: 8px; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.proj { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; grid-column: span 4; background: var(--surface); }
.proj--w { grid-column: span 8; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.proj:hover img { transform: scale(1.04); }
.proj::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,14,.95) 0%, rgba(5,8,14,.1) 60%); }
.proj figcaption { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; }
.proj figcaption .mono { color: var(--cyan); }
.proj figcaption b { display: block; font: 600 1.1rem/1.3 var(--f-disp); margin-top: 6px; }

/* ---------- Range / product grid ---------- */
.range { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.rcard:hover { border-color: rgba(107,149,255,.5); transform: translateY(-3px); }
.rcard img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.rcard div { padding: 16px 18px 20px; }
.rcard b { display: block; font: 600 1rem/1.3 var(--f-disp); margin-bottom: 4px; }
.rcard span { color: var(--muted); font-size: .84rem; }

/* ---------- Finance band ---------- */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.band__card { border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(47,107,255,.22), transparent 55%), var(--surface); }
.band__card--amber { background: radial-gradient(120% 140% at 100% 0%, rgba(255,181,71,.16), transparent 55%), var(--surface); }
.band__card p { color: var(--muted); }
.band__big { font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--f-disp); letter-spacing: -.03em; display: block; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: #c3cee0; font-size: .95rem; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.sector { border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-weight: 500; font-size: .92rem; display: flex; flex-direction: column; gap: 22px; transition: .25s; background: var(--bg); }
.sector .mono { color: var(--dim); }
.sector:hover { border-color: var(--blue-2); background: var(--surface); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 1.08rem/1.35 var(--f-disp); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 300 1.6rem/1 var(--f-sans); color: var(--cyan); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* ---------- CTA + footer ---------- */
.cta-final { padding: 90px 0; background: radial-gradient(60% 120% at 80% 50%, rgba(47,107,255,.25), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); }
.cta-final__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-final h2 { max-width: 18ch; }
.cta-final__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ftr { border-top: 1px solid var(--line); padding: 70px 0 30px; background: #04070c; color: var(--muted); font-size: .92rem; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ftr__brand p { margin: 20px 0 16px; max-width: 36ch; }
.ftr h4 { color: var(--text); font: 600 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a:hover { color: var(--text); }
.ftr__li { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(47,107,255,.9); transition: background .2s, transform .2s; }
.ftr__li svg { width: 19px; height: 19px; fill: currentColor; }
.ftr__li:hover { background: #4579ff; color: #fff; transform: translateY(-2px); }
.ftr__contact { margin-top: 22px !important; gap: 12px !important; }
.ftr__contact li { display: flex; align-items: center; gap: 10px; }
.ftr__contact .ico { width: 17px; height: 17px; flex: none; color: var(--cyan); }
.ftr__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; }
.ftr__legal nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Inner pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; color: var(--dim); font: 500 .76rem/1 var(--f-mono); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.phero { position: relative; padding: clamp(50px, 8vw, 90px) 0 clamp(50px, 7vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; }
.phero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.phero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.viewer { position: relative; aspect-ratio: 1/0.86; border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 45%, rgba(47,107,255,.18), transparent 70%), var(--bg-2); overflow: hidden; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.viewer__tag { position: absolute; left: 16px; top: 16px; z-index: 1; }
.viewer__help { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: var(--dim); }
@media (pointer: coarse) { .viewer__help { display: none; } } /* en táctil el visor gira automáticamente */
.viewer__toggles { position: absolute; right: 14px; bottom: 12px; z-index: 1; display: flex; gap: 6px; }
.viewer img.viewer__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.viewer[aria-busy="true"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(62,224,255,.2); border-top-color: var(--cyan, #3ee0ff); animation: vspin .8s linear infinite; z-index: 1; }
@keyframes vspin { to { transform: rotate(360deg); } }
.viewer--product { margin: 0 0 28px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.spec th, .spec td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font: 500 .74rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); background: var(--bg-2); }
.spec td:first-child { color: var(--muted); width: 28%; }
.spec tr:last-child td { border-bottom: 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tcard { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.tcard img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.tcard__b { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tcard__b p { color: var(--muted); font-size: .95rem; }
.tcard__b .mono { color: var(--cyan); margin-bottom: 10px; }
.tcard ul { margin: 0 0 18px; padding-left: 18px; color: #c3cee0; font-size: .92rem; }
.tcard .tlink { margin-top: auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.prose p, .prose li { color: #b8c3d5; }
.prose h3 { margin-top: 1.6em; }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 30px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 7px; font: 500 .74rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--f-sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; transition: border-color .2s; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(47,107,255,.2); }
.form .check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font: 400 .85rem/1.45 var(--f-sans); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.form__note { font-size: .82rem; color: var(--dim); margin: 0; }
.form__ok { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.4); color: #c9f5e2; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hs__dot::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1360px) and (min-width: 1181px) { .nav .hot { display: none; } .nav__link { padding: 10px 9px; } }
@media (max-width: 1180px) {
  .nav { position: fixed; inset: 110px 0 0; background: rgba(5,8,14,.98); padding: 20px 24px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; margin: 0; } /* sin translateX: no genera scroll horizontal en móvil */
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega, .mega--wide, .mega--thumbs { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 4px 0 12px 4px; min-width: 0; width: auto; display: block; }
  .mi__txt > span { display: none; }
  .mi__main, .mega--thumbs .mi__main { padding: 8px 6px; gap: 12px; }
  .mi__img { width: 46px; height: 32px; }
  .mi__extra { margin: -2px 0 8px 64px; }
  .mega__all { border-top: 0; padding: 8px 6px; margin: 0; font-size: .85rem; }
  .mega__aside { border-left: 0; padding: 8px 0 0; }
  .mega__title { margin: 4px 6px 4px; }
  .mega__sectors { grid-template-columns: 1fr 1fr; }
  /* acordeón: cada sección se despliega con su flecha; el nombre sigue enlazando a la página */
  .nav__item.has-mega { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .nav__item.has-mega > .nav__link { border-bottom: 0; }
  .nav__item.has-mega > .mega { grid-column: 1 / -1; }
  .has-mega:not(.is-open) > .mega { display: none; }
  .nav__toggle { display: grid; place-items: center; width: 48px; align-self: stretch; background: none; border: 0; border-left: 1px solid var(--line); color: #c9d3e3; cursor: pointer; }
  .nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] { color: var(--cyan); }
  .nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .has-mega.is-open > .mega { animation: accIn .25s ease; }
  @keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }
  .mega__sectors a { font-size: .85rem; gap: 10px; }
  .mega__sectors .mi__img { width: 40px; height: 28px; }
  .burger { display: block; }
  .hdr__cta { margin-left: auto; }
  .range { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .mega__sectors { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .section__head, .faq, .split, .phero__grid, .cta-final__in, .band, .feat { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why, .flow, .cards3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { top: 18px; bottom: 18px; left: 18px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
  .step { display: grid; grid-template-columns: 37px 1fr; gap: 0 18px; padding: 0; }
  .step__n { margin: 0; grid-row: span 3; }
  .projects { grid-template-columns: 1fr 1fr; }
  .proj, .proj--w { grid-column: span 1; }
  .proj--w { grid-column: span 2; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  /* móvil: escena 3D arriba, texto debajo */
  .hero { min-height: 0; --scene: 50svh; }
  .hero__canvas, .hotspots { bottom: auto; height: var(--scene); }
  .hero__shade { background: linear-gradient(180deg, rgba(5,8,14,.55) 0, rgba(5,8,14,0) 90px, rgba(5,8,14,0) calc(var(--scene) - 140px), var(--bg) var(--scene)); }
  .hero.is-exploring .hero__shade { opacity: 1; }
  .hero__content { margin-top: var(--scene); padding-top: 14px; }
  .hero.is-exploring .hero__copy { opacity: 1; transform: none; pointer-events: auto; }
  .hero__dock { position: absolute; top: calc(var(--scene) - 64px); left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; }
  .dock__tab { background: rgba(5,8,14,.7); }
  aside.panel { top: 12px; right: 12px; left: 12px; width: auto; max-height: calc(var(--scene) - 90px); overflow-y: auto; transform: translateY(calc(-100% - 40px)); }
  .panel__img { display: none; }
  .dock__hint { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  body { font-size: 15.5px; }
  .hide-sm { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__in > .mono { display: none; }
  .hdr__in { height: 64px; gap: 12px; }
  .nav { inset: 102px 0 0; }
  .hdr__cta .btn { display: none; }
  .why, .flow, .cards3, .cards2, .range, .projects, .form, .ftr__grid { grid-template-columns: 1fr; }
  .proj--w { grid-column: span 1; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 24px 16px; }
  .fcard__body { padding: 0 20px 22px; }
  .band__card { padding: 28px 22px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .dock__label { display: none; }
  .form { padding: 20px; }
}


/* ==========================================================================
   Tema WordPress: componentes adicionales
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.admin-bar .hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr { top: 46px; } }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { color: var(--muted); font-size: .92rem; margin-top: 18px; max-width: 80ch; }
.ftr__h { color: var(--text); font: 600 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 18px; }
.panel__title { font: 600 1.25rem/1.15 var(--f-disp); letter-spacing: -.01em; margin: 0 0 8px; color: var(--text); }
.kpi__v { margin: 0; font: inherit; }

/* Cabecera: carrito */
.cart-link { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: #c9d3e3; }
.cart-link:hover { color: #fff; border-color: var(--blue-2); }
.cart-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-link__n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--amber); color: #1a1205; font: 600 .68rem/18px var(--f-sans); text-align: center; padding: 0 4px; }

/* Hero de páginas */
.phero__grid--solo { grid-template-columns: minmax(0, 860px); }
.phero__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.2; background: var(--surface); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,14,0) 55%, rgba(5,8,14,.75)); pointer-events: none; }
.phero__media figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 1; }
.phero--compact { padding: clamp(40px, 6vw, 70px) 0 clamp(36px, 5vw, 56px); }
.phero--compact h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22ch; }
.phero--compact .lead p { margin: 0; }
.phero--post h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 26ch; }
.e404 { min-height: 60vh; display: flex; align-items: center; }
.e404 .search { margin-top: 26px; max-width: 420px; }

/* Rejillas por número de columnas */
.cards { display: grid; gap: 18px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
a.tcard { transition: border-color .3s, transform .3s; }
a.tcard:hover { border-color: rgba(107,149,255,.5); transform: translateY(-3px); }
.tcard__b h3 { font-size: 1.15rem; }
.tcard__b p:last-of-type { margin-bottom: 14px; }
.why--2 { grid-template-columns: repeat(2, 1fr); }
.why--4 { grid-template-columns: repeat(4, 1fr); }
.why--4 .why__item { padding: 30px 26px; }
.why__item small { color: var(--dim); display: inline-block; margin-top: 8px; }
.why__item a { color: var(--blue-2); }
a.why__item:hover h3 { color: var(--cyan); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step h3 { font: 600 1.05rem/1.25 var(--f-disp); margin: 0 0 6px; letter-spacing: -.01em; }
.range--3 { grid-template-columns: repeat(3, 1fr); }
.range--4 { grid-template-columns: repeat(4, 1fr); }
.range--6 { grid-template-columns: repeat(3, 1fr); }
.rcard div { position: relative; flex: 1; }
.rcard__go { position: absolute; right: 16px; bottom: 16px; font-style: normal; color: var(--dim); transition: transform .2s, color .2s; }
.rcard:hover .rcard__go { color: var(--cyan); transform: translateX(3px); }
.rcard span { display: block; padding-right: 18px; }

/* Split */
.split--rev > :first-child { order: 2; }
.split__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.proj--tall { min-height: 420px; }
.minis { display: grid; gap: 14px; margin: 22px 0 6px; }
.mini { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mini .ico { color: var(--blue-2); margin-top: 2px; }
.mini h3 { font-size: 1rem; margin: 0 0 4px; }
.mini p { margin: 0; color: var(--muted); font-size: .9rem; }
.split--form { align-items: start; }
/* HubSpot pone los campos en una fila si el formulario mide más de ~440 px y no caben: se limita para que siempre vayan apilados */
.split--form .hs-shell { max-width: 470px; margin-left: auto; }
@media (max-width: 960px) { .split--form .hs-shell { margin-right: auto; } }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: #c3cee0; }
.contact-list .ico { color: var(--cyan); width: 20px; height: 20px; }
.contact-list a:hover { color: var(--cyan); }

/* Sectores con icono */
.sector .ico { color: var(--cyan); }
.sector b { font-weight: 600; }
.sector span { color: var(--muted); font-size: .82rem; }

/* Llamada a la acción en línea */
.cta-inline { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-inline h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 6px; }
.cta-inline p { margin: 0; max-width: 60ch; }
.cta-inline .btns { margin: 0; }

/* Tablas */
.spec caption { text-align: left; padding: 14px 20px; font: 600 1rem var(--f-disp); }
.spec td b { color: var(--text); }
.spec a { color: var(--blue-2); }

/* Pestañas (variadores) */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs__list [role="tab"] { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: #c3cee0; font: 500 .9rem/1 var(--f-sans); cursor: pointer; transition: .2s; }
.tabs__list [role="tab"]:hover { border-color: var(--blue-2); color: #fff; }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.js .tabs__panel[data-inactive] { display: none; }
.tabs__title { font-size: 1.3rem; margin: 0 0 18px; }
.vfd-size { margin-bottom: 30px; }
.vfd-size__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.vfd-size__head h4 { font: 600 1.1rem var(--f-disp); margin: 0; }
.vfd-size__head .mono { color: var(--cyan); }
.vfd-size__buy { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.vfd-size .spec td:first-child { font-family: var(--f-mono); font-size: .82rem; color: var(--text); width: auto; }

/* Formulario HubSpot (se pinta en claro: lo enmarcamos en una tarjeta) */
.hs-shell { border-radius: var(--radius-lg); background: #f4f7fb; color: #0d1726; padding: 26px 26px 18px; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.hs-shell .hs-form-frame { min-height: 380px; }
.hs-shell__alt { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #dde4ee; font-size: .88rem; color: #4a5568; }
.hs-shell__alt a { color: #1f4fd6; font-weight: 600; }

/* Blog: tarjetas */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.pcard:hover { border-color: rgba(107,149,255,.5); transform: translateY(-3px); }
.pcard__media { display: block; aspect-ratio: 16/10; background: var(--bg-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__ph { display: grid; place-items: center; height: 100%; color: var(--blue-2); }
.pcard__ph .ico { width: 40px; height: 40px; }
.pcard__b { padding: 20px 22px 24px; }
.pcard__meta { color: var(--dim); margin: 0 0 10px; }
.pcard h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 10px; }
.pcard h3 a:hover { color: var(--cyan); }
.pcard p { color: var(--muted); font-size: .92rem; margin: 0; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 30px; }
.blog-filter__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter__cats a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; color: #c3cee0; }
.blog-filter__cats a:hover, .blog-filter__cats a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.shop-cats { margin-top: 26px; }
.search { position: relative; display: flex; min-width: min(320px, 100%); }
.search input { width: 100%; font: 400 .95rem var(--f-sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 48px 12px 18px; }
.search input:focus { outline: none; border-color: var(--blue-2); }
.search button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.navigation.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: #c3cee0; font-size: .9rem; }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Blog: artículo */
.post__meta { color: var(--dim); margin: 0; }
.post__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 80px; }
.post__aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 18px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; background: var(--surface); max-height: 56vh; overflow: auto; }
.toc__t { color: var(--cyan); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li a { display: block; padding: 6px 8px; border-radius: 8px; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.toc li a:hover, .toc li a.is-active { color: #fff; background: rgba(47,107,255,.14); }
.aside-cta { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(107,149,255,.35); background: radial-gradient(120% 140% at 100% 0%, rgba(47,107,255,.22), transparent 60%), var(--surface); }
.aside-cta .mono { color: var(--cyan); }
.aside-cta b { font: 600 1.02rem/1.25 var(--f-disp); }
.aside-cta span:not(.mono) { color: var(--muted); font-size: .86rem; }
.aside-cta i { font-style: normal; color: var(--blue-2); font-weight: 600; font-size: .88rem; margin-top: 4px; }
.post__img { margin: 0 0 34px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.post__img img { width: 100%; }
.post__cta { margin-top: 50px; }
.post__cta h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }

/* Contenido del editor (blog, legales) */
.prose--post, .prose--page { max-width: 760px; font-size: 1.04rem; line-height: 1.75; color: #c6d0df; }
.prose--post > *:first-child { margin-top: 0; }
.prose--post h2, .prose--page h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: var(--text); margin: 2.2em 0 .6em; scroll-margin-top: 110px; }
.prose--post h3, .prose--page h3 { font-size: 1.22rem; color: var(--text); margin: 1.8em 0 .5em; }
.prose--post h4, .prose--page h4 { font-size: 1.05rem; color: var(--text); margin: 1.5em 0 .4em; }
.prose--post p, .prose--page p { margin: 0 0 1.15em; }
.prose--post a, .prose--page a { color: var(--blue-2); text-decoration: underline; text-decoration-color: rgba(107,149,255,.4); text-underline-offset: 3px; }
.prose--post a:hover, .prose--page a:hover { color: var(--cyan); }
.prose--post strong, .prose--page strong { color: var(--text); }
.prose--post ul, .prose--post ol, .prose--page ul, .prose--page ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose--post li, .prose--page li { margin-bottom: .45em; }
.prose--post li::marker { color: var(--cyan); }
.prose--post blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--blue); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text); }
.prose--post img, .prose--page img { border-radius: 14px; }
.prose--post figure { margin: 1.8em 0; }
.prose--post figcaption { color: var(--dim); font-size: .85rem; margin-top: 8px; }
.prose--post table, .prose--page table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .92rem; display: block; overflow-x: auto; }
.prose--post th, .prose--post td, .prose--page th, .prose--page td { border: 1px solid var(--line-2); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose--post th, .prose--page th { background: var(--bg-2); color: var(--text); font-weight: 600; }
.prose--post hr, .prose--page hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose--post code { font-family: var(--f-mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
/* Las páginas antiguas traen estilos en línea pensados para fondo blanco */
.prose--page [style*="color:#333"], .prose--page [style*="color:#222"], .prose--page [style*="color: #333"], .prose--page [style*="color: #222"] { color: inherit !important; }
.prose--page [style*="background"] { background: transparent !important; }
.wp-block-separator { border-color: var(--line) !important; }
.wp-block-media-text { gap: 24px; }

/* WooCommerce */
.shop-page { color: #c6d0df; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 0 0 22px !important; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.woocommerce ul.products li.product:hover { border-color: rgba(107,149,255,.5); transform: translateY(-3px); }
.woocommerce ul.products li.product a img { margin: 0 0 16px !important; background: #fff; aspect-ratio: 1; object-fit: contain; padding: 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 600 1rem/1.35 var(--f-disp) !important; color: var(--text); padding: 0 20px !important; }
.woocommerce ul.products li.product .price { color: var(--cyan) !important; font: 600 1.05rem var(--f-disp) !important; padding: 0 20px; margin-top: auto !important; }
.woocommerce ul.products li.product .button { margin: 12px 20px 0 !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) { background: var(--blue) !important; color: #fff !important; border-radius: 999px !important; font: 600 .9rem/1 var(--f-sans) !important; padding: 14px 22px !important; border: 0 !important; transition: background .2s; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #4579ff !important; }
.woocommerce .woocommerce-result-count { color: var(--muted); }
.woocommerce .woocommerce-ordering select, .woocommerce select, .woocommerce input.input-text, .woocommerce textarea, .woocommerce .quantity .qty { background: var(--bg) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; padding: 10px 12px !important; }
.woocommerce span.onsale { background: var(--amber); color: #1a1205; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; margin-top: 20px; }
.woocommerce div.product::before, .woocommerce div.product::after { display: none !important; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { background: #fff; border-radius: var(--radius-lg); }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cyan) !important; font: 600 1.6rem var(--f-disp) !important; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #c6d0df; }
.woocommerce div.product form.cart { margin: 24px 0 !important; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { color: var(--text); padding: 6px 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 20px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent !important; border: 1px solid var(--line-2) !important; border-radius: 999px !important; margin: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #c3cee0 !important; padding: 10px 18px !important; font-weight: 500 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--blue) !important; border-color: var(--blue) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce div.product .woocommerce-tabs .panel { color: #c6d0df; }
.woocommerce div.product .woocommerce-tabs .panel table:not(.spec) { display: block; max-width: 100%; overflow-x: auto; } /* tablas del editor: scroll propio en móvil */
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--line) !important; color: #c6d0df; padding: 10px !important; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--bg-2) !important; }
.woocommerce .related > h2 { margin-top: 40px; }
.product_meta { color: var(--muted); font-size: .88rem; display: grid; gap: 4px; }
.product_meta a { color: var(--blue-2); }
.buy-help { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; font-size: .92rem; }
.buy-help p { display: flex; gap: 10px; align-items: center; margin: 0; color: #c6d0df; }
.buy-help .ico { color: var(--cyan); width: 20px; height: 20px; }
.buy-help a { color: var(--blue-2); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--surface) !important; color: var(--text) !important; border-top-color: var(--blue) !important; border-radius: 12px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--cyan) !important; }
/* Bloques de carrito y pago: textos y campos legibles en fondo oscuro */
.wc-block-cart, .wc-block-checkout, .woocommerce-cart, .woocommerce-checkout, .woocommerce-account .woocommerce { color: var(--text); }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select, .wc-block-components-textarea { background: var(--bg) !important; color: var(--text) !important; border-color: var(--line-2) !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox label { color: var(--muted) !important; }
.wc-block-components-panel__button, .wc-block-components-totals-item, .wc-block-components-product-name { color: var(--text) !important; }
.wc-block-components-radio-control__option, .wc-block-components-checkbox__label { color: var(--text); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; color: #c3cee0; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: rgba(47,107,255,.14); color: #fff; }
.woocommerce-breadcrumb { display: none; }

/* ---------- Responsive de los componentes del tema ---------- */
@media (max-width: 1180px) {
  .cards--4, .why--4 { grid-template-columns: repeat(2, 1fr); }
  .range--4, .range--6 { grid-template-columns: repeat(2, 1fr); }
  .post__layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .post__aside { position: static; order: 2; }
  .toc { display: none; }
}
@media (max-width: 960px) {
  .cards--3, .posts-grid, .woocommerce ul.products, .range--3 { grid-template-columns: repeat(2, 1fr); }
  .steps--3, .steps--4 { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .phero__grid--solo { grid-template-columns: 1fr; }
  .vfd-size__buy { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .cards--2, .cards--3, .cards--4, .why--2, .why--4, .posts-grid, .woocommerce ul.products, .range--3, .range--4, .range--6 { grid-template-columns: 1fr; }
  .hs-shell { padding: 18px 14px 14px; }
  .blog-filter { flex-direction: column; align-items: stretch; }
  .proj--tall { min-height: 300px; }
}

.archive-product { margin: 14px 0 0; }

/* Vista 3D del variador en la ficha de producto */
.vfd3d { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin: 8px 0 48px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1, rgba(255,255,255,.02)); }
.vfd3d h2 { margin: 8px 0 12px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.vfd3d p { color: var(--muted); margin: 0 0 16px; }
.vfd3d .viewer { aspect-ratio: 4/3; }
@media (max-width: 820px) { .vfd3d { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; } }

/* ---------- Ficha de producto variable: selector, modelo elegido y especificaciones ---------- */
.woocommerce div.product form.cart table.variations { width: 100%; margin: 0 0 14px; border: 0; }
.woocommerce div.product form.cart table.variations tr { display: grid; gap: 10px; }
.woocommerce div.product form.cart table.variations th.label { text-align: left; padding: 0; }
.woocommerce div.product form.cart table.variations label { font: 500 .74rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.woocommerce div.product form.cart table.variations td.value { padding: 0; }
.woocommerce div.product form.cart table.variations select { min-width: 220px; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--blue-2); }
.vpills-src { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.vpills { display: flex; flex-wrap: wrap; gap: 8px; }
.vpill { font: 500 .9rem/1 var(--f-sans); color: #c9d3e3; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; min-width: 76px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.vpill:hover { border-color: var(--blue-2); color: #fff; }
.vpill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(47,107,255,.8); }
.vpill:disabled { opacity: .35; cursor: not-allowed; }
.vpill:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.woocommerce div.product .single_variation_wrap .woocommerce-variation-price .price { display: block; margin: 4px 0 14px; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.woocommerce div.product .woocommerce-variation-add-to-cart .quantity .qty { width: 80px; height: 100%; }
.woocommerce div.product .woocommerce-variation-add-to-cart .button.disabled { opacity: .45 !important; }

.msel { margin: 4px 0 18px; }
.msel__empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); font-size: .9rem; }
.msel__card { border: 1px solid rgba(62,224,255,.35); border-radius: var(--radius-lg); background: radial-gradient(120% 120% at 100% 0%, rgba(47,107,255,.16), transparent 60%), var(--surface); overflow: hidden; animation: mselIn .3s ease; }
@keyframes mselIn { from { opacity: 0; transform: translateY(6px); } }
.msel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.msel__eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.msel__model { font: 600 1.15rem/1 var(--f-mono); color: #fff; letter-spacing: .02em; }
.msel__body { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; align-items: center; padding: 16px 18px 6px; }
.msel__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.msel__specs div { min-width: 0; }
.msel__specs dt { font: 500 .68rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 4px; }
.msel__specs dd { margin: 0; color: var(--text); font-weight: 600; font-size: .95rem; }
.msel__wide { grid-column: 1 / -1; }
.msel__fig { width: 130px; height: auto; overflow: visible; }
.msel__fig-front { fill: #1b2638; stroke: var(--blue-2); stroke-width: 1; }
.msel__fig-side { fill: #121c2b; stroke: rgba(107,149,255,.5); stroke-width: 1; }
.msel__fig-screen { fill: var(--cyan); opacity: .55; }
.msel__fig text { font: 500 10.5px var(--f-mono); fill: var(--muted); }
.msel__more { padding: 8px 18px 16px; font-size: .88rem; }
[hidden] { display: none !important; }

.pspec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 8px; }
.pspec__head { display: flex; justify-content: space-between; align-items: end; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.pspec__head h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.pspec__head p { margin: 0; color: var(--muted); font-size: .9rem; }
.pspec .table-wrap { background: var(--surface); }
.pspec__table { min-width: 520px; }
.pspec__table th, .pspec__table td { padding: 13px 18px; }
.pspec__table td:first-child { width: auto; color: inherit; }
.pspec__table tbody th { font: 500 .88rem/1.3 var(--f-mono); color: #fff; text-transform: none; letter-spacing: 0; background: transparent; white-space: nowrap; }
.pspec__table tbody td b { color: var(--cyan); font-weight: 600; }
.pspec__table tbody tr { transition: background .25s; }
.pspec__table tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
.pspec__table tbody tr:hover { background: rgba(47,107,255,.07); }
.pspec__table tbody tr.is-sel { background: rgba(47,107,255,.18); box-shadow: inset 3px 0 0 var(--cyan); }
.pspec__table tr:last-child th, .pspec__table tr:last-child td { border-bottom: 0; }
.pspec__table--dims th, .pspec__table--dims td { text-align: center; }
.pspec__table--dims tbody th { text-align: left; }
.pspec__table--dims thead tr:first-child th { border-bottom: 1px solid var(--line); }
.pspec__dims { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.pspec__drawing { margin: 0; padding: 18px; background: #fff; border-radius: var(--radius); }
.pspec__drawing img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .pspec__dims { grid-template-columns: minmax(0, 1fr); } .pspec__drawing { max-width: 520px; } }
@media (max-width: 480px) { .msel__body { grid-template-columns: minmax(0, 1fr); } .msel__fig { display: none; } .vpill { min-width: 0; flex: 1 0 calc(33% - 8px); } }

/* ---------- Carrito lateral ---------- */
.cdrawer { position: fixed; inset: 0; z-index: 200; }
.cdrawer__overlay { position: absolute; inset: 0; background: rgba(2,4,8,.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.cdrawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -30px rgba(0,0,0,.8); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); outline: none; color: var(--text); }
.cdrawer.is-open .cdrawer__overlay { opacity: 1; }
.cdrawer.is-open .cdrawer__panel { transform: none; }
.cdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cdrawer__title { margin: 0; font: 600 1.2rem/1 var(--f-disp); }
.cdrawer__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--text); cursor: pointer; }
.cdrawer__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cdrawer__close:hover { border-color: var(--blue-2); }
.cdrawer__ok { display: flex; align-items: center; gap: 8px; margin: 14px 22px 0; padding: 10px 14px; border-radius: 10px; background: rgba(62,224,255,.1); border: 1px solid rgba(62,224,255,.3); color: var(--cyan); font-size: .9rem; font-weight: 500; }
.cdrawer__ok .ico { width: 18px; height: 18px; }
.cdrawer__body { flex: 1; overflow-y: auto; padding: 8px 22px 0; }
.cdrawer__body .widget_shopping_cart_content { display: flex; flex-direction: column; min-height: 100%; }
.cdrawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.cdrawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item { position: relative; display: block; margin: 0; padding: 16px 30px 16px 76px; min-height: 92px; border-bottom: 1px solid var(--line); font-size: .9rem; transition: opacity .2s; }
.cdrawer .woocommerce-mini-cart-item.is-removing { opacity: .4; }
.cdrawer .woocommerce-mini-cart-item a:not(.remove) { color: var(--text); font-weight: 600; line-height: 1.35; display: block; }
.cdrawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img { float: none; box-shadow: none; position: absolute; left: 0; top: 16px; width: 62px !important; height: 62px !important; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; margin: 0 !important; }
.cdrawer .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--muted) !important; font-size: 18px; line-height: 1; text-decoration: none; }
.cdrawer .woocommerce-mini-cart-item .remove:hover { background: rgba(255,90,90,.15); color: #ff6b6b !important; }
.cdrawer .woocommerce-mini-cart-item dl.variation { display: flex; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.cdrawer .woocommerce-mini-cart-item dl.variation dt, .cdrawer .woocommerce-mini-cart-item dl.variation dd, .cdrawer .woocommerce-mini-cart-item dl.variation p { margin: 0; }
.cdrawer .woocommerce-mini-cart-item .quantity { display: block; margin-top: 6px; color: var(--cyan); font-weight: 600; }
.cdrawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: auto 0 0; padding: 18px 0 14px; font-size: 1rem; }
.cdrawer .woocommerce-mini-cart__total strong { font-weight: 500; color: var(--muted); }
.cdrawer .woocommerce-mini-cart__total .amount { font: 600 1.35rem var(--f-disp); color: #fff; }
.cdrawer .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 6px; }
.cdrawer .woocommerce-mini-cart__buttons .button { display: block; text-align: center; margin: 0 !important; }
.cdrawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent !important; border: 1px solid var(--line-2) !important; color: var(--text) !important; order: 2; }
.cdrawer .woocommerce-mini-cart__buttons .checkout { order: 1; padding: 17px 22px !important; font-size: 1rem !important; }
.cdrawer .woocommerce-mini-cart__empty-message { margin: 40px 0; text-align: center; color: var(--muted); }
.cdrawer__more { margin: 0 22px 18px; padding: 12px; background: none; border: 0; color: var(--blue-2); font: 600 .9rem var(--f-sans); cursor: pointer; }
.cdrawer__more:hover { color: var(--cyan); }
.single_add_to_cart_button.loading { opacity: .6; pointer-events: none; }

/* ---------- Finalizar compra: formulario a la izquierda, pedido y pago a la derecha ---------- */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: 0 48px; align-items: start; }
.woocommerce-checkout form.checkout > * { grid-column: 1; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout form.checkout > .co-side { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 110px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.woocommerce-checkout #customer_details.col2-set { width: 100%; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-checkout #customer_details .col-2 { margin-top: 28px; }
.woocommerce-checkout h3 { font-size: 1.25rem; margin: 0 0 18px; }
.woocommerce-checkout #order_review_heading { margin: 0 0 14px; }
.woocommerce-checkout .form-row label { color: #c3cee0; font-size: .88rem; margin-bottom: 4px; }
.woocommerce-checkout .form-row .required { color: var(--amber); text-decoration: none; }
.woocommerce-checkout .select2-container .select2-selection--single { height: 44px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; color: var(--text); padding-left: 12px; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { background: var(--bg-2); border-color: var(--line-2); color: var(--text); }
.select2-results__option--highlighted[aria-selected], .select2-results__option--highlighted[data-selected] { background: var(--blue) !important; }
.select2-search--dropdown .select2-search__field { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.woocommerce-checkout #ship-to-different-address { font-size: 1rem; }
.woocommerce-checkout .co-side table.shop_table { border: 0; margin: 0 0 18px; border-collapse: collapse; width: 100%; }
.woocommerce-checkout .co-side table.shop_table th, .woocommerce-checkout .co-side table.shop_table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; color: #c6d0df; background: none; font-size: .9rem; vertical-align: top; }
.woocommerce-checkout .co-side table.shop_table thead th { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.woocommerce-checkout .co-side table.shop_table td:last-child, .woocommerce-checkout .co-side table.shop_table th:last-child { text-align: right; }
.woocommerce-checkout .co-side table.shop_table .product-name { color: var(--text); padding-right: 12px; }
.woocommerce-checkout .co-side table.shop_table .order-total th, .woocommerce-checkout .co-side table.shop_table .order-total td { border-bottom: 0; color: #fff; font-size: 1.05rem; padding-top: 16px; }
.woocommerce-checkout .co-side table.shop_table .order-total .amount { font: 600 1.5rem var(--f-disp); color: var(--cyan); }
/* Métodos de pago sobre blanco: los campos de tarjeta y los botones de PayPal se leen bien */
.woocommerce-checkout #payment { background: #f4f7fb; border-radius: var(--radius); color: #0d1726; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid #dde4ee; padding: 16px; margin: 0; }
.woocommerce-checkout #payment ul.payment_methods li { list-style: none; padding: 10px 12px; margin: 0 0 6px; border: 1px solid #dde4ee; border-radius: 10px; background: #fff; }
.woocommerce-checkout #payment ul.payment_methods li label { color: #0d1726; font-weight: 600; cursor: pointer; }
.woocommerce-checkout #payment ul.payment_methods li input { margin-right: 8px; accent-color: var(--blue); }
.woocommerce-checkout #payment div.payment_box { background: #eef2f8; color: #3a4658; border-radius: 8px; font-size: .88rem; margin: 10px 0 2px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #eef2f8; }
.woocommerce-checkout #payment div.form-row.place-order { padding: 16px; margin: 0; }
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper, .woocommerce-checkout #payment .woocommerce-privacy-policy-text { color: #4a5568; font-size: .82rem; }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text a { color: #1f4fd6; }
.woocommerce-checkout #payment #place_order { width: 100%; float: none; padding: 17px 22px !important; font-size: 1rem !important; }
.co-side__help { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: .85rem; }
.co-side__help .ico { width: 18px; height: 18px; color: var(--cyan); }
.co-side__help a { color: var(--blue-2); }
@media (max-width: 960px) {
  .woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-checkout form.checkout > .co-side { grid-column: 1; grid-row: auto; position: static; margin-top: 28px; padding: 18px; }
}

/* Gráficos de los artículos (SVG con fondo propio) */
.prose--post .et-chart { margin: 2.2em 0; }
.et-chart svg { border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 640px) { .et-chart { overflow-x: auto; } .et-chart svg { min-width: 560px; } } /* en el móvil el gráfico se desplaza dentro de su marco para que el texto se lea */
.et-chart .hit { cursor: crosshair; }
.et-tip { position: fixed; z-index: 300; max-width: 340px; padding: 8px 11px; border-radius: 9px; background: #111b2a; border: 1px solid var(--line-2); box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); color: var(--text); font-size: .82rem; line-height: 1.4; pointer-events: none; }
.prose--post table td { white-space: nowrap; }
.prose--post table td:first-child { white-space: normal; }
