:root {
  --ink: #0b1017;
  --ink-2: #121a25;
  --paper: #f4efe5;
  --paper-2: #e9dfcf;
  --white: #ffffff;
  --gold: #cba95f;
  --gold-light: #e3c77f;
  --muted: #666d76;
  --line-dark: rgba(11, 16, 23, .13);
  --line-light: rgba(255, 255, 255, .12);
  --shadow: 0 28px 70px rgba(29, 24, 14, .12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { display: block; width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 104px 0; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header.scrolled {
  background: rgba(9, 13, 19, .96);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}
.nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.identity-mark {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(227, 199, 127, .55); border-radius: 50%;
  color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: 16px;
}
.identity-text { display: grid; line-height: 1.1; }
.identity-text > span { font-family: Georgia, "Times New Roman", serif; font-size: 16px; letter-spacing: .03em; }
.identity-text small { margin-top: 5px; color: rgba(255, 255, 255, .56); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); }
.menu a { padding: 10px 13px; font-size: 14px; transition: color .2s ease, background .2s ease; }
.menu a:hover { color: var(--gold-light); }
.menu .menu-contact { margin-left: 8px; border: 1px solid rgba(227, 199, 127, .38); border-radius: 999px; color: var(--gold-light); }
.menu-button { display: none; width: 46px; height: 46px; padding: 11px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--white); transition: .25s ease; }

.hero {
  position: relative;
  min-height: 760px;
  padding: 150px 0 92px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 25%, rgba(203, 169, 95, .14), transparent 24%),
    linear-gradient(125deg, #080c12 0%, #111925 56%, #0a0f16 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 60px -70px 20px auto;
  width: min(66vw, 820px);
  background: url("../assets/balanza-juridica.svg") center / contain no-repeat;
  opacity: .34;
  filter: drop-shadow(0 28px 70px rgba(0,0,0,.18));
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .14)); pointer-events: none;
}
.hero-orbit { position: absolute; border: 1px solid rgba(227, 199, 127, .13); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 620px; height: 620px; right: -170px; top: 70px; }
.orbit-two { width: 400px; height: 400px; right: -28px; top: 178px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .72fr; gap: 80px; align-items: center; }
.kicker { margin: 0 0 15px; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.kicker-dark { color: #886b33; }
.hero h1, .section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero h1 { max-width: 900px; font-size: clamp(46px, 6.2vw, 86px); line-height: .97; letter-spacing: -.035em; }
.hero h1 span { color: var(--gold-light); }
.lawyer { margin: 26px 0 0; color: rgba(255, 255, 255, .74); font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 2vw, 28px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #11100c; box-shadow: 0 12px 30px rgba(203, 169, 95, .18); }
.button-outline { border-color: rgba(255, 255, 255, .2); color: var(--white); background: rgba(255, 255, 255, .035); }
.button-dark { background: var(--ink); color: var(--white); }
.hero-panel {
  min-height: 420px; padding: 42px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 30px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .23); backdrop-filter: blur(8px);
}
.balance-icon { width: 82px; margin-bottom: auto; color: var(--gold-light); }
.panel-label { margin: 24px 0 4px; color: rgba(255, 255, 255, .7); }
.panel-phone { color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 46px); line-height: 1.1; }
.panel-rule { height: 1px; margin: 25px 0 18px; background: rgba(255, 255, 255, .11); }
.hero-panel p:last-child { margin: 0; color: rgba(255, 255, 255, .62); }

.services { background: var(--paper); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head-left { margin-left: 0; text-align: left; }
.section h2 { font-size: clamp(42px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -.025em; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  min-height: 210px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line-dark); border-radius: 22px; background: rgba(255, 255, 255, .55);
  box-shadow: 0 15px 45px rgba(48, 39, 20, .05); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(136, 107, 51, .4); box-shadow: var(--shadow); }
.service-card span { color: #8c6e34; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.service-card h3 { margin: 28px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 2.4vw, 31px); font-weight: 500; line-height: 1.14; }

.vehicle { background: var(--paper-2); }
.vehicle-card {
  padding: 40px 42px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .5); box-shadow: var(--shadow);
}
.vehicle-icon { width: 76px; height: 76px; padding: 16px; display: grid; place-items: center; border-radius: 20px; background: var(--ink); color: var(--gold-light); }
.vehicle h2 { font-size: clamp(34px, 4.3vw, 58px); }

.consultation { color: var(--white); background: linear-gradient(125deg, #0a0f16, #16202d); }
.consultation-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 80px; align-items: center; }
.consultation h2 { font-size: clamp(48px, 6vw, 78px); }
.consultation .button { margin-top: 28px; }
.price-card { padding: 44px; border: 1px solid rgba(227, 199, 127, .27); border-radius: 28px; background: linear-gradient(150deg, rgba(227, 199, 127, .08), rgba(255, 255, 255, .025)); }
.price-card small { display: block; color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.price-card strong { display: block; margin-top: 10px; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: clamp(78px, 9vw, 118px); font-weight: 500; line-height: .95; }

.hours { background: var(--paper); }
.hours-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.hours-card { padding: 38px; display: flex; align-items: center; gap: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.clock-icon { flex: 0 0 72px; width: 72px; color: #876a32; }
.hours-card p { margin: 0 0 7px; color: var(--muted); }
.hours-card strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3.2vw, 38px); font-weight: 500; line-height: 1.2; }

.contact { color: var(--white); background: #080c11; }
.contact-card {
  padding: 54px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
  border: 1px solid var(--line-light); border-radius: 30px;
  background: radial-gradient(circle at 85% 18%, rgba(203, 169, 95, .13), transparent 33%), rgba(255, 255, 255, .025);
}
.contact h2 { font-size: clamp(38px, 5vw, 64px); }
.contact-card > div:first-child > p:last-child { margin: 16px 0 0; color: rgba(255, 255, 255, .62); font-size: 18px; }
.contact-data { padding-left: 40px; display: flex; flex-direction: column; align-items: flex-start; border-left: 1px solid var(--line-light); }
.contact-data span { color: rgba(255, 255, 255, .48); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.contact-data > a:first-of-type { margin: 5px 0 22px; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.8vw, 50px); line-height: 1; }

.footer { padding: 34px 0; color: rgba(255, 255, 255, .62); background: #05070a; border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer strong { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.footer p { margin: 4px 0 0; font-size: 13px; }
.footer > .container > a { color: var(--gold-light); }
.floating-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; padding: 16px;
  display: grid; place-items: center; border-radius: 50%; color: #0c0f12;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transition: transform .2s ease;
}
.floating-call:hover { transform: translateY(-3px) scale(1.03); }

/* El contenido permanece visible aunque JavaScript no cargue. */
@keyframes enterUp { from { transform: translateY(12px); } to { transform: translateY(0); } }
.hero-copy, .hero-panel { animation: enterUp .55s ease both; }

@media (max-width: 980px) {
  .section { padding: 84px 0; }
  .menu-button { display: block; position: relative; z-index: 61; }
  .menu {
    position: fixed; inset: 0; z-index: 60; padding: 112px 28px 38px; display: flex; flex-direction: column; align-items: stretch; gap: 3px;
    background: rgba(7, 10, 15, .985); transform: translateX(100%); transition: transform .28s ease;
  }
  .menu.open { transform: translateX(0); }
  .menu a { padding: 16px 5px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
  .menu .menu-contact { margin: 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .menu-button.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button.active span:nth-child(2) { opacity: 0; }
  .menu-button.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; padding-top: 136px; }
  .hero-grid, .consultation-grid, .hours-grid, .contact-card { grid-template-columns: 1fr; gap: 46px; }
  .hero-panel { min-height: 360px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-card { grid-template-columns: auto 1fr; }
  .vehicle-card .button { grid-column: 1 / -1; justify-self: start; }
  .contact-data { padding: 34px 0 0; border-left: 0; border-top: 1px solid var(--line-light); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 68px 0; }
  .nav { min-height: 72px; }
  .identity-mark { width: 40px; height: 40px; font-size: 14px; }
  .identity-text > span { font-size: 15px; }
  .identity-text small { font-size: 9px; }
  .hero { padding: 120px 0 72px; }
  .hero h1 { font-size: clamp(50px, 16vw, 76px); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-panel { min-height: 320px; padding: 28px; border-radius: 24px; }
  .balance-icon { width: 66px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 168px; }
  .vehicle-card { grid-template-columns: 1fr; padding: 28px; }
  .vehicle-icon { width: 62px; height: 62px; }
  .price-card { padding: 30px; }
  .hours-card { padding: 28px; align-items: flex-start; }
  .clock-icon { flex-basis: 54px; width: 54px; }
  .contact-card { padding: 30px 24px; border-radius: 24px; }
  .contact-data .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .floating-call { right: 15px; bottom: 15px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Información ampliada solicitada */
.service-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.service-card-featured {
  min-height: 290px;
  background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(238,228,208,.78));
  border-color: rgba(136, 107, 51, .28);
}

.divorce-detail {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(203, 169, 95, .14), transparent 28%),
    linear-gradient(125deg, #080c12, #131d29);
}
.divorce-heading {
  margin-bottom: 46px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: end;
}
.divorce-heading h2 { max-width: 760px; }
.divorce-lead {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(227, 199, 127, .35);
  color: rgba(255,255,255,.72);
  font-size: clamp(18px, 2vw, 24px);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.divorce-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
}
.legal-focus-card, .commitment-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.035);
}
.legal-focus-card { padding: 42px; }
.legal-tag {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(227,199,127,.36);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.legal-focus-card h3 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
}
.legal-list, .practice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
}
.legal-list li:last-child { border-bottom: 0; }
.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-light);
  transform: rotate(45deg);
}
.commitment-card {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(227,199,127,.1), rgba(255,255,255,.02));
}
.commitment-symbol {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
}
.commitment-card > p {
  margin: 40px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}
.commitment-words {
  display: grid;
  gap: 8px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.practice-area { overflow: hidden; }
.family { background: #efe7d8; }
.civil { color: var(--white); background: #101720; }
.practice-grid {
  display: grid;
  grid-template-columns: .38fr 1fr;
  gap: 66px;
  align-items: start;
}
.practice-intro { position: sticky; top: 112px; }
.practice-intro h2 { font-size: clamp(54px, 7vw, 92px); }
.practice-list-card {
  padding: 20px 38px;
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
}
.practice-list-dark {
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.035);
  box-shadow: 0 28px 70px rgba(0,0,0,.18);
}
.practice-list li {
  position: relative;
  padding: 18px 12px 18px 30px;
  border-bottom: 1px solid rgba(11,16,23,.1);
  font-size: 17px;
}
.practice-list-dark .practice-list li { border-bottom-color: rgba(255,255,255,.09); color: rgba(255,255,255,.82); }
.practice-list li:last-child { border-bottom: 0; }
.practice-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 27px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.accessible-card strong {
  max-width: 560px;
  margin-top: 16px;
  font-size: clamp(43px, 6vw, 74px);
  line-height: .98;
}
.accessible-card p {
  margin: 22px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 18px;
}

@media (max-width: 980px) {
  .divorce-heading, .divorce-layout, .practice-grid { grid-template-columns: 1fr; }
  .divorce-heading { gap: 28px; }
  .divorce-lead { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(227,199,127,.35); }
  .practice-grid { gap: 32px; }
  .practice-intro { position: static; }
}

@media (max-width: 640px) {
  .service-card-featured { min-height: auto; }
  .legal-focus-card, .commitment-card, .practice-list-card { padding: 27px 23px; border-radius: 22px; }
  .practice-list li { padding-left: 26px; font-size: 15px; }
  .commitment-card > p { margin: 30px 0; }
}

/* Bloque de costos: únicamente la información solicitada */
.consultation-grid-costs {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.consultation-grid-costs .price-card {
  width: 100%;
}


/* Contacto del consorcio: tres números vinculados a WhatsApp */
.contact-heading { max-width: 980px; margin-bottom: 46px; color: var(--white); }
.contact-heading h2 { font-size: clamp(34px, 5vw, 62px); }
.contact-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-person {
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 24px 65px rgba(0,0,0,.16);
}
.contact-role {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.contact-person h3 {
  margin: 18px 0 14px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.16;
}
.contact-number {
  display: inline-block;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.1;
}
.contact-person .button { align-self: flex-start; }

@media (max-width: 980px) {
  .contact-team { grid-template-columns: 1fr; }
  .contact-person { min-height: 0; }
  .hero::before { width: 82vw; right: -18vw; opacity: .25; }
}

@media (max-width: 640px) {
  .identity-text > span { font-size: 12px; }
  .identity-text small { max-width: 205px; font-size: 7px; letter-spacing: .08em; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero::before { inset: 95px -35vw auto auto; width: 105vw; height: 520px; opacity: .2; }
  .contact-person { padding: 25px 22px; border-radius: 22px; }
  .contact-person .button { width: 100%; }
}
