/* Variante C — Moderna: hero bold con foto grande, neutros cálidos */
:root {
  --ink: #2a2420;
  --warm: #3d342c;
  --sand: #e8dfd2;
  --cream: #f7f2eb;
  --clay: #c4a484;
  --terracotta: #a67c52;
  --muted: #7a6e62;
  --white: #fffcf8;
  --line: #ddd4c8;
  --serif: "Fraunces", "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --text: 1.25rem; /* ~20px body */
  --text-sm: 1.125rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: var(--text); line-height: 1.7; color: var(--ink); background: var(--cream); font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--warm); text-underline-offset: 0.2em; }
a:hover { color: var(--terracotta); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.placeholder { background: rgba(166,124,82,0.15); color: #7a5a38; padding: 0.08em 0.35em; border-radius: 3px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; background: transparent; }
.site-header.is-solid { background: rgba(247,242,235,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--white); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.logo:hover { color: var(--sand); }
.logo-mark { width: 36px; height: 36px; }
.logo-text { display: none; }
@media (min-width: 480px) { .logo-text { display: inline; } }
/* When scrolled past hero, header may sit on cream — keep contrast via dark logo on non-hero; for simplicity use cream bg after sticky conversion */
.site-header { position: sticky; background: rgba(42,36,32,0.55); backdrop-filter: blur(10px); }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 2.5rem; height: 2.5rem; padding: 0.5rem; border: 1px solid rgba(255,255,255,0.3); background: transparent; cursor: pointer; border-radius: 6px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); }
.nav-links { display: none; list-style: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: 1rem var(--pad) 1.25rem; }
.nav-links.is-open { display: flex; }
.nav-links a { color: var(--sand); text-decoration: none; padding: 0.55rem 0; font-size: 1rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; position: static; flex-direction: row; gap: 1.75rem; padding: 0; background: transparent; }
  .nav-links a { padding: 0; }
}

/* Bold split hero with large photo */
.hero { background: var(--ink); color: var(--white); padding: 0; overflow: hidden; }
.hero-grid { display: grid; min-height: min(92vh, 820px); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: min(88vh, 760px); }
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(5.5rem, 12vw, 7rem) var(--pad) clamp(3rem, 8vw, 5rem); max-width: 40rem; }
@media (min-width: 900px) {
  .hero-copy { padding: 5.5rem 3.25rem 5rem clamp(2rem, 5.5vw, 4.5rem); margin-left: auto; width: 100%; max-width: 620px; }
}
.hero-eyebrow { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); font-weight: 600; margin-bottom: 1.15rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.85rem, 6vw, 4.15rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 0.7rem; color: #fff; }
.hero-tagline { font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--sand); font-weight: 500; margin-bottom: 1.4rem; line-height: 1.35; }
.hero-lead { color: rgba(255,252,248,0.72); margin-bottom: 2.1rem; font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-photo { position: relative; min-height: 420px; background: var(--warm); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; position: absolute; inset: 0; }
@media (min-width: 900px) {
  .hero-photo { min-height: 100%; }
}
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42,36,32,0.35), transparent 40%); pointer-events: none; }
@media (min-width: 900px) {
  .hero-photo::after { background: linear-gradient(to right, rgba(42,36,32,0.45), transparent 35%); }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.95rem 1.7rem; font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0.015em; text-decoration: none; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: 0.2s ease; }
.btn-primary { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-primary:hover { background: #b8895c; color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,252,248,0.35); }
.btn-ghost:hover { border-color: var(--clay); color: var(--sand); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe57; color: #fff; }
.btn-whatsapp.is-placeholder { opacity: 0.85; }
.btn-whatsapp .placeholder-badge { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(0,0,0,0.22); padding: 0.15rem 0.4rem; border-radius: 999px; margin-left: 0.3rem; }

.section { padding: clamp(3.75rem, 9vw, 6.25rem) 0; }
.section-alt { background: var(--white); }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.85rem; }
.section h2 { font-family: var(--serif); font-size: clamp(2.35rem, 4.6vw, 3.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 1.15rem; }
.section-intro { max-width: 44rem; color: var(--muted); margin-bottom: 2.35rem; font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.7; }

/* Perfil: stock as barely-visible wash behind text — prominent type */
.section-perfil {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: clamp(5rem, 12vw, 8.5rem) 0;
  min-height: min(78vh, 820px);
  display: flex;
  align-items: center;
}
.perfil-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.perfil-wash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.08;
  filter: grayscale(0.12) contrast(0.95);
}
.perfil-content {
  position: relative;
  z-index: 1;
}
.section-perfil .section-label {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.section-perfil h2 {
  font-size: clamp(2.75rem, 5.5vw, 3.65rem);
  margin-bottom: 1.5rem;
}
.prose-perfil {
  max-width: 58rem; /* ~928px — fills more of the container */
}

/* Shared section imagery (Contacto) */
.section-media { margin: 0; }
.media-frame {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(42,36,32,0.1);
  background: var(--sand);
}
.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.prose p + p { margin-top: 1.2rem; }
.prose .profile-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.8vw, 3.35rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
}
.prose .profile-title + p { margin-top: 1.5rem; }
.prose p { font-size: var(--text); line-height: 1.7; }
.prose-perfil p:not(.profile-title) {
  font-size: 1.375rem; /* 22px */
  line-height: 1.72;
  max-width: 58rem;
}
.prose-perfil p + p { margin-top: 1.45rem; }
.prose-perfil a {
  color: var(--warm);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}
.prose-perfil a:hover { color: var(--ink); }


.practice-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .practice-grid { grid-template-columns: 1fr 1fr; gap: 1.35rem; } }
.practice-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.65rem 1.55rem 1.55rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.section-alt .practice-card { background: var(--cream); }
.practice-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(42,36,32,0.08); }
.practice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.practice-num {
  font-family: var(--sans);
  font-size: clamp(2.15rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--terracotta);
}
.practice-icon {
  width: 3rem;
  height: 3rem;
  color: var(--terracotta);
  flex-shrink: 0;
}
.practice-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.practice-card p { color: var(--muted); font-size: clamp(1.1rem, 1.35vw, 1.2rem); line-height: 1.65; flex: 1; }

