/* Presentación de Safety Container. Identidad propia (verde azulado), sin recursos externos. */
:root {
  --sc: #0d9488;
  --sc-dark: #0f766e;
  --sc-soft: #f0fdfa;
  --sc-soft-2: #ccfbf1;
  --bg: #f1f5f9;
  --card: #fff;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --amber: #d97706;
  --red: #dc2626;
  --green: #16a34a;
  --sky: #0284c7;
  --bar: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
ul { list-style: none; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── Barras fijas ── */
.top, .ctrl {
  position: fixed; left: 0; right: 0; z-index: 20;
  height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(14px, 3vw, 32px);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
}
.top { top: 0; border-bottom: 1px solid var(--line); }
.ctrl { bottom: 0; border-top: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--sc); color: #fff; }
.logo__mark .ico { width: 18px; height: 18px; }
.top__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top__links { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.top__links a:not(.btn) { color: var(--muted); text-decoration: none; }
.top__links a:not(.btn):hover { color: var(--sc-dark); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  background: var(--sc); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--sc-dark); }
.btn--sm { padding: 7px 14px; font-size: .9rem; }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--sc-soft); }
.btn[disabled] { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid var(--sc); outline-offset: 2px; }

.ctrl__count { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.ctrl__nav { display: flex; align-items: center; gap: 10px; }
.ctrl__site { font-size: .85rem; color: var(--muted); }
.ctrl__site a { color: var(--sc-dark); }
.progress { position: fixed; left: 0; right: 0; bottom: var(--bar); height: 3px; background: var(--line); z-index: 21; }
.progress span { display: block; height: 100%; width: 0; background: var(--sc); transition: width .25s ease; }

/* ── Diapositivas ── */
.slide {
  min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--bar) + clamp(20px, 4vh, 48px)) clamp(18px, 5vw, 64px) calc(var(--bar) + clamp(20px, 4vh, 48px));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.js .slide { display: none; border-bottom: 0; }
