:root {
  color-scheme: dark;
  --background: #101010;
  --panel: #171716;
  --border: #33312d;
  --gold: #dfbd77;
  --gold-light: #f4d797;
  --silver: #c7c5c0;
  --muted: #a6a39d;
  --ivory: #f4f0e8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ivory); font: 400 1rem/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
section[id], details[id] { scroll-margin-top: 24px; }

.container { width: min(100% - 112px, 1240px); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; z-index: 4; top: 12px; left: 12px; padding: 10px 16px; background: var(--gold); color: var(--background); transform: translateY(calc(-100% - 20px)); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; background: #101010; border-bottom: 1px solid #302a20; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; width: 47px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.brand-name { display: block; font: 400 1.65rem/.95 var(--serif); }
.brand-caption { display: block; margin-top: 7px; color: var(--gold); font-size: .59rem; line-height: 1.1; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 2.4vw, 36px); color: var(--silver); font-size: .84rem; font-weight: 500; }
.site-nav > a:not(.button):hover { color: var(--gold-light); }
.menu-toggle { display: none; }
.menu-close, .menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline-block; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 19px; min-height: 48px; border: 1px solid transparent; font-size: .84rem; font-weight: 700; line-height: 1.3; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.button .icon { width: 17px; height: 17px; stroke-width: 1.8; }
.button-gold { background: var(--gold); color: #161208; }
.button-gold:hover { background: var(--gold-light); }
.button-outline { color: var(--gold-light); border-color: #705c3c; }
.button-outline:hover { background: #282117; border-color: var(--gold); }
.button-quiet { color: var(--ivory); border-color: #5e574a; background: #151411b3; }
.button-quiet .icon { color: var(--gold); }
.button-quiet:hover { background: #262119; border-color: var(--gold); }
.header-cta { min-height: 42px; font-size: .78rem; padding: 9px 15px; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 547px; overflow: hidden; background: #111110; border-bottom: 1px solid #3c3324; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 31%; background: #3d3425 url("IMG/columnas.jpg") center 43% / cover no-repeat; filter: grayscale(1) sepia(.43) brightness(.75) contrast(1.06); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #111110 0%, #111110 25%, #111110f5 34%, #111110a8 50%, #11111018 75%), linear-gradient(0deg, #111110a8, transparent 36%); }
.hero-inner { padding-block: 70px 76px; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow span { width: 29px; height: 1px; background: var(--gold); }
.hero h1 { margin-top: 20px; font-size: clamp(4.1rem, 7.6vw, 7.25rem); letter-spacing: -.025em; line-height: .87; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-description { max-width: 490px; margin-top: 25px; color: #dbd8d0; font-size: clamp(.95rem, 1.4vw, 1.09rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }

.section { padding-block: 74px; }
.practice { padding-top: 55px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section h2 { font-size: clamp(2.8rem, 5vw, 4.15rem); line-height: .98; letter-spacing: -.01em; }
.section-intro > p, .cases-intro > p { color: var(--silver); font-size: .91rem; }
.section-intro > p { max-width: 430px; }
.practice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.practice-card { display: flex; flex-direction: column; padding: 23px 19px 18px; background: linear-gradient(145deg, #1b1a18, #151515 75%); border: 1px solid var(--border); transition: border-color .2s ease, background-color .2s ease; }
.practice-card:hover, .practice-card:focus-visible { border-color: #9d8250; background: #211e18; }
.practice-card .area-icon { color: var(--gold); width: 27px; height: 27px; stroke-width: 1.3; margin-bottom: 19px; }
.practice-card h3 { font-size: clamp(1.55rem, 2.3vw, 2.02rem); line-height: 1.04; }
.practice-card p { margin: 10px 0 21px; color: var(--silver); font-size: .82rem; line-height: 1.55; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border); color: var(--gold); font-size: .72rem; font-weight: 600; }
.card-action .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.practice-card:hover .card-action .icon { transform: translateX(3px); }

.detention { background: linear-gradient(100deg, #241e15, #181613); border-block: 1px solid #4c3e28; }
.detention-inner { display: flex; align-items: center; gap: 22px; padding-block: 30px; }
.detention-icon { width: 56px; aspect-ratio: 1; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #625033; color: var(--gold); }
.detention-icon .icon { width: 29px; height: 29px; }
.detention h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); line-height: 1; }
.detention p { margin-top: 8px; max-width: 620px; font-size: .86rem; color: var(--silver); }
.detention .button { margin-left: auto; flex-shrink: 0; }

.cases-layout { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr); gap: clamp(26px, 6vw, 88px); }
.cases-intro > p { max-width: 320px; margin-top: 16px; }
.case-list { border-top: 1px solid var(--border); }
.case-list details { border-bottom: 1px solid var(--border); }
.case-list summary { display: flex; align-items: center; gap: 15px; padding: 18px 8px; min-height: 64px; cursor: pointer; list-style: none; font-weight: 600; font-size: .94rem; line-height: 1.45; }
.case-list summary::-webkit-details-marker { display: none; }
.case-list summary:hover, .case-list details[open] summary { color: var(--gold-light); }
.case-icon, .indicator { color: var(--gold); }
.indicator { margin-left: auto; transition: transform .2s ease; }
.case-list details[open] .indicator { transform: rotate(45deg); }
.case-content { margin-left: 43px; padding: 0 14px 23px 0; color: var(--silver); font-size: .88rem; }
.case-content > p + p { margin-top: 10px; }
.case-content strong { color: var(--ivory); font-weight: 600; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 16px; height: 16px; }

.legal-guide { border-top: 1px solid var(--border); }
.courts-guide, .glossary-guide { background: #151514; }
.courts-guide { padding-top: 36px; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 5px 26px; margin-bottom: 36px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.guide-nav a { display: inline-flex; align-items: center; min-height: 34px; color: var(--gold-light); font-size: .79rem; font-weight: 600; }
.guide-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(26px, 4.8vw, 66px); }
.guide-copy > p, .guide-points dd, .representation-grid p, .glossary-grid dd { color: var(--silver); font-size: .88rem; }
.guide-copy > p { margin-top: 15px; }
.guide-points { margin: 19px 0 0; }
.guide-points > div { padding-block: 10px; border-top: 1px solid var(--border); }
.guide-points dt { margin-bottom: 3px; color: var(--ivory); font-size: .86rem; font-weight: 700; }
.guide-points dd, .glossary-grid dd { margin: 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 3px 19px; font-size: .78rem; }
.guide-links .text-link, .representation-grid .text-link { min-height: 29px; margin-top: 8px; }
.guide-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #4c3e28; }
.hearing-image { object-position: 54% 50%; }
.hearing-checklist { min-width: 0; margin: 20px 0 0; padding: 8px 14px 11px; background: var(--panel); border: 1px solid var(--border); }
.hearing-checklist legend { padding-inline: 7px; color: var(--gold-light); font-size: .8rem; font-weight: 700; }
.hearing-checklist label { display: flex; align-items: flex-start; gap: 11px; padding: 9px 3px; cursor: pointer; color: var(--ivory); font-size: .84rem; line-height: 1.5; }
.hearing-checklist label + label { border-top: 1px solid var(--border); }
.hearing-checklist input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.checklist-progress { display: block; padding: 7px 3px 0; border-top: 1px solid var(--border); color: var(--gold-light); font-size: .74rem; }
.guide-copy .guide-note { color: var(--silver); font-size: .8rem; }
.representation-guide { background: #131211; }
.representation-banner { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 258px; overflow: hidden; padding: clamp(22px, 4.2vw, 56px); border: 1px solid #4c3e28; background: #171410; }
.representation-banner::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #171410 23%, #171410f0 35%, #17141050 62%, #17141016); }
.representation-image { position: absolute; z-index: -2; inset: 0 0 0 auto; display: block; width: 69%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.representation-banner h2 { max-width: 9em; }
.representation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; gap: 14px; }
.representation-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 21px; border: 1px solid var(--border); background: var(--panel); }
.representation-grid h3 { margin-bottom: 8px; font-size: 1.9rem; line-height: 1.08; }
.representation-grid p { margin-bottom: 12px; }
.representation-grid .text-link { margin-top: auto; font-size: .78rem; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 8px; gap: 12px; }
.glossary-grid > div { padding: 18px; background: var(--background); border: 1px solid var(--border); }
.glossary-grid dt { margin-bottom: 9px; color: var(--ivory); font-size: .95rem; font-weight: 600; line-height: 1.4; }
.glossary-grid dt span { display: block; margin-top: 4px; color: var(--gold); font-size: .76rem; font-weight: 500; }

.resources { background: #151514; border-block: 1px solid var(--border); padding-block: 55px 61px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resource-card { display: flex; align-items: center; gap: 13px; min-height: 87px; padding: 15px 18px; border: 1px solid var(--border); background: #101010; transition: border-color .2s ease; }
.resource-card:hover { border-color: #9d8250; }
.resource-card .icon { color: var(--gold); }
.resource-card .resource-icon { width: 23px; height: 23px; }
.resource-card strong, .resource-card small { display: block; }
.resource-card strong { font-size: .87rem; line-height: 1.35; font-weight: 600; }
.resource-card small { color: var(--muted); margin-top: 4px; font-size: .74rem; }
.resource-card > .icon:last-child { width: 16px; height: 16px; margin-left: auto; }

.site-footer { padding-top: 32px; color: var(--silver); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 27px; }
.footer-main .brand-name { color: var(--ivory); }
.footer-main p { max-width: 470px; font-size: .79rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 20px; padding-block: 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: .7rem; }
.footer-bottom a:hover { color: var(--gold); text-decoration: underline; }

@media (max-width: 1050px) {
  .container { width: min(100% - 64px, 1240px); }
  .practice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 70px; padding-block: 11px; gap: 10px; }
  .brand-mark { width: 42px; }
  .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--panel); color: var(--gold); cursor: pointer; }
  .site-nav { width: 100%; align-items: stretch; flex-direction: column; gap: 0; padding-block: 1px 9px; }
  .site-nav > a:not(.button) { padding: 11px 2px; border-bottom: 1px solid var(--border); }
  .site-nav .button { align-self: flex-start; margin-top: 13px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .hero { min-height: 515px; }
  .hero-inner { padding-block: 62px; }
  .hero-image { left: 11%; background-position: 64% 40%; }
  .hero::after { background: linear-gradient(90deg, #111110 0%, #111110e8 35%, #11111066 100%), linear-gradient(0deg, #111110b3, transparent 42%); }
  .hero h1 { font-size: clamp(3.65rem, 12vw, 5.35rem); }
  .hero-description { max-width: 415px; }
  .section { padding-block: 48px; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .practice-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detention-inner { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 17px; }
  .detention-icon { align-self: start; width: 44px; }
  .detention-icon .icon { width: 24px; height: 24px; }
  .detention .button { grid-column: 2; justify-self: start; margin: 0; }
  .cases-layout { grid-template-columns: 1fr; }
  .cases-intro > p { max-width: 460px; }
  .cases-intro br { display: none; }
  .guide-nav { gap: 3px 18px; margin-bottom: 24px; }
  .guide-layout, .representation-grid { grid-template-columns: 1fr; }
  .guide-image { aspect-ratio: 16 / 9; }
  .hearing-image { grid-row: 2; }
  .representation-banner { min-height: 210px; }
  .representation-image { width: 100%; }
  .representation-banner::after { background: linear-gradient(90deg, #171410ef, #1714108c 63%, #1714103b); }
  .glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: clamp(2.95rem, 13vw, 3.65rem); }
  .eyebrow { letter-spacing: .13em; }
  .hero-actions .button { padding-inline: 12px; }
  .practice-card { padding-inline: 13px; }
  .resource-grid, .glossary-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
