/* ============================================================
   SALGADO ARDILA · Boutique de Abogados
   Hoja de estilos — estándar editorial de firma de primer nivel
   ============================================================ */

:root {
  --navy-deep: #0b1f33;
  --navy: #12324f;
  --gold: #b08d57;
  --gold-soft: #c9ac7e;
  --paper: #faf9f7;
  --paper-alt: #f3f0ea;
  --ink: #1a2433;
  --muted: #5b6572;
  --line: #e5dfd4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--navy); }
img { max-width: 100%; }
a { color: inherit; }

.container { width: min(90%, 1180px); margin: 0 auto; }
.container-narrow { width: min(90%, 780px); margin: 0 auto; }

/* ---------- Micro-etiquetas (eyebrow) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 4px; font-size: 0.72rem; font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { text-decoration: none; display: block; }
.brand-logo { height: 88px; width: auto; display: block; }
.nav-links { display: flex; gap: 38px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2.2px;
  padding: 6px 0; position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--navy); color: var(--navy) !important;
  padding: 11px 26px !important; transition: all 0.3s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy); color: #fff !important; }

/* --- Menú móvil --- */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 300;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px auto; transition: all 0.3s ease;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse 900px 600px at 85% -10%, rgba(176, 141, 87, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, #0e2a44 55%, var(--navy) 100%);
  color: #fff; padding: 130px 0 140px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 90px);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -240px; top: -240px;
  width: 780px; height: 780px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 259px, rgba(176,141,87,0.28) 259px 260px,
      transparent 260px 319px, rgba(176,141,87,0.14) 319px 320px,
      transparent 320px 388px, rgba(176,141,87,0.08) 388px 389px, transparent 389px);
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero h1 {
  color: #fff; font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  font-weight: 500; max-width: 19ch; margin-bottom: 28px;
  letter-spacing: 0.2px;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p.lede {
  font-size: 1.13rem; font-weight: 300; max-width: 58ch;
  color: #ccd8e4; margin-bottom: 42px; line-height: 1.85;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 16px 36px;
  text-decoration: none; font-weight: 500; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 2.5px;
  transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy); color: #fff; }

/* ============================================================
   FRANJA INSTITUCIONAL
   ============================================================ */
.institutions { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding: 34px 0; }
.institutions .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.institutions .label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--muted); white-space: nowrap;
}
.institutions ul { display: flex; gap: 30px; list-style: none; flex-wrap: wrap; justify-content: center; }
.institutions li {
  font-family: var(--display); font-size: 1.02rem; font-weight: 600;
  color: var(--navy); opacity: 0.75; white-space: nowrap;
}
.institutions li + li::before { content: ""; }

/* ============================================================
   SECCIONES BASE
   ============================================================ */
section { padding: 110px 0; }
.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500;
  margin-bottom: 24px; max-width: 24ch;
}
.section-intro { color: var(--muted); max-width: 64ch; font-size: 1.05rem; font-weight: 300; }

/* ============================================================
   LA FIRMA (perfil)
   ============================================================ */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 72px; align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 20px; font-weight: 300; font-size: 1.02rem; }
.about-copy p strong { color: var(--ink); font-weight: 500; }
.about-copy .firma-firma {
  font-family: var(--display); font-style: italic; font-size: 1.35rem;
  color: var(--navy); margin-top: 34px;
}
.about-aside { border-left: 1px solid var(--line); padding-left: 44px; position: sticky; top: 130px; }

