/* ============================================================
   Privatech — Editorial compliance design system
   Fraunces (display serif) · Archivo (body) · warm paper + ink
   ============================================================ */

:root {
  /* palette */
  --paper:      #F4F0E6;
  --paper-2:    #ECE6D7;
  --paper-3:    #E4DCC9;
  --ink:        #14213A;
  --ink-soft:   #53607B;
  --line:       rgba(20, 33, 58, .13);
  --line-soft:  rgba(20, 33, 58, .07);

  --blue:       #1E4FA3;
  --blue-deep:  #16386F;
  --blue-tint:  rgba(30, 79, 163, .08);
  --green:      #2E9E5B;
  --green-deep: #1F7A44;
  --amber:      #A9741A;
  --danger:     #A9382B;

  --night:      #0D1A31;
  --night-2:    #12233E;

  --shadow:     0 24px 60px -20px rgba(13, 26, 49, .28);
  --shadow-sm:  0 8px 26px -14px rgba(13, 26, 49, .30);

  --radius:     16px;
  --radius-sm:  10px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw:  1200px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film-grain overlay — atmosphere */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 9999; pointer-events: none;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
strong { font-weight: 600; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: var(--paper); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--night); color: rgba(244,240,230,.82); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #FBF8F0; }

.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: var(--ink-soft); max-width: 62ch; line-height: 1.55; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.measure { max-width: 720px; }

/* ---------- Kicker / section label ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: attr(data-num);
  font-variant-numeric: tabular-nums;
  color: var(--ink); opacity: .35; font-weight: 600;
}
.kicker--ink { color: var(--green); }
.kicker--ink::before { color: #FBF8F0; opacity: .4; }
.kicker--green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .96rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  text-decoration: none; letter-spacing: .01em; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--green); color: #fff; }
.btn--accent:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(20,33,58,.04); transform: translateY(-2px); }
.btn--onink { background: rgba(255,255,255,.10); color: #FBF8F0; border-color: rgba(255,255,255,.28); }
.btn--onink:hover { background: #FBF8F0; color: var(--night); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,240,230,.80);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--blue); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--blue); transition: right .3s var(--ease);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(60px, 8vw, 96px); overflow: hidden; }
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 30%, #000 40%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 1.4rem; }
.hero-note { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 9px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46,158,91,.18); }

/* framed illustration */
.hero-frame { position: relative; }
.hero-frame .plate {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.hero-frame .plate img { border-radius: var(--radius-sm); }
.hero-frame .tick { position: absolute; width: 13px; height: 13px; border: 2px solid var(--blue); }
.hero-frame .tick.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-frame .tick.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero-frame .tick.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero-frame .tick.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-frame .caption { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 16px; font-weight: 600; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); max-width: 210px;
}
.hero-badge .big { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: #FBF8F0; }
.hero-badge .sm { font-size: .78rem; color: rgba(244,240,230,.7); margin-top: 5px; }

/* load stagger */
.stagger > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .16s; }
.stagger > *:nth-child(3) { animation-delay: .27s; }
.stagger > *:nth-child(4) { animation-delay: .38s; }
.stagger > *:nth-child(5) { animation-delay: .49s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Funding strip ---------- */
.funding { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.funding img { height: 66px; width: auto; filter: saturate(1.02); }
.funding .divider { width: 1px; align-self: stretch; background: var(--line); }
.funding p { margin: 0; color: var(--ink-soft); font-size: .96rem; max-width: 52ch; }
.funding p strong { color: var(--ink); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative;
}
.section--paper2 .card { background: var(--paper); }
.card--link { color: inherit; display: block; }
.card--link:hover { color: inherit; }
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(30,79,163,.3); }
.card h3 { margin-top: .3rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px;
}
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--blue); }
.card--hover:hover .more { gap: 10px; }

/* stat cards */
.stat { border-top: 3px solid var(--amber); }
.stat h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--ink); font-family: var(--serif); font-weight: 400; margin-bottom: .3rem; letter-spacing: -0.02em; }
.stat h3 .u { color: var(--amber); }
.stat p { color: var(--ink-soft); font-size: .98rem; }

/* steps */
.steps { counter-reset: step; }
.step .num {
  font-family: var(--serif); font-size: 2.4rem; color: var(--blue); font-weight: 400;
  line-height: 1; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px;
}
.step .num::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 15px; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46,158,91,.14); color: var(--green-deep); border-radius: 50%;
  font-size: .8rem; font-weight: 800;
}

/* segments */
.segment { border-top: 4px solid var(--blue); }
.segment.alt { border-top-color: var(--green); }
.segment h3 { display: flex; align-items: center; gap: 10px; }

/* pricing */
.price-card { text-align: left; display: flex; flex-direction: column; }
.price-card .price { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; color: var(--ink); margin: 6px 0 10px; letter-spacing: -0.02em; }
.price-card p { flex: 1; }
.price-card .btn { margin-top: 22px; align-self: flex-start; }
.price-card.featured { border: 1.5px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Recomendado"; position: absolute; top: 20px; right: 20px;
  background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line); padding: 6px 4px;
  transition: background .2s;
}
.faq details[open] { background: linear-gradient(var(--paper-2), transparent); }
.faq summary {
  font-family: var(--serif); font-weight: 500; font-size: 1.22rem; color: var(--ink);
  cursor: pointer; padding: 22px 44px 22px 4px; list-style: none; position: relative;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px;
  margin-top: -6px;
  background:
    linear-gradient(var(--blue),var(--blue)) center/13px 1.5px no-repeat,
    linear-gradient(var(--blue),var(--blue)) center/1.5px 13px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { color: var(--ink-soft); padding: 0 44px 22px 4px; margin: 0; }

/* resources list */
.res-list { list-style: none; padding: 0; margin: 0; }
.res-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--line); padding: 22px 6px;
  transition: padding-left .3s var(--ease), color .3s;
}
.res-list li:hover { padding-left: 16px; }
.res-list .txt { font-family: var(--serif); font-size: 1.14rem; color: var(--ink); }
.res-list .soon { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px; white-space: nowrap; }

/* CTA band */
.cta-band {
  background: var(--night); color: rgba(244,240,230,.8);
  border-radius: 24px; padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 75%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #FBF8F0; }
.cta-band p { color: rgba(244,240,230,.72); max-width: 56ch; margin: 0 auto 2rem; font-size: 1.1rem; }

/* prose (legal / module) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 2.4rem; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: .8rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.prose ul li strong { color: var(--ink); }
.prose .muted { color: var(--ink-soft); font-size: .92rem; }
.ref-note { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-soft); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.ref-note::before { content: "§"; color: var(--blue); font-weight: 700; }

/* module hero */
.mod-hero .kicker { color: var(--green); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(244,240,230,.62); padding: 72px 0 32px; }
.site-footer a { color: rgba(244,240,230,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: rgba(244,240,230,.5); font-family: var(--sans); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.1rem; }
.footer-brand { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: #FBF8F0; margin-bottom: .8rem; letter-spacing: -0.02em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6rem; font-size: .93rem; }
.footer-grid p { font-size: .92rem; color: rgba(244,240,230,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); margin-top: 52px; padding-top: 26px; font-size: .84rem; color: rgba(244,240,230,.45); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-frame { max-width: 440px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px 28px; gap: 18px; box-shadow: var(--shadow-sm); }
  .nav-links.open a::after { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-badge { position: static; margin: 20px auto 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
