/* =============================================================
   Estelar Soluciones Financieras — Stylesheet
   Build: v1
   Tokens segun docs/03-design/design-spec.md
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens (CSS custom properties)
   ------------------------------------------------------------- */
:root {
  /* Colores */
  --navy: #0C1A3E;
  --navy-800: #11224F;
  --navy-700: #172D66;
  --blue: #1B3FA0;
  --blue-light: #2E5BD0;
  --blue-50: #EEF2FB;
  --gold: #C49A2D;
  --gold-light: #D4AD42;
  --gold-dark: #A67D1A;
  --text: #1A1D27;
  --text-secondary: #5A5E6B;
  --text-muted: #6c6f78;  /* antes: #8A8D97 — fix WCAG AA contrast (>=4.5 sobre #FFFFFF y #FDFBF7) */
  --border: #E4E6EB;
  --border-blue: rgba(27, 63, 160, 0.08);
  --bg: #FFFFFF;
  --bg-subtle: #F7F8FA;
  --bg-warm: #FDFBF7;
  --bg-cream: #FBFAF6;
  --footer-bg: #0A0F1E;

  /* Tipografia */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Escala tipografica */
  --text-xs: 0.6875rem;     /* 11px */
  --text-sm: 0.8125rem;     /* 13px */
  --text-base: 0.9375rem;   /* 15px */
  --text-md: 1.03rem;       /* ~16.5px */
  --text-lg: 1.25rem;       /* 20px */
  --text-xl: 1.5rem;        /* 24px */
  --text-2xl: 2rem;         /* 32px */
  --text-3xl: clamp(2rem, 3.8vw, 3.1rem);
  --text-h2: clamp(1.8rem, 3vw, 2.3rem);

  /* Radios */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(12, 26, 62, 0.04);
  --shadow-md: 0 4px 12px rgba(12, 26, 62, 0.06);
  --shadow-lg: 0 12px 32px rgba(12, 26, 62, 0.10);
  --shadow-gold: 0 8px 24px rgba(196, 154, 45, 0.18);

  /* Layout */
  --container: 1180px;
  --nav-h: 64px;

  /* Transiciones */
  --t-fast: 0.2s ease;
  --t-base: 0.3s ease;
  --t-reveal: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(196, 154, 45, 0.22);
  color: var(--navy);
}

