/* ============================================================
   VIRWO · virwo.css
   Capa propia del sitio virwo.com sobre el sistema heredado
   (variables → base → layout → components → responsive → ESTA).
   Todo por token; cero colores fijos. Un solo acento cyan.
   Sin datos de demostración: el sitio muestra la estructura real
   del producto, nunca cifras, proveedores ni escenarios inventados.
   ============================================================ */

/* Tokens propios del sitio */
:root {
  --font-mono: ui-monospace, 'Cascadia Code', 'Cascadia Mono', Consolas, monospace;
  --green-soft: rgba(34,197,94,.10);
  --green-line: rgba(34,197,94,.45);
  --green-ring: rgba(34,197,94,.18);
  --red-soft: rgba(239,68,68,.12);
  --focus-ring: 0 0 0 3px rgba(0,184,217,.20);
}
html.theme-light { --green-soft: #E0F4E8; --green-line: #86D1A2; --green-ring: rgba(21,128,61,.18); --red-soft: #FCE4E4; }

/* ── Navegación ──────────────────────────────────────────── */
.logo img       { height: 40px; }
.logo:hover img { transform: none; }
.navlinks       { gap: 22px; }

/* ── Héroe del inicio ────────────────────────────────────── */
.hero {
  padding: 44px 0 64px;
  background:
    radial-gradient(ellipse 560px 460px at 76% 48%, rgba(0,184,217,.11) 0%, transparent 70%),
    radial-gradient(ellipse 800px 500px at 90% -10%, rgba(0,184,217,.14) 0%, transparent 60%),
    radial-gradient(ellipse 600px 600px at 5% 110%, rgba(14,100,180,.12) 0%, transparent 55%),
    var(--bg);
}
.hero-grid { grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: var(--fw-semibold);
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: 22px;
}
.hero p.lead { max-width: 54ch; margin-bottom: 30px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding-top: 18px; border-top: 1px solid var(--border);
  font-size: var(--fs-2xs); color: var(--muted-2); font-weight: var(--fw-semibold); letter-spacing: .02em;
}
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.hero--page { padding: 44px 0 56px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-ring); flex-shrink: 0; }

/* ── Panel de pestañas (qué vigila, qué entrega, para quién) ── */
.osmap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
html.theme-light .osmap { background: var(--bg-card); }
.osmap:hover { border-color: var(--border-hi); box-shadow: var(--shadow-sm); }
.osmap__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.osmap__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); font-size: var(--fs-xs); color: var(--text); letter-spacing: .02em; }
.osmap__brand img { height: 16px; width: auto; }
.osmap__brand img.osmap__logo { height: 22px; }
.osmap__brand i { font-style: normal; color: var(--dim); font-weight: var(--fw-regular); }
.osmap__ver { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-2xs); color: var(--muted-2); font-weight: var(--fw-semibold); }
.osmap__ver code { font-family: var(--font-mono); font-size: .72rem; color: var(--text); background: var(--cyan-soft); padding: 2px 7px; border-radius: 6px; }
.osmap__body { display: grid; grid-template-columns: 186px 1fr; min-height: 340px; }
.osmap__rail { border-right: 1px solid var(--border); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.osmap__tab {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--muted);
  background: transparent; border: 0; border-radius: var(--radius-sm);
  padding: 10px 12px; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.osmap__tab svg { flex-shrink: 0; color: var(--muted-2); transition: color .2s ease; }
.osmap__tab:hover { background: var(--cyan-soft); color: var(--text); }
.osmap__tab[aria-selected="true"] { background: var(--cyan-dim); color: var(--cyan-text); }
.osmap__tab[aria-selected="true"] svg { color: var(--cyan-text); }
.osmap__pane { padding: 8px 20px 14px; }
.osmap__panel[hidden] { display: none; }
/* El único movimiento del sitio: el panel que cambia al elegir una pestaña */
.osmap__panel.is-in { animation: panelIn .26s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.osmap__title { font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: var(--fw-extra, 800); padding: 10px 0 6px; margin: 0; }
.osmap__panel ul { list-style: none; margin: 0; padding: 0; }
.osmap__panel li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--border); }
.osmap__panel li b { display: block; font-size: var(--fs-ui); font-weight: var(--fw-bold); color: var(--text); }
.osmap__panel li span { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; margin-top: 2px; max-width: 46ch; }
.st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-style: normal; font-size: var(--fs-2xs); font-weight: var(--fw-extra, 800); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--border-hi); border-radius: var(--radius-full); padding: 3px 9px; margin-top: 2px; }
.st.is-live { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.st.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.osmap__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px 12px; border-top: 1px solid var(--border); font-size: var(--fs-2xs); color: var(--muted-2); }
.osmap__foot b { color: var(--text); font-weight: var(--fw-semibold); }

