/* ============================================================
   DRAGONIA SOFT — Sistema de diseño
   Estética corporativa editorial: papel, tinta, líneas finas.
   Sin gradientes genéricos, sin emojis, sin "aspecto IA".
   ============================================================ */

:root {
  --paper:      #f3f0e9;
  --paper-2:    #eae6db;
  --white:      #fffdf8;
  --ink:        #1b232e;
  --ink-2:      #2c3542;
  --muted:      #5d6675;
  --hairline:   #d8d2c3;
  --hairline-2: #c5bdaa;
  --accent:     #0f5f63;
  --accent-ink: #0a4144;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --radius: 3px;

  /* Colores de marca de cada producto */
  --brand-timver:     #013d68;
  --brand-scoreboard: #006ab0;
  --brand-fotoviva:   #ca9d53;
  --brand-nexo:       #006e9a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a[href^="http"] { text-decoration: none; }

::selection { background: var(--ink); color: var(--white); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografía ---------- */

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 20px; }
h3 { font-size: 22px; }

.lead { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }

p + p { margin-top: 16px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.btn-lg { padding: 16px 28px; font-size: 15px; }

/* Flecha de enlace externo */
.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-block; margin-left: 2px; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); background: rgba(243,240,233,.94); backdrop-filter: blur(6px); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand img { height: 34px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero { padding: 96px 0 72px; }
.hero .kicker { margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta strong { font-weight: 600; color: var(--ink-2); }

/* ---------- Secciones ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- Tarjetas de producto ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--card-accent, var(--hairline-2));
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -22px rgba(27,35,46,.45);
  border-color: var(--hairline-2);
}

.product-logo { height: 34px; width: auto; object-fit: contain; object-position: left center; }

.product-card h3 { margin-bottom: 2px; }
.product-card p { font-size: 14.5px; color: var(--muted); flex: 1; }

.product-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--card-accent, var(--ink));
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
  align-self: flex-start;
}
.product-link:hover { border-bottom-color: currentColor; }

/* ---------- Manifiesto / editorial ---------- */

.manifesto-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
}
.manifesto h3 { margin: 30px 0 10px; font-size: 20px; }
.manifesto p { color: var(--ink-2); }

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 26px;
  margin: 40px 0;
}

.principles { list-style: none; margin-top: 34px; }
.principles li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-2);
}
.principles li:last-child { border-bottom: 1px solid var(--hairline); }
.principles .p-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- Banda CTA ---------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 84px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c6ccd6; max-width: 56ch; margin: 0 auto 34px; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-band .btn-primary:hover { background: #e9e6de; }
.cta-band .btn-secondary {
  background: transparent; color: var(--white); border-color: #4b5563;
}
.cta-band .btn-secondary:hover { border-color: var(--white); }

/* ---------- Precios (Nexo) ---------- */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  padding: 6px 8px;
  margin-bottom: 44px;
  background: var(--white);
}
.billing-toggle button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.billing-toggle button.active { background: var(--ink); color: var(--white); }
.billing-toggle .save-badge { font-size: 11px; font-weight: 700; color: var(--accent); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 44px -26px rgba(15,95,99,.5);
}
.price-card .pc-flag {
  position: absolute;
  top: -1px; left: 30px; right: 30px;
  height: 2px;
  background: var(--accent);
}
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .pc-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }

.pc-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.pc-price .amount {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
}
.pc-price .per { font-size: 13px; color: var(--muted); }
.pc-annual-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.pc-annual-hint strong { color: var(--accent); font-weight: 700; }

.pc-feats { list-style: none; margin: 20px 0 28px; flex: 1; }
.pc-feats li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
}
.pc-feats li:last-child { border-bottom: 1px solid var(--hairline); }
.pc-feats .feat-tick { color: var(--accent); font-weight: 700; }

.price-card .btn { justify-content: center; }

.topup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 26px;
}
.topup-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.topup-chip:hover { border-color: var(--ink); }
.topup-chip .tq { font-weight: 600; }
.topup-chip .tp { color: var(--accent); font-weight: 700; }

/* ---------- Características / 3 columnas ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature { padding: 30px 28px; border: 1px solid var(--hairline); background: var(--white); border-radius: var(--radius); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }
.feature .f-icon { font-family: var(--serif); font-size: 26px; color: var(--accent); margin-bottom: 14px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 22px 4px;
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 20px;
  color: var(--muted);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; font-size: 15px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #c6ccd6;
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid #34404e;
}
.footer-brand .brand img { height: 34px; filter: invert(1) brightness(10) saturate(0); margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 34ch; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8b94a3;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: #d5dae2;
  text-decoration: none;
  padding: 5px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--white); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 12.5px;
  color: #7d8694;
}
.footer-legal a { color: #a7afbc; text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Utilidades ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.is-hidden { display: none !important; }

.text-center { text-align: center; }
.section-narrow { max-width: 720px; margin: 0 auto; text-align: center; }

/* Página legal / genérica */
.page-hero { padding: 88px 0 40px; }
.page-body { padding-bottom: 88px; }
.page-body .container { max-width: 760px; }
.page-body h2 { font-size: 24px; margin: 40px 0 12px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { font-size: 15px; color: var(--ink-2); }
.page-body ul { margin: 12px 0 0 20px; }
.page-body li { margin: 6px 0; }
.page-body .kicker { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    padding: 18px 24px 26px;
    display: none;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding: 64px 0; }
}
