@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400;1,6..72,500&family=Inter:wght@400;500;600&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────────── */
/* Formalización de la paleta, tipografía y escala de espaciado detectadas
   en el inventario de estilos inline de las 27 páginas + reglas ya
   existentes en este archivo. No se ha modificado ningún HTML todavía. */
:root {
  /* Color — marca */
  --color-primary: #B1976B;
  --color-primary-hover: #9A7F59;
  --color-primary-text: #8A6F4A;
  --color-text-on-dark: #8C8880;

  /* Color — texto */
  --color-text: #1C1A17;
  --color-text-secondary: #6B6560;
  --color-text-muted: #756E68;

  /* Color — fondos */
  --color-bg-white: #ffffff;
  --color-bg-cream: #F6F4F0;
  --color-bg-cream-hover: #EDE9E2;

  /* Color — bordes */
  --color-border: #E5DFD5;
  --color-border-subtle: #D5CFCA;
  --color-placeholder: #C5BFB5;

  /* Color — franja oscura (footer top-border, cta-band) */
  --color-dark-1: #2A2825;
  --color-dark-2: #3E3C39;
  --color-dark-3: #4A4845;

  /* Color — WhatsApp */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DA851;

  /* Tipografía — familias */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', sans-serif;

  /* Tipografía — escala de tamaños (px), a partir de los valores que ya
     se repiten en el CSS y en los inline styles del sitio */
  --fs-2xs: 10px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;

  /* Tipografía — tamaños responsivos de H1 (los dos usados en el sitio) */
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h1-sm: clamp(2rem, 3.5vw, 2.8rem);

  /* Tipografía — line-height */
  --lh-tight: 1.08;
  --lh-body: 1.6;

  /* Espaciado — escala usada de forma consistente en margin-top/bottom y gap */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Inter', sans-serif;
  color: #1C1A17;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, dl, dd { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip link (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: fixed;
  top: -48px;
  left: 8px;
  z-index: 100;
  background: var(--color-text);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus-visible {
  top: 8px;
}

/* #main-content receives programmatic focus (tabindex="-1") when the skip
   link is activated. It must not show the bronze focus ring: an ID selector
   is required here, not "main:focus", because [tabindex]:focus-visible
   above has higher specificity than an element+pseudo-class selector and
   would otherwise still win. */
#main-content:focus {
  outline: none;
}

/* Visually-hidden but screen-reader-readable content (e.g. the live-region
   step announcer in the contact form). Standard clip technique — kept out
   of layout flow so it never affects visible spacing. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
*:hover { scrollbar-color: #E5DFD5 transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Layout helpers ───────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .container { padding: 0 48px; }
}
.serif { font-family: 'Newsreader', Georgia, serif; font-weight: 400; }
.sans { font-family: 'Inter', sans-serif; }

.eyebrow {
  display: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-text);
}
@media (min-width: 1024px) {
  .eyebrow { display: inline; }
}

.bronze-rule {
  height: 2px;
  width: 0;
  background: #B1976B;
  margin-top: 16px;
  transition: width 0.65s cubic-bezier(0.4,0,0.2,1) 80ms;
}
.bronze-rule.is-visible { width: 56px; }
.bronze-rule.sm { margin-top: 12px; }

.bullet-list { display: flex; flex-direction: column; gap: 12px; }
.bullet-item { display: flex; align-items: flex-start; gap: 12px; }
.bullet-item::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: #B1976B;
  flex-shrink: 0;
}
.bullet-item span {
  font-size: 14px;
  line-height: 1.6;
  color: #6B6560;
}

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Curated motion (body[data-motion="curated"], site-wide since the 19-08-2026 rollout):
   swaps the generic `ease` for the same cubic-bezier already used by .bronze-rule and
   .faq-question, so entrances and expansions read as one system. Stagger delay between
   .reveal siblings is applied inline by initScrollReveal() in js/main.js, gated by the
   same attribute — kept as a rollback switch, not because it's still a pilot. See
   bitacora.md for the full rationale. */