/* -------------------------------------------------------------
   3. Tipografia base
   ------------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

.accent {
  color: var(--gold-dark);
  font-style: italic;
  font-family: var(--font-display);
}

/* En secciones de fondo oscuro la palabra acento debe ser dorada clara */
section[data-theme='dark'] .accent,
.hero .accent,
.process .accent,
.lead-magnet .accent {
  color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #806010;  /* fix WCAG AA: 5.9:1 sobre fondo claro (#A67D1A solo daba 3.77) */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* -------------------------------------------------------------
   4. Utilidades
   ------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: 1000;
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Compensar nav fija al hacer scroll a anclas */
section[id] {
  scroll-margin-top: 80px;
}

/* -------------------------------------------------------------
   5. Botones
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(27, 63, 160, 0.18);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(27, 63, 160, 0.04);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

/* -------------------------------------------------------------
   6. Reveal animation
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-reveal), transform var(--t-reveal);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   7. Top contact bar (fija arriba del nav)
   ------------------------------------------------------------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  padding: 6px 16px;
}

.top-bar-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.top-bar a,
.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--t-fast);
}

.top-bar a:hover {
  color: var(--gold-light);
}

.top-bar svg {
  width: 12px;
  height: 12px;
}

/* -------------------------------------------------------------
   8. Nav
   ------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), padding var(--t-base);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav-menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t-fast), box-shadow var(--t-fast);
}

.nav-cta svg {
  flex-shrink: 0;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--navy);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 102;
  padding: 80px 28px 32px;
  box-shadow: -8px 0 32px rgba(12, 26, 62, 0.12);
  transform: translateX(100%);
  transition: transform var(--t-base);
}

.nav-drawer.is-open {
  display: block;
  transform: translateX(0);
}

.nav-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-drawer-list a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nav-drawer-list .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  text-align: center;
  border: none;
}

.nav-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 62, 0.4);
  backdrop-filter: blur(4px);
  z-index: 101;
}

.nav-overlay.is-open {
  display: block;
}

/* -------------------------------------------------------------
   9. Sections base
   ------------------------------------------------------------- */
.section {
  padding: 64px 0;
}

.section-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.section-narrow {
  max-width: 1100px;
}

.section-tight {
  max-width: 720px;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.is-centered {
  text-align: center;
}

.section-header.is-centered .eyebrow {
  justify-content: center;
}

h2.section-title {
  font-size: var(--text-h2);
  margin-bottom: 0.7rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 600px;
}

.section-header.is-centered .section-desc {
  margin-inline: auto;
}

/* -------------------------------------------------------------
   10. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 132px 16px 64px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 40%, var(--blue) 100%);
  overflow: hidden;
  color: #fff;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  top: 15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 154, 45, 0.12) 0%, transparent 70%);
}

.hero::after {
  bottom: -15%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 63, 160, 0.25) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(196, 154, 45, 0.12);
  border: 1px solid rgba(196, 154, 45, 0.28);
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero h1 .accent,
.hero h1 .italic-key {
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-display);
}

/* Italic editorial accent (sin cambio de color en secciones claras) */
.italic-key {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--gold-dark);
}

.hero-lede {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metric {
  text-align: left;
}

.hero-metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-metric-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  font-weight: 500;
}

/* Hero form box */
.hero-form-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.hero-form-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-form-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}

.hero-form-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.hero-form-benefits {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-warm);
  border: 1px solid rgba(196, 154, 45, 0.18);
}

.hero-form-benefits li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.hero-form-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 154, 45, 0.12);
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.hero-form input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.hero-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(196, 154, 45, 0.12);
}

.hero-form .btn {
  margin-top: 4px;
}

.hero-form-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* -------------------------------------------------------------
   10.5. Trust strip
   ------------------------------------------------------------- */
.trust-strip {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-blue);
}

.trust-strip-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.trust-proof {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27, 63, 160, 0.07);
}

.trust-proof-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #806010;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-proof strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 400;
  color: var(--navy);
  text-align: right;
  line-height: 1.15;
}

/* -------------------------------------------------------------
   11. Pain points
   ------------------------------------------------------------- */
.pain {
  background: var(--bg);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pain-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-blue);
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.pain-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 154, 45, 0.34);
  box-shadow: 0 12px 32px rgba(196, 154, 45, 0.10);
}

.pain-card::before,
.svc::before,
.trust-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width var(--t-base);
}

.pain-card:hover::before,
.svc:hover::before,
.trust-card:hover::before {
  width: 100%;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.icon-box.is-blue {
  background: rgba(27, 63, 160, 0.06);
  color: var(--blue);
}

.icon-box.is-gold {
  background: rgba(196, 154, 45, 0.08);
  color: var(--gold-dark);
}

.icon-box svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.pain-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* -------------------------------------------------------------
   12. Servicios
   ------------------------------------------------------------- */
.services {
  background: var(--bg-subtle);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Categorías de servicios (3 grupos editoriales) */
.services-category {
  margin-bottom: 48px;
}

.services-category:last-child {
  margin-bottom: 0;
}

.services-category-header {
  padding-bottom: 20px;
  margin-bottom: 8px;
  max-width: 540px;
}

.services-category-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 4px;
  font-weight: 400;
}

.services-category-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.svc {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-blue);
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(196, 154, 45, 0.10);
  border-color: rgba(196, 154, 45, 0.34);
}

