/* ============================================
   Ángel 2026 Explained — septiembre de 2026
   Off-white / ink, acento amber→magenta.
   Mismo lenguaje que decks/uso-v2.
   Self-contained: no importa shared/base.css.
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

:root {
  --bg:      #fbfaf7;
  --bg-2:    #f3f1ec;
  --surface: #ffffff;
  --ink:     #0e0e0e;
  --ink-2:   #5a5a5a;
  --ink-3:   #9a9a9a;
  --line:    rgba(14,14,14,0.08);
  --line-2:  rgba(14,14,14,0.14);
  --amber:   #ffa916;
  --magenta: #ff0173;
  --gradient: linear-gradient(90deg, #ffa916 0%, #ff0173 100%);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --shadow-lg: 0 18px 50px rgba(14,14,14,0.10);
  --shadow: 0 10px 28px rgba(14,14,14,0.08);
}

/* --- Auth overlay --- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(251,250,247,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
}
.auth-overlay.fade-out { opacity: 0; transition: opacity 0.4s; }
.auth-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 3rem 2.5rem; text-align: center;
  box-shadow: var(--shadow-lg); max-width: 380px; width: 90%;
}
.auth-lock { width: 38px; height: 38px; color: var(--magenta); margin: 0 auto 1.2rem; }
.auth-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.auth-subtitle { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-input {
  padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); font-family: var(--font); font-size: 0.95rem;
  outline: none; color: var(--ink); transition: border-color 0.2s;
}
.auth-input:focus { border-color: var(--magenta); }
.auth-submit {
  padding: 0.8rem; border: none; border-radius: 12px; cursor: pointer;
  background: var(--gradient); color: #fff; font-family: var(--font);
  font-weight: 600; font-size: 0.95rem; transition: transform 0.2s, filter 0.2s;
}
.auth-submit:hover { transform: translateY(-1px); filter: saturate(1.1); }
.auth-error { color: #e0142f; font-size: 0.82rem; opacity: 0; transition: opacity 0.3s; }
.auth-error.visible { opacity: 1; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  overflow-x: hidden;
}

/* --- Layout --- */
.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vh, 96px) clamp(20px, 5vw, 72px);
}
.slide + .slide { border-top: 1px solid var(--line); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }
.wrap--ancho { max-width: 1360px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.sub { color: var(--ink-2); font-size: 1rem; margin-bottom: 36px; }
h2 + .pantallazo, h2 + .dos-pantallazos, h2 + .muro, h2 + .shots, h2 + .equipo, h2 + .logos-grid, h2 + .collage { margin-top: 32px; }

/* --- Dos pantallazos lado a lado --- */
.dos-pantallazos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.dos-pantallazos figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.dos-pantallazos figure img { display: block; width: 100%; height: auto; }

/* --- Encuadre por persona --- */
.foto--guille img { object-position: center; transform: translateY(8%) scale(1.28); transform-origin: 50% 42%; }
.foto--martin img { object-position: center; }
.rec.rec--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Portada --- */
.cover { text-align: center; }
.cover h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.cover .bajada {
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: var(--ink-2);
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.cover .fecha {
  margin-top: 34px;
  font-size: 0.95rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Métricas con gradiente --- */
.rec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rec .v {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.rec .l { font-size: 0.92rem; color: var(--ink-2); margin-top: 10px; max-width: 30ch; }

/* --- Frase de cierre, plana --- */
.statement {
  margin-top: 40px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 44ch;
  color: var(--ink);
}

/* --- Tabla --- */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line-2);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.total td { border-top: 1px solid var(--line-2); border-bottom: none; font-weight: 600; }
.dato { white-space: nowrap; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.dato b { color: var(--ink); font-weight: 600; }
.dato--fuerte b {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.acciones { color: var(--ink-2); line-height: 1.45; }
.nota {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 90ch;
}

/* --- Tabla negra --- */
.tabla-negra {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 14px 6px;
  box-shadow: var(--shadow-lg);
}
.tabla-negra table { font-size: 1.05rem; }
.tabla-negra thead th { color: rgba(255,255,255,0.45); border-bottom-color: rgba(255,255,255,0.14); padding: 14px 18px 14px; }
.tabla-negra tbody td { color: #fff; border-bottom-color: rgba(255,255,255,0.08); padding: 18px 18px; }
.tabla-negra tbody tr:last-child td { border-bottom: none; }
.tabla-negra .acciones { color: rgba(255,255,255,0.8); }
.tabla-negra .dato { color: rgba(255,255,255,0.6); }
.tabla-negra .dato b { color: #fff; }
.tabla-negra .dato--fuerte b {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tabla-negra tr.meta td { font-weight: 600; }
.tabla-negra tr.meta .acciones { color: #fff; }

/* --- Global66: antes y después --- */
.g66 { display: grid; grid-template-columns: 1fr 1fr 36px 0.72fr; gap: 18px; align-items: stretch; }
.g66-col { border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.g66-antes { background: var(--bg-2); }
.g66-despues { background: var(--surface); box-shadow: var(--shadow); }
.g66-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.etapa {
  display: grid; grid-template-columns: 82px 1fr; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.etapa:last-child { border-bottom: none; }
.etapa .paso { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.iconos { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: flex-end; }
.app { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 44px; }
.app img { height: 26px; width: auto; display: block; }
.app img[src$="heymark.png"] { height: 30px; margin-bottom: -2px; }
.app span { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.glosa { align-self: center; margin-left: 2px; font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.glosa--bloque { flex-basis: 100%; margin: 6px 0 0; font-weight: 500; line-height: 1.35; white-space: normal; }
.g66-flecha { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.g66-flecha svg { width: 30px; height: 30px; }
.g66-res { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 6px 2px; }
.g66-res .g66-label { margin-bottom: 0; }
.g66-res .v { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.g66-res .l { font-size: 0.88rem; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
.g66-cita { margin-top: 24px; font-size: 1rem; font-weight: 500; line-height: 1.45; color: var(--ink); max-width: 100ch; }
.g66-cita span { display: block; font-size: 0.75rem; color: var(--ink-3); font-weight: 400; margin-top: 6px; }

/* --- Logos de herramientas --- */
.logos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 40px; }
.logo-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 10px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.logo-tile img { height: 40px; width: auto; display: block; }
.logo-tile span { font-size: 0.88rem; color: var(--ink-2); font-weight: 500; }

/* --- Pantallazo suelto --- */
.pantallazo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-lg); max-width: 780px; margin: 0 auto;
}
.pantallazo img { display: block; width: 100%; height: auto; }

/* --- Grilla de pantallazos --- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.shots figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.shots figure img { display: block; width: 100%; height: auto; }
.shots--centrado { display: flex; flex-wrap: wrap; justify-content: center; }
.shots--centrado figure { flex: 0 1 calc(33.333% - 14px); }

/* --- Collage: citas y pantallazos mezclados --- */
.collage { column-count: 3; column-gap: 18px; }
.collage > * { break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 18px; }
.collage figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.collage figure img { display: block; width: 100%; height: auto; }
.cita {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px 18px; box-shadow: var(--shadow);
}
.cita .comilla {
  display: block; font-size: 3rem; line-height: 0.5; height: 0.9rem;
  color: var(--line-2); font-weight: 700; margin-bottom: 8px;
}
.cita p { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.cita .quien { font-size: 0.78rem; color: var(--ink-3); line-height: 1.5; margin-top: 10px; }
.metrica {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px 14px; box-shadow: var(--shadow);
}
.metrica .m-v { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.metrica .m-l { font-size: 0.86rem; color: var(--ink-2); line-height: 1.35; margin-top: 8px; }
.metrica .quien { font-size: 0.78rem; color: var(--ink-3); margin-top: 8px; }
.metrica .quien--logo { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.metrica .quien--logo img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: block; }
.collage { column-gap: 16px; }
.collage > * { margin-bottom: 16px; }
.collage--cols { column-count: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.ccol { display: flex; flex-direction: column; gap: 16px; }
.collage--cols .ccol > * { display: block; width: 100%; margin-bottom: 0; }
.cita--negra { background: var(--ink); border-color: var(--ink); color: #fff; }
.cita--negra .comilla { color: rgba(255,255,255,0.3); }
.cita--negra .quien { color: rgba(255,255,255,0.6); }
.r1 { transform: rotate(-1.2deg); }
.r2 { transform: rotate(1deg); }
.r3 { transform: rotate(-0.6deg); }
.r4 { transform: rotate(1.4deg); }

/* --- Equipo --- */
.equipo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.foto {
  aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
}
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.persona .nombre { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 14px; }
.persona .rol { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
.persona .que { font-size: 0.85rem; color: var(--ink-2); line-height: 1.45; margin-top: 8px; }
.persona .que b { color: var(--ink); font-weight: 600; }

/* --- Celdas del ask --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.cell .v { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.cell .l { font-size: 0.92rem; color: var(--ink-2); margin-top: 8px; }

/* --- Muro de usuarios --- */
.slide--muro .wrap { max-width: 1360px; }
.slide--muro h2 { margin-bottom: 28px; }
.muro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; padding: 12px 4px; }
.shot {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s;
}
.shot img { display: block; width: 100%; height: auto; }
.shot--1 { transform: rotate(-1.6deg); }
.shot--2 { transform: rotate(1.2deg) translateY(8px); }
.shot--3 { transform: rotate(-0.6deg) translateY(-4px); }
.shot--4 { transform: rotate(1.8deg); }
.shot--5 { transform: rotate(-1.1deg) translateY(6px); }
.shot--6 { transform: rotate(0.8deg) translateY(-6px); }
.shot:hover { transform: rotate(0) scale(1.04); z-index: 2; }

/* --- Cabecera de Global66 con sus perfiles --- */
.g66-head { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.g66-head h2 { margin-bottom: 0; white-space: nowrap; }
.g66-perfiles { display: flex; gap: 10px; align-items: center; }
.g66-perfiles img { display: block; height: 68px; width: auto; border-radius: 10px; box-shadow: var(--shadow); }

/* --- Usuarios: una alta a la izquierda, dos apiladas a la derecha --- */
.wrap--medio { max-width: 1230px; }
.slide--usuarios { padding-top: 40px; padding-bottom: 40px; }
.slide--usuarios h2 + .shots { margin-top: 24px; }
.shots--dos { grid-template-columns: 1.3fr 1fr; gap: 22px; }
.shots-col { display: grid; gap: 22px; align-content: start; }
.shots-col figure {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.shots-col figure img { display: block; width: 100%; height: auto; }
h2 + .split { margin-top: 32px; }

@media (max-width: 900px) {
  .muro { grid-template-columns: repeat(2, 1fr); }
  .rec, .shots, .split { grid-template-columns: 1fr; }
  .g66 { grid-template-columns: 1fr; }
  .g66-head { flex-direction: column; align-items: flex-start; }
  .g66-head h2 { white-space: normal; }
  .shots--dos { grid-template-columns: 1fr; }
  .g66-flecha { display: none; }
  .logos-grid, .equipo { grid-template-columns: repeat(2, 1fr); }
  .collage { column-count: 1; }
  table { font-size: 0.85rem; }
  tbody td, thead th { padding-left: 8px; padding-right: 8px; }
}

/* ============================================
   Explained: evolución 2016 / 2026
   ============================================ */
.evo { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; margin-top: 44px; align-items: start; }
.evo-col--hoy { border-left: 1px solid var(--line-2); padding-left: 56px; }
.anio { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 26px; color: var(--ink); }
.flow { display: flex; flex-direction: column; align-items: flex-start; }
.node {
  position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 15px 26px; font-weight: 600; font-size: 1.08rem; line-height: 1.3; box-shadow: var(--shadow); color: var(--ink);
}
.node--logo { display: flex; align-items: center; gap: 12px; }
.node--logo img { height: 28px; width: auto; display: block; border-radius: 7px; }
.arrow { height: 40px; display: flex; align-items: center; margin-left: 26px; color: var(--ink-3); }
.arrow svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node--publicar .redes { display: flex; gap: 14px; margin-top: 12px; }
.node--publicar .redes img { height: 28px; width: auto; display: block; }
.node--publicar .redes img[src$="instagram.png"] { border-radius: 7px; }
.node--loop .side {
  position: absolute; left: calc(100% + 96px); top: -22px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 15px 26px; font-weight: 600; box-shadow: var(--shadow);
}
.node--loop .loop { position: absolute; left: calc(100% + 8px); top: 50%; width: 82px; height: 72px; transform: translateY(-60%); overflow: visible; }
.loop path { fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.evo + .statement { margin-top: 52px; }

/* ============================================
   Explained: operación hoy / con HeyMark
   ============================================ */
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.ops-label { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.ops-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding: 0 8px; }
.ops-table table { font-size: 0.86rem; table-layout: fixed; }
.ops-table col.c-emp { width: 21%; }
.ops-table thead th { padding: 16px 12px 10px; font-size: 10.5px; letter-spacing: 0.08em; line-height: 1.3; }
.ops-table tbody td { padding: 0 12px; height: 60px; vertical-align: middle; }
.ops-table td.emp { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cel { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.cel .lg { display: flex; align-items: center; gap: 7px; }
.cel .lg img { height: 20px; width: auto; display: block; }
.cel .lg img[src$="instagram.png"] { height: 20px; border-radius: 5px; }
.cel .lg img[src$="metricool.png"] { height: 15px; }
.cel .lg .op { color: var(--ink-3); font-size: 0.8rem; }
.cel .tx { font-size: 0.76rem; color: var(--ink-2); line-height: 1.25; }
.ops-col--hm td img.hm { height: 27px; width: auto; display: block; }
.sub--cierre { margin-top: 36px; margin-bottom: 0; }

/* --- Dos nodos después de publicar --- */
.fila { display: flex; gap: 16px; align-items: stretch; }
.fila .node { display: flex; align-items: center; }

/* ============================================
   Explained: el flujo fragmentado, con burbujas
   ============================================ */
.frag { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 12px; align-items: start; }
.frag-col--con { border-left: 1px solid var(--line-2); padding-left: 48px; }
.frag .ops-label { margin-bottom: 16px; }
.frows { display: flex; flex-direction: column; }
.frow { display: grid; grid-template-columns: 224px 1fr; gap: 16px; align-items: center; }
.frag-col--con .frow { grid-template-columns: 1fr 224px; }
.fnode { display: flex; align-items: center; }
.frag .node { font-size: 0.95rem; padding: 11px 16px; border-radius: 12px; }
.frag .node--logo { gap: 10px; }
.frag .node--logo img, .frag .redes img { height: 22px; }
.frag .node--loop .side { left: calc(100% + 78px); top: -16px; padding: 11px 16px; border-radius: 12px; display: flex; align-items: center; gap: 10px; }
.frag .node--loop .loop { width: 66px; height: 58px; left: calc(100% + 6px); }
.frag .arrow { height: 30px; margin-left: 22px; }
.frag .node--publicar .redes { gap: 10px; margin-top: 8px; }
.frag .fila { gap: 10px; }
.frag .node--dos { display: flex; flex-direction: column; align-items: flex-start; white-space: nowrap; }
.frag .node--dos .redes { display: flex; gap: 10px; margin-top: 8px; }
.frag .node--dos .redes img { height: 22px; width: auto; display: block; }
.frag .node--dos .redes img[src$="manychat-wordmark.png"] { height: 15px; align-self: center; }
.frag .node--dos .redes img[src$="manychat-wordmark.png"], .frag .node--dos .redes img[src$="metricool.png"] { height: 15px; }
.bub {
  background: var(--bg-2); border-radius: 12px; padding: 10px 14px;
  font-size: 0.82rem; color: var(--ink-2); line-height: 1.35;
}
.frag-col--sin .bub { text-align: right; }

/* ============================================
   Explained: chat con Mark
   ============================================ */
.chat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 20px 28px 14px; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px;
}
.msg { display: flex; align-items: flex-start; gap: 14px; }
.msg--user { justify-content: flex-end; }
.msg--user .msg-body { background: var(--ink); color: #fff; border-radius: 20px; padding: 11px 18px; font-size: 0.98rem; max-width: 62%; }
.msg--mark .mark-logo { width: 28px; height: 28px; margin-top: 10px; flex: 0 0 auto; }
.msg-col { display: flex; flex-direction: column; max-width: 72%; }
.trace { font-size: 0.74rem; color: var(--ink-3); line-height: 1.35; margin: 0 0 6px 4px; }
.trace b { font-weight: 600; color: var(--ink-3); }
.msg--mark .msg-body { background: var(--bg-2); border-radius: 20px; padding: 11px 16px; font-size: 0.94rem; color: var(--ink); line-height: 1.42; }
.msg-body p { margin: 0; }
.chart { display: flex; flex-direction: column; gap: 6px; margin: 9px 0 7px; }
.sub--chat { margin-bottom: 20px; }
.bar { display: grid; grid-template-columns: 118px 1fr 64px; align-items: center; gap: 12px; font-size: 0.84rem; }
.bar-l { color: var(--ink-2); }
.bar-t { display: block; height: 10px; border-radius: 5px; background: var(--ink); width: var(--w); }
.bar-v { color: var(--ink); font-weight: 600; white-space: nowrap; text-align: right; }
.msg-note { font-size: 0.84rem; color: var(--ink-2); }
.chat-input {
  margin-top: 4px; border: 1px solid var(--line-2); border-radius: 14px; padding: 11px 12px 11px 16px;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 0.95rem;
}
.chat-input .send { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-3); display: flex; align-items: center; justify-content: center; }
.chat-input .send svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================
   Explained: cuadrante
   ============================================ */
.cuad { position: relative; height: 600px; margin-top: 24px; }
.cuad .ax { position: absolute; background: var(--ink-3); }
.cuad .ax-h { left: 14%; right: 14%; top: 50%; height: 1px; }
.cuad .ax-v { top: 9%; bottom: 9%; left: 50%; width: 1px; }
.cuad .ax-h::before, .cuad .ax-h::after, .cuad .ax-v::before, .cuad .ax-v::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
}
.cuad .ax-h::before { left: -3px; top: -3px; }
.cuad .ax-h::after { right: -3px; top: -3px; }
.cuad .ax-v::before { top: -3px; left: -3px; }
.cuad .ax-v::after { bottom: -3px; left: -3px; }
.cuad .lbl { position: absolute; font-size: 0.84rem; color: var(--ink-2); line-height: 1.3; }
.lbl--izq { left: 0; top: 50%; transform: translateY(-50%); width: 12.5%; text-align: right; }
.lbl--der { right: 0; top: 50%; transform: translateY(-50%); width: 12.5%; }
.lbl--arr { top: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.lbl--aba { bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.stack {
  position: absolute; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.stack img { height: 24px; width: auto; display: block; }
.stack img[src$="instagram.png"], .stack img[src$="clipflow.jpg"], .stack img[src$="heymark.png"] { border-radius: 7px; }
.stack img[src$="metricool.png"] { height: 17px; }
.stack img[src$="manychat-wordmark.png"] { height: 16px; }
.stack span { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.stack img[src$="zernio.png"], .stack img[src$="chatgpt.png"], .stack img[src$="later.png"] { border-radius: 7px; }
.stack--1 { left: 3%; top: 68%; }
.stack--2 { left: 13%; top: 84%; }
.stack--buffer { left: 6%; top: 56%; }
.stack--later { left: 24%; top: 56%; }
.stack--ppt { left: 34%; top: 70%; }
.stack--gpt { left: 5%; top: 30%; }
.stack--claude { left: 34%; top: 16%; }
.stack--clip { right: 3%; top: 74%; }
.stack--hm { right: 6%; top: 13%; padding: 16px 22px; }
.stack--hm img { height: 32px; }

/* ============================================
   Explained: tamaño del mercado
   ============================================ */
.total { margin: 0 0 34px; }
.total-v { font-size: clamp(2.6rem, 4.8vw, 3.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.total-l { font-size: 1rem; color: var(--ink-2); margin-top: 12px; max-width: 72ch; }
.mercado { display: grid; grid-template-columns: 1.45fr 1px 1fr; gap: 44px; align-items: start; margin-top: 4px; }
.mercado-div { background: var(--line-2); align-self: stretch; }
.mercado .ops-label { margin-bottom: 16px; font-size: 0.95rem; }
.mercado .rec { gap: 24px; }
.mercado .rec--2 { grid-template-columns: repeat(2, 1fr); }
.mercado .rec .v { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 600; }
.mercado .rec .l { max-width: 26ch; font-size: 0.84rem; margin-top: 8px; }
.marca { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.marca img { height: 18px; width: auto; display: block; border-radius: 4px; }
.marca img[src$="metricool.png"] { height: 14px; border-radius: 0; }
.statement--mercado { margin-top: 30px; font-size: 1.1rem; max-width: 60ch; }
.statement--mercado + .nota { margin-top: 18px; }

@media (max-width: 900px) {
  .mercado { grid-template-columns: 1fr; }
  .mercado-div { display: none; }
  .cuad { height: 520px; }
  .frag { grid-template-columns: 1fr; }
  .frag-col--con { border-left: none; padding-left: 0; }
  .frow, .frag-col--con .frow { grid-template-columns: 1fr; }
  .frag-col--sin .bub { text-align: left; }
  .msg--user .msg-body, .msg--mark .msg-body { max-width: 100%; }
  .evo, .ops { grid-template-columns: 1fr; }
  .evo-col--hoy { border-left: none; padding-left: 0; }
  .node--loop .side { position: static; margin-top: 10px; display: inline-block; }
  .node--loop .loop { display: none; }
}
