/* ============================================================
   True Recovery — hoja de estilos principal
   Sistema: expediente / caso — evoca un despacho de investigación
   financiera: ledger lines, sellos de expediente, tipografía de
   documento institucional.
   ============================================================ */

:root {
  /* Color */
  --ink:        #0A1A2B;   /* texto principal / secciones oscuras */
  --navy:       #14315C;   /* color primario de marca */
  --navy-2:     #0F2647;
  --steel:      #3B6EA5;   /* acento interactivo / enlaces */
  --gold:       #A9812D;   /* acento restringido — sellos, CTA, cifras clave */
  --gold-soft:  #C7A75B;
  --gray:       #5B6675;   /* texto secundario */
  --gray-light: #8E98A6;
  --fog:        #F3F5F7;   /* fondo claro */
  --paper:      #FFFFFF;
  --line:       #DDE3E9;   /* líneas finas */
  --line-dark:  rgba(255,255,255,0.14);

  /* Tipografía */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy-2); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--paper);
}
.btn-outline-light:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.brand .mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy);
}
.brand-logo { height: 42px; width: auto; display: block; }
.footer-grid .brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--gray);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 7px; }
.lang-switch a {
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.4;
  filter: grayscale(55%);
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.lang-switch a:hover { opacity: 0.8; filter: none; }
.lang-switch a.active { opacity: 1; filter: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--paper); flex-direction: column; gap: 0; padding: 12px 32px 32px; transform: translateY(-110%); transition: transform 0.3s ease; border-bottom: 1px solid var(--line); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero (sección oscura tipo dossier) ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 38px,
    rgba(255,255,255,0.035) 39px
  );
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { color: var(--paper); }
.hero .eyebrow { color: var(--gold-soft); }
.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.68);
  max-width: 46ch;
  margin: 22px 0 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sello / stamp — elemento distintivo */
.seal {
  width: 168px; height: 168px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  position: relative;
  transform: rotate(-8deg);
}
.seal::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(199,167,91,0.5);
  border-radius: 50%;
}
.seal-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-align: center;
  line-height: 1.7;
}
.seal-text strong { display: block; font-size: 0.9rem; color: var(--paper); letter-spacing: 0.04em; margin-bottom: 4px; }

/* ---------- Barra de confianza ---------- */
.trust-bar {
  background: var(--fog);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-bar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-bar .item .k {
  font-family: var(--font-mono);
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.trust-bar .item .v {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .trust-bar .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Secciones generales ---------- */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-fog { background: var(--fog); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h2, .bg-ink h3 { color: var(--paper); }
.bg-ink p { color: rgba(255,255,255,0.65); }
.bg-ink .eyebrow { color: var(--gold-soft); }

/* ---------- Tarjetas de servicio ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--paper);
  padding: 40px 34px;
  transition: background 0.2s ease;
}
.card:hover { background: var(--fog); }
.card .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Proceso / fases del expediente ---------- */
.docket {
  border-top: 1px solid var(--line);
}
.docket-row {
  display: grid;
  grid-template-columns: 140px 1fr 2fr;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.docket-row .case-no {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  padding-top: 4px;
}
.docket-row h3 { margin-bottom: 8px; }
.docket-row p { margin: 0; font-size: 0.95rem; }
@media (max-width: 720px) {
  .docket-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Testimonios ---------- */
.testimonial {
  border-left: 2px solid var(--gold);
  padding-left: 26px;
}
.testimonial p.quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial .who {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- CTA final ---------- */
.cta-band {
  background: var(--navy);
  color: var(--paper);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 52ch; margin: 16px auto 30px; }

/* ---------- Formulario ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
  border-color: var(--steel);
}
textarea { resize: vertical; min-height: 120px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Aviso legal ---------- */
.disclaimer {
  background: var(--fog);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  font-size: 0.86rem;
  color: var(--gray);
}
.disclaimer strong { color: var(--navy); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 60px 0 30px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.55); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utilidades de animación ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Página interior: hero simple ---------- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 68px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 38px, rgba(255,255,255,0.035) 39px);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--paper); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gray-light);
  margin-bottom: 18px;
}
.breadcrumb .sep { margin: 0 8px; }