/* ── Celdas por regla (productos, servicios, valores) ────── */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cells--2 { grid-template-columns: repeat(2, 1fr); }
.cell { padding: 26px 28px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; transition: background .25s ease; }
.cell:hover { background: var(--cyan-soft); }
.cells:not(.cells--2) .cell:nth-child(3n) { border-right: 0; }
.cells:not(.cells--2) .cell:nth-last-child(-n+3) { border-bottom: 0; }
.cells--2 .cell:nth-child(2n) { border-right: 0; }
.cells--2 .cell:nth-last-child(-n+2) { border-bottom: 0; }
.cell h3 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.cell h3 img { height: 26px; width: auto; display: block; }
.cell p { color: var(--muted); font-size: var(--fs-xs); margin: 0; flex: 1 1 auto; }
.cell ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.cell ul li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); }
.cell ul li svg { flex-shrink: 0; color: var(--muted-2); margin-top: 3px; }
.cell .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.cell .links a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--cyan-text); }
.cell .links a svg { transition: transform .2s var(--ease); }
.cell .links a:hover svg { transform: translateX(4px); }
.cell .links a.ext { color: var(--muted); }
.cell .links a.ext:hover { color: var(--cyan-text); }


/* ── Paneles con lista por regla ─────────────────────────── */
.di-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; }
.di-panel ul { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
.di-panel li { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted); }
.di-panel li:last-child { border-bottom: 0; }
.di-panel li b { display: block; color: var(--text); font-weight: var(--fw-semibold); font-size: var(--fs-ui); }
.di-panel li .st { align-self: center; }
.brand-logo-block img { height: 44px; }
.feat-list .ck { background: transparent; width: 20px; height: 20px; margin-top: 3px; }
.feat-list .ck svg { color: var(--muted-2); }

/* ── Páginas internas: héroe de una columna, centrado ─────── */
.page-hero { padding: 48px 0 44px; }
.page-hero .container { text-align: center; }
.page-hero h1 { font-weight: var(--fw-semibold); max-width: 22ch; margin-inline: auto; }
.page-hero p { margin-inline: auto; }
.page-hero .hero-cta { justify-content: center; }
.page-hero .brand-logo-block { display: block; margin-bottom: 18px; }
.page-hero .brand-logo-block img { height: 52px; margin-inline: auto; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mv > div { padding: 30px 32px; }
.mv > div + div { border-left: 1px solid var(--border); }
.mv h2 { font-size: var(--fs-lg); margin-bottom: 12px; }
.mv p { color: var(--muted); margin: 0; }
.mv-note { margin: 24px 0 0; padding: 0 32px; color: var(--muted); max-width: none; }
.ods { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; }
.ods p { color: var(--muted); margin: 0; max-width: 78ch; }
.ods h2 { font-size: var(--fs-lg); margin-bottom: 10px; }

/* ── Contacto ────────────────────────────────────────────── */
.cinfo { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; flex: 0 0 auto; display: flex; flex-direction: column; }
.cinfo li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }   /* altura natural: quien iguala la altura del formulario es el mapa (.contact-map, flex:1) */
.cinfo li:last-child { border-bottom: 0; }
.cinfo svg { color: var(--muted-2); margin-top: 2px; }
.cinfo { font-variant-numeric: tabular-nums; }
.cinfo b { display: block; font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: var(--fw-extra, 800); margin-bottom: 4px; }
.cinfo span, .cinfo a { font-size: var(--fs-ui); color: var(--text); }
.cinfo a:hover { color: var(--cyan-text); }
.cinfo small { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.cform { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px 28px; }
.cform h2 { font-size: var(--fs-lg); margin-bottom: 16px; }
.cform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cform label { display: block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--muted); margin: 14px 0 6px; }
.cform label:first-of-type { margin-top: 0; }
.cform input, .cform select, .cform textarea {
  width: 100%; font: inherit; font-size: var(--fs-ui); color: var(--text);
  background: var(--bg-surf); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; min-height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cform textarea { min-height: 120px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--cyan); box-shadow: var(--focus-ring); }
