/* ============================================================
   ASOFT — páginas de detalle de producto (/core-financiero, …)
   Mismo sistema visual que index.html (verde profundo + dorado
   sobre crema). Las fuentes son las mismas que index.html lleva
   embebidas, servidas aquí como archivos para no repetir 1 MB por
   página.

   nginx cachea .css 30 días como "immutable": al cambiar este
   archivo, sube el ?v= en el <link> de cada página.
   ============================================================ */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jakarta-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jakarta-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --forest-900: #0C3322;
  --forest-800: #114430;
  --forest:     #16573D;
  --green:      #1E7A52;
  --green-500:  #2C9D69;
  --green-bright:#37B97D;
  --mint-200:   #CFE7D7;
  --mint-100:   #E3F1E8;
  --mint-50:    #EFF6F0;
  --gold-600:   #C98A1B;
  --gold:       #E3A52B;
  --gold-400:   #F1C45C;
  --gold-100:   #FBEBC4;
  --cream:      #FBF7EE;
  --cream-2:    #F5EEE0;
  --paper:      #FFFFFF;
  --ink:        #21261F;
  --ink-soft:   #5C6357;
  --ink-faint:  #8A9081;
  --line:       #E7DFCF;
  --line-soft:  #EFE8DA;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 34px;
  --shadow-sm: 0 2px 8px rgba(22,87,61,.06);
  --shadow-md: 0 14px 40px -18px rgba(18,68,48,.30);
  --shadow-lg: 0 40px 80px -30px rgba(12,51,34,.40);
  --maxw: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); background: var(--cream); color: var(--ink);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.08;
  letter-spacing: -0.02em; margin: 0; color: var(--forest-900); text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 12px 26px -12px rgba(22,87,61,.7); }
.btn-primary:hover { transform: translateY(-2px); background: var(--forest-800); }
.btn-gold { background: var(--gold); color: var(--forest-900); box-shadow: 0 12px 26px -12px rgba(227,165,43,.8); }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-400); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); transform: translateY(-2px); }
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 64px; width: auto; margin: -10px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(14px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo__wordmark { font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1; color: #2C5AA0; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.nav__links a:hover { color: var(--forest); }
.nav .btn { padding: 11px 18px; font-size: 14.5px; }

/* ---------- Bloques ---------- */
.block { padding: clamp(56px, 8vw, 96px) 0; }
.block--alt { background: var(--cream-2); border-block: 1px solid var(--line); }
.block h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 14px; }
.block__lead { margin-top: 16px; color: var(--ink-soft); font-size: 19px; max-width: 720px; }

/* 1. Encabezado */
.p-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); }
.p-hero__tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.p-hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 14px; }
.p-hero__lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink); margin-top: 20px; max-width: 760px; }
.p-hero__for { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }
.p-hero__for b { color: var(--forest); }
.p-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

/* 3. Funciones */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 24px 26px;
}
.feat__ic { width: 44px; height: 44px; border-radius: 13px; background: var(--mint-100); display: grid; place-items: center; margin-bottom: 16px; }
.feat__ic svg { width: 22px; height: 22px; color: var(--green); }
.feat h3 { font-size: 18.5px; }
.feat p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }

/* 4. Vista del sistema (maqueta) */
.demo { margin-top: 40px; max-width: 760px; }
.device { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.device__bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.device__bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.device__bar .dot:nth-child(1) { background: #E78F6B; }
.device__bar .dot:nth-child(2) { background: var(--gold-400); }
.device__bar .dot:nth-child(3) { background: var(--green-bright); }
.device__bar .url { margin-left: 10px; font-size: 12px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Etiqueta obligatoria en toda maqueta: los datos son de ejemplo. */
.demo-tag { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--gold-600); background: var(--gold-100); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.screen { background: linear-gradient(155deg, var(--forest), var(--forest-900)); padding: clamp(18px, 3vw, 28px); }
.screen__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.screen__head b { color: #fff; font-size: 15px; }
.screen__head span { color: rgba(255,255,255,.55); font-size: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.row:last-child { border-bottom: 0; }
.row .l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--gold-400); flex: none; }
.row .ico svg { width: 17px; height: 17px; }
.row .nm { color: #fff; font-weight: 600; font-size: 14px; }
.row .sub { color: rgba(255,255,255,.58); font-size: 12px; }
.row .amt { color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.st { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.st.ok { background: rgba(55,185,125,.22); color: #8FE9BE; }
.st.pend { background: rgba(241,196,92,.18); color: var(--gold-400); }
.st.late { background: rgba(231,143,107,.2); color: #F4B39A; }
.screen__total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.22); color: #fff; font-weight: 700; }

/* Maqueta de teléfono (TEPRESTO App) */
.phone { width: min(320px, 100%); margin-inline: auto; background: var(--forest-900); border-radius: 36px; padding: 12px; box-shadow: var(--shadow-lg); }
.phone__screen { background: linear-gradient(170deg, var(--forest), var(--forest-900)); border-radius: 26px; padding: 18px 16px 20px; }
.phone__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.phone__top b { color: #fff; font-size: 14px; }
.phone__top .demo-tag { margin-left: 0; }
.phone .offline { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--gold-400); font-weight: 700; margin-bottom: 4px; }
.phone .offline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); }

/* 5. Preguntas frecuentes */
.faq { margin-top: 32px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--forest-900); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* 6. Cierre */
.closing { padding: clamp(56px, 8vw, 96px) 0; }
.closing__card {
  background: linear-gradient(155deg, var(--forest), var(--forest-900)); border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 64px); text-align: center;
}
.closing__card h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.closing__card p { color: rgba(255,255,255,.75); margin-top: 14px; }
.closing__card .p-hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-900); color: rgba(255,255,255,.7); padding: 64px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer .logo__wordmark { color: #fff; }
.footer__about { margin-top: 18px; font-size: 14.5px; max-width: 280px; line-height: 1.6; }
.footer__col h5 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.footer__col a { display: block; font-size: 14.5px; padding: 6px 0; }
.footer__col a:hover { color: var(--gold-400); }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .device__bar { padding: 12px 14px; }
  .device__bar .url { margin-left: 4px; }
}
@media (max-width: 400px) {
  .logo__wordmark { font-size: 26px; }
  .nav .btn { padding: 10px 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Logo del producto junto al título (hoy solo TEPRESTO App, que tiene icono propio). */
.p-hero__title { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.p-hero__title h1 { margin-top: 0; }
.p-hero__icon { width: clamp(56px, 9vw, 72px); height: auto; flex: none; filter: drop-shadow(0 10px 18px rgba(30,90,180,.25)); }