.timeline { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; max-width: 42rem; }
.timeline-item { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem 1.5rem 1.5rem 1.75rem; border-left: 4px solid var(--clay); }
.timeline-item::before { display: none; }
.timeline-item h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.timeline-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.5rem; font-weight: 500; }
.timeline-item p { color: var(--muted); }

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; } }
.contact-grid--media { align-items: stretch; }
@media (min-width: 800px) {
  .contact-grid--media { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.contact-media { height: 100%; min-height: 0; }
.contact-media .media-frame {
  height: 100%;
  min-height: 420px;
}
.contact-media .media-frame img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 35%;
}
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 100%;
  width: 100%;
}
.contact-body .contact-details { margin: 0; width: 100%; }
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}
.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0;
}
.contact-details a {
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
}
.contact-details li > span:not(.contact-label) {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.contact-card {
  background: linear-gradient(145deg, var(--ink), var(--warm));
  color: var(--white);
  padding: 2rem 1.85rem;
  border-radius: 1.25rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto; /* pin to bottom, align with image foot */
}
.contact-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #fff;
}
.contact-card p {
  color: rgba(255,252,248,0.72);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.contact-card .btn { width: 100%; margin-bottom: 0.7rem; box-sizing: border-box; }
.contact-card .btn:last-of-type { margin-bottom: 0; }
.contact-note {
  font-size: 0.95rem;
  color: rgba(255,252,248,0.7);
  line-height: 1.5;
  margin-top: 0.85rem;
  margin-bottom: 0;
}
.contact-note a { color: rgba(255,252,248,0.85); text-decoration: none; }
.contact-note a:hover { color: var(--clay); }
@media (max-width: 799px) {
  .contact-media .media-frame,
  .contact-media .media-frame img { min-height: 320px; aspect-ratio: 4 / 5; height: auto; }
  .contact-card { margin-top: 0.5rem; }
}

.site-footer { background: var(--ink); color: rgba(255,252,248,0.5); padding: 2.75rem 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 2rem; }
}
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: rgba(255,252,248,0.9); font-weight: 600; }
.footer-brand span { display: block; font-family: var(--sans); font-size: 0.9rem; font-weight: 400; color: var(--clay); margin-top: 0.3rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  color: rgba(255,252,248,0.75); border: 1px solid rgba(255,252,248,0.22);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.social-link:hover { color: var(--clay); border-color: var(--clay); background: rgba(196,164,132,0.08); }
.footer-meta { display: flex; flex-direction: column; gap: 0.55rem; }
@media (min-width: 700px) { .footer-meta { text-align: right; align-items: flex-end; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.45rem 0.65rem; align-items: center; font-size: 0.92rem; }
.footer-legal a { color: rgba(255,252,248,0.7); text-decoration: none; }
.footer-legal a:hover { color: var(--clay); }
.footer-sep { color: rgba(255,252,248,0.35); }
.footer-copy { margin: 0; color: rgba(255,252,248,0.78); font-size: 0.95rem; }
.footer-loc { margin: 0; font-size: 0.82rem; color: rgba(255,252,248,0.45); }
.site-header--solid { background: rgba(42,36,32,0.92); backdrop-filter: blur(10px); }
.page-legal { padding: 6.5rem 0 4rem; }
.page-legal .prose { max-width: 42rem; }
.page-legal h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; color: var(--ink); margin: 0 0 1.5rem; letter-spacing: -0.02em; }
.page-legal h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.75rem; }
.page-legal p, .page-legal li { font-size: 1.1rem; line-height: 1.7; color: var(--warm); }
.page-legal ul { padding-left: 1.25rem; margin: 0.75rem 0 0; }
.page-legal li { margin-bottom: 0.55rem; }
.page-legal a { color: var(--terracotta); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.areas-cta {
  margin-top: 2.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.15rem;
}
.areas-cta a { font-weight: 600; text-decoration: none; color: var(--ink); }
.areas-cta a:hover { color: var(--terracotta); }

/* social icons: ochre, visible */
.site-footer .footer-social a.social-link, footer .footer-social a.social-link { color: #c4a484 !important; border: 1px solid rgba(196,164,132,0.55) !important; opacity: 1 !important; }
footer .footer-social a.social-link svg { fill: currentColor; opacity: 1 !important; }
footer .footer-social a.social-link:hover { color: #fffcf8 !important; border-color: #fffcf8 !important; background: rgba(196,164,132,0.15) !important; }
