/* ============================================================
   Reclamaciones de Deudas - Carlos Babot · Babot-Aranguren
   Paleta: navy oscuro + dorado discreto + grises
   ============================================================ */

:root {
  --bg-dark: #0a1f3d;
  --bg-darker: #061429;
  --bg-light: #f7f5f0;
  --bg-soft: #ecebe5;
  --text-dark: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-muted: #707070;
  --gold: #c9a961;
  --gold-dark: #a68845;
  --gold-soft: #e0c98a;
  --accent: #1a3a6e;
  --border: rgba(10, 31, 61, 0.12);
  --border-strong: rgba(10, 31, 61, 0.25);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }
strong { font-weight: 600; color: var(--text-dark); }
ul, ol { margin: 0.8rem 0 1.2rem 1.4rem; color: var(--text-soft); }
li { margin-bottom: 0.4rem; }
img { max-width: 100%; height: auto; display: block; }

/* ============= LAYOUT ============= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ============= TOP BAR ============= */
.topbar {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.55rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.topbar a { color: var(--gold-soft); }
.topbar a:hover { color: #fff; }
.topbar-meta { display: flex; gap: 1.5rem; }
@media (max-width: 700px) {
  .topbar-meta span:first-child { display: none; }
}

/* ============= NAV ============= */
nav.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  color: var(--bg-dark);
  text-decoration: none;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  font-family: Georgia, serif;
  letter-spacing: -1px;
}
.brand-text { line-height: 1.1; }
.brand-name { font-size: 1.05rem; font-weight: 600; color: var(--bg-dark); display: block; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); font-family: var(--sans); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; margin: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-cta {
  background: var(--bg-dark);
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--bg-dark); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
    align-items: flex-start;
  }
}

/* ============= HERO ============= */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--accent) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.08;
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.2rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 400; }
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
}
.btn-primary:hover { background: var(--gold-soft); color: var(--bg-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }

/* ============= SECTIONS ============= */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-soft); }
section.dark { background: var(--bg-dark); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: rgba(255,255,255,0.85); }

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header p { font-size: 1.05rem; margin-top: 0.8rem; color: var(--text-soft); }

/* ============= GRID DE TARJETAS ============= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.card {
  background: #fff;
  padding: 2rem 1.8rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(10, 31, 61, 0.08);
  border-color: var(--gold);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-dark);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--bg-dark); }
.card p { font-size: 0.94rem; color: var(--text-soft); line-height: 1.55; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}
.card-link:hover { color: var(--gold-dark); }

/* ============= TABLA DE 2 COLUMNAS ============= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}
.two-col img { border-radius: 4px; }

/* ============= NUMERIC LIST (proceso) ============= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.process-step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.process-num {
  position: absolute;
  top: -18px;
  left: 1.5rem;
  background: var(--bg-dark);
  color: var(--gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.process-step h3 { font-size: 1.05rem; margin-top: 0.5rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.92rem; color: var(--text-soft); }

/* ============= CTA BANNER ============= */
.cta-banner {
  background: var(--bg-dark);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner h2 em { color: var(--gold); font-style: italic; font-weight: 400; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto 2rem; }

/* ============= FORM ============= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--bg-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-checkbox input { margin-top: 3px; }
.form-checkbox a { color: var(--accent); text-decoration: underline; }

/* ============= BREADCRUMB ============= */
.breadcrumb {
  background: var(--bg-soft);
  padding: 1rem 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.5rem; color: var(--text-muted); }

/* ============= PAGE HEADER (subpáginas) ============= */
.page-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.06;
  border-radius: 50%;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 0.8rem; }
.page-header h1 em { color: var(--gold); font-style: italic; font-weight: 400; }
.page-header-lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 760px;
}

/* ============= CONTENT (subpáginas con texto largo) ============= */
.content { padding: 4rem 0; }
.content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 1.8rem; }

.info-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.8rem;
  margin: 1.8rem 0;
  border-radius: 0 4px 4px 0;
}
.info-box-title {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}
.info-box p { color: var(--text-dark); margin: 0; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
table.data thead { background: var(--bg-dark); color: #fff; }
table.data th { padding: 0.85rem 1rem; text-align: left; font-weight: 500; font-size: 0.85rem; }
table.data td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) { background: var(--bg-soft); }

/* ============= FOOTER ============= */
footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: 0.3rem; }
.footer-brand-sub { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-brand-text { font-size: 0.88rem; line-height: 1.6; max-width: 320px; margin-bottom: 1rem; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ============= FLOATING PHONE ============= */
.float-phone {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gold);
  color: var(--bg-dark);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  z-index: 50;
  transition: transform 0.2s, background 0.2s;
}
.float-phone:hover {
  background: var(--gold-soft);
  color: var(--bg-dark);
  transform: scale(1.08);
}

/* ============= UTILITIES ============= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ============================================================
   Blog / Article styles
   ============================================================ */
:root {
  --muted: var(--text-muted);
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark);
}

.post-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: var(--bg-dark);
}

.post-body h2:first-child {
  margin-top: 0;
}

.post-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--bg-dark);
}

.post-body p {
  margin-bottom: 1.1rem;
  color: var(--text-soft);
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1.4rem 1.5rem;
  color: var(--text-soft);
}

.post-body ul li,
.post-body ol li {
  margin-bottom: 0.6rem;
}

.post-body strong {
  color: var(--bg-dark);
  font-weight: 600;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

.post-body a:hover {
  color: var(--gold-dark);
}

.post-nav {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.post-nav .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
}

.post-nav-link {
  display: block;
  padding: 1.3rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--bg-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
  line-height: 1.4;
}

.post-nav-link:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.post-nav-link.next {
  text-align: right;
}

@media (max-width: 700px) {
  .post-nav .container {
    grid-template-columns: 1fr;
  }
}
