/* ==========================================================================
   Katahana System — hoja de estilos principal
   Tema: grafito + latón (acento) + acero. Minimalismo, mucho aire, tipografía
   con contraste. Sin dependencias más allá de Google Fonts.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:      #0b0d11;
  --ink-2:    #101319;
  --ink-3:    #161a22;
  --ink-4:    #1c212b;
  --line:     rgba(255, 255, 255, .09);
  --line-2:   rgba(255, 255, 255, .16);
  --text:     #e9ecf1;
  --muted:    #9aa4b2;
  --muted-2:  #6f7987;
  --brand:    #4a8cf0;
  --brand-2:  #8ab6ff;
  --brand-soft: rgba(74, 140, 240, .12);
  --steel:    #9fb3c8;

  --radius:   14px;
  --radius-s: 10px;
  --shadow:   0 24px 60px -30px rgba(0, 0, 0, .9);
  --shadow-s: 0 10px 30px -18px rgba(0, 0, 0, .8);

  --container: 1180px;
  --header-h: 72px;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo hidden debe ganarle a cualquier display del autor
   (si no, .algo { display: grid } lo deja visible). */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* textura de fondo muy sutil */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(74, 140, 240, .10), transparent 62%),
    radial-gradient(760px 480px at 4% 4%, rgba(143, 179, 224, .07), transparent 60%);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brand); color: #14161a; }

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