body[data-motion="curated"] .reveal {
  transition-timing-function: cubic-bezier(0.4,0,0.2,1);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 180ms cubic-bezier(0.4,0,0.2,1),
              color 180ms cubic-bezier(0.4,0,0.2,1),
              border-color 180ms cubic-bezier(0.4,0,0.2,1),
              box-shadow 180ms cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .btn { width: auto; }
}
.btn-primary { background: #B1976B; color: #fff; }
.btn-primary:hover { background: #9A7F59; box-shadow: 0 6px 16px -4px rgba(177,151,107,0.45); }
.btn-outline { border: 1px solid #E5DFD5; color: #1C1A17; }
.btn-outline:hover { border-color: #B1976B; color: var(--color-primary-text); box-shadow: 0 4px 12px -6px rgba(177,151,107,0.3); }
.btn-sm { padding: 10px 20px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #E5DFD5;
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; display: block; }
.logo-mark { color: #B1976B; }
.logo-word { font-family: 'Newsreader', Georgia, serif; font-size: 18px; font-weight: 400; color: #1C1A17; letter-spacing: -0.02em; }
.logo-word .amp { color: var(--color-primary-text); }
.logo-sub {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #9A9590;
}

.desktop-nav { display: none; align-items: center; gap: 24px; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1C1A17;
  transition: color 0.2s;
}
.nav-link:hover { color: #B1976B; }
.nav-link.active { color: var(--color-primary-text); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 0;
  background: #B1976B;
  transition: width 180ms cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link[disabled], .nav-link.inert { cursor: default; }
.nav-link[disabled]::after, .nav-link.inert::after { width: 0 !important; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: #1C1A17; }
.nav-dropdown-trigger:hover { color: var(--color-primary-text); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  margin-top: 12px;
  background: #fff;
  border: 1px solid #E5DFD5;
  width: 176px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 180ms cubic-bezier(0.4,0,0.2,1),
              transform 180ms cubic-bezier(0.4,0,0.2,1),
              visibility 0s linear 180ms;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 180ms cubic-bezier(0.4,0,0.2,1),
              transform 180ms cubic-bezier(0.4,0,0.2,1),
              visibility 0s linear 0s;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu a, .nav-dropdown-menu button {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px; font-size: 14px; color: #6B6560;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu button:hover { color: var(--color-primary-text); background: #F6F4F0; }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.menu-toggle { padding: 4px; color: #1C1A17; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle.open .icon-menu { display: none; }
.menu-toggle.open .icon-close { display: block; }

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #E5DFD5;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a, .mobile-menu button {
  text-align: left; font-size: 14px; font-weight: 500; color: #1C1A17;
  padding: 14px 0;
}
.mobile-menu a:hover, .mobile-menu button:hover { color: #B1976B; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fff;
  padding-top: 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 48px;
}
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1fr auto; padding-top: 96px; padding-bottom: 96px; } }
.hero-copy { max-width: 640px; }
.hero-copy .fade, .page-hero .fade { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.hero.entrance-in .fade, .page-hero.entrance-in .fade { opacity: 1; transform: translateY(0); }
.hero-copy h1 {
  margin-top: 20px;
  color: #1C1A17;
  font-weight: 400;
  line-height: 1.08;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.025em;
}
.hero-copy p {
  margin-top: 24px;
  font-size: 16px;
  color: #6B6560;
  line-height: 1.6;
  max-width: 560px;
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image { width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) { .hero-image { width: 340px; } }
@media (min-width: 1280px) { .hero-image { width: 400px; } }
.hero.entrance-in .hero-image { opacity: 1; }
.hero-image { opacity: 0; transition: opacity 0.9s ease 400ms; }
.hero-image-frame {
  position: relative;
  aspect-ratio: 4/3;
  background: #F6F4F0;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero-image-frame { aspect-ratio: 3/4; } }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(28,26,23,0.05);
}
.hero-image-corner {
  width: 64px; height: 64px;
  border-left: 2px solid #B1976B;
  border-bottom: 2px solid #B1976B;
  margin-top: -64px; margin-left: -16px;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
section { }
.section { padding: 96px 0; }
.section-sm { padding: 80px 0; }
.section-tight { padding: 64px 0; }
.bg-cream { background: #F6F4F0; }
.bg-white { background: #fff; }
.bg-dark { background: #1C1A17; }
.border-top { border-top: 1px solid #E5DFD5; }
.border-bottom { border-bottom: 1px solid #E5DFD5; }

h2.section-title, .section-title {
  margin-top: 12px;
  color: #1C1A17;
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.section-title-sm { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }

/* Trust block */
.trust-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.trust-card {
  padding: 32px;
  background: #fff;
  border: 1px solid #E5DFD5;
  height: 100%;
}
@media (min-width: 1024px) { .trust-card { padding: 40px; } }
.trust-card ul { margin-top: 20px; }
.trust-card blockquote { margin-top: 20px; }
.trust-card blockquote p {
  color: #1C1A17;
  line-height: 1.6;
  font-style: italic;
  font-size: 20px;
}
.trust-card blockquote footer {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B6560;
}
.trust-card-flex { display: flex; flex-direction: column; justify-content: space-between; }
.trust-divider { margin-top: 32px; height: 1px; background: #E5DFD5; }
.trust-note { margin-top: 16px; font-size: 12px; color: #9A9590; }
.trust-card .view-profile { margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-primary-text); }

/* Practice areas */
.areas-grid-primary {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #E5DFD5;
}
@media (min-width: 768px) { .areas-grid-primary { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  width: 100%;
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  border-bottom: 1px solid #E5DFD5;
  transition: background-color 0.2s;
}
@media (min-width: 768px) {
  .area-card { padding: 40px; border-bottom: none; border-right: 1px solid #E5DFD5; }
  .area-card:last-child { border-right: none; }
}
.area-card:hover { background: #F6F4F0; }
.area-card h3 { font-size: 20px; color: #1C1A17; font-weight: 400; }
.area-card .rule-line { margin-top: 12px; height: 1px; background: #E5DFD5; overflow: hidden; }
.area-card .rule-line span { display: block; height: 100%; width: 0; background: #B1976B; transition: width 0.5s; }
.area-card:hover .rule-line span { width: 100%; }
.area-card p { margin-top: 16px; font-size: 14px; color: #6B6560; line-height: 1.6; }
.area-card .see-more {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--color-primary-text);
  transition: gap 0.2s;
}
.area-card:hover .see-more { gap: 8px; }

.areas-grid-secondary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .areas-grid-secondary { grid-template-columns: 1fr 1fr; } }
.area-card-secondary {
  padding: 24px;
  background: #F6F4F0;
  transition: background-color 0.2s;
}
.area-card-secondary:hover { background: #EDE9E2; }
.area-card-secondary h4 { font-size: 16px; color: #1C1A17; font-weight: 400; }
.area-card-secondary p { margin-top: 8px; font-size: 14px; color: #6B6560; }

/* Sub-topics grid (pillar pages) */
.subtopics-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border: 1px solid #E5DFD5;
  border-bottom: none;
  border-right: none;
}
.subtopic-card {
  width: 100%;
  text-align: left;
  padding: 24px;
  border-right: 1px solid #E5DFD5;
  border-bottom: 1px solid #E5DFD5;
  transition: background-color 0.2s;
}
.subtopic-card:hover { background: #F6F4F0; }
.subtopic-card-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.subtopic-card p.title { font-family: 'Newsreader', Georgia, serif; font-size: 16px; color: #1C1A17; transition: color 0.2s; }
.subtopic-card:hover p.title { color: var(--color-primary-text); }
.subtopic-card p.desc { margin-top: 4px; font-size: 12px; color: #9A9590; }
.subtopic-card svg.arrow { color: #D5CFCA; margin-top: 4px; flex-shrink: 0; transition: color 0.2s; }
.subtopic-card:hover svg.arrow { color: #B1976B; }

/* FAQ */
.faq { border-top: 1px solid transparent; }
.faq-item { border-bottom: 1px solid #E5DFD5; }
.faq-item:first-child { border-top: 1px solid #E5DFD5; }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  text-align: left;
}
.faq-question span {
  font-size: 14px; font-weight: 500; padding-right: 24px; color: #1C1A17;
  transition: color 0.2s;
}
.faq-question:hover span { color: var(--color-primary-text); }
.faq-item.open .faq-question span { color: var(--color-primary-text); }
.faq-question svg { color: #B1976B; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding-bottom: 20px; font-size: 14px; color: #6B6560; line-height: 1.6; }

/* Contact info page */
.contact-info-item { }
.contact-info-item .label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #9A9590;
  margin-bottom: 8px;
}
.contact-map-box {
  aspect-ratio: 16/9;
  background: #F6F4F0; border: 1px solid #E5DFD5;
  display: flex; align-items: center; justify-content: center;
}
.contact-map-box .inner { text-align: center; }
.contact-map-box svg { margin: 0 auto 8px; color: #B1976B; }
.contact-map-box p { font-size: 12px; color: #9A9590; }

/* Footer */
.site-footer { background: #1C1A17; padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-logo-img { height: 36px; width: auto; }
.footer-logo .logo-word { color: #fff; }
.footer-logo .logo-sub { color: #6B6560; }
.footer-desc { font-size: 14px; color: #6B6560; line-height: 1.6; }
.footer-heading {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #B1976B;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-links button {
  font-size: 14px; color: #6B6560; text-align: left; transition: color 0.2s;
}
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-contact-list { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact-list svg { color: #B1976B; margin-top: 2px; flex-shrink: 0; }
.footer-contact-list a, .footer-contact-list span { font-size: 14px; color: #6B6560; }
.footer-contact-list a:hover { color: #fff; }
.footer-hours p { margin: 0; font-size: var(--fs-sm); color: var(--color-text-secondary); }
.footer-bottom {
  border-top: 1px solid #2A2825;
  padding-top: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 12px; color: var(--color-text-on-dark); }
.footer-credit { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-on-dark); }
.footer-credit img { height: 20px; width: auto; }
.footer-credit a:hover img, .footer-credit a:visited img { border: none; }

/* Breadcrumb */
.breadcrumb { border-bottom: 1px solid #E5DFD5; background: #F6F4F0; }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9A9590; }
.breadcrumb a, .breadcrumb button { transition: color 0.2s; }
.breadcrumb a:hover, .breadcrumb button:hover { color: var(--color-primary-text); }
.breadcrumb .current { color: #1C1A17; }

main { padding-top: 64px; }

/* Page hero (inner pages) */
.page-hero { background: #fff; padding: 48px 0; }
@media (min-width: 1024px) { .page-hero { padding: 80px 0; } }
.page-hero .container { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .page-hero .container { grid-template-columns: 1fr 1fr; } }
.page-hero h1 { margin-top: 16px; font-weight: 400; line-height: 1.08; font-size: clamp(2rem, 4.5vw, 3.5rem); color: #1C1A17; }
.page-hero p { margin-top: 24px; font-size: 16px; color: #6B6560; line-height: 1.6; }
.page-hero .btn { margin-top: 32px; }
.page-hero-image .frame { aspect-ratio: 4/3; background: #F6F4F0; overflow: hidden; opacity: 0; transition: opacity 0.9s ease 400ms; }
@media (min-width: 1024px) { .page-hero-image .frame { aspect-ratio: 16/10; } }
.page-hero.entrance-in .page-hero-image .frame { opacity: 1; }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Lawyer block card */
.lawyer-card {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 24px;
  background: #fff; border: 1px solid #E5DFD5;
  max-width: 384px; text-align: left;
  transition: border-color 0.2s;
}
.lawyer-card:hover { border-color: #B1976B; }
.lawyer-card .avatar { width: 64px; height: 64px; background: #F6F4F0; overflow: hidden; flex-shrink: 0; }
.lawyer-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lawyer-card .name { font-family: 'Newsreader', Georgia, serif; font-size: 17px; color: #1C1A17; transition: color 0.2s; }
.lawyer-card:hover .name { color: #B1976B; }
.lawyer-card .role { font-size: 12px; color: #9A9590; margin-top: 2px; }
.lawyer-card .view-profile { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-primary-text); }

/* CTA dark band */
.cta-band { padding: 64px 0; background: #1C1A17; text-align: center; }
.cta-band p.title { font-family: 'Newsreader', Georgia, serif; font-weight: 400; color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p.subtitle { margin-top: 8px; font-size: 14px; color: #6B6560; }
.cta-band .cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-band .btn-outline { border-color: #3E3C39; color: #fff; }
.cta-band .btn-outline:hover { border-color: #B1976B; color: #fff; }

/* Steps list (process) */
.steps-list { margin-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.step-item { display: flex; gap: 20px; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--color-primary-text);
  border: 1px solid #B1976B;
}
.step-title { font-size: 14px; font-weight: 500; color: #1C1A17; }
.step-desc { margin-top: 4px; font-size: 14px; color: #6B6560; line-height: 1.6; }

/* Article (blog) */
.article { max-width: 672px; margin: 0 auto; padding: 80px 24px; }
@media (min-width: 1024px) { .article { padding: 80px 48px; } }
.article h1 { margin-top: 16px; font-weight: 400; line-height: 1.1; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #1C1A17; }
.article-byline { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.article-byline .avatar { width: 36px; height: 36px; background: #F6F4F0; overflow: hidden; flex-shrink: 0; }
.article-byline .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.article-byline button { font-size: 14px; color: #6B6560; transition: color 0.2s; }
.article-byline button:hover { color: #B1976B; }
/* Variante con nombre + rol en dos líneas (ej. trust-card del home), en vez del link de una sola línea que usan las páginas de artículo. */
.article-byline .name { font-size: 15px; color: #1C1A17; }
.article-byline .role { margin-top: 2px; }
.article-body { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.article-body h2 { font-size: 20px; font-weight: 400; color: #1C1A17; padding-top: 16px; }
.article-body p { font-size: 16px; color: #6B6560; line-height: 1.6; }
.article-callout {
  margin: 8px 0; padding: 24px;
  border-left: 4px solid #B1976B; background: #F6F4F0;
}
.article-callout p {
  margin-top: 12px; font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 18px; color: #1C1A17;
  line-height: 1.5;
}
.article-callout .link {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--color-primary-text); transition: gap 0.2s;
}
.article-callout .link:hover { gap: 8px; }
.article-footnote { padding-top: 32px; border-top: 1px solid #E5DFD5; }
.article-footnote p { font-size: 14px; color: #9A9590; font-style: italic; line-height: 1.6; }
.article-footnote .btn { margin-top: 24px; }

/* Divider */
.divider { margin: 48px 0; height: 1px; background: #E5DFD5; }

/* Profile page */
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .profile-grid { grid-template-columns: 300px 1fr; } }
@media (min-width: 1280px) { .profile-grid { grid-template-columns: 340px 1fr; } }
.profile-photo { aspect-ratio: 3/4; background: #F6F4F0; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.profile-facts { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.profile-facts dt { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #9A9590; }
.profile-facts dd { font-size: 14px; color: #1C1A17; margin-top: 2px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.profile-tags a, .profile-tags button {
  display: inline-block; font-size: 12px; padding: 4px 10px; background: #F6F4F0; color: #6B6560;
  text-decoration: none; transition: color 0.2s, background-color 0.2s;
}
.profile-tags a:hover, .profile-tags button:hover { color: var(--color-primary-text); background: #EDE9E2; }
.profile-bio { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.profile-bio p { font-size: 16px; color: #6B6560; line-height: 1.6; }
.profile-section { margin-top: 40px; }
.profile-section h2 { font-size: 16px; font-weight: 400; color: #1C1A17; }
.profile-cta { margin-top: 40px; }

/* Team grid (nosotros) */
.team-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.team-card {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid #E5DFD5; overflow: hidden;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: #B1976B; }
.team-card .photo { display: block; aspect-ratio: 4/3; background: #F6F4F0; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s; }
.team-card:hover .photo img { transform: scale(1.03); }
.team-card .body { padding: 20px; }
.team-card .name { font-family: 'Newsreader', Georgia, serif; font-size: 17px; color: #1C1A17; transition: color 0.2s; }
.team-card:hover .name { color: #B1976B; }
.team-card .role { font-size: 12px; color: #9A9590; margin-top: 4px; }
.team-card .view-profile { margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-primary-text); }

/* About text block */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: flex-start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.about-text p { font-size: 16px; color: #6B6560; line-height: 1.6; }
.about-image { aspect-ratio: 4/5; background: #F6F4F0; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2.items-start { align-items: start; }
.grid-2.items-center { align-items: center; }

.faq-narrow { max-width: 768px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════════════
   Utility & component classes — base para eliminar estilos inline.
   Generadas a partir del inventario de `style="..."` de las 27 páginas.
   Ningún HTML fue modificado en este paso; estas clases quedan listas
   para reemplazar los patrones inline en el siguiente paso.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Utilidades de texto ──────────────────────────────────────────────── */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-default { color: var(--color-text); }
.italic { font-style: italic; }
.link-inline { color: var(--color-primary); text-decoration: underline; }

/* ── Utilidades de tamaño de fuente (escala --fs-*) ───────────────────── */
.fs-2xs { font-size: var(--fs-2xs); }
.fs-xs { font-size: var(--fs-xs); }
.fs-sm { font-size: var(--fs-sm); }
.fs-md { font-size: var(--fs-md); }
.fs-lg { font-size: var(--fs-lg); }
.fs-xl { font-size: var(--fs-xl); }
.fs-2xl { font-size: var(--fs-2xl); }

/* ── Utilidades de line-height ────────────────────────────────────────── */
.lh-tight { line-height: var(--lh-tight); }
.lh-body { line-height: var(--lh-body); }

/* ── Utilidades de layout ─────────────────────────────────────────────── */
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.hidden { display: none; }
.max-w-narrow { max-width: 640px; }
.pt-0 { padding-top: 0; }

/* ── Utilidades de espaciado (escala --space-*) ───────────────────────── */
.mt-8 { margin-top: var(--space-1); }
.mt-12 { margin-top: var(--space-2); }
.mt-16 { margin-top: var(--space-3); }
.mt-20 { margin-top: var(--space-4); }
.mt-24 { margin-top: var(--space-5); }
.mt-32 { margin-top: var(--space-6); }
.mt-40 { margin-top: var(--space-7); }
.mt-48 { margin-top: var(--space-8); }
.mt-64 { margin-top: var(--space-9); }

.mb-8 { margin-bottom: var(--space-1); }
.mb-12 { margin-bottom: var(--space-2); }
.mb-20 { margin-bottom: var(--space-4); }
.mb-24 { margin-bottom: var(--space-5); }

.gap-4 { gap: 4px; }
.gap-16 { gap: var(--space-3); }
.gap-20 { gap: var(--space-4); }
.gap-32 { gap: var(--space-6); }

/* ── Componentes: tipografía de bloque ─────────────────────────────────
   Reemplazan el H1 inline repetido de páginas de servicio/artículo/perfil.
   Combinar con .serif y con un .mt-* para el margin-top (varía según página). */
.h1-page { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.h1-page-sm { font-size: var(--fs-h1-sm); line-height: var(--lh-tight); }

/* Párrafo de cuerpo estándar (explicación simple, bio, about-text, etc.)
   Combinar con un .mt-* para el espaciado respecto al elemento anterior. */
.text-body { font-size: var(--fs-md); color: var(--color-text-secondary); line-height: var(--lh-body); }

/* Nota / texto secundario más pequeño (notas al pie de bloque, avisos). */
.text-note { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--lh-body); }

/* Texto pequeño tipo "leyenda" (ej. nota de "Próximamente" en páginas pilares). */
.text-caption { font-size: 13px; color: var(--color-text-muted); }

/* ── Componente: badge de borrador ─────────────────────────────────────
   Ej. index.html, bloque FAQ del home marcado "Borrador, sujeto a confirmación". */
.badge-draft {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-text);
  background: var(--color-bg-cream);
  border: 1px solid var(--color-primary);
}

/* ── Componente: CTA callout "plano" (bloque 5 de página de servicio) ──
   Modificador de .article-callout: sin borde izquierdo, fondo crema,
   padding propio. Ver pension.html y el resto de páginas de servicio. */
.article-callout-plain { border-left: none; background: var(--color-bg-cream); padding: 32px 40px; text-align: center; }
.callout-title { font-size: var(--fs-xl); margin-top: 0; }
.callout-subtitle {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  font-weight: normal;
  font-family: var(--font-sans);
  font-style: normal;
}
/* Modificador de .cta-actions para alinear a la izquierda en vez de centrado
   (el default de .cta-band .cta-actions es centrado). */
.cta-actions-left { justify-content: flex-start; }

/* ── Componente: fila de tarjeta(s) de abogado especialista ─────────────
   Contenedor de uno o más .lawyer-card en páginas pilares/placeholder
   (familia.html, laboral.html, civil.html, migratorio.html). */
.lawyer-card-group { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Contact form (reinstaurado) */
.form-box { border: 1px solid #E5DFD5; padding: 32px; }
.form-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.form-step-dot {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
  border-radius: 50%;
  background: #F6F4F0; color: #9A9590;
  transition: background-color 0.2s, color 0.2s;
}
.form-step-dot.active, .form-step-dot.done { background: #B1976B; color: #fff; }
.form-step-line { width: 24px; height: 1px; background: #E5DFD5; transition: background-color 0.2s; }
.form-step-line.done { background: #B1976B; }
.form-step-label { margin-left: 8px; font-size: 12px; color: #9A9590; }

.form-field { display: block; }
.form-field .field-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6560;
}
.form-field input, .form-field select, .form-field textarea {
  margin-top: 8px; width: 100%;
  border: 0; border-bottom: 1px solid #E5DFD5;
  padding: 8px 0;
  font-size: 14px; color: #1C1A17;
  background: transparent;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #B1976B; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #C5BFB5; }
.form-field textarea { resize: none; }
.form-step-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms cubic-bezier(0.4,0,0.2,1), transform 180ms cubic-bezier(0.4,0,0.2,1);
}
.form-step-panel.active { display: block; }
.form-step-panel.active.in { opacity: 1; transform: translateY(0); }
.form-actions { display: flex; gap: 12px; margin-top: 32px; }
.form-actions .btn-back {
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  color: #6B6560; border: 1px solid #E5DFD5;
  transition: border-color 0.2s, color 0.2s;
}
.form-actions .btn-back:hover { border-color: #B1976B; color: #B1976B; }
.form-actions .btn-submit { flex: 1; text-align: center; justify-content: center; }
.form-success { text-align: center; padding: 48px 0; display: none; }
.form-success.show { display: block; }
.form-success svg { margin: 0 auto 16px; color: #B1976B; }
.form-success p.title { font-size: 18px; font-weight: 400; color: #1C1A17; font-family: 'Newsreader', Georgia, serif; }
.form-success p.subtitle { margin-top: 8px; font-size: 14px; color: #6B6560; }
/* #form-success receives programmatic focus (tabindex="-1") once the form
   completes, same pattern as #main-content above — no bronze ring around
   the whole confirmation block. */
#form-success:focus {
  outline: none;
}
.contact-form.done .form-step-panel.active,
.contact-form.done .form-steps,
.contact-form.done .form-actions { display: none; }
