/* AiBiTi Consulting. Mundo visual tomado del logotipo: azul marino, gris pizarra y azul acero.
   Tema intermedio: azul marino medio (ni claro ni casi negro). Un solo acento (azul acero).
   Tema fijo en toda la página. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* Color: paleta oficial (aibiti-empresa/00-contexto/identidad-visual.md). Marino #16213A, azul #2C3E63,
     gris #6B7280, acero #8FA9C2, claro #F4F6F9 y, como acento (10 %), violeta #8B6CF0 / #6E55D9 / lavanda #A996F2. */
  --bg: #16213A;
  --bg-2: #1C2844;
  --surface: #212F4F;
  --footer-bg: #111A2E;
  --deep: #16213A;         /* marino oficial */
  --navy: #2C3E63;         /* azul oficial */
  --text: #F4F6F9;
  --muted: #BAC5D6;
  --slate: #98A2B3;        /* gris oficial #6B7280 aclarado para fondo oscuro */
  --steel: #8FA9C2;        /* acero oficial */
  --steel-soft: #A3BAD0;   /* acero para texto pequeño */
  --steel-deep: #5A6E86;
  --btn: #E9E4FF;          /* lavanda claro oficial: líneas, barras y halos */
  --btn-bg: #6E55D9;       /* violeta profundo: botones principales (texto blanco, 6.2:1) */
  --btn-bg-hover: #5B45C9;
  --violet: #8B6CF0;
  --lavender: #A996F2;     /* acento sobre fondo oscuro */
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --danger: #F29BA7;
  --text-soft: var(--muted);

  /* Forma: dos radios. Paneles 16px, controles 10px. */
  --r: 16px;
  --r-sm: 10px;

  /* Tipografía oficial: Montserrat (SIL OFL 1.1, assets/fonts/Montserrat-OFL.txt). Títulos en 800 y 900 */
  --font-display: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

/* ============ Tema del mes (paleta-por-mes.md de aibiti-empresa) ============
   Nunca cambia: logo, tipografía, marino, orbe y botones violeta (la firma).
   Cambia cada mes: el acento (10 %), los resplandores, la franja de cierre y la sección clara.
   El mes lo pone un script en <head> (data-mes en <html>); ?mes=nov permite previsualizar otro mes. */