/* ---------- 3. Layout ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section { padding: clamp(64px, 8vw, 118px) 0; }
.section--tight { padding: clamp(48px, 5.5vw, 78px) 0; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section--alt2 { background: var(--ink-3); border-block: 1px solid var(--line); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #12141a; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 4. Tipografía de apoyo ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}
.eyebrow--center::after {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.lead {
  font-size: clamp(1.02rem, .96rem + .38vw, 1.22rem);
  color: #c6ccd6;
  line-height: 1.78;
  max-width: 72ch;
}

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono { font-family: var(--font-mono); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 58px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.03rem; }

h2 { font-size: clamp(1.65rem, 1.15rem + 2.05vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); }

.hl { color: var(--brand); }
.hl-steel { color: var(--steel); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 17, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(100% - 32px, var(--container));
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 36px; height: 37px; display: block; }
.brand__word { height: 29px; width: auto; display: block; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  display: block;
  padding: 9px 13px;
  font-size: .93rem;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav__link[aria-current="page"] { color: var(--brand); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.header-wa {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .1);
  border: 1px solid rgba(37, 211, 102, .45);
  color: #25d366;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.header-wa:hover {
  transform: translateY(-2px);
  background: rgba(37, 211, 102, .18);
  box-shadow: 0 8px 22px -12px rgba(37, 211, 102, .8);
}
.header-wa svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  position: relative; transition: transform .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #14161a;
  box-shadow: 0 12px 30px -14px rgba(74, 140, 240, .65);
}
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(74, 140, 240, .75); }
.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, .02);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: .93rem;
}
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding: clamp(56px, 7vw, 108px) 0 clamp(60px, 7vw, 104px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem);
  letter-spacing: -.03em;
  margin-bottom: .38em;
}
.hero__lead { font-size: clamp(1.02rem, .95rem + .45vw, 1.2rem); color: #c6ccd6; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__art {
  position: relative;
  max-width: 470px;
  margin-left: auto;
}
.hero__photo {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95), 0 0 90px -50px rgba(74, 140, 240, .85);
}
.hero__photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 13, 17, .18) 0%, rgba(11, 13, 17, 0) 42%, rgba(11, 13, 17, .82) 100%);
}
.hero__photo figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cdd5df;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-1.2deg); }
}

.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.pill {
  font-size: .78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  padding: 6px 13px;
  border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pill:hover { border-color: var(--brand); color: var(--brand-2); }

/* ---------- 8. Franja de compromisos ---------- */
.band {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding: 28px 0;
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.band__item { display: flex; align-items: flex-start; gap: 12px; }
.band__item svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.band__item strong { display: block; font-size: .94rem; font-weight: 600; }
.band__item span { font-size: .84rem; color: var(--muted-2); line-height: 1.5; display: block; }

/* ---------- 9. Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
  opacity: .0;
  transition: opacity .28s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-s);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .95rem; }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  border: 1px solid rgba(74, 140, 240, .28);
  margin-bottom: 18px;
}
.card__icon svg { width: 21px; height: 21px; color: var(--brand); }

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.card__list { list-style: none; margin: 14px 0 0; padding: 0; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 9px;
  line-height: 1.6;
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: .68em;
  width: 7px; height: 7px;
  border: 1px solid var(--brand);
  transform: rotate(45deg);
}

/* ---------- 10. Texto en dos columnas ---------- */
.prose-split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.prose-split--form { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 860px) {
  .prose-split, .prose-split--form { grid-template-columns: minmax(0, 1fr); }
}
.prose p { color: #b9c1cc; }
.prose strong { color: var(--text); font-weight: 600; }

.quote-block {
  border-left: 2px solid var(--brand);
  padding: 6px 0 6px 26px;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -.01em;
}

/* ---------- 11. Pasos / proceso ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--brand);
  letter-spacing: .06em;
  padding-top: 4px;
  position: relative;
}
.step__num::after {
  content: "";
  position: absolute; left: 0; top: 32px; bottom: -30px; width: 1px;
  background: linear-gradient(180deg, var(--line-2), transparent);
}
.step:last-child .step__num::after { display: none; }
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .97rem; max-width: 68ch; }

/* ---------- 12. Chips de tecnología ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: .85rem;
  color: #c3cad4;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  padding: 9px 16px;
  border-radius: 999px;
}
.chip--brand { border-color: rgba(74, 140, 240, .3); color: var(--brand-2); background: var(--brand-soft); }

/* ---------- 13. Bloques de ejemplo (software) ---------- */
.example {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(74, 140, 240, .08), transparent 65%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.example + .example { margin-top: 26px; }
.example__num {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.example h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.72rem); }
.example__desc { color: var(--muted); }
.example__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}

.screen {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-4);
}
.screen__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.screen__url {
  margin-left: 10px; font-family: var(--font-mono);
  font-size: .68rem; color: var(--muted-2);
  background: rgba(0, 0, 0, .35); padding: 3px 10px; border-radius: 999px;
}
.screen__body { padding: 18px; display: grid; gap: 12px; }
.screen__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .02);
}
.screen__row strong { font-size: .88rem; display: block; }
.screen__row small { color: var(--muted-2); font-size: .74rem; }
.screen__tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
}
.screen__tag--ok { color: #7fd6a4; border-color: rgba(127, 214, 164, .35); }
.screen__tag--wait { color: var(--brand-2); border-color: rgba(74, 140, 240, .35); }
.screen__tag--new { color: var(--steel); border-color: rgba(143, 179, 224, .35); }
.screen__bars { display: grid; gap: 9px; }
.screen__barline { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.screen__barline i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- 14. Comparativa / tabla ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; font-size: .92rem; }
thead th {
  background: var(--ink-4);
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
tbody td { color: var(--muted); }
tbody td:first-child { color: var(--text); font-weight: 500; }

/* ---------- 15. CTA final ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(34px, 5vw, 66px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(74, 140, 240, .14), transparent 70%),
    var(--ink-2);
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 58ch; margin-inline: auto; }
.cta-band .btn { margin-top: 14px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 16. Formulario ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .84rem; color: var(--muted); font-weight: 500; }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b26a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}
.field select option { background: var(--ink-3); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(74, 140, 240, .18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field--error input, .field--error select, .field--error textarea { border-color: #e06c6c; }
.field__msg { font-size: .78rem; color: #e08a8a; display: none; }
.field--error .field__msg { display: block; }
.form-note { font-size: .82rem; color: var(--muted-2); }
.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: .84rem;
  color: var(--muted);
}
.checkbox input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(127, 214, 164, .35);
  background: rgba(127, 214, 164, .08);
  color: #a9e6c3;
  font-size: .9rem;
}
.form-status.is-visible { display: block; }

/* ---------- 16b. Banda fotográfica ---------- */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.photo-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-s);
}
.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 17, .06) 28%, rgba(11, 13, 17, .55) 62%, rgba(11, 13, 17, .93) 100%);
}
.photo-card__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
}
.photo-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 8px;
}
.photo-card h3 { font-size: 1.06rem; margin-bottom: .3em; }
.photo-card p { font-size: .87rem; color: #b3bcc7; margin: 0; }

@media (max-width: 860px) {
  .photo-band { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 16c. Por qué elegirnos ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-item {
  background: var(--ink-2);
  padding: 32px 30px;
  transition: background .28s var(--ease);
}
.why-item:hover { background: var(--ink-3); }
.why-item__n {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--brand);
  margin-bottom: 14px;
}
.why-item h3 { font-size: 1.1rem; margin-bottom: .45em; }
.why-item p { color: var(--muted); font-size: .93rem; margin: 0; }
.why-item p + p { margin-top: .7em; }
.why-item strong { color: var(--text); font-weight: 500; }
.why-item--cta {
  background: linear-gradient(135deg, rgba(74, 140, 240, .12), rgba(216, 178, 106, .04));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.why-item--cta p { color: #d8dde4; }

@media (max-width: 640px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 17. Datos de contacto ---------- */
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.info-card svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 4px; }
.info-card h3 { font-size: .98rem; margin-bottom: .25em; }
.info-card p, .info-card a { font-size: .9rem; color: var(--muted); }
.info-card a:hover { color: var(--brand); }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
/* <details> nativo: la respuesta aparece aunque el JavaScript no cargue */
.faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: none; border: 0; cursor: pointer;
  padding: 22px 0; text-align: left;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500;
  list-style: none; -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; font-size: 0; }
.faq__q:hover { color: var(--brand); }
.faq__q i {
  flex-shrink: 0; width: 11px; height: 11px; position: relative; display: block;
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--brand);
}
.faq__q i::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.faq__item[open] .faq__q i::after { transform: rotate(0deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__item[open] .faq__a { max-height: 60rem; }
.faq__a p { color: var(--muted); font-size: .95rem; padding: 0 0 22px; max-width: 78ch; }

/* ---------- 18. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 62px 0 30px; margin-top: 0; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer__about p { color: var(--muted); font-size: .92rem; max-width: 40ch; margin-top: 16px; }
.footer h4 {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 500;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__list a, .footer__list span { font-size: .9rem; color: var(--muted); }
.footer__list a:hover { color: var(--brand); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 24px;
  font-size: .82rem; color: var(--muted-2);
}

/* ---------- 19. Page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(52px, 6vw, 92px) 0 clamp(38px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 88% -20%, rgba(216, 178, 106, .13), transparent 65%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); max-width: 18ch; }
.page-hero p { color: var(--muted); max-width: 66ch; font-size: 1.04rem; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--line-2); }

/* ---------- 20. Utilidades ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120%);
  background: var(--ink-4); border: 1px solid var(--line-2);
  padding: 13px 22px; border-radius: 999px; font-size: .88rem;
  box-shadow: var(--shadow); z-index: 90; transition: transform .35s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 30px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: 340px; margin: 8px auto 0; order: -1; opacity: .85; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example { grid-template-columns: minmax(0, 1fr); }
  .example .screen { order: -1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(11, 13, 17, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
    margin-left: 0;
  }
  .nav.is-open { max-height: 420px; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 14px 20px 22px; gap: 2px; }
  .nav__link { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: flex; order: 3; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose-split { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 46px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer__list { gap: 0; }
  .footer__list a, .footer__list span { display: inline-block; padding: 7px 0; line-height: 1.5; }
  .site-header .btn { padding: 11px 18px; }
  .link-arrow { padding: 6px 0; }
  .toc-row { padding: 12px 0; }
  .container { width: min(100% - 32px, var(--container)); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .band__grid { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__actions .btn { width: 100%; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step__num::after { display: none; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .nav { display: none !important; }
  body { background: #fff; color: #111; }
}

/* ---------- Campo trampa anti-bot (honeypot) ---------- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Pie: año de fundación ----------
   (las redes sociales sequitaron: Instagram vacío y LinkedIn inexistente —
    un enlace muerto en el pie resta más de lo que suma) */
.footer__since {
  margin: 14px 0 0;
  font-size: .86rem;
  color: var(--muted-2);
}
.footer__since strong {
  color: var(--brand-2);
  font-weight: 600;
  letter-spacing: .02em;
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease), transform .2s var(--ease);
}
.footer__social a:hover {
  color: var(--brand-2);
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

/* ---------- Distintivo de fundación ---------- */
.fundacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: .88rem;
  color: var(--muted);
}
.fundacion strong {
  color: var(--brand-2);
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.fundacion span { min-width: 0; }

/* ---------- 13. Solicitud de servicio: folio y resultado ---------- */
.folio-result { margin-top: 24px; }
.folio-card {
  padding: 26px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.folio-card--found { background: var(--ink-3); }
.folio-card__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.folio-card__code {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--brand-2);
  margin: 6px 0 10px;
}
.folio-card__hint {
  font-size: .9rem;
  color: var(--muted);
}
.folio-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: .92rem;
}
.folio-table th {
  text-align: left;
  padding: 8px 14px 8px 0;
  color: var(--muted-2);
  font-weight: 500;
  white-space: nowrap;
  vertical-align: top;
  width: 34%;
}
.folio-table td {
  padding: 8px 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.folio-result__error {
  padding: 14px 18px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(224, 108, 108, .35);
  background: rgba(224, 108, 108, .08);
  color: #f0b4b4;
}

/* ---------- 14. Bitácora de servicios (uso interno) ---------- */
.container--narrow { max-width: 520px; }
.btn--block { width: 100%; justify-content: center; }

.bitacora__login { min-height: 70vh; display: grid; place-items: center; }
.login-card {
  padding: 34px 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink-3);
  box-shadow: var(--shadow);
}

.bitacora__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.totales {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.total {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--ink-3);
}
.total--pendiente { border-color: rgba(74, 140, 240, .45); background: var(--brand-soft); }
.total__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.total__valor {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
}
.total--pendiente .total__valor { color: var(--brand-2); }

.bitacora__acciones { display: flex; gap: 12px; flex-wrap: wrap; }

.bitacora__lista-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.bitacora__filtros { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-2); }

.entries { display: grid; gap: 14px; }
.entry {
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-s);
  background: var(--ink-3);
}
.entry--facturado { border-left-color: var(--muted-2); opacity: .72; }
.entry__head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.entry__folio {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--brand-2);
}
.entry__fecha { font-size: .8rem; color: var(--muted-2); }
.entry__estado {
  margin-left: auto;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.entry--facturado .entry__estado { color: var(--muted-2); }
.entry__cliente { font-size: 1.05rem; color: var(--text); margin-bottom: 2px; }
.entry__tipo { font-size: .84rem; color: var(--muted-2); margin-bottom: 10px; }
.entry__desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 12px;
}
.entry__meta {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.entry__monto {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 500;
}
.entry__acciones { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .totales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry__estado { margin-left: 0; }
  .bitacora__filtros { width: 100%; }
}

/* ---------- 15. Muestra interactiva del sistema ---------- */
.demo {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--ink-4);
  border-bottom: 1px solid var(--line);
}
.demo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo__url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted-2);
  letter-spacing: .02em;
}
.demo__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.demo__kpi {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  background: var(--ink-3);
}
.demo__kpi span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.demo__kpi label {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.demo__kpi--live span { color: var(--brand-2); }
.demo__kpi--live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #46d38a;
  margin-right: 7px;
  vertical-align: middle;
}
.demo__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.demo__tab {
  padding: 13px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.demo__tab:hover { color: var(--text); }
.demo__tab.is-active { color: var(--brand-2); border-bottom-color: var(--brand); }

.demo__cols { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.demo__panel { padding: 20px; }
.demo__panel--list { border-right: 1px solid var(--line); background: var(--ink-3); }
.demo__panel-title {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.demo__orden {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--ink-2);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.demo__orden:hover { border-color: var(--line-2); }
.demo__orden.is-active { border-color: var(--brand); background: var(--brand-soft); }
.demo__orden-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo__orden-folio { font-family: var(--font-mono); font-size: .76rem; color: var(--brand-2); letter-spacing: .05em; }
.demo__orden-cliente { font-size: .95rem; color: var(--text); margin-top: 6px; font-weight: 500; }
.demo__orden-tipo { font-size: .78rem; color: var(--muted-2); margin-top: 2px; }
.demo__barra { height: 3px; border-radius: 3px; background: var(--line); margin-top: 10px; overflow: hidden; }
.demo__barra i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

.demo__badge {
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.demo__badge.is-pendiente { color: var(--muted); }
.demo__badge.is-proceso   { color: #e8c46a; border-color: rgba(232, 196, 106, .35); }
.demo__badge.is-sitio     { color: var(--brand-2); border-color: rgba(74, 140, 240, .45); background: var(--brand-soft); }
.demo__badge.is-cerrada   { color: #6fce9a; border-color: rgba(111, 206, 154, .35); }
.demo__badge.is-prio      { color: var(--muted-2); }

.demo__detail-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.demo__detail-title { font-size: 1.25rem; margin: 4px 0 2px; }
.demo__detail-sitio { font-size: .86rem; color: var(--muted-2); margin: 0; }
.demo__detail-tags { display: flex; gap: 8px; align-items: flex-start; }
.demo__datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--ink-3);
  margin-bottom: 16px;
}
.demo__datos label, .demo__pie label {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.demo__datos span, .demo__pie span { font-size: .9rem; color: var(--text); }
.demo__alcance { color: var(--muted); font-size: .93rem; line-height: 1.7; margin: 0 0 16px; }
.demo__tareas { display: grid; gap: 8px; margin-bottom: 18px; }
.demo__tarea { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.demo__check {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: .72rem;
  color: var(--ink);
  margin-top: 1px;
}
.demo__tarea.is-ok { color: var(--text); }
.demo__tarea.is-ok .demo__check { background: #46d38a; border-color: #46d38a; }
.demo__pie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.demo__monto { font-family: var(--font-mono); color: var(--brand-2) !important; }

.demo__agenda, .demo__eventos { display: grid; gap: 10px; }
.demo__agenda-item, .demo__evento {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--ink-3);
}
.demo__agenda-item.is-sitio  { border-left-color: var(--brand); }
.demo__agenda-item.is-reunion { border-left-color: #e8c46a; }
.demo__agenda-item.is-cotiza { border-left-color: #6fce9a; }
.demo__evento.is-alerta { border-left-color: #e06c6c; }
.demo__evento.is-aviso  { border-left-color: #e8c46a; }
.demo__evento.is-ok     { border-left-color: #46d38a; }
.demo__agenda-hora, .demo__evento-hora {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--brand-2);
  flex: 0 0 52px;
}
.demo__agenda-item div, .demo__evento div { display: grid; gap: 3px; }
.demo__agenda-item strong, .demo__evento strong { font-size: .95rem; color: var(--text); font-weight: 500; }
.demo__agenda-item span:not(.demo__agenda-hora), .demo__evento span:not(.demo__evento-hora) { font-size: .82rem; color: var(--muted-2); }

.demo__nota {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--ink-3);
}
.demo__nota p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.demo__nota strong { color: var(--text); }

@media (max-width: 860px) {
  .demo__cols { grid-template-columns: 1fr; }
  .demo__panel--list { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__nota { flex-direction: column; align-items: flex-start; }
}
