/* ═══════════════════════════════════════════════════════
   PRIVIUM CHILE — CSS v3 (Dark Theme)
   ═══════════════════════════════════════════════════════ */

:root {
  --navy:        #1a2744;
  --navy-2:      #243356;
  --navy-3:      #2d3f6a;
  --blue:        #1D4ED8;
  --blue-2:      #2563EB;
  --blue-3:      #3B82F6;
  --teal:        #0EA5E9;
  --teal-dark:   #0284C7;
  --logo-cream:  #ffe5ce;
  --warn:        #EF4444;
  --success:     #10B981;

  --bg:          var(--navy);
  --bg-alt:      var(--navy-2);
  --border:      rgba(255,255,255,.08);

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.2);

  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --header-h:    72px;
  --container:   1120px;
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.82); background: #0d1525; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: var(--radius-sm); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem,5vw,1.5rem); }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11,17,32,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 24px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-svg { height: 32px; width: auto; }
.logo-img { height: 36px; width: auto; display: block; }

.main-nav ul { display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }
.nav-link { padding: .45rem .75rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.7); transition: color var(--transition), background var(--transition); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; }
.nav-link.nav-cta { margin-left: .5rem; background: var(--blue-2); color: #fff; padding: .45rem .85rem; font-weight: 600; border-radius: var(--radius-sm); white-space: nowrap; }
.nav-link.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-social { display: flex; align-items: center; gap: .5rem; }
.nav-social a { color: rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.nav-social a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-social svg { width: 16px; height: 16px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; padding: 6px; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: rgba(255,255,255,.8); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; font-size: .9rem; font-weight: 600; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; cursor: pointer; border: none; font-family: inherit; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-primary { background: var(--blue-2); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--blue); box-shadow: 0 8px 20px rgba(37,99,235,.35); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: transparent; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline { background: transparent; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.2); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: rgba(14,165,233,.06); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da853; transform: translateY(-1px); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ── SECTIONS ────────────────────────────────────────── */
/* Dark sections: default. Light sections override below. */
.section { padding-block: clamp(4rem,8vw,7rem); background: #0d1525; }
.section--white { background: #ffffff; }
.section--light { background: #f5f1eb; }
.section--navy { background: #1a2744; }
.section--dark { background: #060c17; }
.section--alt { background: #1a2744; }

/* Dark section text — gold h2, teal subtitle, gold eyebrow */
.section-header h2 { color: var(--logo-cream); }
.section-header p { color: var(--teal); }
.section-eyebrow { color: var(--logo-cream); background: rgba(255,229,206,.1); border: 1px solid rgba(255,229,206,.2); }

.section-header { text-align: center; margin-bottom: clamp(2.5rem,5vw,4rem); }
.section-header h2 { font-size: clamp(1.75rem,4vw,2.75rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.section-header p { font-size: 1.1rem; max-width: 600px; margin-inline: auto; }

/* Buttons on dark backgrounds */
.btn-outline { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.2); }
.btn-outline:hover { border-color: var(--logo-cream); color: var(--logo-cream); background: rgba(255,229,206,.06); }
.btn-ghost { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ── HERO ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(5rem,10vw,8rem); background: linear-gradient(160deg, var(--navy) 0%, #0d1b36 60%, #0a1628 100%); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(37,99,235,.15) 0%, transparent 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; background: rgba(14,165,233,.12); color: var(--teal); border: 1px solid rgba(14,165,233,.2); border-radius: 100px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-badge svg { width: .85rem; height: .85rem; }
.hero-content h1 { font-size: clamp(2rem,4.5vw,3.4rem); color: #fff; font-weight: 800; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.hero-content h1 em { font-style: normal; color: var(--teal); display: block; margin-top: .2rem; }
.hero-subtitle { font-size: clamp(.95rem,2vw,1.1rem); color: rgba(255,255,255,.72); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats { display: flex; flex-direction: column; gap: 1rem; min-width: 175px; }
.stat-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.25rem 1.4rem; text-align: center; }
.stat-card--accent { background: rgba(37,99,235,.2); border-color: rgba(37,99,235,.4); }
.stat-number { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: #fff; }
.stat-card--accent .stat-number { color: var(--blue-3); }
.stat-label { display: block; font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.5); margin-top: .3rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── COUNTDOWN EN HERO STAT ──────────────────────────── */
.stat-card--countdown { padding: 1rem 1.1rem; text-align: left; background: linear-gradient(150deg, rgba(14,165,233,.14) 0%, rgba(37,99,235,.08) 100%); border-color: rgba(14,165,233,.32); }
.cd-head { display: flex; align-items: center; gap: .4rem; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: .7rem; }
.cd-head svg { width: .9rem; height: .9rem; flex-shrink: 0; }
.cd-boxes { display: flex; gap: .4rem; }
.cd-box { flex: 1; display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: .55rem .25rem; }
.cd-box b { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box i { font-style: normal; font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); margin-top: .3rem; }
.cd-foot { display: block; font-size: .66rem; font-weight: 600; color: rgba(255,255,255,.45); margin-top: .65rem; text-align: center; letter-spacing: .02em; }

/* ── PAGE HERO ───────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding-block: 3.5rem 3rem; }
.page-hero h1 { font-size: clamp(1.75rem,4vw,2.75rem); margin-bottom: .5rem; font-weight: 800; letter-spacing: -.02em; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }

/* ── PROBLEM GRID ────────────────────────────────────── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.problem-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid rgba(220,38,38,.4); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
.problem-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.4); transform: translateY(-3px); border-left-color: rgba(220,38,38,.7); }
.problem-card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .875rem; }
.problem-icon { width: 40px; height: 40px; background: rgba(220,38,38,.12); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #f87171; }
.problem-icon svg { width: 20px; height: 20px; }
.problem-card h3 { font-size: .95rem; color: #fff; font-weight: 700; line-height: 1.3; margin: 0; }
.problem-card p { font-size: .87rem; color: rgba(255,255,255,.5); margin-bottom: .875rem; line-height: 1.6; }
.problem-risk { font-size: .75rem; font-weight: 600; color: #f87171; background: rgba(220,38,38,.1); padding: 4px 10px; border-radius: 100px; display: inline-block; }

/* ── LAW TABS ────────────────────────────────────────── */
.law-tabs { display: grid; grid-template-columns: 220px 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.law-tab-list { display: flex; flex-direction: column; background: rgba(255,255,255,.03); border-right: 1px solid rgba(255,255,255,.08); }
.law-tab-btn { display: flex; align-items: center; gap: .65rem; padding: .9rem 1.25rem; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.45); text-align: left; cursor: pointer; transition: background var(--transition), color var(--transition); border-left: 3px solid transparent; }
.law-tab-btn:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
.law-tab-btn.active { background: rgba(37,99,235,.12); color: #fff; border-left-color: var(--blue-3); }
.law-tab-icon { width: 18px; height: 18px; flex-shrink: 0; }
.law-tab-icon svg { width: 100%; height: 100%; }
.law-tab-panels { background: rgba(255,255,255,.02); padding: 2.25rem 2rem; min-height: 280px; }
.law-tab-panel { animation: tabFadeIn .25s ease; }
.law-tab-panel[hidden] { display: none; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.law-panel-number { font-size: 3rem; font-weight: 800; color: var(--blue-3); opacity: .15; line-height: 1; margin-bottom: .5rem; }
.law-tab-panel h3 { font-size: 1.25rem; color: #fff; margin-bottom: .75rem; font-weight: 700; }
.law-tab-panel > p { font-size: .93rem; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 1.25rem; }
.law-panel-list { display: flex; flex-direction: column; gap: .5rem; }
.law-panel-list li { font-size: .87rem; color: rgba(255,255,255,.5); padding-left: 1.25rem; position: relative; }
.law-panel-list li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── QUIZ (home inline) ──────────────────────────────── */
.quiz-wrapper { max-width: 760px; margin-inline: auto; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 2.5rem; }
.quiz-progress { height: 5px; background: rgba(255,255,255,.1); border-radius: 100px; overflow: hidden; margin-bottom: .75rem; }
.quiz-progress-bar { height: 100%; background: var(--blue-2); border-radius: 100px; transition: width .45s cubic-bezier(.4,0,.2,1); }
.quiz-step-label { font-size: .78rem; color: rgba(255,255,255,.45); text-align: right; margin-bottom: 2rem; letter-spacing: .04em; text-transform: uppercase; }
.quiz-screen--start { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 0 .5rem; }
.quiz-start-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(37,99,235,.18); border: 1px solid rgba(37,99,235,.35); display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 1.5rem; }
.quiz-screen--start h3 { font-size: 1.5rem; color: #fff; margin-bottom: .75rem; font-weight: 700; }
.quiz-screen--start p { color: rgba(255,255,255,.7); max-width: 480px; line-height: 1.65; margin-bottom: 2rem; }
.quiz-question { transition: opacity .28s ease; }
.quiz-question[hidden] { display: none; }
.quiz-q-number { font-size: .78rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.quiz-q-text { font-size: 1.2rem; color: #fff; font-weight: 600; line-height: 1.5; margin-bottom: 1.75rem; }
.quiz-options { display: flex; flex-direction: column; gap: .75rem; }
.quiz-option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 500; cursor: pointer; text-align: left; transition: background var(--transition), border-color var(--transition), transform .15s; font-family: inherit; }
.quiz-option:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); transform: translateX(4px); }
.quiz-option--selected { background: rgba(37,99,235,.2); border-color: var(--blue-2); color: #fff; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.quiz-btn-back { font-size: .88rem; padding: .6rem 1.25rem; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; background: none; }
.quiz-btn-back:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.quiz-btn-next:disabled { opacity: .4; cursor: not-allowed; }
.quiz-screen--result { display: flex; flex-direction: column; align-items: center; text-align: center; }
.quiz-screen--result[hidden], .quiz-screen--questions[hidden], .quiz-screen--start[hidden] { display: none; }
.quiz-gauge-wrap { position: relative; width: 220px; height: 120px; margin-bottom: 1rem; }
.quiz-gauge { width: 100%; height: auto; overflow: visible; }
.quiz-gauge-fill { transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1) .2s; }
.quiz-gauge-center { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.quiz-gauge-icon { font-size: 2rem; line-height: 1; }
.quiz-gauge-label { font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.quiz-result-score { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: .75rem; }
.quiz-result-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.quiz-result-desc { font-size: 1rem; color: rgba(255,255,255,.85); line-height: 1.65; max-width: 520px; margin-bottom: 1.5rem; }
.quiz-email-send { width: 100%; max-width: 480px; margin: 0 auto 1.75rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.quiz-email-label { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: .75rem; }
.quiz-email-form { display: flex; gap: .5rem; }
.quiz-email-input { flex: 1; padding: .6rem .9rem; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); font-size: .9rem; color: rgba(255,255,255,.88); font-family: inherit; min-width: 0; }
.quiz-email-input::placeholder { color: rgba(255,255,255,.3); }
.quiz-email-input:focus { outline: none; border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.quiz-email-btn { display: flex; align-items: center; gap: .4rem; white-space: nowrap; flex-shrink: 0; padding: .6rem 1.1rem; font-size: .88rem; }
.quiz-email-msg { font-size: .83rem; margin-top: .6rem; }
.quiz-result-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
#quiz-btn-restart { color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.2); background: none; cursor: pointer; font-family: inherit; }
#quiz-btn-restart:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.quiz-result--low .quiz-gauge-label { color: #22c55e; }
.quiz-result--mid .quiz-gauge-label { color: #f59e0b; }
.quiz-result--high .quiz-gauge-label { color: #ef4444; }

/* ── METHODOLOGY ─────────────────────────────────────── */
/* ── METHODOLOGY CARDS ──────────────────────────────── */
.methodology-cards { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: center; }
.method-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 2rem 1.75rem; display: flex; flex-direction: column; align-items: flex-start; height: 100%; transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition); }
.method-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.4); border-color: rgba(14,165,233,.25); transform: translateY(-4px); }
.method-card-icon { width: 60px; height: 60px; background: linear-gradient(135deg, rgba(37,99,235,.2) 0%, rgba(14,165,233,.15) 100%); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 1.25rem; border: 1px solid rgba(14,165,233,.15); }
.method-card-num { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.method-card h3 { font-size: 1.15rem; color: #fff; font-weight: 700; margin-bottom: .65rem; }
.method-card > p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.method-card-list { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.5rem; }
.method-card-list li { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.method-card-list svg { flex-shrink: 0; color: var(--teal); }
.method-card-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 100px; padding: 4px 12px; margin-top: auto; }
.method-card-arrow { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.15); padding: 0 1rem; flex-shrink: 0; }
/* Legacy — kept for services page */
.methodology-steps { display: flex; flex-direction: column; align-items: center; max-width: 820px; margin-inline: auto; gap: 0; }
.method-step { display: flex; gap: 2rem; align-items: flex-start; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 2rem 2.25rem; width: 100%; }
.step-number { flex-shrink: 0; width: 52px; height: 52px; background: var(--blue-2); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; }
.step-content h3 { font-size: 1.2rem; color: #fff; margin-bottom: .6rem; font-weight: 700; }
.step-content p { color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.step-connector { color: var(--blue-2); opacity: .3; display: flex; justify-content: center; padding: .5rem 0; }

/* ── SERVICES ────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.5rem; }
.service-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-2), var(--teal)); opacity: 0; transition: opacity var(--transition); }
.service-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.5); transform: translateY(-4px); border-color: rgba(37,99,235,.3); }
.service-card:hover::before { opacity: 1; }
.service-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.service-icon { width: 44px; height: 44px; background: rgba(37,99,235,.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--blue-3); flex-shrink: 0; }
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1rem; color: #fff; font-weight: 700; line-height: 1.3; margin: 0; padding-top: .2rem; }
.service-desc { font-size: .875rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; flex-grow: 1; line-height: 1.6; }
.service-deliverables { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.service-deliverables li { font-size: .8rem; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.service-deliverables li:last-child { border-bottom: none; }
.service-deliverables li svg { color: var(--teal); flex-shrink: 0; }
.service-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.service-tag { font-size: .72rem; font-weight: 600; color: var(--teal); background: rgba(14,165,233,.1); padding: 3px 10px; border-radius: 100px; }
.service-link { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.5); transition: color var(--transition); }
.service-link:hover { color: var(--teal); }

/* ── FAQ / ACCORDION ─────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: .5rem; }
.accordion-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.accordion-trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.2rem 1.5rem; font-size: .97rem; font-weight: 600; color: rgba(255,255,255,.88); text-align: left; transition: background var(--transition); cursor: pointer; }
.accordion-trigger:hover { background: rgba(255,255,255,.06); }
.accordion-trigger[aria-expanded="true"] { background: rgba(37,99,235,.1); }
.accordion-icon { flex-shrink: 0; width: 18px; height: 18px; transition: transform var(--transition); color: var(--teal); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-content { padding: 0 1.5rem 1.2rem; font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.accordion-content[hidden] { display: none; }

/* ── CONTACT FORM ────────────────────────────────────── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-intro h2 { font-size: clamp(1.75rem,3.5vw,2.4rem); color: #fff; margin-bottom: 1rem; font-weight: 800; letter-spacing: -.02em; }
.contact-intro p { color: rgba(255,255,255,.7); margin-bottom: 1.75rem; font-size: 1.05rem; }
.contact-benefits { display: flex; flex-direction: column; gap: .75rem; }
.contact-benefits li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; color: rgba(255,255,255,.88); }
.contact-benefits svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); }
.contact-form-wrap { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 2.5rem 2.25rem; }
.form-row { display: flex; flex-direction: column; gap: 1rem; }
.form-row--2 { flex-direction: row; }
.form-group { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.form-group label { font-size: .83rem; font-weight: 600; color: rgba(255,255,255,.75); }
.form-group label span { color: var(--warn); }
.form-group input, .form-group select, .form-group textarea { padding: .65rem .9rem; border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); font-size: .92rem; color: rgba(255,255,255,.88); background: rgba(255,255,255,.07); transition: border-color var(--transition), box-shadow var(--transition); width: 100%; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group select option { background: var(--navy-2); color: rgba(255,255,255,.88); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.form-group input.has-error, .form-group select.has-error, .form-group textarea.has-error { border-color: var(--warn); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239CA3AF'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1rem; padding-right: 2.5rem; }
.form-error { font-size: .78rem; color: var(--warn); font-weight: 500; min-height: 1rem; }
.form-footer { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.form-privacy { display: flex; align-items: flex-start; gap: .5rem; font-size: .78rem; color: rgba(255,255,255,.4); line-height: 1.5; }
.form-privacy svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.form-privacy a { color: var(--blue-3); text-decoration: underline; }
.btn-submit { width: 100%; justify-content: center; }
.spinner { width: 18px; height: 18px; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success[hidden] { display: none; }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.25rem; min-height: 320px; padding: 2.5rem 2rem; }
.form-success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(14,165,233,.12); border: 1px solid rgba(14,165,233,.25); display: flex; align-items: center; justify-content: center; animation: successPop .4s cubic-bezier(.175,.885,.32,1.275); }
@keyframes successPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success svg { width: 32px; height: 32px; color: var(--teal); }
.form-success strong { color: #fff; display: block; font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.form-success p { font-size: .93rem; color: rgba(255,255,255,.6); max-width: 320px; }

/* ── COMPARE ─────────────────────────────────────────── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare-col { border-radius: var(--radius-lg); padding: 2rem; border: 1px solid rgba(255,255,255,.08); }
.compare-col--before { background: rgba(255,255,255,.03); }
.compare-col--after { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.25); }
.compare-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.compare-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.compare-col--before .compare-icon { background: rgba(239,68,68,.15); color: #f87171; }
.compare-col--after .compare-icon { background: rgba(37,99,235,.2); color: var(--blue-3); }
.compare-header h3 { font-size: 1.05rem; color: #fff; font-weight: 700; }
.compare-list { display: flex; flex-direction: column; gap: .55rem; }
.compare-list li { font-size: .88rem; color: rgba(255,255,255,.5); padding-left: 1.4rem; position: relative; }
.compare-col--before .compare-list li::before { content: '✗'; position: absolute; left: 0; color: #f87171; font-weight: 700; }
.compare-col--after .compare-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── DIFFERENTIATORS ─────────────────────────────────── */
.differentiators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.5rem; }
.diff-item { text-align: center; padding: 2rem 1.5rem; background: rgba(255,255,255,.04); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); transition: box-shadow var(--transition), transform var(--transition); }
.diff-item:hover { box-shadow: 0 4px 24px rgba(0,0,0,.3); transform: translateY(-3px); }
.diff-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--navy-3) 0%, rgba(37,99,235,.25) 100%); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: var(--teal); }
.diff-icon svg { width: 24px; height: 24px; }
.diff-item h3 { font-size: 1rem; color: #fff; margin-bottom: .45rem; font-weight: 700; }
.diff-item p { font-size: .87rem; color: rgba(255,255,255,.5); }

/* ── PROSE ───────────────────────────────────────────── */
.prose h2 { font-size: 1.35rem; color: #fff; margin-block: 2rem .75rem; font-weight: 700; }
.prose p { margin-bottom: 1rem; color: rgba(255,255,255,.6); }
.prose ul { margin-bottom: 1rem; padding-left: 1.5rem; list-style: disc; }
.prose ul li { margin-bottom: .35rem; color: rgba(255,255,255,.6); }
.prose a { color: var(--blue-3); text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin-block: 1rem; font-size: .9rem; }
.prose th, .prose td { padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.1); text-align: left; }
.prose th { background: rgba(255,255,255,.05); font-weight: 600; color: rgba(255,255,255,.88); }

/* ── BLOG ────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.blog-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.3); transform: translateY(-3px); border-color: rgba(59,130,246,.3); }
.blog-tag { background: rgba(37,99,235,.15); color: var(--blue-3); border-radius: 100px; padding: .25rem .65rem; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.blog-card h2 { font-size: 1rem; color: rgba(255,255,255,.9); margin-block: .75rem .55rem; font-weight: 700; }
.blog-card p { font-size: .87rem; color: rgba(255,255,255,.5); flex-grow: 1; margin-bottom: 1rem; }
.blog-read-more { font-size: .85rem; font-weight: 600; color: var(--blue-3); }
.blog-read-more:hover { color: var(--teal); }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer { background: #060c17; color: rgba(255,255,255,.6); padding-block: 3.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: .87rem; margin-block: 1rem; line-height: 1.65; color: rgba(255,255,255,.5); }
.social-links { display: flex; gap: .6rem; margin-top: .75rem; }
.social-links a { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); transition: background var(--transition), color var(--transition); }
.social-links a:hover { background: var(--blue-2); color: #fff; }
.social-links svg { width: 15px; height: 15px; }
.footer-nav h3, .footer-contact h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: rgba(255,255,255,.35); margin-bottom: 1.1rem; }
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { font-size: .87rem; color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }
.footer-contact a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); font-size: .8rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: .5rem; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-bottom-links { display: flex; gap: 1.25rem; }

/* ── WHATSAPP FAB ────────────────────────────────────── */
.whatsapp-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 54px; height: 54px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform var(--transition), box-shadow var(--transition); }
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); color: #fff; }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ── COOKIE BANNER ───────────────────────────────────── */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 120; animation: cookieIn .4s cubic-bezier(.16,1,.3,1); }
.cookie-banner-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: space-between; background: rgba(6,12,23,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1rem 1.35rem; box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.cookie-banner-text { display: flex; align-items: flex-start; gap: .75rem; flex: 1 1 380px; }
.cookie-banner-text svg { width: 1.4rem; height: 1.4rem; color: var(--teal); flex-shrink: 0; margin-top: .1rem; }
.cookie-banner-text p { font-size: .85rem; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0; }
.cookie-banner-text strong { color: #fff; }
.cookie-banner-text a { color: var(--teal); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .6rem; flex-shrink: 0; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* ── LEAD POPUP ──────────────────────────────────────── */
.lead-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; backdrop-filter: blur(4px); animation: fadeInBg .25s ease; }
.lead-popup { position: fixed; z-index: 201; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(480px,calc(100vw - 2rem)); background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 2.25rem 2rem; box-shadow: 0 24px 64px rgba(0,0,0,.5); animation: popupIn .3s cubic-bezier(.175,.885,.32,1.275); }
@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupIn { from { opacity: 0; transform: translate(-50%,-46%); } to { opacity: 1; transform: translate(-50%,-50%); } }
.lead-overlay[hidden], .lead-popup[hidden] { display: none; }
.lead-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.07); color: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; transition: background var(--transition), color var(--transition); cursor: pointer; }
.lead-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.lead-close svg { width: 16px; height: 16px; }
.lead-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.3); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--teal); }
.lead-icon svg { width: 26px; height: 26px; }
.lead-popup h2 { font-size: 1.2rem; color: #fff; font-weight: 700; margin-bottom: .6rem; }
.lead-popup > p { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 1.5rem; }
.lead-form-group { margin-bottom: .85rem; }
.lead-form-group input { width: 100%; padding: .7rem 1rem; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); font-size: .93rem; color: rgba(255,255,255,.88); font-family: inherit; transition: border-color var(--transition), box-shadow var(--transition); }
.lead-form-group input::placeholder { color: rgba(255,255,255,.3); }
.lead-form-group input:focus { outline: none; border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.lead-error { display: block; font-size: .78rem; color: var(--warn); margin-top: .3rem; font-weight: 500; min-height: 1rem; }
.lead-btn { width: 100%; justify-content: center; margin-top: .25rem; }
.lead-success { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.25); margin-bottom: 1rem; }
.lead-success[hidden] { display: none; }
.lead-success svg { width: 28px; height: 28px; color: var(--teal); flex-shrink: 0; }
.lead-success strong { color: #fff; display: block; font-size: .97rem; }
.lead-success p { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }
.lead-privacy { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 1rem; }
.lead-privacy svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── ANIMATIONS ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

/* ── PÁGINAS INTERNAS ────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-grid p { color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.about-values { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.about-value { display: flex; align-items: center; gap: .75rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.about-value svg { color: var(--teal); flex-shrink: 0; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mission-card { border-radius: var(--radius-lg); padding: 2.25rem 2rem; border: 1px solid rgba(255,255,255,.08); }
.mission-card--blue { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.25); }
.mission-card--teal { background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.2); }
.mission-card h2 { font-size: 1.25rem; color: #fff; margin-bottom: .75rem; }
.mission-card p { color: rgba(255,255,255,.6); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.5rem; }
.team-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow: hidden; }
.team-info { padding: 1.25rem; }
.team-info h3 { font-size: 1rem; color: #fff; margin-bottom: 4px; }
.team-role { font-size: .78rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: .5rem; }
.team-info p { font-size: .85rem; color: rgba(255,255,255,.5); }

.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.filter-btn { padding: .5rem 1.1rem; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.15); background: transparent; color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: inherit; }
.filter-btn:hover, .filter-btn.active { background: var(--blue-2); color: #fff; border-color: var(--blue-2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.portfolio-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.portfolio-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.4); transform: translateY(-3px); }
.portfolio-card.hidden { display: none; }
.portfolio-content { padding: 1.5rem; }
.portfolio-content h3 { font-size: 1rem; color: #fff; margin-bottom: .4rem; }
.portfolio-content p { font-size: .87rem; color: rgba(255,255,255,.5); margin-bottom: .75rem; }
.portfolio-tag { display: inline-block; background: rgba(14,165,233,.12); color: var(--teal); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.portfolio-services { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag-chip { background: rgba(37,99,235,.12); color: var(--blue-3); font-size: .74rem; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat-big { display: block; font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: .5rem; }
.stat-desc { font-size: .9rem; color: rgba(255,255,255,.55); }

/* ── AUTODIAGNÓSTICO (página standalone) ─────────────── */
.diag-wrapper { max-width: 800px; margin-inline: auto; }
.diag-progress { margin-bottom: 2rem; }
.diag-progress-bar-wrap { height: 6px; background: rgba(255,255,255,.1); border-radius: 100px; overflow: hidden; margin-bottom: .5rem; }
#progressFill { height: 100%; background: var(--blue-2); border-radius: 100px; transition: width .3s ease; }
#progressText { font-size: .78rem; color: rgba(255,255,255,.4); text-align: right; text-transform: uppercase; letter-spacing: .05em; }
.diag-questions { display: flex; flex-direction: column; }
.diag-question { display: none; }
.diag-question.active { display: block; }
.diag-question h2 { font-size: 1.2rem; color: #fff; font-weight: 700; margin-bottom: 1.5rem; }
.diag-options { display: flex; flex-direction: column; gap: .75rem; }
.diag-opt { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); color: rgba(255,255,255,.85); font-size: .95rem; cursor: pointer; text-align: left; transition: background var(--transition), border-color var(--transition); font-family: inherit; width: 100%; }
.diag-opt:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.diag-opt.selected { background: rgba(37,99,235,.2); border-color: var(--blue-2); color: #fff; }
.diag-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
#diagResult[hidden] { display: none; }
.result-tag { display: inline-flex; align-items: center; padding: .35rem .9rem; border-radius: 100px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.25rem; }
.result-tag--low { background: rgba(34,197,94,.15); color: #22c55e; }
.result-tag--mid { background: rgba(245,158,11,.15); color: #f59e0b; }
.result-tag--high { background: rgba(239,68,68,.15); color: #ef4444; }
#resultTitle { font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
#resultDesc { color: rgba(255,255,255,.7); margin-bottom: 2rem; line-height: 1.7; }
#gaugeScore { font-size: .9rem; color: rgba(255,255,255,.5); display: block; text-align: center; margin-top: .5rem; }
.breakdown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: .75rem; margin-bottom: 2rem; }
.breakdown-item { display: flex; align-items: center; gap: .65rem; padding: .75rem 1rem; background: rgba(255,255,255,.04); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.breakdown-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; }
.breakdown-item.ok .breakdown-dot { background: #22c55e; }
.breakdown-item.mid .breakdown-dot { background: #f59e0b; }
.breakdown-item.bad .breakdown-dot { background: #ef4444; }
.breakdown-label { color: rgba(255,255,255,.7); flex-grow: 1; }
.breakdown-status { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.4); white-space: nowrap; }
.result-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ── SERVICES PAGE TABS ──────────────────────────────── */
.srv-tabs-bar { background: #080e1d; border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: var(--header-h); z-index: 50; transition: box-shadow .3s; }
.srv-tabs-bar.stuck { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.srv-tabs-inner { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .6rem; }
.srv-tabs-inner::-webkit-scrollbar { display: none; }
.srv-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.5); white-space: nowrap; cursor: pointer; transition: all var(--transition); border: 1.5px solid transparent; font-family: inherit; }
.srv-tab:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
.srv-tab.active { color: #fff; background: rgba(37,99,235,.15); border-color: rgba(37,99,235,.3); }
.srv-tab svg { width: 14px; height: 14px; flex-shrink: 0; }

.srv-panel[hidden] { display: none; }
.srv-panel.active { display: block; }

.srv-panel-hero { padding-block: clamp(3rem,6vw,5rem); }
.srv-panel-hero-inner { max-width: 720px; }
.srv-panel-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.srv-num { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,.08); line-height: 1; }
.srv-panel-hero h2 { font-size: clamp(1.75rem,4vw,2.6rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: .875rem; }
.srv-panel-hero p { font-size: 1.05rem; color: rgba(255,255,255,.6); max-width: 580px; }
.srv-panel-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.srv-stat { display: flex; flex-direction: column; gap: .2rem; }
.srv-stat-n { font-size: 1.4rem; font-weight: 800; color: var(--teal); line-height: 1; }
.srv-stat-l { font-size: .78rem; color: rgba(255,255,255,.4); font-weight: 500; }

.srv-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.srv-detail-main h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.srv-detail-main p { color: rgba(255,255,255,.6); margin-bottom: 1rem; line-height: 1.7; }
.srv-deliverables { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.08); }
.srv-deliverables h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); font-weight: 700; margin-bottom: 1rem; }
.srv-deliverables ul { display: flex; flex-direction: column; gap: .65rem; }
.srv-deliverables li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: rgba(255,255,255,.75); }
.srv-deliverables li svg { color: var(--teal); flex-shrink: 0; }

.srv-info-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.srv-info-card--warn { border-color: rgba(220,38,38,.25); background: rgba(220,38,38,.05); }
.srv-info-row { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .87rem; }
.srv-info-row:last-child { border-bottom: none; }
.srv-info-row span { color: rgba(255,255,255,.45); }
.srv-info-row strong { color: #fff; }

/* ── LEGAL DOCUMENT ──────────────────────────────────── */
.legal-content h2 { font-size: 1.1rem; font-weight: 700; color: var(--logo-cream); margin-top: 2.5rem; margin-bottom: .75rem; padding-left: .875rem; border-left: 3px solid var(--logo-cream); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: rgba(255,255,255,.72); line-height: 1.85; margin-bottom: 1rem; font-size: .97rem; }
.legal-content ul { padding-left: 1.25rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.legal-content ul li { color: rgba(255,255,255,.72); line-height: 1.7; font-size: .95rem; list-style: disc; }
.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-content strong { color: #fff; }
.legal-table { width: 100%; border-collapse: collapse; margin-block: 1rem 1.5rem; font-size: .88rem; }
.legal-table th { background: rgba(255,229,206,.12); color: var(--logo-cream); font-weight: 700; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.1); text-align: left; }
.legal-table td { padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.65); vertical-align: top; line-height: 1.6; }
.legal-table tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.container--narrow { max-width: 780px; }

/* ═══════════════════════════════════════════════════════
   LIGHT SECTIONS (section--light, section--white)
   Dark text, blue subtitle, dark navy h2 titles.
   Placed last to beat bare component rules.
   ═══════════════════════════════════════════════════════ */
.section--light, .section--white { color: #1e293b; }

/* Section headers on light */
.section--light .section-header h2,
.section--white .section-header h2 { color: #0f1e38; }
.section--light .section-header p,
.section--white .section-header p { color: var(--blue-2); }
.section--light .section-eyebrow,
.section--white .section-eyebrow { color: #0284c7; background: rgba(2,132,199,.1); border-color: rgba(2,132,199,.2); }

/* Problem cards */
.section--light .problem-card,
.section--white .problem-card { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.section--light .problem-card h3,
.section--white .problem-card h3 { color: #0f1e38; }
.section--light .problem-card p,
.section--white .problem-card p { color: #4b5563; }

/* Service cards */
.section--light .service-card,
.section--white .service-card { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.section--light .service-card h3,
.section--white .service-card h3 { color: #0f1e38; }
.section--light .service-desc,
.section--white .service-desc { color: #4b5563; }
.section--light .service-deliverables li,
.section--white .service-deliverables li { color: #374151; border-bottom-color: rgba(0,0,0,.06); }
.section--light .service-link,
.section--white .service-link { color: #374151; }
.section--light .service-tag,
.section--white .service-tag { color: #0284c7; background: rgba(2,132,199,.1); }

/* Method cards */
.section--light .method-card,
.section--white .method-card { background: #fff; border-color: rgba(0,0,0,.1); }
.section--light .method-card h3,
.section--white .method-card h3 { color: #0f1e38; }
.section--light .method-card > p,
.section--white .method-card > p { color: #4b5563; }
.section--light .method-card-list li,
.section--white .method-card-list li { color: #374151; }
.section--light .method-card-tag,
.section--white .method-card-tag { background: rgba(2,132,199,.1); color: #0284c7; border-color: rgba(2,132,199,.15); }
.section--light .method-card-arrow,
.section--white .method-card-arrow { color: rgba(0,0,0,.2); }

/* Accordion */
.section--light .accordion-item,
.section--white .accordion-item { background: #fff; border-color: rgba(0,0,0,.1); }
.section--light .accordion-trigger,
.section--white .accordion-trigger { color: #0f1e38; }
.section--light .accordion-trigger:hover,
.section--white .accordion-trigger:hover { background: rgba(0,0,0,.03); }
.section--light .accordion-trigger[aria-expanded="true"],
.section--white .accordion-trigger[aria-expanded="true"] { background: rgba(37,99,235,.06); color: #0f1e38; }
.section--light .accordion-content,
.section--white .accordion-content { color: #4b5563; }

/* Quiz */
.section--light .quiz-wrapper,
.section--white .quiz-wrapper { background: #fff; border-color: rgba(0,0,0,.1); box-shadow: 0 4px 32px rgba(0,0,0,.07); }
.section--light .quiz-screen--start h3,
.section--white .quiz-screen--start h3 { color: #0f1e38; }
.section--light .quiz-screen--start p,
.section--white .quiz-screen--start p { color: #4b5563; }
.section--light .quiz-progress,
.section--white .quiz-progress { background: rgba(0,0,0,.08); }
.section--light .quiz-step-label,
.section--white .quiz-step-label { color: #6b7280; }
.section--light .quiz-q-number,
.section--white .quiz-q-number { color: #6b7280; }
.section--light .quiz-q-text,
.section--white .quiz-q-text { color: #0f1e38; }
.section--light .quiz-option,
.section--white .quiz-option { background: #f5f3ef; border-color: rgba(0,0,0,.12); color: #1e293b; }
.section--light .quiz-option:hover,
.section--white .quiz-option:hover { background: #eae7e2; border-color: rgba(0,0,0,.2); }
.section--light .quiz-option--selected,
.section--white .quiz-option--selected { background: rgba(37,99,235,.08); border-color: var(--blue-2); color: #1e293b; }
.section--light .quiz-nav,
.section--white .quiz-nav { border-top-color: rgba(0,0,0,.08); }
.section--light .quiz-btn-back,
.section--white .quiz-btn-back { color: #0f1e38; border-color: rgba(0,0,0,.2); }
.section--light .quiz-result-score,
.section--white .quiz-result-score { color: #4b5563; }
.section--light .quiz-result-title,
.section--white .quiz-result-title { color: #0f1e38; }
.section--light .quiz-result-desc,
.section--white .quiz-result-desc { color: #374151; }
.section--light .quiz-email-send,
.section--white .quiz-email-send { background: #f5f3ef; border-color: rgba(0,0,0,.1); }
.section--light .quiz-email-label,
.section--white .quiz-email-label { color: #4b5563; }
.section--light .quiz-email-input,
.section--white .quiz-email-input { background: #f9f8f6; border-color: rgba(0,0,0,.12); color: #0f1e38; }
.section--light .quiz-email-input::placeholder,
.section--white .quiz-email-input::placeholder { color: #9ca3af; }
.section--light #quiz-btn-restart,
.section--white #quiz-btn-restart { color: #0f1e38; border-color: rgba(0,0,0,.2); }
.section--light .quiz-gauge-label,
.section--white .quiz-gauge-label { color: #374151; }

/* Differentiators */
.section--light .diff-item,
.section--white .diff-item { background: #f9f8f6; border-color: rgba(0,0,0,.08); }
.section--light .diff-item h3,
.section--white .diff-item h3 { color: #0f1e38; }
.section--light .diff-item p,
.section--white .diff-item p { color: #4b5563; }

/* Contact form */
.section--light .contact-intro h2,
.section--white .contact-intro h2 { color: #0f1e38; }
.section--light .contact-intro p,
.section--white .contact-intro p { color: #4b5563; }
.section--light .contact-benefits li,
.section--white .contact-benefits li { color: #1e293b; }
.section--light .contact-form-wrap,
.section--white .contact-form-wrap { background: #fff; border-color: rgba(0,0,0,.1); }
.section--light .form-group label,
.section--white .form-group label { color: #374151; }
.section--light .form-group input,
.section--light .form-group select,
.section--light .form-group textarea,
.section--white .form-group input,
.section--white .form-group select,
.section--white .form-group textarea { background: #f9f8f6; border-color: rgba(0,0,0,.15); color: #0f1e38; }
.section--light .form-group input::placeholder,
.section--light .form-group textarea::placeholder,
.section--white .form-group input::placeholder,
.section--white .form-group textarea::placeholder { color: #9ca3af; }
.section--light .form-group select option,
.section--white .form-group select option { background: #fff; color: #0f1e38; }
.section--light .form-privacy,
.section--white .form-privacy { color: #6b7280; }
.section--light .form-success strong,
.section--white .form-success strong { color: #0f1e38; }
.section--light .form-success p,
.section--white .form-success p { color: #4b5563; }

/* Buttons on light sections */
.section--light .btn-outline,
.section--white .btn-outline { color: #0f1e38; border-color: rgba(0,0,0,.2); }
.section--light .btn-outline:hover,
.section--white .btn-outline:hover { border-color: var(--blue-2); color: var(--blue-2); }
.section--light .btn-ghost,
.section--white .btn-ghost { color: #0f1e38; border-color: rgba(0,0,0,.2); }
.section--light .btn-ghost:hover,
.section--white .btn-ghost:hover { border-color: rgba(0,0,0,.4); color: #0f1e38; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
  .footer-grid > *:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .nav-social { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { max-width: 100%; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: 0; }
  .hero-stats .stat-card { flex: 1 1 140px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .law-tabs { grid-template-columns: 1fr; }
  .law-tab-list { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); scrollbar-width: none; }
  .law-tab-list::-webkit-scrollbar { display: none; }
  .law-tab-btn { flex-direction: column; gap: .25rem; padding: .75rem 1rem; font-size: .76rem; border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; flex-shrink: 0; }
  .law-tab-btn.active { border-bottom-color: var(--blue-3); border-left-color: transparent; }
  .law-tab-panels { padding: 1.75rem 1.5rem; min-height: 240px; }
  .form-row--2 { flex-direction: column; }
  .compare-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mission-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .methodology-cards { grid-template-columns: 1fr; }
  .method-card-arrow { transform: rotate(90deg); padding: .5rem 0; }
  .srv-detail-grid { grid-template-columns: 1fr; }
  .srv-panel-stats { gap: 1.5rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: rgba(9,14,26,.98); border-bottom: 1px solid rgba(255,255,255,.08); padding: 1rem 1.25rem; display: none; box-shadow: 0 16px 40px rgba(0,0,0,.5); backdrop-filter: blur(16px); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .15rem; }
  .nav-link { display: block; padding: .75rem 1rem; }
  .nav-link.nav-cta { text-align: center; margin: .75rem 0 0; }
  .hero { padding-block: clamp(3.5rem,12vw,5rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; width: 100%; }
  .hero-stats .stat-card { flex: 1 1 auto; }
  .problem-grid { grid-template-columns: 1fr; }
  .method-step { flex-direction: column; }
  .quiz-wrapper { padding: 1.5rem 1rem; }
  .contact-form-wrap { padding: 1.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-fab { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .breakdown-grid { grid-template-columns: 1fr; }
}

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