/* www.diariodecampo.com.ar — estilos compartidos (index.html y campo.html).
   Mismos tokens que client/src/index.css. Tema claro por defecto (pedido de Gabriel, 08/10/2026);
   el oscuro sólo con el botón de la barra (data-theme="dark"). */
:root {
  --bg: #efece4; --panel: #faf8f3; --panel-alt: #e4dfd3; --text: #201e19; --muted: #5d584d;
  --primary: #2f5d52; --accent: #b07a1f; --border: #d5cec0;
  --primary-soft: rgba(47, 93, 82, 0.12); --on-primary: #faf8f3;
  --success: #2f6b46; --success-soft: rgba(47, 107, 70, 0.12);
  --warning: #96651a; --warning-soft: rgba(150, 101, 26, 0.13);
  --danger: #a83232; --danger-soft: rgba(168, 50, 50, 0.11);
  --future: #3a5b8c; --future-soft: rgba(58, 91, 140, 0.12);
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
  --font-ui: "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Bricolage Grotesque", var(--font-ui);
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, Menlo, monospace;
  --shadow: 0 1px 2px rgba(32, 30, 25, 0.06), 0 14px 40px -18px rgba(32, 30, 25, 0.3);
  --shadow-lg: 0 2px 4px rgba(32, 30, 25, 0.06), 0 30px 70px -30px rgba(32, 30, 25, 0.45);
}
:root[data-theme="dark"] {
  --bg: #161510; --panel: #201e18; --panel-alt: #2b2921; --text: #ece7db; --muted: #a09a8b;
  --primary: #74b7a5; --accent: #d7a54e; --border: #35322a;
  --primary-soft: rgba(116, 183, 165, 0.14); --on-primary: #161510;
  --success: #6cc494; --success-soft: rgba(108, 196, 148, 0.13);
  --warning: #ddab4f; --warning-soft: rgba(221, 171, 79, 0.13);
  --danger: #e88b8b; --danger-soft: rgba(232, 139, 139, 0.13);
  --future: #8aaad8; --future-soft: rgba(138, 170, 216, 0.13);
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 14px 40px -18px rgba(0,0,0,0.7);
  --shadow-lg: 0 2px 4px rgba(0,0,0,0.3), 0 30px 70px -30px rgba(0,0,0,0.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 4.8vw, 58px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.1vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1400px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); line-height: 1.55; }
.kicker { display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: 600 15px var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, filter .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.06); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ── barra ── */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav-links { display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme-btn svg { width: 17px; height: 17px; }
@media (max-width: 980px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav .wrap { height: 60px; gap: 10px; } .brand { min-width: 0; } .brand img { height: 26px; max-width: 100%; } .nav .btn { height: 40px; padding: 0 14px; } .nav .btn .long, .nav .btn svg { display: none; } }

/* ── secciones ── */
section.block { padding: clamp(56px, 7vw, 100px) 0; }
section.block.alt { background: var(--panel); border-block: 1px solid var(--border); }
.head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card .ic { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.card .ic svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.tag.ok { color: var(--success); background: var(--success-soft); border-color: transparent; }
.tag.soon { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.tag.ai { color: var(--future); background: var(--future-soft); border-color: transparent; }

/* listas con tilde */
ul.check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
ul.check li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
ul.check li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--success-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-size: 11px; background-position: center; background-repeat: no-repeat; }
ul.check li b { color: var(--text); font-weight: 600; }

/* ── capturas ── */
.shot { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.shot img { width: 100%; cursor: zoom-in; }
.shot .bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: 12px; }
.shot .bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-alt); border: 1px solid var(--border); }
.shot .bar .url { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; }
.shot-lg { box-shadow: var(--shadow-lg); }
figure { margin: 0; }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
figcaption b { color: var(--text); font-weight: 600; }
.shots { display: grid; gap: 22px 18px; }
@media (max-width: 980px) { .shots.g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shots { grid-template-columns: 1fr; } }
.img-dark { display: none; }
:root[data-theme="dark"] .img-light { display: none; }
:root[data-theme="dark"] .img-dark { display: block; }

/* celular */
.phone { width: min(300px, 100%); background: #1a1a1a; border-radius: 34px; padding: 10px; box-shadow: var(--shadow-lg); margin-inline: auto; }
.phone .scr { border-radius: 26px; overflow: hidden; background: var(--bg); aspect-ratio: 412 / 915; }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; }
.phones { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.phones figure { width: min(260px, 100%); }
.phones .phone { width: 100%; }

/* dos columnas */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.two > * { min-width: 0; }
.two.wide-right { grid-template-columns: 0.85fr 1.15fr; }
.two.wide-left { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 900px) { .two, .two.wide-right, .two.wide-left { grid-template-columns: 1fr; } }

/* pasos / flujo */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: paso; }
@media (max-width: 980px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow .step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.flow .step::before { counter-increment: paso; content: counter(paso); font-family: var(--font-mono); font-size: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; margin-bottom: 12px; }
.flow .step h4 { margin-bottom: 6px; }
.flow .step p { color: var(--muted); font-size: 14px; }

/* canales */
.canales { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .canales { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .canales { grid-template-columns: 1fr; } }
.canal { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.canal .ic { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.canal .ic svg { width: 20px; height: 20px; }
.canal h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.canal p { color: var(--muted); font-size: 14px; }

/* cifras */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat b { display: block; font-family: var(--font-title); font-size: 34px; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; line-height: 1; }
.stat span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* tabla de módulos */
.modulos { display: grid; gap: 40px; }
.modulo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 40px; border-top: 1px solid var(--border); }
.modulo:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .modulo { grid-template-columns: 1fr; } }
.modulo .pantallas { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.modulo .shots { grid-template-columns: 1fr 1fr; gap: 14px; }
.modulo .shots .span2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .modulo .shots { grid-template-columns: 1fr; } }

/* bloque terminal / telegram */
.chat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 10px; font-size: 14px; box-shadow: var(--shadow); }
.chat .m { max-width: 86%; padding: 9px 13px; border-radius: 14px; line-height: 1.4; }
.chat .me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.chat .bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat .bot .file { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); font-family: var(--font-mono); font-size: 12px; }
.chat .cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat .cmds span { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }

/* cierre */
.cta-end { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center; }
.cta-end h2 { color: inherit; }
.cta-end p { opacity: .85; margin-top: 10px; max-width: 560px; }
.cta-end .btn { background: var(--on-primary); color: var(--primary); border-color: transparent; }
.cta-end .btn.ghost { background: transparent; color: var(--on-primary); border-color: rgba(255,255,255,.35); }
@media (max-width: 760px) { .cta-end { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* visor de capturas */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 8, .88); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lb.on { display: flex; }
.lb img { max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb .cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #ece7db; font-size: 14px; padding: 0 24px; }
