/* Sitios de producto: se apoya en site.css (el mismo look and feel de knosys.com.ar)
   y agrega el color de cada producto y los bloques propios de una página de producto.
   El color de producto va solo en identidad (runa, glow, acentos de texto, pasos);
   botones y links siguen en azul Knosys, como en las apps (guía de UX, 4.7). */

:root {
  --product: #3D7FE0;
  --product-strong: #1E4FA3;
  --product-soft: #6BA3F5;
  --product-glow: 61, 127, 224;
}
[data-product="woden"] {
  --product: #8B7CF6;
  --product-strong: #6A4FD9;
  --product-soft: #A897FF;
  --product-glow: 139, 124, 246;
}
[data-product="frey"] {
  --product: #14B8C4;
  --product-strong: #0B7F8C;
  --product-soft: #4FD6E0;
  --product-glow: 20, 184, 196;
}

/* Encabezado: logo comercial (runa + nombre + categoría) */
.brand img { width: auto; height: 30px; }
.header-in { padding-left: 24px; }

/* Luz y acentos en el color del producto */
.glow { background: radial-gradient(closest-side, rgba(var(--product-glow), .5), rgba(var(--product-glow), .16) 48%, transparent 75%); }
.pains-answer b { color: var(--product-strong); }
.steps li.is-active::before { background: var(--product-strong); border-color: var(--product-strong); box-shadow: 0 0 30px rgba(var(--product-glow), .7); }
.meter-bar i { background: linear-gradient(90deg, var(--product-strong), var(--product-soft)); }
.managed-list li { border-left-color: var(--product); }
.blue-panel { background: radial-gradient(90% 70% at 50% 0%, var(--product-soft), transparent 70%), linear-gradient(180deg, var(--product-strong), #0A1220 140%); }

/* La runa del producto, grande y tenue, detrás del hero */
.hero-rune {
  position: absolute; z-index: -1; pointer-events: none;
  right: max(-6vw, -80px); top: 50%; translate: 0 -50%;
  height: min(118%, 980px); width: auto; opacity: .07;
}
.hero-rune * { stroke: #fff; fill: #fff; }
@media (max-width: 980px) { .hero-rune { opacity: .05; right: -30vw; } }

.hero .proof { margin-top: 44px; }

/* Captura de pantalla en una ventana */
.shot { margin: 0; position: relative; }
.shot .window {
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.shot .window-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #EEF1F6; border-bottom: 1px solid var(--line);
  font-size: .78rem; color: var(--steel);
}
.shot .window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CDD5E1; }
.shot .window-bar span { margin-left: 8px; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); max-width: 60ch; }
.hero .shot { transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 980px) { .hero .shot { transform: none; } }
.shot-tall .window { max-height: 520px; }
.shot-tall img { object-fit: cover; object-position: top; }

/* Grilla de módulos */
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.modules > li {
  padding: 30px 28px; border-radius: var(--r-card);
  background: var(--glass); border: 1px solid var(--glass-line);
}
.modules h3 { font-size: 1.25rem; color: var(--white); margin: 0 0 8px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
.modules h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--product); box-shadow: 0 0 14px rgba(var(--product-glow), .8); flex: 0 0 auto; }
.modules p { margin: 0 0 14px; font-size: .98rem; }
.modules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.modules ul li { position: relative; padding-left: 18px; color: #C9D3E0; font-size: .94rem; line-height: 1.45; }
.modules ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 2px; border-radius: 2px; background: var(--product-soft); }
@media (max-width: 1000px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr; } }

/* Bloque de texto + captura, alternado */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 120px); }
.split.is-reversed > :first-child { order: 2; }
.split h2, .split h3 { margin-bottom: 18px; }
.split h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; }
.split h3 b { font-weight: 650; }
.dark .split h2, .dark .split h3 { color: var(--white); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.is-reversed > :first-child { order: 0; }
}

/* Lista con título corto y descripción */
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.facts li { padding-left: 16px; border-left: 2px solid var(--product); }
.facts b { display: block; font-weight: 600; }
.facts span { color: var(--steel); font-size: .95rem; line-height: 1.45; }
.dark .facts b { color: var(--white); }
.dark .facts span { color: var(--muted); }
.facts.is-single { grid-template-columns: 1fr; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Ciclo: pasos en orden, con flecha entre ellos */
.cycle { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: cycle; }
.cycle li {
  counter-increment: cycle; position: relative;
  padding: 22px 22px 24px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line);
}
.cycle li::before {
  content: counter(cycle); display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px;
  background: var(--product-strong); color: #fff; font-weight: 600; font-size: .9rem;
}
.cycle li + li::after {
  content: ""; position: absolute; left: -10px; top: 36px; width: 8px; height: 8px;
  border-top: 2px solid var(--product); border-right: 2px solid var(--product); rotate: 45deg;
}
.cycle b { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.cycle span { color: var(--steel); font-size: .95rem; line-height: 1.45; }
.dark .cycle li { background: var(--glass); border-color: var(--glass-line); }
.dark .cycle b { color: var(--white); }
.dark .cycle span { color: var(--muted); }
@media (max-width: 900px) {
  .cycle { grid-template-columns: 1fr 1fr; }
  .cycle li + li::after { display: none; }
}
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }

