/* =========================================================
   Segura Abogados — Sitio web
   HTML + CSS + JS puro (sin frameworks)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

:root {
  --ink: #0A0A0A;
  --ink-800: #2B2826;
  --ink-700: #4A4744;
  --ink-600: #6B6764;
  --ink-500: #8C8884;
  --ink-300: #C9C4BD;
  --paper: #F6F4F0;
  --paper-pure: #FFFFFF;

  --accent-terracotta: #D77342;
  --accent-navy: #376593;
  --accent-stone: #968D84;
  --accent-walnut: #836356;
  --accent-sienna: #A6735C;
  --accent-olive: #A49B79;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-pure);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Shared primitives ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-700);
}

.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  transition: all 160ms var(--ease);
}
.btn:hover { background: var(--ink-800); border-color: var(--ink-800); }

.btn--inverse { background: #fff; color: var(--ink); border-color: #fff; }
.btn--inverse:hover { background: rgba(255,255,255,0.88); }

.btn--ghost {
  background: transparent; color: var(--ink); border-color: transparent;
  padding: 14px 0; border-bottom: 1px solid var(--ink); border-radius: 0;
}
.btn--ghost:hover { background: transparent; opacity: 0.7; }

/* ---------- Navigation ---------- */
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(10,10,10,0.08);
  transition: background 240ms var(--ease), border-color 240ms var(--ease);
}
.nav--dark {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.1);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__brand img { height: 36px; }
.nav__brand-logo-dark { display: none; }
.nav--dark .nav__brand-logo-light { display: none; }
.nav--dark .nav__brand-logo-dark { display: block; }
.nav__brand span {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink);
}
.nav--dark .nav__brand span { color: #fff; }

.nav__links { display: flex; gap: 32px; margin-left: auto; align-items: center; }
.nav__links a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.nav--dark .nav__links a { color: #fff; }
.nav__links a:hover { opacity: 0.65; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  margin-top: -72px;
  background: url('assets/bellas-artes-bw.png') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.9) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 88px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 16px;
  text-wrap: pretty;
}
.hero h1 em { font-weight: 400; }
.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-top: 28px;
}
.hero__actions { display: flex; gap: 14px; margin-top: 36px; align-items: center; }
.hero .btn--ghost { color: #fff; border-bottom-color: #fff; }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 48px; }
.section--paper { background: var(--paper); }
.section--white { background: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 16px 0 72px;
  max-width: 720px;
}
.section h2 em { font-weight: 400; }

/* ---------- Practice grid ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  row-gap: 64px;
}
.practice-card { cursor: pointer; }
.practice-card__disc {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 72px; font-weight: 600; line-height: 1;
  color: #fff;
  margin-bottom: 24px;
  transition: transform 240ms var(--ease);
}
.practice-card:hover .practice-card__disc { transform: translateY(-6px); }
.practice-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
  margin-top: 12px;
  max-width: 320px;
}
.practice-card__more {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  width: fit-content;
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 72px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.stats__k {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats__l {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
}

/* ---------- Pull quote ---------- */
.pullquote { max-width: 900px; margin: 0 auto; }
.pullquote blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 44px;
  line-height: 1.25;
  position: relative;
  padding-left: 40px;
}
.pullquote blockquote::before {
  content: '\201C';
  position: absolute; left: 0; top: -24px;
  font-size: 96px; color: var(--ink-300); line-height: 1;
}
.pullquote__cite {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 32px;
  padding-left: 40px;
  color: var(--ink-700);
}

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.team-card__photo {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #C9C4BD 0%, #8C8884 100%);
  filter: grayscale(1);
  display: flex; align-items: flex-end; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 14px; font-style: italic;
  padding: 16px;
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin-top: 16px;
}
.team-card__role {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-600);
  margin-top: 6px;
}
.team-card__office { font-size: 13px; color: var(--ink-500); margin-top: 4px; }

/* ---------- Practice detail ---------- */
.detail { padding: 72px 48px 120px; background: #fff; }
.detail__back {
  background: none; border: none; padding: 0;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 40px; color: var(--ink);
}
.detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.detail__disc {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 56px; font-weight: 600; line-height: 1;
  margin-bottom: 32px;
}
.detail h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 14px 0 32px;
}
.detail__lead { font-size: 20px; line-height: 1.55; max-width: 680px; }
.detail__body { font-size: 16px; line-height: 1.65; color: var(--ink-700); max-width: 680px; margin-top: 24px; }
.detail__cta { margin-top: 56px; }
.detail__aside { background: var(--paper); padding: 32px; }
.detail__aside ul { list-style: none; margin-top: 20px; }
.detail__aside li {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-800);
  padding: 10px 0;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}

/* ---------- Contact ---------- */
.contact { padding: 120px 48px; background: var(--paper); min-height: 60vh; }
.contact__inner { max-width: 720px; margin: 0 auto; }
.contact h2 { font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1.1; margin: 16px 0 40px; }
.contact p { font-size: 18px; line-height: 1.55; color: var(--ink-700); margin-bottom: 48px; }
.contact form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: span 2; }
.field span {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-600);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(10,10,10,0.14);
  background: #fff;
  border-radius: 4px;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 96px 48px 40px; }
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__logo { display: flex; justify-content: center; margin-bottom: 64px; }
.footer__logo img { height: 100px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 48px;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer__col a { display: block; font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 56px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ---------- View toggling ---------- */
[hidden] { display: none !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .detail__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 60px; }
}
@media (max-width: 680px) {
  .nav { padding: 0 24px; gap: 16px; }
  .nav__links { gap: 16px; }
  .nav__links a { display: none; }
  .section { padding: 72px 24px; }
  .hero { padding: 0 24px 56px; }
  .hero h1 { font-size: 44px; }
  .section h2 { font-size: 38px; }
  .practice-grid, .team-grid, .stats, .footer__cols { grid-template-columns: 1fr; }
  .contact form { grid-template-columns: 1fr; }
  .field--full { grid-column: span 1; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
