/* ============================================================
   JCV — Juan Camilo Valencia González
   jcvalencia.co — Dark Luxury Legal Brand
   Design: Zolvi AI Group
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --dark:         #0C2340;
  --dark-2:       #091B30;
  --dark-3:       #071526;
  --dark-4:       #050F1C;
  --navy:         #162D52;
  --gold:         #9B7A4B;
  --gold-l:       #C4A87A;
  --gold-dim:     rgba(155, 122, 75, 0.12);
  --gold-border:  rgba(155, 122, 75, 0.25);
  --cream:        #F4F1EC;
  --surface:      #E8E4DB;
  --text-muted:   rgba(244, 241, 236, 0.42);
  --text-mid:     rgba(244, 241, 236, 0.68);
  --border:       rgba(155, 122, 75, 0.18);
  --border-subtle: rgba(244, 241, 236, 0.07);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Cormorant Garamond', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;

  --ease:         cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in:      cubic-bezier(0.55, 0, 1, 0.45);

  --nav-h:        80px;
  --section-pad:  clamp(5rem, 10vw, 9rem);
  --max-w:        1200px;
  --max-w-text:   680px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Grain Texture ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography Scale ────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.label--light { color: var(--text-muted); }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-bottom 0.4s;
}
.nav.scrolled {
  background: rgba(12, 35, 64, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__logo svg {
  height: 38px;
  width: auto;
  color: var(--gold);
  flex-shrink: 0;
}
.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 4px;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.nav__logo-sub {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.25s;
  position: relative;
}
.nav__link:hover, .nav__link.active { color: var(--cream); }
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 1px;
  background: var(--gold);
}

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--dark-3);
  border: 1px solid var(--border);
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu,
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
/* Transparent bridge over the 12px gap so the hover doesn't break */
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav__dropdown-item {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.65rem 1rem;
  transition: color 0.2s, background 0.2s;
}
.nav__dropdown-item:hover { color: var(--gold); background: var(--gold-dim); }

.nav__cta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(244,241,236,0.28);
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.nav__cta:hover { background: var(--cream); color: var(--dark); transform: translateY(-1px); }

/* Mobile menu toggle */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding-top: var(--nav-h);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav__overlay.open { display: flex; opacity: 1; }
.nav__overlay-link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--cream);
  padding: 0.6rem 2rem;
  transition: color 0.2s;
}
.nav__overlay-link:hover { color: var(--gold); }
.nav__overlay-divider {
  width: 40px; height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.nav__overlay-cta {
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--cream);
  padding: 1rem 2.5rem;
}

/* ── Credentials Marquee ─────────────────────────────────── */
.marquee {
  background: var(--gold-dim);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}
.marquee__item::after {
  content: '·';
  color: var(--gold-border);
  font-size: 1.2rem;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 680px;
}
.hero__label {
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 0.15em;
}
.hero__name em {
  display: block;
  font-style: italic;
  font-weight: 800;
  color: var(--cream);
}
.hero__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: var(--gold-l);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.hero__body {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--cream);
  color: var(--dark);
}
.btn--primary::before { background: var(--surface); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12,35,64,0.18); }

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn--outline::before { background: rgba(245,242,237,0.04); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding-left: 0;
}
.btn--ghost:hover { gap: 0.875rem; }

/* Hero photo panel */
.hero__photo {
  position: relative;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 35%);
  z-index: 1;
}
.hero__photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
  z-index: 1;
}

/* ── Section Base ────────────────────────────────────────── */
.section {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem);
}
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section__header--center { text-align: center; }
.section__header--center .section__rule {
  margin: 1.25rem auto;
}
.section__pretitle {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.section__rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: var(--cream);
}
.section__title em {
  font-style: italic;
  font-weight: 800;
  color: inherit;
}
.section__sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-mid);
  margin-top: 0.75rem;
  max-width: var(--max-w-text);
}

