/* MORAI · estilos del sitio.
   Los colores y tipografías vienen de config/site.js como variables CSS
   (--color-*, --font-*); aquí solo hay valores de respaldo. */

/* Groupe, la tipografía del manual de identidad (WOFF2 en /fonts, solo latín). */
@font-face { font-family: 'Groupe'; src: url('/fonts/groupe-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Groupe'; src: url('/fonts/groupe-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Groupe'; src: url('/fonts/groupe-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Groupe'; src: url('/fonts/groupe-700.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }
/* Groupe es display (mayúsculas estilizadas): solo para titulares grandes y cifras; los títulos
   pequeños, como los de las tarjetas, van en la fuente de texto para que se lean bien. */
h3, .shot figcaption strong, .roles-table caption { font-family: var(--font-body); }

:root {
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(19, 38, 29, .06), 0 12px 32px -8px rgba(19, 38, 29, .14);
  --shadow-sm: 0 1px 2px rgba(19, 38, 29, .05), 0 4px 12px -4px rgba(19, 38, 29, .08);
  --shadow-lg: 0 2px 4px rgba(10, 21, 16, .12), 0 32px 64px -16px rgba(10, 21, 16, .45);
  --container: 1160px;
  --gutter: 24px;
  /* Movimiento (escala de transitions.dev): salida más rápida que la entrada. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  /* Ondas verdes del Manual de identidad (portada y banda de CTA). */
  --waves:
    radial-gradient(120% 90% at 100% 0%, rgba(42, 133, 68, .55), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(42, 133, 68, .35), transparent 60%),
    radial-gradient(60% 50% at 85% 110%, rgba(161, 192, 56, .18), transparent 70%),
    linear-gradient(160deg, var(--color-darker, #0a1510), var(--color-dark, #13261d));
  /* Check de las listas (máscara: toma el color del texto). */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* --- Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--color-primary) var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-text, #1c2e24);
  background: var(--color-bg, #fff);
  overflow-x: hidden;
}
::selection { background: var(--color-accent); color: var(--color-dark); }
input, textarea { caret-color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-primary-dark); }
strong, b { font-weight: 600; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-dark); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--color-muted); max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--color-dark); color: #fff; padding: 8px 12px; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .is-highlighted :focus-visible { outline-color: var(--color-accent); }
.icon { width: 1.375rem; height: 1.375rem; flex: none; }

/* --- Botones ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition-property: background-color, color, border-color, box-shadow, transform;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-outline:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.btn-ghost { color: var(--color-dark); background: transparent; border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-dark); color: var(--color-dark); }
.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-light:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.btn-sm { min-height: 40px; padding: .55em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
/* Sobre fondo oscuro (cabecera, portada, banda de CTA, plan destacado): Lima con texto Bosque. */
.hero .btn-primary, .site-header .btn-primary, .cta-band .btn-light, .is-highlighted .btn-primary { background: var(--color-accent); color: var(--color-dark); }
.hero .btn-primary:hover, .site-header .btn-primary:hover, .cta-band .btn-light:hover, .is-highlighted .btn-primary:hover { background: var(--color-ivory); color: var(--color-dark); }
.hero .btn-ghost, .hero .btn-outline { color: var(--color-ivory); border-color: rgba(229, 236, 202, .35); }
.hero .btn-ghost:hover, .hero .btn-outline:hover { color: #fff; border-color: var(--color-ivory); background: rgba(229, 236, 202, .08); }

/* "Conocer más": la flecha avanza al pasar el cursor (learn-more hover). */
.link-arrow { display: inline-flex; align-items: center; gap: .35em; min-height: 40px; font-weight: 500; text-decoration: none; }
.link-arrow::after {
  content: ''; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Cabecera ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 21, 16, .9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(229, 236, 202, .1);
  transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(10, 21, 16, .96); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: var(--color-ivory); text-decoration: none; font-weight: 400; font-size: .95rem;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.site-nav a:not(.btn):hover { color: #fff; background: rgba(229, 236, 202, .08); }
.site-nav a[aria-current="page"] { color: var(--color-accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--color-ivory); position: absolute; left: 11px; transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast); }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { content: ''; left: 0; top: -7px; }
.nav-toggle-bar::after { content: ''; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: block; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 12px; }
  /* Menú móvil: crece desde la cabecera (menu dropdown de transitions.dev). */
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-darker); padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid rgba(229, 236, 202, .1); box-shadow: var(--shadow-lg);
    transform-origin: top center;
    opacity: 0; transform: translateY(-6px) scale(.98); visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
  }
  .js .site-nav.is-open {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: flex; min-height: 48px; padding: 0; border-radius: 0; border-bottom: 1px solid rgba(229, 236, 202, .1); }
  .site-nav ul a:not(.btn):hover { background: none; }
  /* Sin JS: el menú se muestra en una fila. */
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .no-js .site-nav ul a:not(.btn) { border: 0; min-height: 36px; }
}

/* --- Hero ------------------------------------------------------------------------ */
.hero { position: relative; padding: 88px 0 80px; background: var(--waves); color: var(--color-ivory); }
.hero h1 { color: #fff; }
.hero .text-primary { color: var(--color-accent); }
.hero .lead, .hero .muted, .hero-points { color: rgba(229, 236, 202, .8); }
.hero a:not(.btn) { color: var(--color-accent); }
.hero-simple { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5em; }
.hero-points li::before, .check-list li::before {
  content: ''; width: 1.1em; height: 1.1em; flex: none; background: var(--color-accent);
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}

/* Portada de inicio: el isotipo como materia de fondo y la captura real del POS
   saliendo de la portada hacia la sección siguiente. */
.hero-home { padding: 104px 0 0; display: flow-root; } /* contiene el margen negativo de la captura */
.hero-mark { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.brand-mark { position: absolute; width: min(880px, 95vw); right: -14%; top: -22%; overflow: visible; }
/* El isotipo está hecho de piezas superpuestas: la transparencia va en el grupo (.mark-body)
   y no en cada pieza, para que las uniones no se noten. */
.brand-mark .mark-ring, .brand-mark .mark-arc { fill: var(--color-ivory); }
.brand-mark .mark-body { opacity: .08; }
.brand-mark .mark-star { fill: var(--color-accent); opacity: .5; }
.hero-copy { position: relative; }
/* Máscaras de SplitText: espacio para los trazos inferiores (g, p, q) durante la entrada. */
.hero h1 [class*="-mask"] { padding-bottom: .28em; margin-bottom: -.28em; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lead { max-width: 54ch; }
.hero-shot { position: relative; margin-top: 72px; margin-bottom: -220px; z-index: 1; }
.hero-shot img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

/* Vitrina de productos (inicio): pestañas con indicador deslizante (tabs sliding de
   transitions.dev) y fundido entre capturas apiladas en la misma celda. */
.showcase { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.showcase-tabs {
  position: relative; display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 4px; border-radius: 999px; background: rgba(229, 236, 202, .08); border: 1px solid rgba(229, 236, 202, .16);
}
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-pill {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px;
  background: var(--color-accent); pointer-events: none;
}
.showcase-tabs.is-ready .showcase-pill { transition: transform var(--dur) var(--ease-out), width var(--dur) var(--ease-out); }
.showcase-tab {
  position: relative; z-index: 1; flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: none; color: var(--color-ivory); font: 500 .92rem/1 var(--font-body); cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.showcase-tab:hover { color: #fff; }
.showcase-tab[aria-selected="true"] { color: var(--color-dark); }
.no-js .showcase-tabs { display: none; }
.showcase-panels { display: grid; width: 100%; }
/* Cada panel es una tarjeta: la captura arriba y la leyenda como pie blanco, para que se
   lea igual sobre la portada oscura o sobre la sección clara, a cualquier ancho. */
.showcase-panel {
  grid-area: 1 / 1; margin: 0; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.showcase-panel.is-active { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease-out), visibility 0s; }
.hero-shot .showcase-panel img { border-radius: 0; box-shadow: none; outline: 0; border-bottom: 1px solid var(--color-border); }
.showcase-caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 32px;
  padding: 16px 22px; color: var(--color-text); font-size: .98rem; line-height: 1.5;
}
.showcase-caption strong { color: var(--color-dark); }
.hero .showcase-caption .link-arrow { color: var(--color-primary-dark); flex: none; }
.section.section-after-shot { padding-top: calc(220px + 88px); }

/* --- Secciones ------------------------------------------------------------------ */
.section { padding: 96px 0; }
.section-alt { background: var(--color-surface); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head .muted { font-size: 1.05rem; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-body { padding: 24px 24px 20px; }
.card-sub { margin: -.35em 0 .75em; font-size: .9rem; font-weight: 500; color: var(--color-primary-dark); }
.card-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-3.cards-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .cards-3.cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-3.cards-4 { grid-template-columns: 1fr; } }
.product-card { display: flex; flex-direction: column; transition: box-shadow var(--dur) var(--ease-out); }
.product-card:hover { box-shadow: var(--shadow); }

/* Escenario de producto: el mismo panel marfil en las tres tarjetas. Las medidas siguen la
   geometría de /img/dxlex.svg (560x420: ventana a 40px del borde, barra de 36px), en
   unidades del contenedor para que coincidan a cualquier ancho. */
.product-stage { position: relative; aspect-ratio: 4 / 3; background: var(--color-primary-soft); overflow: hidden; container-type: inline-size; }
.stage-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-art-contain { object-fit: contain; padding: 4%; }
.window {
  position: absolute; left: 7.14%; right: 7.14%; top: 9.52%; bottom: 14.29%;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 2.5cqw; box-shadow: 0 0 0 1px #dde6cc;
}
.window-bar { flex: none; display: flex; align-items: center; gap: 1.43cqw; height: 6.43cqw; padding-left: 2.86cqw; background: var(--color-dark); }
.window-bar span { width: 1.43cqw; height: 1.43cqw; border-radius: 50%; background: #f87171; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: var(--color-accent); }
.window img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: left top; }
/* El celular sube desde el borde inferior del panel. Radios concéntricos: 6.4 = 4.6 + 1.8. */
.phone.phone-stage { position: absolute; left: 50%; top: 9.52%; width: 34%; transform: translateX(-50%); padding: 1.8cqw; border-radius: 6.4cqw; }
.phone.phone-stage img { border-radius: 4.6cqw; }
.product-card .card-body { flex: 1; display: flex; flex-direction: column; }
.product-card .card-actions { margin-top: auto; }

/* Características: lista con líneas, no tarjetas. */
.features-3, .features-4 { display: grid; gap: 40px 36px; }
.features-3 { grid-template-columns: repeat(3, 1fr); }
.features-4 { grid-template-columns: repeat(4, 1fr); }
.feature { padding-top: 24px; border-top: 1px solid var(--color-border); }
.feature h3 { margin-bottom: .35em; }
.feature p:last-child { margin-bottom: 0; }
.feature-icon {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--color-primary-soft); color: var(--color-primary); margin-bottom: 16px;
}
.section-alt .feature-icon { background: #fff; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; padding-top: 60px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-dark); color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
}
/* Línea que une los pasos. */
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -20px; height: 1px; background: var(--color-border); }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 24px; background: var(--waves); color: var(--color-ivory); }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: rgba(229, 236, 202, .85); }

/* --- Página de producto: cifras, bloques imagen + texto, alertas y roles --------------- */
.spec-row { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 72px; border-block: 1px solid var(--color-border); }
.spec-row > div { padding: 24px 20px; }
.spec-row > div + div { border-left: 1px solid var(--color-border); }
.spec-row dt { font-family: var(--font-heading); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.spec-row dd { margin: 8px 0 0; font-size: .92rem; color: var(--color-muted); }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split-reverse .split-media { order: 2; }
.split-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }
.split-copy .check-list { margin-bottom: 0; }
.split-label { margin: 24px 0 10px; font-size: .85rem; font-weight: 500; color: var(--color-dark); }
.split-note { margin: 24px 0 0; font-size: .95rem; }
.split-copy .chain { margin-top: 20px; }
/* Etiqueta de plan sobre un bloque ("Plan Pro"). */
.tag { display: inline-flex; align-items: center; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--color-dark); color: var(--color-accent); font-size: .78rem; font-weight: 500; }
/* Leyenda de estados (mapa de mesas): punto de color + texto, nunca solo color. */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; font-size: .92rem; color: var(--color-dark); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.legend-libre::before { background: #1f9d55; }
.legend-ocupada::before { background: #e3a008; }
.legend-cobrar::before { background: #d64545; }
.legend-reservada::before { background: #2f6fd6; }

.days { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; }
.days li { padding: 12px 10px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); font-size: .82rem; color: var(--color-muted); line-height: 1.3; }
.days strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--color-dark); font-variant-numeric: tabular-nums; }

/* Flujo de pasos (escalamiento de alertas, etapas del pipeline): óvalos apilados con una
   flecha hacia abajo entre cada uno. Vertical siempre, así nunca se parte en dos filas. */
.chain { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin: 0; padding: 0; }
.chain li { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; background: var(--color-dark); color: var(--color-ivory); font-size: .9rem; line-height: 1.3; }
.chain li:not(:last-child)::after {
  content: ''; position: absolute; left: 22px; top: calc(100% + 4px); width: 16px; height: 20px; background: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1v17M3 13l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1v17M3 13l5 5 5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chain li:last-child { background: var(--color-accent); color: var(--color-dark); font-weight: 500; }

.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.check-list.kardex-points { max-width: 760px; margin: 48px auto 0; }
.note-line { max-width: 70ch; margin: 48px auto 0; text-align: center; }

.table-wrap { margin-top: 88px; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.roles-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.roles-table caption { text-align: left; padding: 24px 24px 8px; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--color-dark); }
.roles-table th, .roles-table td { padding: 14px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--color-border); }
.roles-table thead th { font-size: .8rem; font-weight: 500; color: var(--color-muted); border-top: 0; }
.roles-table tbody th { font-weight: 600; color: var(--color-dark); white-space: nowrap; }
.roles-table td { color: var(--color-text); }

/* --- Capturas de producto ------------------------------------------------------------ */
.screen-frame { border-radius: var(--radius-sm); box-shadow: var(--shadow); background: #fff; width: 100%; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.hero-media .screen-frame, .hero-shot .screen-frame { border-radius: var(--radius); box-shadow: var(--shadow-lg); outline-color: oklch(1 0 0 / .1); }
.shot { margin: 0; }
.shot figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.shot figcaption strong { font-family: var(--font-heading); font-weight: 600; color: var(--color-dark); }
.shot-featured { max-width: 1040px; margin: 0 auto 56px; }
.shot-featured figcaption { text-align: center; align-items: center; }
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.shot-mobile { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; max-width: 860px; margin: 72px auto 0; }
/* Radios concéntricos: 36 = 26 + 10 de marco. */
.phone { margin: 0; width: 260px; padding: 10px; background: var(--color-dark); border-radius: 36px; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 26px; width: 100%; }
@media (max-width: 960px) {
  .shots-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shots-grid { grid-template-columns: 1fr; }
  .shot-mobile { grid-template-columns: 1fr; gap: 28px; justify-items: center; text-align: left; }
  .phone { width: 220px; }
}

/* --- Precios -------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px 28px 28px; display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
/* Plan destacado en el material oscuro de la marca. */
.price-card.is-highlighted { background: var(--waves); color: var(--color-ivory); box-shadow: var(--shadow-lg); }
.price-card.is-highlighted h3, .price-card.is-highlighted .price-amount { color: #fff; }
.price-card.is-highlighted .muted, .price-card.is-highlighted .price-period { color: rgba(229, 236, 202, .75); }
.badge { position: absolute; top: -12px; left: 28px; background: var(--color-accent); color: var(--color-dark); font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price { margin: 8px 0 20px; }
.price-note { margin: -14px 0 20px; font-size: .86rem; }
/* Selector mensual / anual: sin JavaScript se oculta y se ven los dos precios (mensual y nota anual). */
.billing-toggle {
  display: flex; width: fit-content; margin: 0 auto 40px; padding: 4px; gap: 4px; border-radius: 999px;
  background: rgba(229, 236, 202, .06); border: 1px solid rgba(229, 236, 202, .14);
}
.billing-toggle button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px;
  background: transparent; color: var(--color-ivory); font: inherit; font-weight: 500; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.billing-toggle button:hover { color: #fff; }
.billing-toggle button[aria-checked="true"] { background: var(--color-accent); color: var(--color-dark); }
.billing-toggle button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.billing-save { padding: 2px 8px; border-radius: 999px; background: rgba(161, 192, 56, .18); color: var(--color-accent); font-size: .75rem; font-weight: 600; }
.billing-toggle button[aria-checked="true"] .billing-save { background: rgba(19, 38, 29, .14); color: var(--color-dark); }
.no-js .billing-toggle { display: none; }
.price-tier { margin: -4px 0 10px; font-size: .9rem; font-weight: 600; color: var(--color-accent); }

/* Propuesta de valor del POS: problema de hoy ➔ solución. */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: rgba(229, 236, 202, .04); border: 1px solid rgba(229, 236, 202, .1); }
.pain-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.pain-card p { margin: 0; font-size: .95rem; }
.pain-card p span { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pain-before { color: rgba(229, 236, 202, .6); }
.pain-before span { color: rgba(229, 236, 202, .45); }
.pain-after { padding-top: 14px; border-top: 1px solid rgba(229, 236, 202, .12); color: rgba(229, 236, 202, .85); }
.pain-after span { color: var(--color-accent); }
/* El titular del POS es más largo que el de las otras páginas: un tamaño menor lo deja en 3 o 4 líneas. */
.page-pos .hero-product h1 { font-size: clamp(2.1rem, 3.9vw, 3.3rem); }
@media (max-width: 960px) { .pains { grid-template-columns: 1fr; } }
[data-billing-scope="monthly"] [data-billing-show="annual"],
[data-billing-scope="annual"] [data-billing-show="monthly"] { display: none; }
.price-amount { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; color: var(--color-dark); font-variant-numeric: tabular-nums; }
.price-period { color: var(--color-muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li { display: flex; gap: .6em; padding: 6px 0; }
.check-list li::before { margin-top: .3em; background: var(--color-primary); }
.is-highlighted .check-list li::before { background: var(--color-accent); }
.pricing-note { text-align: center; margin-top: 28px; font-size: .9rem; }

/* --- FAQ, equipo, prosa ----------------------------------------------------------- */
.faq { border-bottom: 1px solid var(--color-border); padding: 4px 0; }
.faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 500; color: var(--color-dark); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; padding-left: 16px; font-size: 1.4rem; font-weight: 300; color: var(--color-primary); transition: transform var(--dur) var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--color-muted); }
/* Tarjetas con ancho de tarjeta (no estiradas) y centradas, sean una, dos o más personas. */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; gap: 24px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: minmax(0, 520px); } }
/* Columna flexible: el enlace de LinkedIn queda siempre al pie, aunque las descripciones midan distinto. */
.team-card { display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; text-align: center; }
.team-card h3 { margin-bottom: .3em; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
/* Esmeralda oscuro (7:1 sobre blanco). Alto fijo de dos líneas para que las descripciones arranquen a la misma altura. */
.team-role { color: var(--color-primary-dark); font-weight: 500; line-height: 1.3; min-height: 2.6em; margin-bottom: .6em; text-wrap: balance; }
.team-bio { margin-bottom: 0; }
.team-bio { flex: 1; max-width: 46ch; font-size: .95rem; }
/* Logo de LinkedIn como enlace: botón circular de 44px al pie de la tarjeta. */
.team-link {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 20px; border-radius: 50%;
  background: var(--color-primary-soft); color: var(--color-primary-dark);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.team-link .icon { width: 1.25rem; height: 1.25rem; }
.team-link:hover { background: var(--color-dark); color: var(--color-accent); }
.team-link:active { transform: scale(0.96); }
@media (max-width: 640px) { .team-role { min-height: 0; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.big-code { font-family: var(--font-heading); font-size: 5.5rem; font-weight: 600; letter-spacing: -0.04em; color: var(--color-primary); margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--color-accent); color: var(--color-dark); font-size: 2.2rem; display: flex; align-items: center; justify-content: center; }

/* --- Contacto y formulario ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-label { display: block; font-size: .8rem; font-weight: 500; color: var(--color-muted); }
.form-card { padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: flex; flex-direction: column; }
.field[hidden] { display: none; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--color-dark); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; min-height: 46px; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text); width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c8a3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.field [aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: .82rem; min-height: 1.2em; margin: 4px 0 10px; }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--color-primary); }
.field-check label { font-weight: 400; color: var(--color-text); }
.form-alert { background: #fbeeec; color: var(--color-danger); border: 1px solid #f1c9c3; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }
.form-alert[hidden] { display: none; }
.form-note { text-align: center; font-size: .85rem; margin: 12px 0 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Modal (modal open/close de transitions.dev) ---------------------------------- */
.modal {
  border: 0; padding: 0; border-radius: 24px; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: var(--shadow-lg);
  transform-origin: center; opacity: 0; transform: scale(.96);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.modal.is-open { opacity: 1; transform: scale(1); transition-duration: var(--dur); }
.modal::backdrop { background: rgba(10, 21, 16, .6); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.modal.is-open::backdrop { opacity: 1; transition-duration: var(--dur); }
.modal-box { padding: 32px; position: relative; }
.modal-title { margin-bottom: .25em; padding-right: 48px; }
.modal-sub { margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; background: var(--color-surface);
  border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-dark);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.modal-close:hover { background: var(--color-border); }
.modal-close:active { transform: scale(0.96); }

/* --- WhatsApp flotante -------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 18px 12px 14px;
  background: #25D366; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 12px 28px -8px rgba(0, 0, 0, .35);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.wa-float:hover { color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 16px 36px -8px rgba(0, 0, 0, .45); }
.wa-float:active { transform: scale(0.96); }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; padding: 14px; }
  .wa-label { display: none; }
}

/* --- Pie ------------------------------------------------------------------------------ */
.site-footer { background: var(--color-darker); color: rgba(229, 236, 202, .8); padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: var(--color-ivory); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--color-accent); text-decoration: underline; }
.site-footer .muted { color: rgba(229, 236, 202, .6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer-title { color: var(--color-accent); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .28em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; overflow-wrap: anywhere; }
.footer-legal { border-top: 1px solid rgba(229, 236, 202, .12); margin-top: 48px; padding-top: 20px; font-size: .85rem; color: rgba(229, 236, 202, .6); }
.footer-legal p { margin: 0; }

/* --- Tema oscuro de todo el sitio --------------------------------------------------------
   La dirección de arte aprobada en inicio (fondo Bosque muy oscuro, texto Marfil, acentos Lima)
   aplicada a los componentes compartidos de todas las páginas. */
html { scrollbar-color: var(--color-primary) var(--color-darker); }
body { background: var(--color-darker); color: rgba(229, 236, 202, .8); }
h1, h2, h3 { color: #fff; }
.muted, .lead { color: rgba(229, 236, 202, .72); }
a { color: var(--color-accent); }
a:hover { color: var(--color-ivory); }
.text-primary { color: var(--color-accent); }
:focus-visible { outline-color: var(--color-accent); }
.section-alt { background: #0e1a14; }
.site-footer { border-top: 1px solid rgba(229, 236, 202, .1); }

/* Portadas de las páginas: mismo fondo que inicio */
.hero {
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(42, 133, 68, .38), transparent 70%),
    radial-gradient(40% 40% at 100% 40%, rgba(42, 133, 68, .16), transparent 70%),
    var(--color-darker);
}

/* Botones */
.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: var(--color-ivory); color: var(--color-dark); }
.btn-outline, .btn-ghost { background: transparent; color: var(--color-ivory); border-color: rgba(229, 236, 202, .35); }
.btn-outline:hover, .btn-ghost:hover { color: #fff; border-color: var(--color-ivory); background: rgba(229, 236, 202, .08); }

/* Superficies */
.card, .price-card, .team-card, .form-card, .table-wrap {
  background: rgba(229, 236, 202, .04); border: 1px solid rgba(229, 236, 202, .1); box-shadow: none;
}
.card-sub, .team-role { color: var(--color-accent); }
.feature { border-top-color: rgba(229, 236, 202, .12); }
.feature-icon, .section-alt .feature-icon { background: rgba(161, 192, 56, .14); color: var(--color-accent); }
.screen-frame { background: #0f1d16; outline-color: oklch(1 0 0 / .1); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.shot figcaption strong, .split-label { color: #fff; }
.phone { box-shadow: 0 0 0 1px rgba(229, 236, 202, .14), 0 30px 60px -20px rgba(0, 0, 0, .7); }
.steps li::before { background: rgba(161, 192, 56, .14); color: var(--color-accent); }
.steps li:not(:last-child)::after { background: rgba(229, 236, 202, .14); }
.check-list li::before { background: var(--color-accent); }

/* Banda de cierre de cada página: igual a la de inicio */
.cta-band {
  border: 1px solid rgba(229, 236, 202, .12);
  background:
    radial-gradient(70% 120% at 50% 130%, rgba(161, 192, 56, .34), transparent 70%),
    radial-gradient(50% 80% at 0% 0%, rgba(42, 133, 68, .3), transparent 70%),
    rgba(229, 236, 202, .03);
}
.cta-band .btn-light { background: var(--color-accent); color: var(--color-dark); }

/* Precios */
.price-amount { color: #fff; }
.price-card.is-highlighted { border: 1px solid rgba(161, 192, 56, .6); box-shadow: 0 0 0 1px rgba(161, 192, 56, .25), 0 30px 60px -24px rgba(161, 192, 56, .25); }

/* Preguntas frecuentes, equipo y textos largos */
.faq { border-bottom-color: rgba(229, 236, 202, .12); }
.faq summary { color: #fff; }
.faq summary::after { color: var(--color-accent); }
.team-card img { outline-color: oklch(1 0 0 / .12); }
.team-link { background: rgba(161, 192, 56, .14); color: var(--color-accent); }
.team-link:hover { background: var(--color-accent); color: var(--color-dark); }
.prose h2 { color: #fff; }
.big-code { color: var(--color-accent); }

/* Formularios */
.contact-label { color: rgba(229, 236, 202, .6); }
.field label { color: var(--color-ivory); }
.field-check label { color: rgba(229, 236, 202, .8); }
.field input, .field select, .field textarea { background: rgba(229, 236, 202, .05); border-color: rgba(229, 236, 202, .18); color: #fff; }
.field select option { color: var(--color-dark); }
.field input::placeholder, .field textarea::placeholder { color: rgba(229, 236, 202, .45); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(229, 236, 202, .35); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(161, 192, 56, .18); }
.field-check input { accent-color: var(--color-accent); }
.modal { background: #0f1d16; color: rgba(229, 236, 202, .8); border: 1px solid rgba(229, 236, 202, .12); }
.modal-close { background: rgba(229, 236, 202, .08); color: var(--color-ivory); }
.modal-close:hover { background: rgba(229, 236, 202, .16); }

/* Bloques de las páginas de producto */
.spec-row { border-block-color: rgba(229, 236, 202, .12); }
.spec-row > div + div, .spec-row > div:nth-child(n) { border-color: rgba(229, 236, 202, .12); }
.spec-row dt { color: var(--color-accent); }
.days li { background: rgba(229, 236, 202, .05); box-shadow: none; color: rgba(229, 236, 202, .7); }
.days strong { color: #fff; }
.chain li { box-shadow: inset 0 0 0 1px rgba(229, 236, 202, .2); }
.tag { box-shadow: inset 0 0 0 1px rgba(161, 192, 56, .4); }
.legend { color: var(--color-ivory); }
.roles-table caption, .roles-table tbody th { color: #fff; }
.roles-table th, .roles-table td { border-top-color: rgba(229, 236, 202, .12); }
.roles-table td { color: rgba(229, 236, 202, .8); }
.roles-table thead th { color: rgba(229, 236, 202, .55); }

/* --- Inicio en tema oscuro -------------------------------------------------------------
   Estructura de las referencias (portada centrada con arco de luz, cuadrícula de productos,
   bloque dividido con etiquetas, filas numeradas y banda con brillo) con la paleta MORAI. */
.home-dark { background: var(--color-darker); color: rgba(229, 236, 202, .78); }
.home-dark h2, .home-dark h3 { color: #fff; }
.home-dark .text-primary { color: var(--color-accent); }
.home-dark .lead { color: rgba(229, 236, 202, .78); }
.home-dark .link-arrow { color: var(--color-accent); }
.home-dark .btn-primary { background: var(--color-accent); color: var(--color-dark); }
.home-dark .btn-primary:hover { background: var(--color-ivory); color: var(--color-dark); }
.home-dark :focus-visible { outline-color: var(--color-accent); }
.btn-dark { background: var(--color-dark); color: var(--color-ivory); }
.btn-dark:hover { background: var(--color-darker); color: #fff; }
.page-inicio .site-footer { border-top: 1px solid rgba(229, 236, 202, .1); }
.home-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.home-head p { margin: 0; font-size: 1.05rem; }

/* Portada centrada */
.hero-home {
  overflow: hidden; padding: 96px 0 104px;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(42, 133, 68, .4), transparent 70%),
    radial-gradient(40% 30% at 100% 30%, rgba(42, 133, 68, .18), transparent 70%),
    var(--color-darker);
}
.hero-home .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-home .hero-copy h1 { max-width: 17ch; }
.hero-home .hero-copy .lead { max-width: 62ch; }
.hero-home .hero-actions, .hero-home .hero-points { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 16px 6px 8px;
  border-radius: 999px; background: rgba(229, 236, 202, .06); border: 1px solid rgba(229, 236, 202, .16);
  font-size: .86rem; color: var(--color-ivory);
}
.hero-badge-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 16px rgba(161, 192, 56, .7); }
/* El isotipo queda centrado detrás del titular, más tenue. */
.hero-home .brand-mark { --mark-w: min(1100px, 140vw); width: var(--mark-w); left: calc(50% - var(--mark-w) / 2); right: auto; top: -46%; }
.hero-home .brand-mark .mark-body { opacity: .05; }
.hero-home .brand-mark .mark-star { opacity: .16; }
/* Arco de luz del que sale la vitrina. */
.horizon { position: relative; height: 0; }
.horizon::before {
  content: ''; position: absolute; left: 50%; top: 190px; width: 2200px; height: 2200px; margin-left: -1100px; border-radius: 50%;
  border-top: 2px solid rgba(161, 192, 56, .9);
  box-shadow: 0 -10px 60px rgba(161, 192, 56, .45), inset 0 24px 60px rgba(161, 192, 56, .22);
  background: radial-gradient(closest-side, rgba(42, 133, 68, .12), transparent 60%);
  pointer-events: none;
}
.hero-home .hero-shot { margin-top: 64px; margin-bottom: 0; max-width: 1080px; }

/* Productos: cuadrícula de tamaños mixtos */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 360px; padding: 28px;
  border-radius: 24px; background: rgba(229, 236, 202, .04); border: 1px solid rgba(229, 236, 202, .1);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.bento-card:hover { border-color: rgba(161, 192, 56, .45); background: rgba(229, 236, 202, .06); }
.bento-card h3 { font-size: 1.5rem; margin-bottom: .2em; }
.bento-kicker { margin: 0 0 .8em; font-size: .88rem; font-weight: 500; color: var(--color-accent); }
.bento-text { margin-bottom: 20px; font-size: .96rem; color: rgba(229, 236, 202, .75); }
.bento-media { margin-top: auto; padding-top: 24px; }
/* Las capturas salen por la esquina inferior derecha de la tarjeta. */
.bento-shot { display: block; width: calc(100% + 28px); max-width: none; margin: 0 -28px -28px 0; border-radius: 12px 0 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .35); outline: 1px solid oklch(1 0 0 / .1); outline-offset: -1px; }
/* POS destacado en lima, ocupa dos filas */
.bento-pos { grid-row: span 2; background: var(--color-accent); border-color: transparent; color: var(--color-dark); }
.bento-pos:hover { background: #abc94a; border-color: transparent; }
.bento-pos h3 { color: var(--color-dark); font-size: 2rem; }
.bento-pos .bento-kicker { color: var(--color-dark); opacity: .8; }
.bento-pos .bento-text { color: rgba(19, 38, 29, .82); }
.bento-pos .link-arrow { color: var(--color-dark); }
.bento-pos :focus-visible { outline-color: var(--color-dark); }
.phone.phone-bento { width: min(62%, 240px); margin: 0 auto -150px; box-shadow: 0 30px 60px -20px rgba(19, 38, 29, .55); }
.phone.phone-bento img { border-radius: 26px; }
/* Páginas web: tarjeta horizontal bajo LEX y CRM */
.bento-web { grid-column: 2 / span 2; display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; min-height: 0; }
.bento-web .bento-media { margin: 0; padding: 0; align-self: end; }

/* ¿Por qué MORAI? */
.split-why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split-why .lead { margin: 16px 0 28px; }
.why-panel { padding: 24px; border-radius: 24px; background: rgba(229, 236, 202, .04); border: 1px solid rgba(229, 236, 202, .1); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(229, 236, 202, .18); font-size: .85rem; color: var(--color-ivory); }
.chips li.is-on { background: var(--color-ivory); border-color: var(--color-ivory); color: var(--color-dark); font-weight: 500; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-card { padding: 20px; border-radius: 16px; background: rgba(229, 236, 202, .05); }
.why-card h3 { font-size: 1.02rem; margin: 0 0 .3em; }
.why-card p { margin: 0; font-size: .9rem; color: rgba(229, 236, 202, .72); }
.home-dark .feature-icon { background: rgba(161, 192, 56, .14); color: var(--color-accent); }

/* Así empezamos a trabajar: filas numeradas */
.process-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: 40px; }
.process-head h2 { margin: 0; }
.process-head p { margin: 0 0 16px; }
.process { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(229, 236, 202, .12); }
.process li {
  display: grid; grid-template-columns: 72px 1fr 1fr; gap: 24px; align-items: center; padding: 28px 12px;
  border-bottom: 1px solid rgba(229, 236, 202, .12);
  transition: background-color var(--dur) var(--ease-out);
}
.process li:hover { background: radial-gradient(60% 140% at 40% 50%, rgba(42, 133, 68, .28), transparent 70%); }
.process-num { font-size: .95rem; color: rgba(229, 236, 202, .5); font-variant-numeric: tabular-nums; }
.process h3 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; }
.process p { margin: 0; color: rgba(229, 236, 202, .72); }

/* Banda final con brillo */
.home-cta { padding-top: 24px; }
.cta-glow {
  text-align: center; padding: 80px 32px; border-radius: 28px; border: 1px solid rgba(229, 236, 202, .12);
  background:
    radial-gradient(70% 90% at 50% 125%, rgba(161, 192, 56, .38), transparent 70%),
    radial-gradient(50% 60% at 0% 0%, rgba(42, 133, 68, .32), transparent 70%),
    rgba(229, 236, 202, .03);
}
.cta-glow p { max-width: 56ch; margin: 0 auto 28px; color: rgba(229, 236, 202, .8); }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-pos { grid-row: auto; grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .bento-pos .bento-media { padding-top: 0; }
  .bento-web { grid-column: span 2; }
  .split-why, .process-head { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero-home { padding: 56px 0 64px; }
  .horizon::before { top: 120px; }
  .bento { grid-template-columns: 1fr; }
  .bento-pos, .bento-web { grid-column: auto; grid-template-columns: 1fr; }
  .bento-card { min-height: 0; padding: 24px; }
  .bento-shot { width: calc(100% + 24px); margin: 0 -24px -24px 0; }
  .phone.phone-bento { margin-bottom: -170px; }
  .why-grid { grid-template-columns: 1fr; }
  .process li { grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 22px 4px; }
  .process li p { grid-column: 2; }
  .cta-glow { padding: 56px 20px; }
}

/* --- Responsive --------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-media { order: 0; }
  .split + .split { margin-top: 64px; }
  .spec-row { grid-template-columns: repeat(3, 1fr); }
  .spec-row > div:nth-child(4) { border-left: 0; }
  .spec-row > div:nth-child(n+4) { border-top: 1px solid var(--color-border); }
  .roles-table tbody th { white-space: normal; }
  .cards-3, .features-3 { grid-template-columns: repeat(2, 1fr); }
  .features-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2n)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-shot { margin-bottom: -120px; }
  .section.section-after-shot { padding-top: calc(120px + 72px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 48px 0 48px; }
  .hero-home { padding: 56px 0 0; }
  .brand-mark { width: 150vw; right: -70%; top: -10%; }
  .hero-shot { margin-top: 48px; margin-bottom: -64px; }
  .section.section-after-shot { padding-top: calc(64px + 56px); }
  .section { padding: 64px 0; }
  .cards-3, .features-3, .features-4, .steps, .steps.steps-3, .form-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr 1fr; margin-bottom: 48px; }
  .spec-row > div:nth-child(n) { border-left: 0; border-top: 1px solid var(--color-border); }
  .spec-row > div:nth-child(-n+2) { border-top: 0; }
  .spec-row > div:nth-child(2n) { border-left: 1px solid var(--color-border); }
  .days { grid-template-columns: 1fr 1fr; }
  .roles-table th, .roles-table td { padding: 12px 16px; }
  .steps li::after { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-box, .form-card { padding: 20px; }
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; margin: 0; height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .btn:active, .modal-close:active, .wa-float:active { transform: none; }
}
