/* Pascal Pojomovsky Labbé — Abogada de familia, La Serena */
:root {
  --ink: #161616;
  --ink-soft: #3d3a37;
  --muted: #6f6a64;
  --line: #e4ddd5;
  --paper: #f8f5f1;
  --white: #ffffff;
  --accent: #9a5b4b;       /* terracota suave */
  --accent-dark: #7c4638;
  --accent-tint: #f3e7e2;
  --whatsapp: #25d366;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(22, 22, 22, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.brand-role { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.nav a:hover { color: var(--accent-dark); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* Portada */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--accent-dark); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.hero-points li::before { content: '—'; color: var(--accent); margin-right: 0.5rem; }
.portrait { position: relative; max-width: 440px; justify-self: center; }
.portrait img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.portrait::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--accent); border-radius: var(--radius); z-index: -1; }

/* Secciones */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 1.35rem; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); flex: 1; }
.card-link { font-size: 0.85rem; font-weight: 600; color: var(--accent-dark); margin-top: 0.4rem; }

.others { margin-top: 2rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--accent-tint); }
.others h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.others ul { margin: 0; padding-left: 1.1rem; columns: 2 240px; column-gap: 2rem; font-size: 0.95rem; }

.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: paso; }
.step { counter-increment: paso; padding-top: 1rem; border-top: 1.5px solid var(--ink); }
.step::before { content: counter(paso, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; color: var(--accent); display: block; }
.step h3 { font-size: 1.3rem; margin-top: 0.3rem; }
.step p { font-size: 0.95rem; color: var(--muted); }

.about-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 0.7fr 1.3fr; } }
.about-grid img { border-radius: var(--radius); filter: grayscale(1); }

.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

.cta-band { background: var(--ink); color: #e9e4de; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfc8c0; max-width: 34em; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); }

/* Página de servicio */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding-top: 2rem; }
.breadcrumb a { color: var(--muted); }
.service-header { padding-block: 1.5rem 1rem; }
.service-header h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.lead { font-size: 1.15rem; color: var(--ink); }
.summary { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.summary h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.summary ul { margin: 0; padding-left: 1.1rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.9rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.disclaimer { font-size: 0.85rem; color: var(--muted); font-style: italic; margin-top: 2rem; }
.related { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1rem; }

/* Pie */
.site-footer { background: #0f0f0f; color: #bdb6ae; padding-block: 3rem 2rem; margin-top: 4rem; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1.15rem; }
.site-footer a { color: #e5ded6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-bottom { border-top: 1px solid #2a2a2a; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.8rem; color: #8a837c; }
.pending { color: #d9a08f; font-style: italic; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.wa-float svg { width: 30px; height: 30px; }
.nav a.btn-dark, .nav a.btn-dark:hover { color: #fff; }
.btn { white-space: nowrap; }
@media (max-width: 560px) { .brand-role { display: none; } .brand-name { font-size: 1.05rem; } }
/* Fotos: mantener proporción aunque se limite el ancho */
.about-grid img, .portrait img { height: auto; }

/* Pie: aliados y enlaces legales (2026-11-13) */
.footer-aliados { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-aliados > span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.footer-aliados a { display: flex; flex-direction: column; color: inherit; text-decoration: none; font-weight: 500; }
.footer-aliados a small { font-weight: 400; opacity: .65; font-size: .8rem; }
.footer-aliados a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font-size: .875rem; }
.footer-legal a { color: inherit; opacity: .8; }
.footer-legal a:hover { opacity: 1; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