.svc .icon-box {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.svc .icon-box svg {
  width: 18px;
  height: 18px;
}

.svc-body h3 {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.svc-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   13. About / Quienes somos
   ------------------------------------------------------------- */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* Drop cap editorial en el primer párrafo de "Quiénes somos" */
.about-text > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  float: left;
  line-height: 0.9;
  margin: 0.05em 0.1em 0 0;
  color: var(--gold);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}

.mini-metric {
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.mini-metric.is-blue { background: rgba(27, 63, 160, 0.06); }
.mini-metric.is-gold { background: rgba(196, 154, 45, 0.06); }

.mini-metric-value {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
}

.mini-metric.is-blue .mini-metric-value { color: var(--blue); }
.mini-metric.is-gold .mini-metric-value { color: var(--gold-dark); }

.mini-metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border-blue);
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.trust-card:hover {
  border-color: rgba(196, 154, 45, 0.28);
  box-shadow: 0 10px 28px rgba(12, 26, 62, 0.06);
}

.trust-card .icon-box {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.trust-card .icon-box svg {
  width: 18px;
  height: 18px;
}

.trust-card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.trust-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   14. Process / Como funciona
   ------------------------------------------------------------- */
.process {
  background: linear-gradient(135deg, var(--navy), var(--navy-800));
  color: #fff;
  position: relative;
}

.process h2 {
  color: #fff;
}

.process .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  text-align: center;
  padding: 0 8px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: rgba(196, 154, 45, 0.3);
  line-height: 1;
  margin-bottom: 8px;
}

.step h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
  max-width: 220px;
  margin-inline: auto;
}

/* -------------------------------------------------------------
   15. Plans
   ------------------------------------------------------------- */