/* ── Practice Area Cards ─────────────────────────────────── */
.practices { background: var(--cream); }
.practices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.practice-card {
  background: var(--dark-3);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease);
  border-top: 2px solid transparent;
  display: flex;
  flex-direction: column;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.practice-card:hover { background: var(--dark-4); }
.practice-card:hover::before { transform: scaleX(1); }

.practice-card__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.35s;
}
.practice-card:hover .practice-card__num { color: rgba(155,122,75,0.2); }
.practice-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.practice-card__body {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.75rem;
}
.practice-card__link {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s var(--ease);
  margin-top: auto;
}
.practice-card:hover .practice-card__link { gap: 0.875rem; }
.practice-card__link svg { width: 14px; height: 14px; }

/* ── About Strip ─────────────────────────────────────────── */
.about-strip { background: var(--dark); }
.about-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-strip__photo {
  position: relative;
}
.about-strip__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}
.about-strip__photo::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.about-strip__photo-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--border);
  z-index: -1;
}
.about-strip__content .section__pretitle { margin-bottom: 1.75rem; }
.about-strip__body {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-strip__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--cream);
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
.about-strip__credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}
.credential {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-mid);
}
.credential__dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

/* ── Differentiators ─────────────────────────────────────── */
.differentiators { background: var(--surface); }
.differentiators__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.diff-item {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: border-color 0.3s;
}
.diff-item:hover { border-color: var(--border); }
.diff-item__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.diff-item__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.diff-item__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
}
.stats__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.5);
}

/* ── Testimonial / Quote ─────────────────────────────────── */
.testimonial {
  background: var(--surface);
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--cream);
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto 2rem;
}
.testimonial__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}
.testimonial__source {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,58,143,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.cta-section__body {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.cta-section__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-section__divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.cta-section__divider::before,
.cta-section__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.cta-section__divider span {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq { background: var(--cream); }
.faq__list {
  max-width: 780px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq__item:first-child { border-top: 1px solid var(--border-subtle); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.25s;
}
.faq__q:hover { color: var(--gold); }
.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, transform 0.35s var(--ease);
}
.faq__item.open .faq__icon { border-color: var(--gold); transform: rotate(45deg); }
.faq__icon svg { width: 10px; height: 10px; color: var(--gold); }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq__item.open .faq__a { max-height: 600px; }
.faq__a-inner {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  padding-bottom: 1.5rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark-2);
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 3.5rem) 2rem;
  border-top: 1px solid var(--border);
}
.footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  position: relative; z-index: 1;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
}
.footer__brand .nav__logo { margin-bottom: 1.25rem; }
.footer__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s;
}
.footer__social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer__social-link svg { width: 15px; height: 15px; }

.footer__col-title {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__link {
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--cream); }

.footer__contact { display: flex; flex-direction: column; gap: 0.875rem; }
.footer__contact-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.footer__contact-item svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: 0.25rem; }
.footer__contact-text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.5; }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
}
.footer__legal a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--cream); }

/* ── WhatsApp Float ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ── Cookie Banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.hidden { transform: translateY(100%); }
.cookie-banner p { font-size: 0.8125rem; color: var(--text-mid); }
.cookie-banner a { color: var(--gold); }
.cookie-btn {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  background: var(--gold);
  color: var(--dark);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.cookie-btn:hover { background: var(--gold-l); }

/* ── Page Hero (interior pages) ──────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-left: clamp(1.5rem, 5vw, 3.5rem);
  padding-right: clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.page-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  color: var(--cream);
  max-width: 700px;
  margin-bottom: 1.25rem;
}
.page-hero__sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-mid);
  max-width: 560px;
}
.page-hero__photo {
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 100%;
  overflow: hidden;
}
.page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.page-hero__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--dark-2) 0%, transparent 40%);
  z-index: 1;
}

/* ── Practice Page Layout ────────────────────────────────── */
.practice-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}
.practice-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.sidebar-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  padding: 2rem;
}
.sidebar-card + .sidebar-card { margin-top: 1.5rem; }
.sidebar-card__title {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-cta .btn { width: 100%; justify-content: center; }
.practice-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--cream);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.practice-body h2:first-child { margin-top: 0; }
.practice-body p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.practice-body ul {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.practice-body ul li {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
  display: flex;
  gap: 0.875rem;
}
.practice-body ul li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.65rem;
}