.cform [aria-invalid="true"] { border-color: var(--red); }
.cform .field-error { display: block; font-size: var(--fs-2xs); color: var(--red); margin: 6px 0 2px; min-height: 1em; }
.cform .field-error:empty { margin: 0; min-height: 0; }
.cform label.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular); line-height: 1.5; }
.cform .consent input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--cyan); padding: 0; }
.cform .consent a { color: var(--cyan-text); font-weight: var(--fw-semibold); }
.cform .btn { margin-top: 22px; width: 100%; justify-content: center; }
.cform .note { margin-top: 12px; font-size: var(--fs-2xs); color: var(--dim); }
.form-error-box { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--red); background: var(--red-soft); color: var(--text); border-radius: 10px; font-size: var(--fs-xs); line-height: 1.5; }
.form-success { border: 1px solid var(--green-line); background: var(--green-soft); border-radius: var(--radius-lg); padding: 30px 28px; text-align: center; }
.form-success strong { display: block; font-size: var(--fs-lg); margin-bottom: 8px; }
.form-success p { color: var(--muted); margin: 0 0 18px; }
.form-success .btn { margin: 0 6px; }

/* ── Aviso de privacidad ─────────────────────────────────── */
.legal { max-width: 74ch; }
.legal h2 { font-size: var(--fs-lg); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: var(--fs-ui); line-height: 1.7; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal .updated { font-size: var(--fs-2xs); color: var(--dim); margin-top: 28px; }

/* ── 404 ─────────────────────────────────────────────────── */
.e404 { padding: 96px 0 120px; text-align: center; }
.e404 h1 { margin: 0 auto 12px; font-weight: var(--fw-semibold); max-width: 22ch; }
.e404 p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }
.e404 .links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Cierre y pie ────────────────────────────────────────── */
.cta-band { padding: 56px 40px; }
.cta-band .glow { display: none; }
.cta-band p.alt { margin-top: 18px; font-size: var(--fs-xs); color: var(--muted-2); }
.cta-band p.alt a { color: var(--cyan-text); font-weight: var(--fw-semibold); }
footer.site .logo img { height: 34px; }
footer.site .tag { max-width: 300px; }
/* Títulos de columna del pie: etiquetas de navegación, no encabezados del documento */
footer.site .foot-h { font-size: var(--fs-2xs); font-weight: var(--fw-extra, 800); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 0 0 14px; }
.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; }

/* ── Superficies del navegador ───────────────────────────── */
::selection { background: var(--cyan-dim); color: var(--text); }
html { scrollbar-color: var(--border-hi) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 2px; border-radius: var(--radius-full); }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero { padding: 40px 0 56px; }
  .hero h1 { max-width: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cells { grid-template-columns: repeat(2, 1fr); }
  .cells:not(.cells--2) .cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .cells:not(.cells--2) .cell:nth-child(2n) { border-right: 0; }
  .cells:not(.cells--2) .cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .cells:not(.cells--2) .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .mv { grid-template-columns: 1fr; }
  .mv > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .osmap__body { grid-template-columns: 1fr; min-height: 0; }
  .osmap__rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; gap: 4px; scrollbar-width: none; }
  .osmap__rail::-webkit-scrollbar { display: none; }
  .osmap__tab { width: auto; white-space: nowrap; padding: 8px 12px; }
}
@media (max-width: 680px) {
  .cform .row { grid-template-columns: 1fr; gap: 0; }
  .mv-note { padding: 0; }
  /* Las tres pestañas del panel caben siempre: rejilla de tres, icono arriba */
  .osmap__rail { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 4px; }
  .osmap__tab { flex-direction: column; justify-content: center; gap: 6px; width: auto; padding: 9px 4px; font-size: var(--fs-2xs); text-align: center; white-space: normal; line-height: 1.25; }
}
@media (max-width: 560px) {
  .osmap__ver-text { display: none; }
  .osmap__top { padding: 10px 14px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p.lead { font-size: var(--fs-base); }
  .cells, .cells--2 { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .cell:last-child { border-bottom: 0 !important; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 8px 16px; }
  .osmap__panel li { grid-template-columns: 1fr; }
  .osmap__panel li .st { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .osmap, .osmap__tab, .cell, .cell .links a svg { transition: none; }
  .osmap__panel.is-in { animation: none; }
}