.plans {
  background: var(--bg-subtle);
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.plan {
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--border-blue);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan.is-featured {
  background: linear-gradient(135deg, var(--navy), var(--navy-800));
  color: #fff;
  border: 1px solid rgba(196, 154, 45, 0.3);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: -38px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
}

.plan-name {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #806010;  /* WCAG AA: 5.9:1 sobre fondo claro */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.plan-subtitle {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}

.plan.is-featured .plan-subtitle {
  color: #fff;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  min-height: 38px;
}

.plan.is-featured .plan-desc {
  color: rgba(255, 255, 255, 0.55);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan.is-featured .plan-features li {
  color: rgba(255, 255, 255, 0.78);
}

.plan-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C49A2D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.plan .btn {
  width: 100%;
}

/* -------------------------------------------------------------
   16. Resultados (casos de éxito sin nombres)
   ------------------------------------------------------------- */
.results {
  background: var(--bg);
}

.result-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.result-case {
  background: var(--bg-subtle);
  border-left: 3px solid var(--gold);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.result-case:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.result-case-outcome {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.1;
  color: var(--navy);
  max-width: 11ch;
}

.result-case-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #806010;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.result-case-problem,
.result-case-solution {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.result-case-problem strong,
.result-case-solution strong {
  font-weight: 700;
  color: var(--navy);
}

/* -------------------------------------------------------------
   17. FAQ
   ------------------------------------------------------------- */
.faq {
  background: var(--bg-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(27, 63, 160, 0.08);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  transition: color var(--t-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
  transition: transform var(--t-base);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -------------------------------------------------------------
   18. Lead magnet
   ------------------------------------------------------------- */
.lead-magnet {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  text-align: center;
}

.lead-magnet h2 {
  color: #fff;
}

.lead-magnet h2 .accent {
  color: var(--gold);
}

.lead-magnet-inner {
  max-width: 720px;
  margin-inline: auto;
}

.lead-magnet-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.lead-magnet-keywords {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 580px;
  margin-inline: auto;
}

.lead-magnet-keywords a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lead-magnet-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.lead-magnet-ctas .btn-outline-light {
  border-color: transparent;
  padding-inline: 8px;
  box-shadow: none;
}

.lead-magnet-ctas .btn-outline-light:hover,
.lead-magnet-ctas .btn-outline-light:focus-visible {
  border-color: transparent;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* -------------------------------------------------------------
   19. Footer
   ------------------------------------------------------------- */
footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  padding: 56px 16px 24px;
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-about-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo-img {
  width: 180px;
  height: auto;
  display: block;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 13.5px;
  max-width: 320px;
}

.footer-credentials {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
  letter-spacing: 0.01em;
  font-style: italic;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* -------------------------------------------------------------
   20. WhatsApp floating
   ------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform var(--t-fast);
  animation: wa-pulse 2s infinite;
}

.wa-float:hover {
  transform: scale(1.07);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 4px 20px rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 4px 20px rgba(37, 211, 102, 0.45); }
}

/* -------------------------------------------------------------
   20.5. Specialty card (about — Especialización Derecho Tributario)
   ------------------------------------------------------------- */
.specialty-card {
  position: relative;
  margin: 1.4rem 0 1.6rem;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(196, 154, 45, 0.08), rgba(196, 154, 45, 0.02));
  border: 1px solid rgba(196, 154, 45, 0.28);
  border-left: 3px solid var(--gold);
}

.specialty-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(196, 154, 45, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.specialty-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--gold-dark);
  line-height: 1.2;
  margin-bottom: 8px;
}

.specialty-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------------------------------------------
   20.6. Plan criteria (linea bajo el plan-name)
   ------------------------------------------------------------- */
.plan-criteria {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #806010;  /* WCAG AA: 5.9:1 sobre fondo claro */
  letter-spacing: 0.02em;
  margin-top: -2px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.plan.is-featured .plan-criteria {
  color: var(--gold-light);
}

/* -------------------------------------------------------------
   20.7. Decorative star (CHANGE-4 / A2)
   ------------------------------------------------------------- */
.hero-decoration,
.process-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-star {
  position: absolute;
  top: 8%;
  right: -40px;
  width: 320px;
  height: auto;
  color: var(--gold);
  opacity: 0.10;
  transform: rotate(-8deg);
}

.process {
  overflow: hidden;
}

.process-star {
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 480px;
  height: auto;
  color: var(--gold);
  opacity: 0.06;
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .hero-star {
    width: 220px;
    top: auto;
    bottom: 4%;
    right: -60px;
    opacity: 0.07;
  }
  .process-star {
    width: 320px;
    opacity: 0.05;
  }
}

/* -------------------------------------------------------------
   21. Legal pages
   ------------------------------------------------------------- */
.legal-page {
  padding-top: 130px;
  padding-bottom: 64px;
  background: var(--bg-warm);
}

.legal-content {
  max-width: 780px;
  margin-inline: auto;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
  color: var(--navy);
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem 1.5rem;
}

.legal-content li {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.legal-content strong {
  color: var(--navy);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 2rem;
  font-style: italic;
}

/* -------------------------------------------------------------
   22. Responsive (mobile-first → up)
   ------------------------------------------------------------- */
@media (min-width: 480px) {
  .container,
  .section-inner,
  .nav-inner,
  .top-bar-inner,
  .footer-inner,
  .hero {
    padding-inline: 20px;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }

  .container,
  .section-inner,
  .nav-inner,
  .top-bar-inner,
  .footer-inner,
  .hero {
    padding-inline: 32px;
  }

  .hero {
    padding-top: 130px;
    padding-bottom: 80px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-category {
    margin-bottom: 64px;
  }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  .plans-grid .plan { padding: 28px 22px; }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent);
    opacity: 0.5;
    pointer-events: none;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .hero-form-box {
    padding: 28px;
  }

  .trust-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .result-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
  }

  .plan.is-featured {
    transform: scale(1.04);
  }

  .legal-content {
    padding: 48px 56px;
  }
}

@media (min-width: 1280px) {
  .hero {
    padding-bottom: 96px;
  }
}

/* -------------------------------------------------------------
   23. prefers-reduced-motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .wa-float {
    animation: none;
  }

  .pain-card:hover,
  .svc:hover,
  .btn:hover,
  .btn:active,
  .wa-float:hover {
    transform: none;
  }
}