/* ── About Page ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.about-photo-stack {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.about-photo-stack img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}
.about-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--cream);
  margin-bottom: 1rem;
  margin-top: 3rem;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Credentials table */
.cred-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cred-table tr { border-bottom: 1px solid var(--border-subtle); }
.cred-table td { padding: 0.875rem 0; font-size: 0.875rem; line-height: 1.5; }
.cred-table td:first-child {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 1.5rem;
  vertical-align: top;
}
.cred-table td:last-child { color: var(--text-mid); }

/* ── Contact Page ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; gap: 1rem; }
.contact-info-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 16px; height: 16px; color: var(--gold); }
.contact-info-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-info-value { font-size: 0.9375rem; color: var(--cream); }
.contact-info-value a { transition: color 0.2s; }
.contact-info-value a:hover { color: var(--gold); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input, .form-textarea, .form-select {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--dark-3); }

/* ── Blog Page ───────────────────────────────────────────── */
.blog-coming {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3.5rem);
}
.blog-coming__num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 800;
  color: var(--dark-3);
  line-height: 1;
  margin-bottom: 1rem;
}
.blog-coming__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
}
.blog-coming__sub { font-size: 1rem; color: var(--text-mid); max-width: 480px; }

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Divider Line ────────────────────────────────────────── */
.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ══════════════════════════════════════════════════════════
   ABSTRACT BACKGROUNDS
   ══════════════════════════════════════════════════════════ */

/* Hero — arco de círculo dorado, esquina superior derecha + eco inferior izquierdo */
.hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 580px; height: 580px;
  border-radius: 50%;
  border: 1px solid rgba(155,122,75,0.12);
  box-shadow: 0 0 0 70px rgba(155,122,75,0.05), 0 0 0 160px rgba(155,122,75,0.025);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(155,122,75,0.07);
  pointer-events: none; z-index: 0;
}

/* Stats — trama de líneas diagonales finas */
.stats { position: relative; overflow: hidden; }
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -52deg,
    transparent, transparent 28px,
    rgba(155,122,75,0.04) 28px, rgba(155,122,75,0.04) 29px
  );
  pointer-events: none;
}

/* Practices (claro) — trama de puntos fina */
.practices { position: relative; overflow: hidden; }
.practices::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(12,35,64,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* About-strip (oscuro) — arco de círculo, esquina superior izquierda */
.about-strip { position: relative; overflow: hidden; }
.about-strip::before {
  content: '';
  position: absolute;
  top: -140px; left: -140px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(155,122,75,0.09);
  box-shadow: 0 0 0 90px rgba(155,122,75,0.04);
  pointer-events: none;
}

/* Differentiators (claro) — arco de círculo, esquina inferior derecha */
.differentiators { position: relative; overflow: hidden; }
.differentiators::before {
  content: '';
  position: absolute;
  bottom: -180px; right: -180px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(12,35,64,0.07);
  box-shadow: 0 0 0 80px rgba(12,35,64,0.03);
  pointer-events: none;
}

/* CTA (oscuro) — líneas diagonales sobre el glow central existente */
.cta-section::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -52deg,
    transparent, transparent 34px,
    rgba(155,122,75,0.03) 34px, rgba(155,122,75,0.03) 35px
  );
  pointer-events: none;
}

