/* Tiza TPV · web pública (tiza.ngcl.es). Se carga DESPUÉS de site.css y tienda.css:
   la pizarra del bar (verde casi negro), la tiza (blanco roto) y la tiza amarilla como acento. */
:root {
  --graphite: #18221d;   /* pizarra */
  --console: #1f2c25;    /* pizarra clara (tarjetas) */
  --rack: #2e4036;       /* marco */
  --rack-hi: #3f574a;
  --amber: #f4c64e;      /* tiza amarilla */
  --amber-deep: #c99a22;
  --pgm: #7fd19b;        /* verde «funciona» */
  --tally: #f07a5a;      /* tiza coral: avisos */
  --paper: #f3efe4;      /* tiza */
  --mute: #aab5ad;
  --dim: #7d8a82;
  --chalk-line: rgba(243, 239, 228, 0.16);
  --wrap: 1160px;
  /* Archivo también para el texto: el cero tachado de Atkinson queda raro en los precios */
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body {
  background-color: var(--graphite);
  /* polvo de tiza: ruido muy suave para que no parezca un plano de color */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lede { color: #d7d9cf; }
.site-head { background: rgba(24, 34, 29, 0.88); border-bottom-color: var(--chalk-line); }
.site-head nav a { color: #cfd3c8; }
.logo { font-stretch: 100%; letter-spacing: 0.01em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo b { color: var(--amber); font-weight: 600; font-size: 0.72em; letter-spacing: 0.14em; margin-left: 2px; }
.btn { border-color: var(--rack-hi); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1d1806; }
.btn.primary:hover { background: #ffd56b; border-color: #ffd56b; color: #1d1806; }
.btn.demo { background: transparent; border: 2px solid var(--paper); color: var(--paper); }
.btn.demo:hover { background: var(--paper); color: var(--graphite); }
.dur[aria-checked="true"] { background: #2b301c; }
.dur .off { color: #1d1806; }
.site-foot { border-top: 1px solid var(--chalk-line); }
.site-foot .ngcl { color: var(--paper); font-weight: 700; letter-spacing: 0.12em; text-decoration: none; }

/* subrayado a tiza */
.chalk { position: relative; white-space: nowrap; }
.chalk::after { content: ''; position: absolute; left: -2%; right: -3%; bottom: -0.08em; height: 0.28em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13c48-6 96-9 147-8 50 1 99 3 147-2' fill='none' stroke='%23f4c64e' stroke-width='6' stroke-linecap='round' opacity='.92'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }

/* ---------- portada ---------- */
.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--paper); border: 1px dashed rgba(243, 239, 228, 0.4); border-radius: 999px; padding: 6px 14px; }
.kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--pgm); box-shadow: 0 0 0 4px rgba(127, 209, 155, 0.18); }
.hero h1 { font-size: clamp(40px, 5.2vw, 70px); font-stretch: 100%; line-height: 0.98; margin-top: 20px; }
.hero .lede { margin-top: 22px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14.5px; color: var(--mute); }
.hero-note b { color: var(--paper); font-weight: 600; }

.shots { position: relative; }
.shot-desk { border-radius: 14px; overflow: hidden; border: 1px solid var(--rack-hi); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); background: #f4f1ec; }
.shot-phone { position: absolute; right: -6px; bottom: -44px; width: 31%; border-radius: 22px; overflow: hidden; border: 6px solid #0f1512; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.7); background: #f4f1ec; }
.wifi-tag { position: absolute; left: -12px; bottom: -26px; background: var(--console); border: 1px solid var(--rack-hi); border-radius: 12px; padding: 10px 14px; font-size: 14px; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6); }
.wifi-tag b { display: block; font-family: var(--display); font-size: 16px; }
.wifi-tag span { color: var(--mute); }
.wifi-tag .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pgm); margin-right: 6px; vertical-align: middle; }

.proof { border-top: 1px solid var(--chalk-line); border-bottom: 1px solid var(--chalk-line); margin-top: clamp(40px, 6vw, 72px); }
.proof ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proof li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #d7d9cf; }
.proof li b { display: block; color: var(--paper); font-size: 16.5px; }
.proof svg { flex: none; width: 26px; height: 26px; color: var(--amber); margin-top: 2px; }

.block { padding: clamp(56px, 8vw, 110px) 0; }
.block + .block { border-top: 1px solid var(--chalk-line); }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 13.5px; color: var(--amber); font-weight: 700; }
.block h2 { margin-top: 12px; max-width: 16em; }
.block .lede { margin-top: 18px; }

/* sin internet: esquema del local */
.offline { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.points { list-style: none; padding: 0; margin: 26px 0 0; }
.points li { padding: 12px 0 12px 34px; position: relative; border-top: 1px dashed var(--chalk-line); color: #d7d9cf; }
.points li:first-child { border-top: 0; }
.points li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 16px; height: 9px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); border-radius: 1px; }
.points b { color: var(--paper); }
.board { border: 1px solid var(--rack-hi); border-radius: 18px; background: var(--console); padding: clamp(14px, 2vw, 22px); }
.board svg { width: 100%; height: auto; display: block; }
.board .cap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--mute); }
.toggle-net { font: 600 14px/1 var(--body); color: var(--paper); background: transparent; border: 1px solid var(--rack-hi); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.toggle-net[aria-pressed="true"] { border-color: var(--tally); color: var(--tally); }

/* funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.feat { background: var(--console); border: 1px solid var(--rack); border-radius: 16px; padding: 22px 22px 24px; }
.feat svg { width: 30px; height: 30px; color: var(--amber); }
.feat h3 { margin-top: 14px; font-size: 21px; }
.feat p { margin-top: 8px; color: #c9cec4; font-size: 15.5px; }
.feat.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: center; }
.feat.wide img { border-radius: 10px; border: 1px solid var(--rack-hi); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1d1806; background: var(--amber); border-radius: 6px; padding: 3px 8px; margin-left: 6px; vertical-align: 3px; }

/* lo que nos piden los bares */
.versus { margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--rack); border-radius: 16px; overflow: hidden; }
.versus table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.versus th, .versus td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--rack); vertical-align: top; }
.versus thead th { border-top: 0; background: #1b2620; font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; }
.versus thead th.us { color: var(--amber); }
.versus td:first-child { color: var(--paper); font-weight: 600; width: 30%; }
.versus td { color: #c9cec4; }
.versus td.us { color: var(--paper); background: rgba(244, 198, 78, 0.05); }
.versus .yes::before { content: '✓ '; color: var(--pgm); font-weight: 700; }
.versus .no::before { content: '✕ '; color: var(--tally); font-weight: 700; }

/* precios */
.bill { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--rack-hi); margin-top: 26px; }
.bill button { font: 600 15px/1 var(--body); color: var(--mute); background: transparent; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.bill button[aria-pressed="true"] { background: var(--paper); color: var(--graphite); }
.bill button small { color: inherit; opacity: 0.8; font-weight: 500; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--console); border: 1px solid var(--rack); border-radius: 18px; padding: 26px 24px; }
.plan.star { border: 2px solid var(--amber); position: relative; }
.plan.star::before { content: 'El más elegido'; position: absolute; top: -13px; left: 22px; background: var(--amber); color: #1d1806; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 26px; }
.plan .for { color: var(--mute); margin-top: 4px; font-size: 15px; }
.plan .price { font-family: var(--display); font-size: 52px; font-weight: 800; margin-top: 18px; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--mute); font-family: var(--body); }
.plan .per { color: var(--mute); font-size: 14px; margin-top: 6px; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: #d7d9cf; font-size: 15.5px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--pgm); font-weight: 700; }
.plan li.plus::before { content: '+'; color: var(--amber); }
.plan .btn { width: 100%; }
.price-foot { margin-top: 18px; color: var(--mute); font-size: 14.5px; }

/* preguntas */
.faqs { margin-top: 28px; max-width: 860px; }
.faqs details { border-top: 1px dashed var(--chalk-line); }
.faqs details:last-child { border-bottom: 1px dashed var(--chalk-line); }
.faqs summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 19px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 28px; color: var(--amber); font-weight: 400; transition: transform 0.2s; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { padding: 0 0 18px; color: #d0d4ca; max-width: 46em; }

/* contacto (reutiliza contacto.js) */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-form { background: var(--console); border: 1px solid var(--rack); border-radius: 18px; padding: clamp(20px, 3vw, 30px); }
.cfields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfields .span2 { grid-column: span 2; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #cfd3c8; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; color: var(--paper); background: #15201a; border: 1px solid var(--rack-hi); border-radius: 10px; padding: 12px 13px; }
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input.bad { border-color: var(--tally); }
.contact-form .accept { display: flex; gap: 10px; margin: 14px 0; font-size: 14.5px; color: #cfd3c8; }
.contact-form .btn { width: 100%; }
.cnotice { margin-top: 12px; padding: 12px 14px; border-radius: 10px; }
.cnotice.bad { background: #331d18; color: #ffc6b8; }
.cnotice.ok { background: #1a2e22; color: #c9f0d5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.final { text-align: center; }
.final h2 { margin: 12px auto 0; }
.final .lede { margin: 18px auto 0; }
.final .ctas { justify-content: center; }

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 34px; font-size: 14.5px; color: var(--mute); }
.site-foot a { color: #cfd3c8; }

@media (max-width: 980px) {
  .hero-grid, .offline, .contact { grid-template-columns: 1fr; }
  .shots { margin: 10px 8px 50px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feat.wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .proof ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; grid-template-columns: 1fr; }
  .proof ul { grid-template-columns: 1fr; }
  .cfields { grid-template-columns: 1fr; }
  .cfields .span2 { grid-column: auto; }
  .versus td:first-child { width: auto; }
  .versus th, .versus td { padding: 11px 12px; font-size: 14.5px; }
  .chalk { white-space: normal; }
}