:root { --acc: var(--lavender); --acc-light: #6E55D9; --g1: rgba(139, 108, 240, .30); --g2: rgba(143, 169, 194, .22); --g3: rgba(53, 220, 255, .10);
  --lbg: #F4F6F9; --lt1: rgba(139, 108, 240, .12); --lt2: rgba(143, 169, 194, .14); --band-a: #8B6CF0; --band-b: #6E55D9; }
:root[data-mes="ene"] { --acc: #9ADBFF; --acc-light: #1F5E99; --g1: rgba(191,227,255,.24); --g2: rgba(44,90,160,.42); --g3: rgba(53,220,255,.16); --lbg: #EEF6FC; --lt1: rgba(191,227,255, .18); --lt2: rgba(44,90,160, .18); --band-a: #1F5E99; --band-b: #2C3E63; }
:root[data-mes="feb"] { --acc: #FF7FA8; --acc-light: #B0234F; --g1: rgba(255,107,154,.30); --g2: rgba(139,63,168,.38); --g3: rgba(229,72,77,.16); --lbg: #FFF0F4; --lt1: rgba(255,107,154, .18); --lt2: rgba(139,63,168, .18); --band-a: #8B3FA8; --band-b: #C2245A; }
:root[data-mes="mar"] { --acc: #5CF2C0; --acc-light: #0B7A5B; --g1: rgba(47,214,165,.28); --g2: rgba(53,220,255,.22); --g3: rgba(44,90,160,.32); --lbg: #EAFBF4; --lt1: rgba(47,214,165, .18); --lt2: rgba(53,220,255, .18); --band-a: #0B7A5B; --band-b: #1F5E99; }
:root[data-mes="abr"] { --acc: #FFD23F; --acc-light: #1B5FC0; --g1: rgba(255,210,63,.22); --g2: rgba(58,141,255,.36); --g3: rgba(53,220,255,.16); --lbg: #EFF6FF; --lt1: rgba(255,210,63, .18); --lt2: rgba(58,141,255, .18); --band-a: #1B5FC0; --band-b: #2C3E63; }
:root[data-mes="may"] { --acc: #FF7AB6; --acc-light: #B0206A; --g1: rgba(240,71,154,.30); --g2: rgba(242,184,75,.20); --g3: rgba(122,63,176,.32); --lbg: #FFF1F7; --lt1: rgba(240,71,154, .18); --lt2: rgba(242,184,75, .18); --band-a: #7A3FB0; --band-b: #C2246E; }
:root[data-mes="jun"] { --acc: #FFC400; --acc-light: #0B6E86; --g1: rgba(255,196,0,.22); --g2: rgba(0,184,217,.30); --g3: rgba(255,106,0,.16); --lbg: #FFF9E0; --lt1: rgba(255,196,0, .18); --lt2: rgba(0,184,217, .18); --band-a: #0B6E86; --band-b: #1B3A7A; }
:root[data-mes="jul"] { --acc: #FF8A7A; --acc-light: #B23A2C; --g1: rgba(11,111,184,.40); --g2: rgba(255,111,97,.26); --g3: rgba(32,211,194,.20); --lbg: #EAF7FB; --lt1: rgba(11,111,184, .18); --lt2: rgba(255,111,97, .18); --band-a: #0B6FB8; --band-b: #B23A2C; }
:root[data-mes="ago"] { --acc: #C6F54B; --acc-light: #3F6B00; --g1: rgba(182,242,58,.18); --g2: rgba(44,90,160,.42); --g3: rgba(53,220,255,.16); --lbg: #F3FBE6; --lt1: rgba(182,242,58, .18); --lt2: rgba(44,90,160, .18); --band-a: #2C5AA0; --band-b: #3F6B00; }
:root[data-mes="sep"] { --acc: #FF6B6B; --acc-light: #B00E22; --g1: rgba(11,122,75,.40); --g2: rgba(206,17,38,.26); --g3: rgba(244,241,232,.08); --lbg: #F4F9F1; --lt1: rgba(11,122,75, .18); --lt2: rgba(206,17,38, .18); --band-a: #0B7A4B; --band-b: #A01E2A; }
:root[data-mes="oct"] { --acc: #FF8A2A; --acc-light: #B85400; --g1: rgba(110,85,217,.40); --g2: rgba(255,122,26,.30); --g3: rgba(53,220,255,.14); --lbg: #FFF4E8; --lt1: rgba(110,85,217, .18); --lt2: rgba(255,122,26, .18); --band-a: #6E55D9; --band-b: #B4521A; }
:root[data-mes="nov"] { --acc: #FFA94D; --acc-light: #A44E00; --g1: rgba(247,178,207,.26); --g2: rgba(255,196,138,.28); --g3: rgba(205,188,240,.26); --lbg: #FFF7EC; --lt1: rgba(247,178,207, .18); --lt2: rgba(255,196,138, .18); --band-a: #8B4A9C; --band-b: #C2570A; }
:root[data-mes="dic"] { --acc: #FFD25A; --acc-light: #A01E32; --g1: rgba(255,59,85,.32); --g2: rgba(34,214,148,.28); --g3: rgba(255,210,63,.18); --lbg: #F8F2E6; --lt1: rgba(255,59,85, .18); --lt2: rgba(34,214,148, .18); --band-a: #B3152F; --band-b: #0E7A55; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--steel-deep) var(--bg);
  scrollbar-width: thin;
  caret-color: var(--steel-soft);
}
::selection { background: var(--steel); color: var(--deep); }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--steel-deep); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--steel-soft); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; text-wrap: balance; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--steel-soft); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--deep); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--btn-bg); color: #fff; }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--text); }
.btn--ghost:hover { border-color: var(--steel-soft); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(22, 33, 58, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: auto; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.015em; color: var(--text); }
.brand-name .dim { color: var(--text); }
.brand-sub { margin-top: 4px; font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--slate); }
.nav-menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav-menu a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.97rem; font-weight: 500; transition: color 0.2s; }
.nav-menu a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 50% 65% at 85% 30%, var(--g1), transparent 70%), radial-gradient(ellipse 45% 55% at 95% 95%, var(--g2), transparent 70%), radial-gradient(ellipse 60% 70% at 55% 0%, var(--g3), transparent 70%), var(--bg);
}
.hero-viz { position: absolute; inset: 0 0 0 36%; }
.hero-viz canvas { width: 100%; height: 100%; touch-action: pan-y; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.hero-copy { position: relative; z-index: 2; padding-block: 40px 64px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; max-width: 34rem; }
.hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.06; letter-spacing: -0.02em; font-weight: 900; color: var(--text); }
.kw { color: var(--acc); }
.hero h1 { max-width: 34rem; }
.lead { margin-top: 24px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 30rem; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-signals { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--muted); }
.hero-signals li:not(:last-child)::after { content: "·"; margin-inline: 10px; color: var(--steel-deep); }

/* ============ Secciones ============ */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tinted { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2, .team-copy h2, .contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; }
.section-head p, .team-copy > p, .contact-info > p { margin-top: 18px; color: var(--muted); max-width: 40rem; }

.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text); font-size: 1rem; }
.ticks .icon { margin-top: 3px; color: var(--lavender); }

/* ============ Bento (5 celdas exactas) ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "odoo odoo odoo odoo dev dev"
    "odoo odoo odoo odoo bi bi"
    "ai ai ai ti ti ti";
  gap: 16px;
}
.tile {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover { border-color: var(--steel); transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.55); }
.tile h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.015em; }
.tile p { margin-top: 12px; color: var(--muted); max-width: 34rem; }
.tile > * { position: relative; z-index: 1; }

.tile--odoo { grid-area: odoo; background: linear-gradient(150deg, #101A2F 0%, #1A2745 55%, var(--navy) 100%); min-height: 380px; }
.tile--odoo h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.tile--odoo p { color: #C9D6E4; }
.tile--odoo .ticks li { color: #EAF0F7; }
.tile--odoo .ticks .icon { color: var(--steel); }
.tile--dev { grid-area: dev; background: var(--surface); }
.tile--bi { grid-area: bi; background: var(--bg-2); }
.tile--ai { grid-area: ai; background: linear-gradient(120deg, #3A4F78, #2C3E63); }
.tile--ti { grid-area: ti; background: var(--surface); }

/* Hologramas oficiales del orbe (assets/img/orbe): uno por servicio, sin recrearlos */
.tile .holo { display: block; width: 72px; height: auto; margin-bottom: 16px; opacity: 0.95; }
.tile--odoo .holo { width: 96px; }

/* ============ Ritmo de color: sección clara (identidad: lámina "claro") ============ */
.section--light {
  --text: #16213A; --muted: #2C3E63; --line: rgba(22, 33, 58, 0.14); --line-soft: rgba(22, 33, 58, 0.08);
  background: radial-gradient(ellipse 60% 70% at 8% 10%, var(--lt1), transparent 65%), radial-gradient(ellipse 55% 65% at 95% 60%, var(--lt2), transparent 65%), var(--lbg); color: var(--text); border-block: 0;
}
.section--light .kw { color: var(--acc-light); }
.section--light .pledge::before { background: linear-gradient(90deg, #6E55D9, #A996F2); }
.section--light .pledge-icon { color: #6E55D9; }

/* ============ Franja violeta de cierre (identidad: lámina "violeta", solo para el CTA) ============ */
.btn--light { background: #fff; color: #16213A; }
.btn--light:hover { background: #E9E4FF; }
.cta-band { background: radial-gradient(ellipse 60% 120% at 85% 50%, var(--g2), transparent 70%), linear-gradient(120deg, var(--band-a) 0%, var(--band-b) 100%); color: #fff; overflow: hidden; }
.cta-band-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.025em; }
.cta-band p { margin: 12px 0 28px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.cta-orbe { width: clamp(120px, 16vw, 200px); height: auto; flex: none; margin-block: -12px; filter: drop-shadow(0 16px 24px rgba(22, 33, 58, 0.35)); }
@media (prefers-reduced-motion: no-preference) { .cta-orbe { animation: orbe-float 5.5s ease-in-out infinite; } }
@media (max-width: 600px) { .cta-orbe { width: 96px; align-self: flex-end; } .cta-band-in { align-items: flex-end; } }

/* ============ Carrusel de servicios ============ */
.carousel { position: relative; }
.carousel-track {
  position: relative; display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.carousel-track:focus-visible { outline-offset: 6px; }
.carousel .tile { flex: 0 0 min(360px, 82%); scroll-snap-align: start; display: flex; flex-direction: column; }
.carousel .tile--odoo { flex-basis: min(560px, 88%); min-height: 0; }
.carousel .tile { opacity: 0.8; transform: perspective(900px) scale(0.97) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease); }
.carousel .tile.is-active, .carousel .tile:hover, .carousel .tile:focus-within { opacity: 1; transform: perspective(900px) scale(1) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.carousel .tile:hover { border-color: var(--lavender); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(169, 150, 242, 0.25); }
.tile .holo { transition: transform 0.4s var(--ease), filter 0.4s var(--ease); }
.tile:hover .holo { transform: scale(1.12) rotate(-3deg); filter: drop-shadow(0 0 14px rgba(169, 150, 242, 0.65)); }
@keyframes holo-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: no-preference) {
  .tile .holo { animation: holo-bob 5.5s ease-in-out infinite; }
  .tile:nth-child(2) .holo { animation-delay: -1.2s; } .tile:nth-child(3) .holo { animation-delay: -2.4s; }
  .tile:nth-child(4) .holo { animation-delay: -3.6s; } .tile:nth-child(5) .holo { animation-delay: -4.8s; }
}
.carousel-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.carousel-btn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, opacity 0.2s; }
.carousel-btn:hover:not(:disabled) { border-color: var(--lavender); background: var(--navy); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn--prev .icon { transform: scaleX(-1); }
.carousel-dots { display: inline-flex; gap: 8px; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color 0.25s, width 0.25s var(--ease); }
.carousel-dots span.is-on { width: 26px; border-radius: 4px; background: var(--acc); }
.carousel-hint { margin-left: auto; font-size: 0.875rem; font-weight: 700; color: var(--acc); }
@media (hover: none) { .carousel-btn { display: none; } }

/* ============ Portada: orbe en el centro de la red y hologramas con profundidad ============ */
.hero-orbe { position: absolute; left: 50%; top: 52%; width: clamp(110px, 11vw, 150px); height: auto; translate: 0 0; transform: translate(-50%, -50%); pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: no-preference) { .hero-orbe { animation: orbe-float 5.5s ease-in-out infinite; } }
.hero-holo { position: absolute; width: clamp(60px, 6.5vw, 92px); height: auto; pointer-events: none; z-index: 1; opacity: 0.92; translate: calc(var(--px, 0) * var(--d, 0) * 1px) calc(var(--py, 0) * var(--d, 0) * 1px); transition: translate 0.35s ease-out; }
.hero-holo--a { left: 40%; top: 10%; }
.hero-holo--b { right: 6%; top: 60%; }
.hero-holo--c { left: 14%; bottom: 22%; }
@keyframes holo-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-holo { animation: holo-float 7s ease-in-out infinite; }
  .hero-holo--b { animation-duration: 8.5s; animation-delay: -2s; }
  .hero-holo--c { animation-duration: 6.5s; animation-delay: -4s; }
}
@media (max-width: 960px) { .hero-orbe { left: 42%; top: 54%; width: clamp(80px, 22vw, 112px); } .hero-holo--a { left: 8%; top: 8%; } .hero-holo--c { left: 10%; bottom: 6%; } .hero-holo--b { right: 6%; top: 62%; } }

/* ============ Orbe guía (solo pantallas anchas) ============ */
.guia { position: fixed; left: 8px; bottom: 18px; width: 56px; z-index: 40; display: grid; justify-items: center; gap: 2px; opacity: 0; transform: translateY(18px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.guia.is-on { opacity: 1; transform: none; }
.guia img { height: auto; }
.guia-holo { width: 52px; }
.guia-cara { width: 56px; }
@media (prefers-reduced-motion: no-preference) { .guia.is-on .guia-cara { animation: orbe-float 5.5s ease-in-out infinite; } }
@media (max-width: 1099px) { .guia { display: none; } }

/* ============ Carpeta de cristal (cerebro de empresa) ============ */
.pain-guide--video { display: grid; justify-items: center; }
#cerebro .pain { grid-template-columns: minmax(240px, 330px) 1fr; }
#cerebro .pain-guide { max-width: 330px; }
.gf { --k: .86; --gf-px: 0; --gf-py: 0; --gf-ease: cubic-bezier(.2,.8,.2,1); --gf-spring: cubic-bezier(.34,1.36,.5,1);
  --gf-hinge: 0deg; --gf-lift: 42px; --gf-spread: 0px; --gf-fan: 0deg; --gf-stack: 15px;
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 340 / 326; margin-top: -26px; isolation: isolate; }
.gf:hover, .gf:focus-within { --gf-hinge: -11deg; --gf-lift: -34px; --gf-spread: 8px; --gf-fan: 1.4deg; --gf-stack: 10px; }
.gf[data-open] { --gf-hinge: -24deg; --gf-lift: -96px; --gf-spread: 40px; --gf-fan: 5deg; --gf-stack: 30px; }
.gf-stage { position: absolute; left: 0; top: 0; width: 340px; height: 272px; transform-origin: 0 0; transform: translateY(calc(54px * var(--k))) scale(var(--k)); }
.gf-tilt { position: absolute; inset: 0; transform: perspective(1400px) rotateX(calc(var(--gf-py) * -3deg)) rotateY(calc(var(--gf-px) * 4deg)); transition: transform .9s var(--gf-ease); }
.gf-shadow { position: absolute; left: 18px; right: 18px; bottom: -6px; height: 60px; border-radius: 40px; background: rgba(0, 0, 0, .55); filter: blur(22px); transform: translateX(calc(var(--gf-px) * -8px)); transition: transform .9s var(--gf-ease); }
.gf-back { position: absolute; inset: 0; overflow: hidden; clip-path: path('M0 56A22 22 0 0 1 22 34L146 34C170 34 172 0 198 0L318 0A22 22 0 0 1 340 22L340 250A22 22 0 0 1 318 272L22 272A22 22 0 0 1 0 250Z');
  background: radial-gradient(120% 90% at 85% 0%, #A996F2 0%, rgba(169,150,242,0) 55%), linear-gradient(140deg, #2C3E63 0%, #6E55D9 62%, #8B6CF0 100%); }
.gf-back-sheen { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 24%); }
.gf-rim { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none; fill: none; }
.gf-back-rim { width: 340px; height: 272px; }
.gf-back-rim path { stroke: rgba(255,255,255,.28); stroke-width: 1; }
.gf-files { position: absolute; inset: 0; z-index: 5; pointer-events: none; clip-path: inset(-400px -400px 10px -400px); }
.gf-sheet { position: absolute; left: 34px; top: 96px; width: 272px; height: 184px; border-radius: 16px; overflow: hidden; transform-origin: 50% 100%;
  background: linear-gradient(160deg, #26365a 0%, #16213A 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 .5px rgba(255,255,255,.12), 0 12px 28px -8px rgba(0,0,0,.6);
  transform: translate(calc(var(--gf-slot) * var(--gf-spread)), calc(var(--gf-lift) + var(--gf-depth) * var(--gf-stack) * -1)) rotate(calc(var(--gf-slot) * var(--gf-fan)));
  transition: transform .75s var(--gf-spring) calc(var(--gf-depth) * 40ms); }
.gf-sheet-art { position: absolute; left: 50%; top: 56%; width: 150px; height: auto; max-width: none; transform: translate(-50%, -50%); opacity: .95; }
.gf-sheet-head { position: absolute; left: 14px; right: 14px; top: 11px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; white-space: nowrap; }
.gf-sheet-name { font-size: 13px; font-weight: 700; color: #F4F6F9; }
.gf-sheet-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; color: rgba(244,246,249,.62); }
.gf-front { position: absolute; left: 0; top: 74px; width: 340px; height: 198px; z-index: 10; clip-path: path('M0 22A22 22 0 0 1 22 0L118 0C144 0 146 32 172 32L318 32A22 22 0 0 1 340 54L340 176A22 22 0 0 1 318 198L22 198A22 22 0 0 1 0 176Z');
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  transform-origin: 50% 100%; transform: perspective(760px) rotateX(var(--gf-hinge)); transition: transform .8s var(--gf-spring); }
.gf-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,33,58,.16) 0%, rgba(22,33,58,.58) 46%, rgba(17,26,46,.94) 100%); }
.gf-spec { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .16;
  background: radial-gradient(260px 200px at calc(50% + var(--gf-px) * 46%) calc(30% + var(--gf-py) * 40%), rgba(255,255,255,.9), rgba(255,255,255,0) 70%); }
.gf-front-rim { width: 340px; height: 198px; opacity: .8; }
.gf-front-rim path { stroke-width: 2.4; }
.gf-hit { all: unset; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.gf-front:has(.gf-hit:focus-visible) .gf-front-rim path { stroke-width: 5; stroke: #fff; }
.gf-label { position: absolute; left: 28px; bottom: 30px; z-index: 2; display: flex; flex-direction: column; gap: 4px; pointer-events: none; color: var(--text); }
.gf-title { font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: -.012em; }
.gf-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .gf *, .gf *::before, .gf *::after { transition-duration: 0s !important; transition-delay: 0s !important; } .gf-tilt { transform: none; } }
@media (max-width: 960px) { .gf { max-width: 260px; } }

/* ============ Títulos palabra por palabra ============ */
.js .split-ready .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js .split-ready .wi { display: inline-block; opacity: 0; transform: translateY(105%); transition: transform 0.7s var(--ease), opacity 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js .split-ready.is-in .wi { opacity: 1; transform: none; }

/* ============ El orbe de la marca (guía, sin nombre ni voz) ============ */
.orbe { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.pain-guide--video { max-width: 340px; }
.pain-guide--video > img.orbe { width: 150px; margin-bottom: 4px; }
.orbe.is-swap { animation: orbe-pop 0.35s var(--ease); }
@keyframes orbe-pop { 0% { transform: scale(0.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .pain-guide .orbe, .orbe--contacto { animation: orbe-float 5.5s ease-in-out infinite; }
  .pain-guide .orbe.is-swap, .orbe--contacto.is-swap { animation: orbe-pop 0.35s var(--ease), orbe-float 5.5s ease-in-out 0.35s infinite; }
}
@keyframes orbe-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ¿Te suena? */
.pain { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.pain-guide { max-width: 220px; justify-self: center; width: 100%; }
.pain-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.pain-item:hover { border-color: var(--acc); transform: translateY(-3px); }
.pain-item .holo { display: block; width: 72px; height: auto; margin-bottom: 14px; }
.pain-item h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.pain-item p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.pain-list--2 { grid-template-columns: repeat(2, 1fr); }
.pain-foot { margin-top: 14px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--steel-soft); }
.pain-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: var(--muted); }
.pain .section-head { margin-bottom: 28px; }

/* Landing del diagnóstico (diagnostico.html) */
.lp { padding-block: clamp(32px, 6vw, 80px); }
.lp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.orbe--lp { width: 112px; margin-bottom: 18px; }
@media (prefers-reduced-motion: no-preference) { .orbe--lp { animation: orbe-float 5.5s ease-in-out infinite; } .orbe--lp.is-swap { animation: orbe-pop 0.35s var(--ease), orbe-float 5.5s ease-in-out 0.35s infinite; } }
.lp h1, .lp-title { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.07; letter-spacing: -0.02em; font-weight: 900; }
.lp-copy .lead { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.lp-copy .ticks { max-width: 34rem; }
.lp-note { margin-top: 24px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--steel-soft); }
.lp-form h2, .lp-form h3 { margin-bottom: 16px; font-size: 1.3rem; letter-spacing: -0.015em; }
.lp-cal { margin-bottom: 32px; }
.lp-alt { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
.lp-alt a { color: var(--text); }
@media (max-width: 960px) { .lp-grid { grid-template-columns: 1fr; } .orbe--lp { width: 88px; } }

/* Redes en el pie (solo si hay URL en CONFIG.redes) */
.footer-redes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.footer-redes a { color: var(--muted); font-weight: 600; }
.footer-redes a:hover { color: var(--text); }

/* Orbe del diagnóstico */
.contact-intro { position: relative; }
.orbe--contacto { width: 96px; margin-bottom: 14px; }

/* ============ Tabs de desarrollo ============ */
.tabs { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tablist { position: relative; display: grid; gap: 4px; }
.tab { position: relative; z-index: 1; }
.tab-pill { position: absolute; left: 0; right: 0; top: 0; height: var(--h, 52px); transform: translateY(var(--y, 0px)); z-index: 0; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.34, 1.36, 0.5, 1), height 0.3s var(--ease); }
.tab-pill::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--acc); }
.tablist.has-pill .tab[aria-selected="true"] { background: transparent; border-color: transparent; box-shadow: none; }
.tab {
  text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--muted);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.6); }
.tabpanels { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3.4vw, 44px); min-height: 330px; }
.tabpanel h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.015em; }
.tabpanel > p { margin-top: 14px; color: var(--muted); max-width: 36rem; }
.tabpanel:not([hidden]) { animation: panel-in 0.45s var(--ease); }
.tab-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.95rem; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-l { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes ba-glow { 0% { box-shadow: 0 0 0 0 rgba(169, 150, 242, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(169, 150, 242, 0); } }
@keyframes arrow-go { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.tabpanel:not([hidden]) > h3, .tabpanel:not([hidden]) > p { animation: rise 0.55s var(--ease) both; }
.tabpanel:not([hidden]) > p { animation-delay: 0.07s; }
.tabpanel:not([hidden]) .ticks li { animation: rise 0.5s var(--ease) both; }
.tabpanel:not([hidden]) .ticks li:nth-child(1) { animation-delay: 0.16s; } .tabpanel:not([hidden]) .ticks li:nth-child(2) { animation-delay: 0.24s; } .tabpanel:not([hidden]) .ticks li:nth-child(3) { animation-delay: 0.32s; }
.tabpanel:not([hidden]) .ba-before { animation: slide-l 0.6s var(--ease) 0.4s both; }
.tabpanel:not([hidden]) .ba-after { animation: slide-r 0.6s var(--ease) 0.55s both, ba-glow 1.2s ease-out 1s 1; }
.tabpanel:not([hidden]) .beforeafter::after { animation: arrow-go 1.6s ease-in-out 1.2s 2; }

/* ============ Equipo: tres nodos ============ */
.team { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.team-detail { margin-top: 36px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-height: 190px; }
.team-detail h3 { font-size: 1.3rem; }
.team-detail p { margin-top: 10px; color: var(--muted); }
.team-detail.is-changing { animation: panel-in 0.4s var(--ease); }

.team-diagram { position: relative; aspect-ratio: 600 / 520; width: 100%; max-width: 640px; margin-inline: auto; }
.team-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.link { fill: none; stroke: var(--steel); stroke-width: 1.4; opacity: 0.35; }
.beam { fill: none; stroke: var(--steel-soft); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 14 86; opacity: 0.55; animation: beam 3.4s linear infinite; transition: stroke-width 0.3s var(--ease), opacity 0.3s; }
.beam--b { animation-delay: -1.1s; }
.beam--c { animation-delay: -2.2s; }
.beam.is-active { stroke: var(--btn); stroke-width: 4; opacity: 1; animation-duration: 1.7s; }
@keyframes beam { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -86; } }
.core-disc { fill: var(--bg); stroke: var(--steel); stroke-width: 2; }
.core-ring { fill: none; stroke: var(--steel-soft); stroke-width: 1; opacity: 0.3; transform-origin: 300px 310px; animation: core-pulse 3.4s ease-in-out infinite; }
@keyframes core-pulse { 50% { transform: scale(1.06); opacity: 0.15; } }
.core-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; fill: var(--text); }
.core-sub { font-family: var(--font-display); font-weight: 600; font-size: 16px; fill: var(--muted); }

.node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 10px;
  background: none; border: 0; padding: 8px; cursor: pointer; text-align: center;
  transition: transform 0.35s var(--ease);
}
.node:hover { transform: translate(-50%, -50%) scale(1.04); }
@property --pos-x { syntax: '<percentage>'; initial-value: 11.14%; inherits: false; }
@property --pos-y { syntax: '<percentage>'; initial-value: 140%; inherits: false; }
@property --spread-x { syntax: '<percentage>'; initial-value: 150%; inherits: false; }
@property --spread-y { syntax: '<percentage>'; initial-value: 180.06%; inherits: false; }
@property --color-1 { syntax: '<color>'; initial-value: #16213A; inherits: false; }
@property --color-2 { syntax: '<color>'; initial-value: #2C3E63; inherits: false; }
@property --color-3 { syntax: '<color>'; initial-value: #6E55D9; inherits: false; }
@property --color-4 { syntax: '<color>'; initial-value: #8B6CF0; inherits: false; }
@property --color-5 { syntax: '<color>'; initial-value: #A996F2; inherits: false; }
@property --stop-1 { syntax: '<percentage>'; initial-value: 37.35%; inherits: false; }
@property --stop-2 { syntax: '<percentage>'; initial-value: 61.36%; inherits: false; }
@property --stop-3 { syntax: '<percentage>'; initial-value: 78.42%; inherits: false; }
@property --stop-4 { syntax: '<percentage>'; initial-value: 89.52%; inherits: false; }
@property --stop-5 { syntax: '<percentage>'; initial-value: 100%; inherits: false; }
@property --border-angle { syntax: '<angle>'; initial-value: 20deg; inherits: true; }
@property --border-color-1 { syntax: '<color>'; initial-value: rgba(255, 255, 255, 0.25); inherits: true; }
@property --border-color-2 { syntax: '<color>'; initial-value: rgba(169, 150, 242, 0.9); inherits: true; }
.node-letters {
  position: relative; display: grid; place-items: center;
  width: clamp(76px, 12vw, 104px); aspect-ratio: 1; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  background: radial-gradient(var(--spread-x) var(--spread-y) at var(--pos-x) var(--pos-y), var(--color-1) var(--stop-1), var(--color-2) var(--stop-2), var(--color-3) var(--stop-3), var(--color-4) var(--stop-4), var(--color-5) var(--stop-5));
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s, --pos-x 0.5s, --pos-y 0.5s, --spread-x 0.5s, --spread-y 0.5s, --color-1 0.5s, --color-2 0.5s, --color-3 0.5s, --color-4 0.5s, --color-5 0.5s, --stop-1 0.5s, --stop-2 0.5s, --stop-3 0.5s, --stop-4 0.5s, --stop-5 0.5s, --border-angle 0.5s, --border-color-1 0.5s, --border-color-2 0.5s;
}
.node-letters::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(var(--border-angle), var(--border-color-1), var(--border-color-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
}
.node:hover .node-letters, .node:focus-visible .node-letters, .node[aria-selected="true"] .node-letters {
  --pos-x: 0%; --pos-y: 91.51%; --spread-x: 120.24%; --spread-y: 103.18%;
  --color-1: #E9E4FF; --color-2: #A996F2; --color-3: #8B6CF0; --color-4: #2C3E63; --color-5: #16213A;
  --stop-1: 0%; --stop-2: 8.8%; --stop-3: 21.44%; --stop-4: 71.34%; --stop-5: 85.76%;
  --border-angle: 190deg; --border-color-1: rgba(233, 228, 255, 0.9); --border-color-2: rgba(255, 255, 255, 0.35);
}
.node--bi .node-letters { --color-3: #5A6E86; --color-4: #8FA9C2; --color-5: #C3D4E3; }
.node--bi:hover .node-letters, .node--bi:focus-visible .node-letters, .node--bi[aria-selected="true"] .node-letters { --color-1: #F4F6F9; --color-2: #C3D4E3; --color-3: #8FA9C2; --color-4: #2C3E63; --color-5: #16213A; }
.node--ti .node-letters { --color-1: #111A2E; --color-3: #5A6E86; --color-4: #A996F2; --color-5: #E9E4FF; }
.node--ti:hover .node-letters, .node--ti:focus-visible .node-letters, .node--ti[aria-selected="true"] .node-letters { --color-1: #E9E4FF; --color-2: #8FA9C2; --color-3: #A996F2; --color-4: #2C3E63; --color-5: #111A2E; }
.node-role { font-family: var(--font-display); font-size: clamp(0.78rem, 1.3vw, 0.92rem); font-weight: 600; color: var(--muted); max-width: 11rem; line-height: 1.25; transition: color 0.3s; }
.node[aria-selected="true"] .node-letters { box-shadow: 0 0 0 6px rgba(169, 150, 242, 0.3), 0 14px 28px -12px rgba(0, 0, 0, 0.6); }
.node[aria-selected="true"] .node-role { color: var(--text); }

/* ============ Compromisos ============ */
.pledges { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(36px, 5vw, 64px); }
.pledge:nth-child(even) { margin-top: clamp(0px, 3vw, 44px); }
.pledge h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.pledge p { margin-top: 12px; color: var(--muted); max-width: 26rem; }
.pledge-icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; margin-bottom: 16px; color: var(--steel-soft); background: rgba(139, 108, 240, 0.14); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s cubic-bezier(0.34, 1.36, 0.5, 1); }
.pledge:hover .pledge-icon { background: #6E55D9; color: #fff; transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.pledges { counter-reset: p; }
.pledge { position: relative; counter-increment: p; }
.pledge::after { content: "0" counter(p); position: absolute; right: 0; top: -8px; font-family: var(--font-display); font-weight: 900; font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: 1; color: rgba(139, 108, 240, 0.12); pointer-events: none; transition: color 0.4s var(--ease), transform 0.5s var(--ease); }
.pledge:hover::after { color: rgba(139, 108, 240, 0.28); transform: translateY(-4px); }
.js .pledge.reveal { transform: translateX(-30px); }
.js .pledge.reveal:nth-child(even) { transform: translateX(30px); }
.js .pledge.reveal.is-visible { transform: none; }
.js .pledge.reveal:nth-child(2) { transition-delay: 0.1s; } .js .pledge.reveal:nth-child(3) { transition-delay: 0.2s; } .js .pledge.reveal:nth-child(4) { transition-delay: 0.3s; }
.js .pledge.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.35s; }
.js .pledge.reveal.is-visible::before { transform: none; }
.js .pledge.reveal .pledge-icon { opacity: 0; scale: 0.4; transition: opacity 0.5s var(--ease) 0.2s, scale 0.7s cubic-bezier(0.34, 1.56, 0.5, 1) 0.2s, background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s cubic-bezier(0.34, 1.36, 0.5, 1); }
.js .pledge.reveal.is-visible .pledge-icon { opacity: 1; scale: 1; }
.pledge::before { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; margin-bottom: 20px; background: linear-gradient(90deg, var(--steel), var(--btn)); }

/* ============ Metodología: línea de señal ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); padding-top: 44px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.steps { counter-reset: s; }
.steps::after { content: ""; position: absolute; left: 0; top: 11px; height: 2px; width: calc(var(--p, 0) * 100%); border-radius: 2px; background: linear-gradient(90deg, var(--lavender), var(--acc)); box-shadow: 0 0 14px var(--g2); transition: width 0.3s linear, height 0.3s linear; }
@keyframes node-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.step { position: relative; }
.step { counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; color: var(--muted);
  position: absolute; left: 0; top: -44px; width: 24px; height: 24px; border-radius: 50%; z-index: 1;
  background: var(--bg); border: 2px solid var(--steel-deep);
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step.is-on::before { background: var(--lavender); border-color: var(--lavender); color: var(--deep); box-shadow: 0 0 0 7px rgba(169, 150, 242, 0.22); animation: node-pop 0.6s var(--ease); }
.js .step:not(.is-visible) > * { opacity: 0; transform: translateY(16px); }
.step > * { transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.step > :nth-child(2) { transition-delay: 0.08s; } .step > :nth-child(3) { transition-delay: 0.16s; }
.step.is-on .step-badge { border-color: var(--lavender); color: var(--text); }
.step-badge { display: inline-block; margin-top: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.4; color: var(--steel-soft); }
.step h3 { font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: 1rem; }

/* ============ Pila de secciones (tarjetas que se apilan al desplazarte) ============ */
.stack { position: relative; }
.stack-card {
  position: sticky; top: var(--stick, var(--header-h));
  border-radius: 28px 28px 0 0; border-top: 1px solid var(--line-soft);
  box-shadow: 0 -22px 44px -18px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 0; transform: scale(calc(1 - var(--p, 0) * 0.05));
}
.stack-card:not(.section--tinted):not(.section--light):not([class*="bg-"]) { background: var(--bg); }
.stack-card.section--light { border-top-color: rgba(255, 255, 255, 0.4); }
.stack-card::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: #0B1222; opacity: calc(var(--p, 0) * 0.55); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .stack-card { transform: none; } .stack-card::after { display: none; } }

/* Fondos variados en la pila: cada tarjeta, un tema de la marca */
.stack-card.bg-acero { background: radial-gradient(900px 700px at 90% 10%, rgba(143,169,194,.30), transparent 62%), radial-gradient(900px 800px at 0% 60%, rgba(44,62,99,.90), transparent 62%), radial-gradient(700px 500px at 60% 100%, rgba(53,220,255,.12), transparent 60%), #1B2B4C; }
.stack-card.bg-noche { background: radial-gradient(1000px 900px at 50% 40%, rgba(44,62,99,.70), transparent 65%), radial-gradient(500px 400px at 80% 95%, var(--g3), transparent 60%), #0A1122; }
.stack-card.bg-aurora { background: radial-gradient(700px 600px at 15% 15%, rgba(53,220,255,.26), transparent 62%), radial-gradient(800px 700px at 85% 30%, rgba(139,108,240,.36), transparent 62%), radial-gradient(900px 700px at 40% 95%, rgba(44,90,160,.55), transparent 62%), #14203F; }
.stack-card.bg-violeta { background: radial-gradient(900px 800px at 85% 5%, rgba(169,150,242,.30), transparent 60%), radial-gradient(900px 800px at 5% 75%, rgba(110,85,217,.45), transparent 62%), radial-gradient(600px 500px at 70% 100%, rgba(53,220,255,.14), transparent 60%), #1A1840; }
.stack-card.bg-turquesa { background: radial-gradient(900px 700px at 12% 8%, rgba(53,220,255,.26), transparent 62%), radial-gradient(800px 800px at 92% 38%, rgba(44,90,160,.60), transparent 60%), radial-gradient(700px 600px at 30% 100%, rgba(110,85,217,.28), transparent 62%), #0F2744; }
.stack-card.bg-mes, .section.bg-mes { background: radial-gradient(900px 700px at 90% 10%, var(--g1), transparent 62%), radial-gradient(800px 700px at 5% 90%, var(--g2), transparent 62%), var(--bg); }

/* ============ Cotizador ============ */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.calc-form { display: grid; gap: 16px; }
.calc-group { margin: 0; padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.calc-group[hidden] { display: none !important; }
.calc-group legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.calc-group legend + * { clear: both; }
.calc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc-opts + .calc-opts { margin-top: 10px; }
.calc-opt { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.calc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-opt:hover { border-color: var(--steel-soft); }
.calc-opt:has(input:checked) { border-color: var(--lavender); background: rgba(139, 108, 240, 0.14); box-shadow: inset 0 0 0 1px var(--lavender); }
.calc-opt:has(input:focus-visible) { outline: 2px solid var(--steel-soft); outline-offset: 2px; }
.calc-opt-title { font-family: var(--font-display); font-weight: 800; color: var(--text); }
.calc-opt-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.calc-opts--sm .calc-opt { padding: 10px 14px; }
.calc-range { margin-top: 16px; }
.calc-range-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.93rem; color: var(--muted); }
.calc-range-head label { color: var(--text); font-weight: 600; }
.calc-range-head span { white-space: nowrap; }
.calc-num { width: 4.6rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-weight: 700; text-align: right; }
.calc-range input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--violet); cursor: pointer; }
.calc-help { margin: -4px 0 4px; font-size: 0.9rem; color: var(--muted); }
.calc-warn { margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(242, 155, 167, 0.12); border: 1px solid rgba(242, 155, 167, 0.4); color: var(--text); font-size: 0.9rem; }
.calc-sum { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; border-radius: var(--r); border: 1px solid rgba(169, 150, 242, 0.35); background: linear-gradient(160deg, #26365a 0%, #16213A 100%); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7); }
.calc-sum h3 { margin: 18px 0 6px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); }
.calc-sum h3:first-child { margin-top: 0; }
.calc-sum h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.93rem; color: var(--muted); }
.sum-row[hidden] { display: none; }
.sum-row strong { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-row--em { border-top: 1px solid var(--line-soft); margin-top: 2px; padding-top: 8px; color: var(--text); font-weight: 700; }
.sum-total { display: grid; gap: 2px; margin-top: 18px; padding: 16px; border-radius: var(--r-sm); background: rgba(139, 108, 240, 0.16); }
.sum-total span { font-size: 0.85rem; color: var(--muted); }
.sum-total strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: #fff; font-variant-numeric: tabular-nums; }
.sum-total small { font-size: 0.82rem; color: var(--muted); }
.calc-compare { margin-top: 14px; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.calc-compare strong { color: var(--text); }
.calc-cta { width: 100%; margin-top: 18px; }
.calc-notes { margin-top: clamp(24px, 3vw, 36px); max-width: 60rem; display: grid; gap: 12px; color: var(--muted); }
.calc-notes strong { color: var(--text); }
.calc-fine { font-size: 0.82rem; color: var(--steel-soft); }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } .calc-sum { position: static; } }
@media (max-width: 480px) { .calc-opts { grid-template-columns: 1fr; } .calc-range-head { flex-wrap: wrap; } }

/* ============ Contacto ============ */
.section--contact { background: linear-gradient(180deg, var(--bg-2), #121B30); border-top: 1px solid var(--line-soft); }
.contact-intro { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-cols--solo { grid-template-columns: 1fr; }
.contact-cols--solo .contact-write { max-width: 52rem; }
.contact-cal h3, .contact-write h3 { margin-bottom: 16px; font-size: 1.3rem; letter-spacing: -0.015em; }
.cal-embed { min-height: 520px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
.cal-loading { padding: 24px; color: var(--muted); }
.contact-direct { margin-top: clamp(28px, 4vw, 44px); padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .icon { color: var(--steel-soft); }
.contact-list a { color: var(--text); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(24px, 3.4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.6); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full, .consent, .form-actions, .form-status, .field-error--full { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8E9AB1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel-soft); background: #121B30; box-shadow: 0 0 0 3px rgba(157, 184, 206, 0.28); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 1.2em; font-size: 0.88rem; color: var(--danger); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 0.93rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--steel); }
.consent a { color: var(--text); }
.form-status { min-height: 1.4em; font-size: 0.95rem; color: var(--text); }
.form-status[data-state="error"] { color: var(--danger); }
.form-status[data-state="ok"] { color: var(--steel-soft); font-weight: 600; }
.form-status a { color: var(--text); }
.more { grid-column: 1 / -1; }
.more > summary { cursor: pointer; width: fit-content; min-height: 32px; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; color: var(--steel-soft); }
.more > summary:hover { color: var(--text); }
.more[open] > summary { margin-bottom: 16px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Footer ============ */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line-soft); padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.footer-logo { width: min(210px, 100%); height: auto; margin-bottom: 20px; }
.footer-partner { display: flex; align-items: center; gap: 14px; margin-top: 20px; color: var(--text); font-weight: 700; }
.footer-partner img { width: 110px; height: auto; }
.footer-brand .footer-note { margin-top: 10px; font-size: 0.8rem; color: var(--steel-soft); }
.footer-brand p { color: var(--muted); max-width: 26rem; font-size: 0.97rem; }
.site-footer h3 { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a, .footer-bottom a { color: var(--muted); text-decoration: none; font-size: 0.97rem; }
.site-footer li a:hover, .footer-bottom a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--slate); font-size: 0.88rem; }

/* ============ Aparición al hacer scroll (visible por defecto sin JS) ============ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .bento .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .bento .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .bento .reveal:nth-child(5) { transition-delay: 0.24s; }

/* ============ Páginas legales y 404 (comparten esta hoja de estilos) ============ */
.legal { padding: 56px 0 96px; background: var(--bg); color: var(--text); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); margin-top: 0.8em; }
.legal ul { list-style: disc; padding-left: 1.4em; display: grid; gap: 6px; margin: 0.8em 0 1em; }
.legal a { color: var(--text); }
.legal code { font-family: var(--font-mono); font-size: 0.92em; color: var(--text); }
.draft-note { margin: 0 0 28px; padding: 16px 18px; border-radius: var(--r-sm); background: #3A3320; border: 1px solid #8A7230; color: #F1DCA0; font-weight: 600; }
.draft-note p, .draft-note li { color: #F1DCA0; margin-top: 0.5em; }
.draft-note p:first-child { margin-top: 0; }
.draft-note ul { margin-bottom: 0; }
.page-404 { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.page-404 h1 { font-size: clamp(3rem, 12vw, 6rem); margin-bottom: 8px; }
.page-404 .btn { margin-top: 12px; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px clamp(20px, 4vw, 48px) 24px;
    background: rgba(22, 33, 58, 0.98); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu[data-open="true"] { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-menu .btn { margin-top: 16px; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-viz { position: relative; inset: auto; order: 2; height: min(112vw, 520px); }
  .hero-copy { order: 1; padding-block: 36px 8px; }
  .hero h1 { font-size: clamp(2rem, 7.6vw, 2.7rem); }

  .pain { grid-template-columns: 1fr; }
  .pain-guide { max-width: 120px; }
  .pain-guide--video { max-width: 240px; }
  .pain-guide--video > img.orbe { width: 112px; }
  #cerebro .pain { grid-template-columns: 1fr; }
  .pain-list, .pain-list--2 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "odoo" "dev" "bi" "ai" "ti"; }
  .tile--odoo { min-height: 0; }
  .tabs { grid-template-columns: 1fr; }
  .tablist { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .tab { white-space: nowrap; scroll-snap-align: start; border-color: var(--line-soft); }
  .team { grid-template-columns: 1fr; }
  .pledges { grid-template-columns: 1fr; }
  .pledge:nth-child(even) { margin-top: 0; }
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-left: 44px; row-gap: 32px; }
  .steps::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps::after { left: 11px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); }
  .step::before { left: -44px; top: 2px; }
  .contact-cols { grid-template-columns: 1fr; }
  .form, .more-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; }
  .hero-actions .btn { flex: 1 1 100%; }
  .node-role { max-width: 7.5rem; }
  .brand-mark { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .beam { animation: none; stroke-dasharray: none; }
  .core-ring { animation: none; }
}

/* ============ Spotlight de las tarjetas (solo con puntero real y movimiento permitido) ============ */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(157, 184, 206, 0.12), transparent 60%); /* --steel-soft al 12 % */
    transition: opacity 0.3s var(--ease);
  }
  .tile:hover::before { opacity: 1; }
}

/* ============ Antes → Después (paneles de desarrollo) ============ */
.beforeafter { margin-top: 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; }
.beforeafter p { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.beforeafter .ba-after { border-color: var(--steel); color: var(--text); }
.beforeafter::after { content: "→"; grid-column: 2; grid-row: 1; align-self: center; color: var(--steel-soft); font-size: 1.25rem; }
.ba-before { grid-column: 1; grid-row: 1; }
.ba-after { grid-column: 3; grid-row: 1; }
.ba-label { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-soft); }

/* Móvil: los temas se presentan como acordeón (<details>), generado desde main.js */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.acc + .acc { margin-top: 10px; }
.acc > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--steel-soft); border-bottom: 2px solid var(--steel-soft); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.acc[open] > summary::after { transform: rotate(-135deg); }
.tabs--acc .tabpanels { background: none; border: 0; padding: 0; min-height: 0; }
.tabs--acc .tabpanel { padding: 0 18px 20px; }
.tabs--acc .tabpanel > h3 { display: none; } /* el summary ya nombra el tema */
.tabs--acc .tabpanel > p { margin-top: 0; }
.tabs--acc .tab-note { margin-top: 20px; }

/* Sin JavaScript: no hay pestañas, se muestran todos los paneles en fila */
html:not(.js) .tablist { display: none; }
html:not(.js) .tabs { grid-template-columns: 1fr; }
html:not(.js) .tabpanels { display: grid; gap: 16px; background: none; border: 0; padding: 0; }
html:not(.js) .tabpanel[hidden] { display: block !important; }
html:not(.js) .tabpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

@media (max-width: 600px) {
  .beforeafter { grid-template-columns: 1fr; }
  .beforeafter::after { grid-column: 1; grid-row: 2; justify-self: center; content: "↓"; }
  .ba-before { grid-column: 1; grid-row: 1; }
  .ba-after { grid-column: 1; grid-row: 3; }
}