/* Testimonial (claro) — dos arcos laterales simétricos */
.testimonial { position: relative; overflow: hidden; }
.testimonial::before {
  content: '';
  position: absolute;
  top: 50%; left: -220px;
  transform: translateY(-50%);
  width: 440px; height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(12,35,64,0.07);
  box-shadow: 0 0 0 70px rgba(12,35,64,0.03);
  pointer-events: none;
}
.testimonial::after {
  content: '';
  position: absolute;
  top: 50%; right: -220px;
  transform: translateY(-50%);
  width: 440px; height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(12,35,64,0.07);
  box-shadow: 0 0 0 70px rgba(12,35,64,0.03);
  pointer-events: none;
}

/* FAQ — sin fondo decorativo (conflicto visual con bordes de acordeón) */
.faq { position: relative; overflow: hidden; }

/* Footer (oscuro) — micro trama de puntos dorados */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(155,122,75,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Page-hero interior (oscuro) — arco de círculo dorado, esquina superior derecha */
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(155,122,75,0.10);
  box-shadow: 0 0 0 60px rgba(155,122,75,0.05), 0 0 0 140px rgba(155,122,75,0.02);
  pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .differentiators__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-stack { position: static; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .practice-layout { grid-template-columns: 1fr; }
  .practice-sidebar { position: static; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__photo {
    height: 55vw;
    max-height: 420px;
    order: -1;
  }
  .hero__photo::before {
    background: linear-gradient(to bottom, var(--dark) 0%, transparent 40%);
  }
  .hero__content { padding: 2rem 1.5rem 3rem; max-width: 100%; }

  .practices__grid { grid-template-columns: 1fr; }
  .about-strip__grid { grid-template-columns: 1fr; }
  .about-strip__photo { order: -1; }
  .about-strip__photo-accent { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .differentiators__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .page-hero__photo { display: none; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .cta-section__ctas { flex-direction: column; align-items: center; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-section { background: var(--dark-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.tcard {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.3s var(--ease);
}
.tcard:hover { border-color: var(--gold-border); }

.tcard__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--gold);
}
.tcard__stars svg { width: 16px; height: 16px; }

.tcard__quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.tcard__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.tcard__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tcard__name {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tcard__role {
  font-family: var(--font-ui);
  font-size: 0.69rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── Secciones con fondo claro ───────────────────────────── */

/* Áreas de práctica */
.practices .section__title       { color: var(--dark); }
.practices .section__sub         { color: rgba(26,26,40,0.62); }
.practices .practice-card        { background: #fff; }
.practices .practice-card:hover  { background: var(--surface); }
.practices .practice-card__num   { color: rgba(12,35,64,0.07); }
.practices .practice-card:hover .practice-card__num { color: rgba(12,35,64,0.13); }
.practices .practice-card__title { color: var(--dark); }
.practices .practice-card__body  { color: rgba(26,26,40,0.68); }
.practices .practice-card__link  { color: var(--dark); }
.practices .practice-card:hover .practice-card__link { color: var(--gold); }

/* Por qué JCV */
.differentiators .section__title   { color: var(--dark); }
.differentiators .section__sub     { color: rgba(26,26,40,0.62); }
.differentiators .diff-item        { border-color: rgba(12,35,64,0.1); }
.differentiators .diff-item:hover  { border-color: rgba(12,35,64,0.22); }
.differentiators .diff-item__title { color: var(--dark); }
.differentiators .diff-item__body  { color: rgba(26,26,40,0.62); }

/* Frase de filosofía */
.testimonial .testimonial__quote  { color: var(--dark); }
.testimonial .testimonial__mark   { color: var(--gold); opacity: 0.4; }
.testimonial .testimonial__source { color: rgba(26,26,40,0.42); }

/* FAQ */
.faq .section__title    { color: var(--dark); }
.faq .faq__item         { border-bottom-color: rgba(12,35,64,0.12); }
.faq .faq__item:first-child { border-top-color: rgba(12,35,64,0.12); }
.faq .faq__q            { color: var(--dark); }
.faq .faq__q:hover      { color: var(--gold); }
.faq .faq__a-inner      { color: rgba(26,26,40,0.68); }