/* Dónde se instala: tres modos */
.deploy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.deploy li {
  padding: 32px 28px; border-radius: var(--r-card); background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(5,10,19,.06);
}
.deploy svg { width: 40px; height: 40px; stroke: var(--product-strong); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.deploy h3 { font-size: 1.3rem; margin-bottom: 10px; }
.deploy p { margin: 0; color: var(--steel); }
.deploy-note { text-align: center; margin: 36px auto 0; max-width: 62ch; color: var(--steel); }
.deploy-note b { color: var(--ink); }
@media (max-width: 860px) { .deploy { grid-template-columns: 1fr; } }

/* Seguridad: grilla de puntos en panel oscuro */
.sec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.sec-grid b { display: block; color: var(--white); font-weight: 600; margin-bottom: 4px; }
.sec-grid span { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.sec-grid li { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sec-grid { grid-template-columns: 1fr; } }

/* Aclaración destacada */
.note-line { margin: 28px 0 0; padding: 14px 18px; border-radius: 14px; font-size: .95rem; background: rgba(var(--product-glow), .1); border: 1px solid rgba(var(--product-glow), .3); color: var(--text); }
.note-line b { color: var(--white); }

/* Pie: firma de la marca madre */
.footer-brand .footer-logo { width: auto; height: 30px; margin-bottom: 18px; }
.signature { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.signature img { width: auto; height: 22px; margin: 0; }
.site-footer a.signature:hover { color: var(--white); text-decoration: none; }

/* Descarga del brochure */
.download { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.download svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Maqueta del punto de venta (Frey) */
.pos {
  border-radius: 16px; overflow: hidden; background: #F3F5F9; color: var(--ink);
  box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  font-size: .82rem; line-height: 1.3;
}
.pos-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--product); }
.pos-top img { height: 18px; width: auto; }
.pos-top span { color: var(--steel); }
.pos-off { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #FEF4E2; color: #8F5400; font-weight: 600; font-size: .74rem; white-space: nowrap; }
.pos-off i { width: 7px; height: 7px; border-radius: 50%; background: #F2A93B; }
.pos-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; padding: 12px; }
.pos-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pos-card h4 { margin: 0 0 10px; font-size: .86rem; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.pos-card h4 small { font-weight: 400; color: var(--steel); }
.size-grid { width: 100%; border-collapse: separate; border-spacing: 4px; font-variant-numeric: tabular-nums; }
.size-grid th { font-weight: 500; color: var(--steel); font-size: .74rem; text-align: center; }
.size-grid th:first-child { text-align: left; }
.size-grid td { text-align: center; padding: 7px 0; border-radius: 7px; background: #F3F5F9; font-weight: 600; }
.size-grid td.is-pick { background: var(--product-strong); color: #fff; }
.size-grid td.is-out { color: #B4C0D2; font-weight: 400; }
.ticket-line { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ticket-line span small { display: block; color: var(--steel); }
.ticket-line.is-promo { color: #145A38; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.ticket-total small { font-size: .78rem; font-weight: 400; color: var(--steel); }
.pos-pay { margin-top: 10px; display: block; text-align: center; padding: 11px; border-radius: 999px; background: #2A64BF; color: #fff; font-weight: 600; }
@media (max-width: 520px) { .pos-body { grid-template-columns: 1fr; } }

/* Páginas legales del producto */
.page-hero .glow { background: radial-gradient(closest-side, rgba(var(--product-glow), .45), rgba(var(--product-glow), .14) 48%, transparent 75%); }

@media (max-width: 520px) { .brand img { height: 22px; } }

/* Ajustes sobre los bloques de site.css */
.pains svg { stroke: var(--product-strong); }
.pains-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .pains-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pains-6 { grid-template-columns: 1fr; } }
.proof b { text-shadow: 0 0 22px rgba(var(--product-glow), .7); }
.sec-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .sec-grid-2 { grid-template-columns: 1fr; } }
.process-card .split { align-items: start; }
.process-card .split h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 4px; }
.process-card .cycle { margin-top: 48px; }

/* Hero de producto: más lugar para la captura */
.hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); }
.hero .proof { gap: 18px 36px; }
.hero .proof b { font-size: clamp(1.5rem, 2.3vw, 1.9rem); }
.hero-rune { opacity: .055; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* Módulos sobre fondo claro */
.modules-light > li { background: var(--paper); border-color: var(--line); }
.modules-light h3 { color: var(--ink); }
.modules-light ul li { color: var(--steel); }
.modules-light ul li::before { background: var(--product-strong); }

/* Ciclo en columna (al lado de un texto) */
.cycle-col { grid-template-columns: 1fr; margin-top: 0; }
.cycle-col li { display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; align-items: start; }
.cycle-col li::before { grid-row: span 2; margin-bottom: 0; }
.cycle-col li + li::after { left: 36px; top: -10px; rotate: 135deg; }
@media (max-width: 900px) { .cycle-col { grid-template-columns: 1fr; } .cycle-col li + li::after { display: block; } }
.hero .proof { gap: 18px 28px; }
.hero .proof span { font-size: .86rem; }
.pos-top { flex-wrap: wrap; }
@media (max-width: 520px) { .pos-top > span:not(.pos-off) { display: none; } }

/* Maqueta del POS: pedido web y cliente identificado */
.pos-off.is-order { background: #E3F7F8; color: #0B6670; }
.pos-off.is-order i { background: var(--product); }
.ticket-client { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: -2px 0 8px; padding: 7px 10px; border-radius: 10px; background: #F1FAFB; font-size: .78rem; }
.ticket-client b { font-weight: 600; white-space: nowrap; }
.ticket-client span { white-space: nowrap; }
.ticket-client span { color: #0B6670; }