.js .slide.is-active { display: flex; }
.slide__in { width: 100%; max-width: 1120px; }
.slide--dark { background: linear-gradient(135deg, #042f2e, #1e293b); color: #e2e8f0; }
.slide--dark h1, .slide--dark h2 { color: #fff; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sc-dark); margin-bottom: 12px; }
.slide--dark .kicker { color: #5eead4; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 1.05rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); margin-top: 14px; max-width: 46ch; }
.slide--dark .lead { color: #cbd5e1; }
.small { font-size: .82rem; color: var(--muted); margin-top: 18px; }
.mark { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; font-weight: 700; }

.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cols--even { grid-template-columns: 1fr 1fr; }

.points { margin-top: 22px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points .ico { color: var(--sc); margin-top: .2em; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, .07); overflow: hidden; }
.grid { display: grid; gap: 16px; margin-top: 28px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--sc-soft-2); color: var(--sc-dark); margin-bottom: 12px; }
.box .ico { width: 22px; height: 22px; }
.box--gray { background: #e2e8f0; color: #475569; }
.card p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.card--gray h3 { font-weight: 600; font-size: 1rem; color: #334155; }

/* Portada */
.cover { text-align: center; }
.cover__mark { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 22px; background: var(--sc); color: #fff; margin: 0 auto 26px; box-shadow: 0 12px 40px rgba(13, 148, 136, .45); }
.cover__mark .ico { width: 52px; height: 52px; }
.cover .lead { margin-inline: auto; max-width: 36ch; }
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.pillars li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(94, 234, 212, .35); color: #ccfbf1; font-weight: 600; font-size: .95rem; }
.pillars .ico { color: #5eead4; }

/* Etiquetas e insignias */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.tag--teal { background: var(--sc-soft-2); color: var(--sc-dark); }
.tag--amber { background: #fef3c7; color: #92400e; }
.tag--sky { background: #e0f2fe; color: #075985; }
.tag--violet { background: #ede9fe; color: #5b21b6; }
.tag--gray { background: #e2e8f0; color: #475569; }
.tag--red { background: #fee2e2; color: #991b1b; }
.tag--green { background: #dcfce7; color: #166534; }
.tag .ico { width: 12px; height: 12px; }

/* Maqueta A: aplicación con la bóveda */
.app { display: grid; grid-template-columns: 150px 1fr; font-size: 12px; line-height: 1.4; min-height: 330px; }
.app__side { background: #0f172a; color: #cbd5e1; padding: 14px 10px; }
.app__logo { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 11.5px; }
.app__logo span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--sc); }
.app__logo .ico { width: 12px; height: 12px; }
.app__side li { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; }
.app__side li.on { background: var(--sc-dark); color: #fff; }
.app__side .ico { width: 13px; height: 13px; }
.app__main { background: var(--bg); padding: 16px; }
.app__title { font-size: 16px; font-weight: 800; }
.app__sub { color: var(--muted); font-size: 11px; }
.app__search { display: flex; align-items: center; gap: 6px; margin: 10px 0 12px; padding: 7px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #94a3b8; }
.app__search .ico { width: 13px; height: 13px; }
.vault { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vitem { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; }
.vitem__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vitem__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--sc-soft-2); color: var(--sc-dark); }
.vitem__ico .ico { width: 14px; height: 14px; }
.vitem__type { color: var(--muted); font-size: 10px; }
.vitem b { font-size: 12px; }
.vitem__btn { margin-top: 2px; padding: 4px 0; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; color: var(--sc-dark); font-size: 11px; }
.vitem .tag { font-size: 9.5px; padding: 1px 7px; justify-self: start; }

/* Tarjeta grande de la bóveda */
.vbig { padding: 22px; display: grid; gap: 12px; max-width: 420px; margin-inline: auto; }
.vbig__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vbig__secret { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg); font-family: ui-monospace, Menlo, monospace; letter-spacing: .2em; color: #475569; }
.vbig__actions { display: flex; gap: 8px; }
.vbig__actions span { flex: 1; text-align: center; padding: 8px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.vbig__actions span:first-child { background: var(--sc); color: #fff; border-color: var(--sc); }

/* Departamentos */
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dept { padding: 14px; }
.dept ul { margin-top: 10px; display: grid; gap: 7px; font-size: .88rem; }
.dept li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: var(--bg); }
.dept .ico { width: 15px; height: 15px; color: var(--muted); }

/* Bitácora */
.log { width: 100%; border-collapse: collapse; font-size: .88rem; }
.log th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: var(--bg); }
.log td { padding: 11px 14px; border-top: 1px solid var(--line); }

/* Maqueta B: tablero */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; background: #e8edf3; font-size: 12.5px; }
.col__head { display: flex; align-items: center; gap: 7px; font-weight: 700; margin-bottom: 8px; }
.col__head i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.col__head .n { margin-left: auto; color: var(--muted); font-weight: 600; }
.task { background: #fff; border-radius: 9px; padding: 10px; display: grid; gap: 7px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.task__meta span { display: inline-flex; align-items: center; gap: 4px; }
.task__meta .ico { width: 12px; height: 12px; }
.task__meta .rep { color: var(--sc-dark); font-weight: 600; }
.task .tag { justify-self: start; font-size: 9.5px; }

/* Recordatorios */
.bubbles { display: grid; gap: 16px; }
.bubble { padding: 16px 18px; }
.bubble__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.bubble--wa { background: #f0fdf4; border-color: #bbf7d0; border-radius: 16px 16px 16px 4px; }
.bubble--wa .bubble__head { color: #166534; }
.bubble--mail .bubble__head { color: #075985; }
.bubble p { font-size: .95rem; }
.bubble small { color: var(--muted); }

/* Mini dibujos */
.mini { height: 84px; border-radius: 10px; background: var(--bg); margin-bottom: 14px; padding: 12px; display: grid; gap: 6px; align-content: center; }
.mini i { display: block; height: 8px; border-radius: 4px; background: #cbd5e1; }
.mini--table { grid-template-columns: repeat(3, 1fr); }
.mini--table i:nth-child(-n+3) { background: var(--sc); }
.mini--chart { grid-template-columns: repeat(5, 1fr); align-items: end; align-content: stretch; }
.mini--chart i { height: var(--h); background: var(--sc); border-radius: 4px 4px 0 0; }
.mini--doc i:first-child { width: 45%; height: 10px; background: var(--sc); }
.mini--doc i:last-child { width: 70%; }

/* Servidor en tu empresa */
.onprem { padding: 28px; display: grid; place-items: center; gap: 14px; text-align: center; }
.onprem__b { position: relative; display: grid; place-items: center; width: 180px; height: 180px; border-radius: 20px; border: 2px dashed #99f6e4; background: var(--sc-soft); color: var(--sc-dark); }
.onprem__b > .ico { width: 84px; height: 84px; stroke-width: 1.5; }
.onprem__lock { position: absolute; right: -14px; bottom: -14px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sc); color: #fff; }
.onprem__lock .ico { width: 26px; height: 26px; }

/* Antes y después */
.compare { width: 100%; border-collapse: collapse; margin-top: 26px; }
.compare th { text-align: left; padding: 14px 18px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.compare th:first-child { background: #e2e8f0; color: #475569; }
.compare th:last-child { background: var(--sc); color: #fff; }
.compare td { padding: 13px 18px; border-top: 1px solid var(--line); }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { font-weight: 600; background: var(--sc-soft); }

/* Pasos */
.steps { counter-reset: paso; }
.steps .card { position: relative; padding-top: 22px; }
.steps .card::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sc); color: #fff; font-weight: 800; margin-bottom: 12px; }

/* Cierre */
.close { text-align: center; }
.close .lead { margin-inline: auto; }
.close .btn { margin-top: 28px; padding: 14px 26px; font-size: 1.05rem; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(94, 234, 212, .25); }
.contact dt { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5eead4; margin-bottom: 6px; }
.contact dd { font-size: 1.15rem; font-weight: 600; color: #fff; }

/* ── Tablet y teléfono ── */
@media (max-width: 860px) {
  .cols, .cols--even { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .depts { grid-template-columns: 1fr; }
  .slide { align-items: flex-start; }
  .slide--dark { align-items: center; }
  .top__links a:not(.btn), .ctrl__site { display: none; }
  .ctrl { justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top__links { display: none; }
  .grid--4 { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app__side { display: none; }
  .vault { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: 1fr; }
  .log th:nth-child(4), .log td:nth-child(4) { display: none; }
  .compare th, .compare td { padding: 10px 10px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }

/* ── Impresión: una diapositiva por página ── */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; font-size: 13.5px; }
  .top, .ctrl, .progress, .skip { display: none !important; }
  .slide, .js .slide {
    display: flex !important; min-height: 0; height: 209mm; padding: 14mm 18mm;
    break-after: page; page-break-after: always; break-inside: avoid; border: 0;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .slide:last-of-type { break-after: auto; page-break-after: auto; }
  .panel, .card { box-shadow: none; }
}

/* El título recibe el foco al cambiar de diapositiva (lectores de pantalla); sin marco visible. */
h1:focus, h2:focus { outline: none; }
