/* Mycall · web pública (portada y tienda). Identidad de la app: grafito y ámbar, con el verde y el rojo
   del semáforo de antena usados solo con su significado (verde = en programa, rojo = en el aire / caída). */
@font-face { font-family: 'Archivo'; src: url('fonts/archivo.woff') format('woff'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('fonts/atkinson.woff') format('woff'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Atkinson'; src: url('fonts/atkinson-italic.woff') format('woff'); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --graphite: #191e22;
  --console: #22292e;
  --rack: #303940;
  --rack-hi: #46515a;
  --amber: #f0a630;
  --amber-deep: #b97a14;
  --tally: #e5484d;
  --pgm: #5dbb63;
  --paper: #eceff1;
  --mute: #9aa4ad;
  --dim: #6c7680;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--graphite); color: var(--paper); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: #ffc35c; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografía ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 8.2vw, 112px); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 750; font-stretch: 108%; }
h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 700; font-stretch: 100%; line-height: 1.15; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #cfd5da; max-width: 36em; }
.small { font-size: 14px; color: var(--mute); }

/* ---------- cabecera ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(25, 30, 34, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid #262e34; }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 21px; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.logo b { color: var(--amber); font-weight: 800; }
.site-head nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-head nav a { color: #c5ccd2; text-decoration: none; font-size: 15px; }
.site-head nav a:hover { color: var(--paper); }
@media (max-width: 760px) { .site-head nav a.opt { display: none; } }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 10px; border: 1px solid var(--rack-hi); background: var(--console); color: var(--paper); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { border-color: #64707b; color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #241700; }
.btn.primary:hover { background: #ffb845; border-color: #ffb845; color: #241700; }
.btn.small { padding: 10px 15px; font-size: 14.5px; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- pie ---------- */
.site-foot { border-top: 1px solid #262e34; margin-top: 40px; padding: 34px 0 44px; color: var(--mute); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-foot a { color: var(--mute); }
.site-foot img { height: 38px; border-radius: 6px; }

/* ---------- formularios ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #c5ccd2; }
input, select, textarea { font: 400 16px/1.4 var(--body); color: var(--paper); background: #14181b; border: 1px solid var(--rack-hi); border-radius: 9px; padding: 11px 13px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f0a63066; border-color: var(--amber); }
textarea { min-height: 84px; resize: vertical; }

/* ---- Zona de descargas ---- */
.dl-page { padding-top: clamp(30px, 5vw, 56px); padding-bottom: 40px; }
.dl-page h1 { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(34px, 6vw, 56px); line-height: 1.02; }
.dl-login { max-width: 560px; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.dl-login .lede { color: var(--mute); margin: 0; }
.dl-login .field { font-size: 14px; color: var(--mute); }
.dl-login .row { display: flex; gap: 10px; }
.dl-login .row input { font: 600 19px/1.3 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.dl-login .row .btn { white-space: nowrap; }
.dl-msg { color: var(--tally); font-size: 15px; min-height: 1.3em; }
.dl-page .hint { color: var(--dim); font-size: 14px; }
.dl-who { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: var(--console); border: 1px solid var(--rack); border-radius: 11px; margin-top: 22px; }
.dl-who b { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 21px; display: block; }
.dl-who span { display: block; color: var(--mute); font-size: 14px; margin-top: 2px; }
.dl-group { margin-top: 28px; }
.dl-group h2 { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 24px; margin: 0 0 10px; }
.dl-list { list-style: none; padding: 0; margin: 0; background: var(--console); border: 1px solid var(--rack); border-radius: 11px; }
.dl-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 18px; border-top: 1px solid #2b333a; }
.dl-list li:first-child { border-top: 0; }
.dl-list b { font-size: 17px; }
.dl-list .meta { color: var(--mute); font-size: 13.5px; }
.dl-list .meta b { color: var(--paper); font-weight: 600; }
.dl-list .d { color: #c3ccd4; font-size: 15px; margin-top: 4px; white-space: pre-wrap; }
.dl-list .sha { font: 11.5px ui-monospace, Consolas, monospace; color: var(--dim); overflow-wrap: anywhere; margin-top: 3px; }
.dl-empty { padding: 22px; color: var(--mute); }

/* ---------- prueba gratuita (los días salen del panel → Demos) ---------- */
.demo-strip { display: block; text-align: center; padding: 11px var(--gutter); background: linear-gradient(90deg, #2c6e33, #3d8f45 50%, #2c6e33); color: #fff; text-decoration: none; font-size: 15.5px; letter-spacing: .01em; border-bottom: 1px solid #4fa957; }
.demo-strip b { font-family: var(--display); font-stretch: 108%; font-size: 17px; margin-right: 6px; }
.demo-strip:hover { color: #fff; filter: brightness(1.08); }
.demo-strip .go { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #ffffff26; font-weight: 600; }
.btn.demo { background: var(--pgm); border-color: var(--pgm); color: #0e2410; position: relative; }
.btn.demo:hover { background: #74cf79; border-color: #74cf79; color: #0e2410; }
.btn.demo::after { content: ''; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--pgm); opacity: 0; animation: demo-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes demo-pulse { 0% { opacity: .7; transform: scale(.98); } 70%, 100% { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .btn.demo::after { animation: none; } }
.demo-band { margin: 0 auto; border-radius: 22px; padding: clamp(24px, 4vw, 44px); background: radial-gradient(120% 140% at 0% 0%, #2f5f33 0%, #22352a 45%, #1d2327 100%); border: 1px solid #3f6d43; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; }
.demo-band h2 { font-size: clamp(30px, 4.2vw, 52px); }
.demo-band h2 em { font-style: normal; color: #8fe094; }
.demo-band p { color: #d4e6d5; margin-top: 12px; max-width: 40em; }
.demo-band ul { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 0 0; list-style: none; color: #cfe3d0; font-size: 15px; }
.demo-band li::before { content: '✓'; color: #8fe094; margin-right: 7px; font-weight: 700; }
.demo-band .btn { font-size: 18px; padding: 18px 26px; }
@media (max-width: 760px) { .demo-band { grid-template-columns: 1fr; } }
.legal-links a { color: inherit; }

/* ---------- soporte y mejora continua ---------- */
.care { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.care-ways { background: var(--console); border: 1px solid var(--rack); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.care-ways ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.care-ways li { color: #cfd5da; padding-left: 26px; position: relative; }
.care-ways li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--pgm); box-shadow: 0 0 0 4px #5dbb6322; }
.care-ways li b { color: var(--paper); }
.care-cards { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .care { grid-template-columns: 1fr; } }

/* ---------- Contactar (0.31.1) ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-pitch h2 { margin-top: 0; }
.contact-why { padding-left: 20px; color: #c5ccd2; line-height: 1.7; }
.contact-form { background: var(--console); border: 1px solid var(--rack-hi); border-radius: 14px; padding: 24px; }
.cfields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.cfields .span2 { grid-column: span 2; }
.contact-form .field em { font-style: normal; color: var(--dim); margin-left: 6px; }
.contact-form .field input.bad { border-color: var(--tally); }
.contact-form .accept { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; color: #c9d0d5; font-size: 15px; }
.contact-form .accept input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cnotice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--rack-hi); margin: 0 0 16px; }
.cnotice.bad { border-color: #7a2c2f; background: #2a1c1e; color: #ffc9cb; }
.cnotice.ok { border-color: #2f6a33; background: #1b2a1d; color: #cdeccf; margin: 16px 0 0; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 560px) { .cfields { grid-template-columns: 1fr; } .cfields .span2 { grid-column: auto; } .contact-form { padding: 18px; } }

/* 0.31.3: que la cabecera fija no tape el formulario al llegar desde «Contactar» */
#contactar, #contact-form { scroll-margin-top: 84px; }