/* --- Retrato del Socio Director --- */
.portrait-block { margin-bottom: 38px; }
.portrait { position: relative; margin: 0 18px 26px 0; }
.portrait::before {
  content: ""; position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); z-index: 0;
}
.portrait img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.pc-name { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.pc-role { display: block; color: var(--gold); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; margin-top: 6px; }
.stat { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: none; }
.stat b { font-family: var(--display); font-size: 2.5rem; font-weight: 500; color: var(--gold); display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.3px; }

/* ============================================================
   ÁREAS DE PRÁCTICA
   ============================================================ */
.services { background: var(--paper-alt); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 56px; margin-top: 64px;
}
.service-item { border-top: 1px solid var(--line); padding: 30px 0 36px; transition: border-color 0.3s; }
.service-item:hover { border-top-color: var(--gold); }
.service-item .num {
  font-family: var(--display); font-size: 0.95rem; color: var(--gold);
  letter-spacing: 2px; display: block; margin-bottom: 12px;
}
.service-item h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; }
.service-item p { color: var(--muted); font-size: 0.94rem; font-weight: 300; }

/* ============================================================
   TRAYECTORIA
   ============================================================ */
.track { background: var(--paper); }
.timeline { margin-top: 64px; }
.tl-item {
  display: grid; grid-template-columns: 210px 1fr; gap: 44px;
  padding: 38px 0; border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-date {
  color: var(--gold); font-weight: 600; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 2.5px; padding-top: 8px;
}
.tl-item h3 { font-size: 1.65rem; font-weight: 600; margin-bottom: 4px; }
.tl-role { font-weight: 500; color: var(--ink); font-size: 0.95rem; margin-bottom: 10px; }
.tl-item p { color: var(--muted); font-size: 0.96rem; font-weight: 300; max-width: 68ch; }
.center { text-align: center; margin-top: 56px; }

/* ============================================================
   CREDENCIALES (fondo oscuro)
   ============================================================ */
.credentials {
  background:
    radial-gradient(ellipse 700px 500px at 10% 110%, rgba(176, 141, 87, 0.12), transparent 60%),
    var(--navy-deep);
  color: #fff;
}
.credentials .section-title { color: #fff; }
.credentials .eyebrow { color: var(--gold-soft); }
.credentials .eyebrow::before { background: var(--gold-soft); }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 56px; }
.cred-col h3 {
  color: var(--gold-soft); font-family: var(--sans); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 3px; font-weight: 600;
  margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark);
}
.cred-item { padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.cred-item:last-child { border-bottom: none; }
.cred-item .t { font-family: var(--display); font-size: 1.28rem; font-weight: 600; color: #fff; line-height: 1.3; }
.cred-item .s { color: #a9b7c6; font-size: 0.9rem; font-weight: 300; margin-top: 3px; }
.cred-item .y { color: var(--gold-soft); font-size: 0.76rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }

/* ============================================================
   PUBLICACIONES (editorial)
   ============================================================ */
.pubs { background: var(--paper); }
.pub-list { margin-top: 64px; }
.pub-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 40px;
  align-items: baseline; padding: 36px 0;
  border-top: 1px solid var(--line);
  text-decoration: none; transition: background 0.3s;
}
.pub-row:last-child { border-bottom: 1px solid var(--line); }
.pub-row:hover { background: rgba(176, 141, 87, 0.04); }
.pub-meta-col { display: flex; flex-direction: column; gap: 6px; }
.pub-tag {
  color: var(--gold); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px;
}
.pub-date { color: var(--muted); font-size: 0.82rem; font-weight: 300; }
.pub-row h3 { font-size: 1.75rem; font-weight: 600; max-width: 26ch; transition: color 0.3s; }
.pub-row:hover h3 { color: var(--gold); }
.pub-row .pub-summary { color: var(--muted); font-size: 0.94rem; font-weight: 300; max-width: 60ch; margin-top: 8px; }
.pub-arrow {
  font-family: var(--display); font-size: 1.6rem; color: var(--gold);
  transition: transform 0.3s; align-self: center;
}
.pub-row:hover .pub-arrow { transform: translateX(8px); }
.pub-soon { opacity: 0.55; pointer-events: none; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--paper-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.contact-info > p { color: var(--muted); margin-bottom: 40px; font-weight: 300; }
.contact-detail { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-detail .label {
  font-weight: 600; color: var(--gold); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 2.5px; display: block; margin-bottom: 4px;
}
.contact-detail .value, .contact-detail a {
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: 1.3rem; font-weight: 500;
}
.contact-detail a:hover { color: var(--gold); }

form { padding: 0; }
.field { margin-bottom: 28px; }
.field label {
  display: block; font-size: 0.7rem; font-weight: 600; color: var(--navy);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; padding: 13px 2px;
  border: none; border-bottom: 1px solid #cfc8ba;
  font-family: var(--sans); font-size: 1rem; font-weight: 300;
  background: transparent; color: var(--ink);
  border-radius: 0; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy-deep); color: #92a3b5; padding: 76px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px;
  padding-bottom: 52px; border-bottom: 1px solid var(--line-dark);
}
.footer-logo { height: 96px; width: auto; display: block; margin-bottom: 18px; }
.footer-tagline { font-size: 0.92rem; font-weight: 300; max-width: 34ch; line-height: 1.8; }
.footer-col h4 {
  color: var(--gold-soft); font-family: var(--sans); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 3px; font-weight: 600; margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #b7c4d2; text-decoration: none; font-size: 0.92rem; font-weight: 300; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding-top: 30px; font-size: 0.8rem; color: #64778a;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ============================================================
   PÁGINAS INTERIORES
   ============================================================ */
.page-head {
  background:
    radial-gradient(ellipse 700px 460px at 90% -20%, rgba(176, 141, 87, 0.13), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 90px);
  pointer-events: none;
}
.page-head .eyebrow { color: var(--gold-soft); }
.page-head .eyebrow::before { background: var(--gold-soft); }
.page-head h1 { color: #fff; font-size: clamp(2.3rem, 4.5vw, 3.6rem); font-weight: 500; max-width: 22ch; }
.page-head p { color: #ccd8e4; max-width: 62ch; margin-top: 20px; font-size: 1.08rem; font-weight: 300; }

/* ---------- Listado de artículos ---------- */
.articles-list { background: var(--paper); padding: 90px 0 110px; }

/* ---------- Artículo individual ---------- */
.article { background: var(--paper); padding: 84px 0 110px; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 44px; color: var(--gold); text-decoration: none;
  font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px;
}
.back-link:hover { color: var(--navy); }
.article .art-tag {
  color: var(--gold); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
}
.article h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 500; margin: 18px 0 20px; }
.article .art-meta {
  color: var(--muted); font-size: 0.88rem; font-weight: 300;
  padding-bottom: 34px; margin-bottom: 48px; border-bottom: 1px solid var(--line);
}
.article-body p { color: var(--ink); margin-bottom: 26px; font-size: 1.06rem; font-weight: 300; line-height: 1.9; }
.article-body h2 { font-size: 1.9rem; font-weight: 600; margin: 52px 0 20px; }
.article-body h3 { font-size: 1.4rem; font-weight: 600; margin: 38px 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 26px 24px; color: var(--ink); font-weight: 300; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote {
  border-left: 2px solid var(--gold); padding: 10px 0 10px 30px; margin: 38px 0;
  font-family: var(--display); font-style: italic; font-size: 1.35rem;
  color: var(--navy); line-height: 1.5;
}
.article-body a { color: var(--gold); font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-row { grid-template-columns: 160px 1fr auto; gap: 26px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 84px 0 92px; }

  .brand-logo { height: 64px; }
  /* Sin backdrop-filter en móvil: crearía un contexto que confina el panel fijo del menú */
  header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 250;
    background: var(--paper);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 34px; opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .nav-links a { font-size: 1rem; letter-spacing: 3px; }

  .about-grid, .cred-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-aside { position: static; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .pub-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .pub-arrow { display: none; }
  .pub-row h3 { font-size: 1.45rem; }
  .institutions .container { gap: 16px; }
  .institutions ul { gap: 14px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
