/* Concepto: casa de abogados clásica en azul noche y oro del logo.
   Bandas que alternan noche y papel frío; títulos en serif de alto contraste,
   texto en sans humanista; un solo momento audaz: el emblema en el hero y el diagrama «una sola lectura». */
:root {
  color-scheme: dark;
  --navy-950: #060f24;
  --navy-900: #0a1830;
  --navy-800: #10244a;
  --navy-700: #1b386a;
  --gold-300: #f2d48a;
  --gold-400: #e3b95c;
  --gold-500: #c99a33;
  --gold-700: #7a5712;
  --paper: #edf0f6;
  --paper-2: #dfe5f0;
  --ink: #0a1830;
  --ink-soft: #43506c;
  --on-dark: #eaf0fa;
  --on-dark-soft: #aab8d2;
  --line-dark: rgba(227, 185, 92, 0.3);
  --line-dark-soft: rgba(170, 184, 210, 0.2);
  --line-paper: rgba(10, 24, 48, 0.18);
  --display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
section[id], footer[id] { scroll-margin-top: 76px; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }
.band--paper :focus-visible { outline-color: var(--navy-700); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.band--dark { background: var(--navy-900); color: var(--on-dark); }
.band--deep { background: var(--navy-950); color: var(--on-dark); }
.band--paper { background: var(--paper); color: var(--ink); }

.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; text-wrap: balance; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 62ch; }
.soft { color: var(--on-dark-soft); }
.band--paper .soft { color: var(--ink-soft); }
.label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-400);
}
.band--paper .label { color: var(--gold-700); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-300); }
.btn--line { border-color: var(--gold-400); color: var(--gold-300); background: transparent; }
.btn--line:hover { background: rgba(227, 185, 92, 0.12); }
.band--paper .btn--line { border-color: var(--navy-800); color: var(--navy-800); }
.band--paper .btn--line:hover { background: rgba(10, 24, 48, 0.06); }
.btn--navy { background: var(--navy-900); color: var(--gold-300); }
.btn--navy:hover { background: var(--navy-700); }

/* Encabezado */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(6, 15, 36, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: auto; flex: none; }
.brand__t { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__n { font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.06em; color: var(--gold-300); white-space: nowrap; }
.brand__s { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--on-dark); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--gold-300); border-bottom-color: var(--gold-400); }
.nav .btn { padding: 8px 18px; min-height: 40px; border-bottom: 1px solid transparent; color: var(--navy-950); }
.nav .btn:hover { color: var(--navy-950); }
.menu-btn { display: none; min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--gold-300); }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); border-bottom: 1px solid var(--line-dark);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav[hidden] { display: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark-soft); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-950); padding-block: clamp(48px, 7vw, 104px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; filter: saturate(0.85) contrast(1.05); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(6, 15, 36, 0.96) 0%, rgba(6, 15, 36, 0.78) 42%, rgba(6, 15, 36, 0.3) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--navy-950)); }
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.9rem, 7.4vw, 6.2rem); line-height: 0.98; letter-spacing: -0.012em; color: var(--on-dark); text-wrap: balance; }
.hero__sub { margin-top: 26px; max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--on-dark-soft); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__sedes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 12px 40px; justify-content: start; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.sede strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--gold-300); }
.sede span { font-size: 0.88rem; color: var(--on-dark-soft); }
.hero__emblem { position: relative; display: grid; place-items: center; }
.hero__emblem::before { content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 185, 92, 0.28) 0%, rgba(227, 185, 92, 0.07) 48%, transparent 70%); }
.hero__emblem img { position: relative; width: min(100%, 460px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0.35; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__emblem { order: -1; justify-self: start; width: 150px; }
  .hero__emblem img { width: 150px; }
  .hero__sedes { grid-template-columns: minmax(0, 1fr); }
}

/* Nosotros */
.nosotros__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.nosotros__text { display: grid; gap: 20px; font-size: 1.1rem; color: var(--ink-soft); }
.proposito { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-paper);
  display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 80px); align-items: start; }
.proposito blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.3vw, 2.8rem); line-height: 1.18; color: var(--navy-800); text-wrap: balance; }
.porque { margin-top: clamp(48px, 7vw, 88px); }
.porque__list { margin-top: 28px; border-top: 1px solid var(--line-paper); }
.porque__row { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: 8px clamp(24px, 5vw, 80px); padding-block: 22px; border-bottom: 1px solid var(--line-paper); }
.porque__row h3 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--navy-800); }
.porque__row p { color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 860px) {
  .nosotros__grid, .proposito, .porque__row { grid-template-columns: minmax(0, 1fr); }
}

/* Servicios */
.servicios { background: var(--navy-900); }
.servicios__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; }
.tabs { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tab { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 250px; padding: 20px; text-align: left;
  border: 1px solid var(--line-dark-soft); border-radius: var(--radius); background: var(--navy-950); overflow: hidden; cursor: pointer; isolation: isolate;
  transition: border-color 0.2s, transform 0.2s; }
.tab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; filter: saturate(0.6); transition: opacity 0.3s; }
.tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 15, 36, 0.35) 0%, rgba(6, 15, 36, 0.92) 78%); }
.tab:hover { border-color: var(--gold-500); }
.tab:hover img { opacity: 0.75; }
.tab[aria-selected="true"] { border-color: var(--gold-400); box-shadow: inset 0 -4px 0 var(--gold-400); }
.tab[aria-selected="true"] img { opacity: 0.8; }
.tab svg { width: 38px; height: 38px; color: var(--gold-400); margin-bottom: 8px; }
.tab__n { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.08; color: var(--on-dark); }
.tab__d { font-size: 0.9rem; line-height: 1.45; color: var(--on-dark-soft); }
.tab__c { margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: var(--gold-300); letter-spacing: 0.04em; }
@media (max-width: 1000px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .servicios__head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tabs { grid-template-columns: minmax(0, 1fr); } .tab { min-height: 170px; } }

.panel { margin-top: 18px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--navy-950); overflow: hidden; }
.panel[hidden] { display: none; }
.panel__banner { position: relative; padding: clamp(32px, 5vw, 64px); isolation: isolate; overflow: hidden; }
.panel__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.7); }
.panel__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6, 15, 36, 0.96) 10%, rgba(6, 15, 36, 0.7) 60%, rgba(6, 15, 36, 0.5)); }
.panel__banner .label { display: block; margin-bottom: 14px; }
.panel__banner .lead { margin-top: 18px; color: var(--on-dark); }
.panel__body { padding: clamp(24px, 4vw, 56px); display: grid; gap: clamp(36px, 5vw, 64px); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.blk h4 { font-family: var(--display); font-weight: 600; font-size: 1.65rem; line-height: 1.1; color: var(--gold-300); margin-bottom: 16px; }
.blk h5 { margin: 22px 0 10px; font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-400); }
.blk h5:first-of-type { margin-top: 0; }
.ticks li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line-dark-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; background: var(--gold-400); transform: rotate(45deg); }
.ticks--alert li::before { background: transparent; border: 1.5px solid var(--gold-400); }
.plazo { padding: clamp(22px, 3vw, 36px) 0; border-block: 1px solid var(--line-dark); font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.3; color: var(--gold-300); text-wrap: pretty; }
.banda { height: clamp(120px, 18vw, 220px); position: relative; overflow: hidden; border-radius: var(--radius); }
.banda img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(0.85); }
.banda::after { content: ""; position: absolute; inset: 0; background: rgba(6, 15, 36, 0.25); }

.alcances__t { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--on-dark); margin-bottom: 6px; }
.grupo { margin: 28px 0 4px; }
details.acc { border-top: 1px solid var(--line-dark-soft); }
details.acc:last-of-type { border-bottom: 1px solid var(--line-dark-soft); }
details.acc summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 4px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary:hover .acc__t { color: var(--gold-300); }
.acc__t { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.18; transition: color 0.2s; }
.acc__l { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--on-dark-soft); }
.acc__i { flex: none; width: 30px; height: 30px; border: 1px solid var(--line-dark); border-radius: 50%; position: relative; margin-top: 2px; }
.acc__i::before, .acc__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--gold-400); transform: translate(-50%, -50%); transition: transform 0.25s; }
.acc__i::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .acc__i::after { transform: translate(-50%, -50%) rotate(0deg); }
details.acc .ticks { padding: 0 4px 22px; columns: 1; max-width: 90ch; }
details.acc .ticks li:last-child { border-bottom: 0; }

.etapas { display: grid; gap: 0; }
.etapa { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--line-dark-soft); align-items: start; }
.etapa:last-child { border-bottom: 1px solid var(--line-dark-soft); }
.etapa--h { padding: 10px 0; font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; border-top: 0; }
.etapa__n { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; }
.etapa__n b { font-size: 2.1rem; color: var(--gold-400); font-weight: 500; min-width: 1ch; }
.etapa small { display: none; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; margin-bottom: 2px; }
.etapa__r { color: var(--on-dark); }
@media (max-width: 860px) {
  .cols2 { grid-template-columns: minmax(0, 1fr); }
  .etapa { grid-template-columns: minmax(0, 1fr); }
  .etapa--h { display: none; }
  .etapa small { display: block; }
}
.panel__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line-dark); background: var(--navy-800); }
.panel__cta p { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; max-width: 34ch; line-height: 1.15; }

/* Una sola lectura */
.lectura__grid { margin-top: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.diagrama { width: 100%; height: auto; max-width: 620px; justify-self: center; }
.dg-line { stroke: #aeb9cf; stroke-width: 1.6; transition: stroke 0.25s, stroke-width 0.25s; }
.dg-line.is-on { stroke: var(--gold-500); stroke-width: 4; }
.dg-pill { fill: var(--paper); stroke: var(--navy-800); stroke-width: 1.4; transition: fill 0.25s, stroke 0.25s; }
.dg-txt { font-family: var(--display); font-weight: 600; font-size: 22px; fill: var(--navy-800); text-anchor: middle; dominant-baseline: central; transition: fill 0.25s; }
.dg-node.is-on .dg-pill { fill: var(--navy-900); stroke: var(--gold-500); stroke-width: 2.2; }
.dg-node.is-on .dg-txt { fill: var(--gold-300); }
.dg-core { fill: var(--paper); stroke: var(--line-paper); stroke-width: 1.4; }
.dg-core-t { font-family: var(--display); font-weight: 600; font-style: italic; font-size: 19px; fill: var(--gold-700); text-anchor: middle; }
.pares { border-top: 1px solid var(--line-paper); }
.par { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-paper); padding: 18px 4px; cursor: pointer; color: var(--ink); }
.par__t { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.15; }
.par__t::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 1.5rem; color: var(--gold-700); flex: none; }
.par[aria-expanded="true"] .par__t::after { content: "\2212"; }
.par[aria-expanded="true"] .par__t { color: var(--navy-800); }
.par__d { margin-top: 8px; color: var(--ink-soft); max-width: 52ch; }
.par__d[hidden] { display: none; }
.par:hover .par__t { color: var(--gold-700); }
@media (max-width: 900px) { .lectura__grid { grid-template-columns: minmax(0, 1fr); } }

/* Planes */
.planes { background: var(--navy-950); isolation: isolate; overflow: hidden; }
.planes__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.42; filter: saturate(0.7); }
.planes::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(6, 15, 36, 0.6) 30%, rgba(6, 15, 36, 0.7) 75%, var(--navy-950) 100%); }
.planes__grid { margin-top: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: end; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-dark-soft); background: rgba(16, 36, 74, 0.35); }
.plan:nth-child(1) { min-height: 440px; }
.plan:nth-child(2) { min-height: 500px; background: rgba(16, 36, 74, 0.6); border-color: var(--line-dark); }
.plan:nth-child(3) { min-height: 560px; background: linear-gradient(180deg, rgba(227, 185, 92, 0.2), rgba(16, 36, 74, 0.7)); border-color: var(--gold-400); }
.plan + .plan { border-left-width: 0; }
.plan:nth-child(3) { border-left-width: 1px; }
.plan__bars { display: flex; gap: 6px; }
.plan__bars i { width: 34px; height: 5px; background: var(--line-dark-soft); }
.plan__bars i.on { background: var(--gold-400); }
.plan h3 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; color: var(--gold-300); }
.plan__ideal { color: var(--on-dark-soft); min-height: 3.3em; }
.plan .ticks { margin-top: auto; }
.plan .ticks li.base { color: var(--gold-300); font-weight: 600; }
.plan .ticks li.base::before { background: transparent; border: 1.5px solid var(--gold-400); }
.planes__nota { margin-top: 28px; max-width: 78ch; color: var(--on-dark-soft); }
.planes__cta { margin-top: 28px; }
@media (max-width: 900px) {
  .planes__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .plan, .plan:nth-child(n) { min-height: 0; border-left-width: 1px; }
  .plan__ideal { min-height: 0; }
}

/* Proyectos */
.proy__grid { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.card-d { background: var(--navy-900); color: var(--on-dark); padding: clamp(26px, 4vw, 52px); border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; }
.card-d .h3 { color: var(--gold-300); }
.card-d p { color: var(--on-dark-soft); }
.chequeos { display: grid; gap: 0; margin-top: 6px; }
.chequeos div { padding: 14px 0; border-top: 1px solid var(--line-dark-soft); }
.chequeos dt { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--on-dark); }
.chequeos dd { color: var(--on-dark-soft); font-size: 0.97rem; }
.card-p { padding: clamp(26px, 4vw, 48px); border: 1px solid var(--line-paper); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; background: #f7f9fc; }
.card-p .h3 { color: var(--navy-800); }
.band--paper .ticks li { border-bottom-color: var(--line-paper); }
.band--paper .ticks li::before { background: var(--gold-500); }
.recibe { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-paper); color: var(--ink-soft); }
.recibe b { color: var(--navy-800); }
.proy__row { margin-top: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-paper); }
.proy__row > div { display: flex; flex-direction: column; gap: 16px; }
.proy__row .h3 { color: var(--navy-800); }
.proy__row p { color: var(--ink-soft); }
.estrategia { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.4rem; line-height: 1.3; color: var(--gold-700); margin-top: 6px; }
@media (max-width: 900px) { .proy__grid, .proy__row { grid-template-columns: minmax(0, 1fr); } }

/* Método */
.metodo__steps { margin-top: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: s; }
.step { position: relative; padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.step::before { content: ""; position: absolute; top: 28px; left: 56px; right: 0; height: 1px; background: var(--line-dark); }
.step:last-child::before { display: none; }
.step__n { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold-400); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.7rem; color: var(--gold-300); background: var(--navy-950); position: relative; }
.step h3 { margin-top: 22px; font-family: var(--display); font-weight: 600; font-size: 1.8rem; line-height: 1.1; }
.step p { margin-top: 10px; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .metodo__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 32px 76px; }
  .step::before { top: 56px; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; }
  .step__n { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 0; padding-top: 10px; }
}

/* Confidencialidad */
.conf { padding-block: clamp(48px, 7vw, 96px); }
.conf__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px clamp(28px, 6vw, 96px); align-items: start; }
.conf__txt { display: grid; gap: 18px; color: var(--ink-soft); font-size: 1.1rem; max-width: 64ch; }
.conf__q { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.22; color: var(--navy-800); margin-top: 8px; }
@media (max-width: 860px) { .conf__grid { grid-template-columns: minmax(0, 1fr); } }

/* Contacto */
.contacto { isolation: isolate; overflow: hidden; background: var(--navy-950); }
.contacto__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.8); }
.contacto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6, 15, 36, 0.94) 0%, rgba(6, 15, 36, 0.72) 55%, rgba(6, 15, 36, 0.55) 100%); }
.contacto__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contacto .h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.contacto__q { margin-top: 22px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 46ch; color: var(--on-dark); }
.empezar { margin-top: 36px; display: grid; gap: 0; counter-reset: e; }
.empezar li { counter-increment: e; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-dark); align-items: baseline; }
.empezar li::before { content: counter(e); font-family: var(--display); font-weight: 500; font-size: 1.9rem; line-height: 1; color: var(--gold-400); }
.datos { margin-top: 32px; display: grid; gap: 0; }
.dato { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-dark-soft); }
.dato:last-child { border-bottom: 1px solid var(--line-dark-soft); }
.dato dt { font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.dato dd { min-width: 0; overflow-wrap: anywhere; font-size: 1.05rem; }
.dato a { text-decoration-color: var(--gold-500); text-underline-offset: 4px; }
.copy { min-height: 36px; padding: 4px 14px; background: transparent; border: 1px solid var(--line-dark); color: var(--gold-300); border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.copy:hover { background: rgba(227, 185, 92, 0.12); }
.sedes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.sedes span { padding: 8px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.93rem; color: var(--on-dark); }
.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); display: grid; gap: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.form h3 { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--navy-800); }
.form p.small { font-size: 0.92rem; color: var(--ink-soft); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy-800); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #b5bfd2; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 1px; border-color: var(--navy-700); }
.form .btn { width: 100%; }
.form__err { color: #8a1c1c; font-weight: 600; font-size: 0.93rem; }
.form__err[hidden] { display: none; }
@media (max-width: 900px) { .contacto__grid { grid-template-columns: minmax(0, 1fr); } .dato { grid-template-columns: minmax(0, 1fr) auto; } .dato dt { grid-column: 1 / -1; } }

/* Pie */
.foot { background: var(--navy-950); border-top: 1px solid var(--line-dark); padding-block: 48px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__brand img { width: 64px; }
.foot__brand strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: 0.06em; color: var(--gold-300); line-height: 1; }
.foot__brand span { font-size: 0.85rem; color: var(--on-dark-soft); letter-spacing: 0.08em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot nav a { text-decoration: none; color: var(--on-dark-soft); font-size: 0.95rem; }
.foot nav a:hover { color: var(--gold-300); }
.foot__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-dark-soft); font-size: 0.85rem; color: var(--on-dark-soft); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* WhatsApp flotante */
.fab { position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--navy-950); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 480px) { .fab span { display: none; } .fab { padding: 0; width: 54px; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__emblem img { animation: none; }
  * { transition: none !important; }
}

.card-d .btn, .proy__row .btn { align-self: flex-start; margin-top: auto; }
.card-d .chequeos { margin-bottom: 8px; }

/* ===== Sitio de varias páginas ===== */
a.btn { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-300); border-bottom-color: var(--gold-400); }

/* Tarjetas de especialidad (inicio y "otras especialidades") */
.esp-grid { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.esp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.esp { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 380px; padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-dark-soft); border-radius: var(--radius); overflow: hidden; isolation: isolate; text-decoration: none; color: var(--on-dark);
  background: var(--navy-950); transition: border-color 0.2s; }
.esp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.6; filter: saturate(0.7); transition: opacity 0.3s, transform 0.6s; }
.esp::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 15, 36, 0.2) 0%, rgba(6, 15, 36, 0.94) 72%); }
.esp:hover { border-color: var(--gold-400); }
.esp:hover img { opacity: 0.85; transform: scale(1.03); }
.esp svg { width: 44px; height: 44px; color: var(--gold-400); margin-bottom: 6px; }
.esp__n { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; text-wrap: balance; }
.esp__d { color: var(--on-dark); }
.esp__p { font-size: 0.95rem; color: var(--on-dark-soft); border-top: 1px solid var(--line-dark-soft); padding-top: 12px; margin-top: 4px; max-width: 52ch; }
.esp__go { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-weight: 600; color: var(--gold-300); }
.esp__go small { font-size: 0.85rem; font-weight: 600; color: var(--on-dark-soft); }
.esp--s { min-height: 250px; }
.esp--s .esp__p { display: none; }
.esp--s .esp__n { font-size: clamp(1.6rem, 2.2vw, 2rem); }
@media (max-width: 1000px) { .esp-grid--3 { grid-template-columns: minmax(0, 1fr); } .esp--s { min-height: 200px; } }
@media (max-width: 700px) { .esp-grid { grid-template-columns: minmax(0, 1fr); } .esp { min-height: 320px; } }

/* Barra de especialidades en cada página */
.subnav { background: var(--navy-950); border-bottom: 1px solid var(--line-dark-soft); }
.subnav__in { display: flex; align-items: center; gap: 4px 30px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.subnav span { font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; padding: 14px 0; }
.subnav a { display: inline-block; padding: 14px 0; text-decoration: none; font-size: 0.95rem; color: var(--on-dark-soft); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--gold-300); }
.subnav a[aria-current="page"] { color: var(--gold-300); border-bottom-color: var(--gold-400); font-weight: 600; }

/* Portada de especialidad */
.shero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); padding-block: clamp(48px, 7vw, 104px); }
.shero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.85) contrast(1.05); }
.shero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6, 15, 36, 0.96) 0%, rgba(6, 15, 36, 0.8) 50%, rgba(6, 15, 36, 0.35) 100%); }
.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 0.9rem; color: var(--on-dark-soft); margin-bottom: clamp(28px, 4vw, 52px); }
.crumb a { color: var(--on-dark-soft); text-underline-offset: 4px; }
.crumb a:hover { color: var(--gold-300); }
.shero .label { display: block; margin-bottom: 18px; }
.shero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 0.99; letter-spacing: -0.01em; max-width: 15ch; text-wrap: balance; }
.shero .lead { margin-top: 26px; color: var(--on-dark); max-width: 58ch; }
.shero .hero__cta { margin-top: 34px; }

/* Bloques sobre papel */
.band--paper .blk h4 { color: var(--navy-800); }
.band--paper .blk h5 { color: var(--gold-700); }
.band--paper .ticks--alert li::before { background: transparent; border-color: var(--gold-700); }
.band--paper .plazo { color: var(--gold-700); border-color: var(--line-paper); }
.band--paper .ticks li { color: var(--ink); }
.band--paper .banda { margin-top: clamp(32px, 4vw, 56px); }
.band .cols2 + .plazo { margin-top: clamp(36px, 5vw, 64px); }

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(20px, 3vw, 36px); }
.sec-head .btn { min-height: 44px; padding: 8px 20px; }
.band--deep .etapas { margin-top: clamp(24px, 3vw, 40px); }

/* Combinaciones con otras áreas */
.combos { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line-paper); }
.combo { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) minmax(0, 0.34fr); gap: 8px clamp(20px, 4vw, 56px); padding: 26px 4px; border-bottom: 1px solid var(--line-paper); text-decoration: none; color: var(--ink); align-items: baseline; }
.combo__t { font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.1; color: var(--navy-800); transition: color 0.2s; }
.combo__d { color: var(--ink-soft); max-width: 58ch; }
.combo__go { font-weight: 600; color: var(--gold-700); text-align: right; }
.combo:hover .combo__t { color: var(--gold-700); }
@media (max-width: 860px) { .combo { grid-template-columns: minmax(0, 1fr); } .combo__go { text-align: left; } }

.cta-band .h2 { max-width: 18ch; }
.cta-band .hero__cta { margin-top: 32px; }
.cta-band .lead { margin-top: 18px; color: var(--on-dark); }

/* Resumen de planes y de servicios por proyecto en el inicio */
.plan-mini { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-dark); }
.plan-mini__i { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 36px); text-decoration: none; color: var(--on-dark); background: rgba(16, 36, 74, 0.4); transition: background-color 0.2s; }
.plan-mini__i + .plan-mini__i { border-left: 1px solid var(--line-dark-soft); }
.plan-mini__i:nth-child(2) { background: rgba(16, 36, 74, 0.62); }
.plan-mini__i:nth-child(3) { background: linear-gradient(180deg, rgba(227, 185, 92, 0.18), rgba(16, 36, 74, 0.7)); }
.plan-mini__i h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1; color: var(--gold-300); }
.plan-mini__i p { color: var(--on-dark-soft); max-width: 34ch; }
.plan-mini__i:hover h3 { color: #fff; }
@media (max-width: 900px) { .plan-mini { grid-template-columns: minmax(0, 1fr); } .plan-mini__i + .plan-mini__i { border-left: 0; border-top: 1px solid var(--line-dark-soft); } }

.proy-mini { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.proy-mini__i { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-top: 1px solid var(--line-paper); text-decoration: none; color: var(--ink); }
.proy-mini__i h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2vw, 1.8rem); line-height: 1.1; color: var(--navy-800); transition: color 0.2s; }
.proy-mini__i p { color: var(--ink-soft); }
.proy-mini__i span { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--gold-700); }
.proy-mini__i:hover h3 { color: var(--gold-700); }
@media (max-width: 1000px) { .proy-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .proy-mini { grid-template-columns: minmax(0, 1fr); } }

/* Listas "cómo empezar" sobre papel y anclas */
.band--paper .empezar { margin-top: 28px; }
.band--paper .empezar li { border-top-color: var(--line-paper); }
.band--paper .empezar li::before { color: var(--gold-700); }
.band--paper .card-d .chequeos div { border-top-color: var(--line-dark-soft); }
article[id], div[id] { scroll-margin-top: 90px; }
.card-d .btn + .btn { margin-top: 0; }

/* Títulos llamativos de las secciones resumen del inicio */
.h2--xl { font-size: clamp(2.9rem, 7.6vw, 6.4rem); line-height: 0.96; letter-spacing: -0.015em; max-width: 13ch; }
.h2--gold { color: var(--gold-300); }
.h2--xl + .lead { margin-top: clamp(22px, 3vw, 34px) !important; max-width: 56ch; }
.card-d .btn--line { border-color: var(--gold-400); color: var(--gold-300); }
.card-d .btn--line:hover { background: rgba(227, 185, 92, 0.12); }
.proy__row .btn { margin-top: 8px; }

/* ===== Sitio de una sola página: menú siempre visible, el contenido cambia en el centro ===== */
.app { display: block; }
.side { display: none; }

/* Móvil y tablet: marca arriba y franja fija con todas las opciones */
.mtop { display: flex; align-items: center; gap: 12px; padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 12px max(var(--gutter), env(safe-area-inset-left, 0px)); background: var(--navy-950); }
.mtop a { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.mtop img { width: 38px; height: auto; flex: none; }
.mnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(6, 15, 36, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark-soft); }
.mnav__in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) 10px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.mnav__in::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 6px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.93rem; color: var(--on-dark-soft); text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.chip:hover { color: var(--gold-300); border-color: var(--gold-400); }
.chip[aria-current="page"] { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); font-weight: 600; }

/* Escritorio: barra lateral fija + marco de contenido */
@media (min-width: 1180px) {
  .app { display: grid; grid-template-columns: 296px minmax(0, 1fr); align-items: start; }
  .mtop, .mnav { display: none; }
  .side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; height: 100dvh; overflow-y: auto;
    padding: 30px 20px 24px max(20px, env(safe-area-inset-left, 0px)); background: var(--navy-950); border-right: 1px solid var(--line-dark); }
  .proy-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1480px) { .proy-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.side__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; padding: 4px 8px 20px; border-bottom: 1px solid var(--line-dark); }
.side__brand img { width: 104px; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); }
.side__brand strong { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.06em; color: var(--gold-300); line-height: 1; }
.side__brand small { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: -6px; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-left: 2px solid transparent; border-radius: 0 var(--radius) var(--radius) 0; color: var(--on-dark); text-decoration: none; font-size: 0.97rem; line-height: 1.25; transition: background-color 0.2s, color 0.2s; }
.side__nav a svg { width: 20px; height: 20px; flex: none; color: var(--gold-400); }
.side__nav a:hover { background: rgba(227, 185, 92, 0.07); color: var(--gold-300); }
.side__nav a[aria-current="page"] { background: rgba(227, 185, 92, 0.13); border-left-color: var(--gold-400); color: var(--gold-300); font-weight: 600; }
.side__grp { margin: 14px 14px 4px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.side__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.side__foot .btn { width: 100%; min-height: 46px; }
.side__foot small { text-align: center; color: var(--on-dark-soft); font-size: 0.82rem; line-height: 1.4; }

/* Marco central */
.stage { min-width: 0; background: var(--navy-900); }
.view[hidden] { display: none; }
.view.is-switch { animation: vin 0.35s ease both; }
@keyframes vin { from { opacity: 0.2; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view h1:focus { outline: none; }
section[id], footer[id], div[id], article[id] { scroll-margin-top: 70px; }
@media (min-width: 1180px) { section[id], footer[id], div[id], article[id] { scroll-margin-top: 24px; } }
a[data-go], a[data-scroll] { cursor: pointer; }

.shero--plain { padding-block: clamp(44px, 6vw, 88px); }
.inicio-prop { padding-block: clamp(48px, 7vw, 96px); }
.inicio-prop .proposito { margin-top: 0; padding-top: 0; border-top: 0; }
.inicio-prop .btn { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { .view.is-switch { animation: none; } }

/* Portada del inicio: título más compacto y propósito junto al emblema */
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.02; max-width: 16ch; }
.hero__prop { margin-top: 26px; max-width: 34ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.28; color: var(--on-dark); text-wrap: pretty; }

/* ===== Restitución de tierras: lugar destacado ===== */
.side__nav a.side__feat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 8px 0 6px; padding: 12px 14px; border: 1px solid var(--gold-400); border-left: 1px solid var(--gold-400); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(227, 185, 92, 0.18), rgba(227, 185, 92, 0.05)); color: var(--gold-300); font-weight: 600; }
.side__feat small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 500; }
.side__nav a.side__feat:hover, .side__nav a.side__feat[aria-current="page"] { background: rgba(227, 185, 92, 0.3); color: var(--gold-300); border-left-color: var(--gold-400); }
.chip--feat { border-color: var(--gold-400); color: var(--gold-300); }

.rt-home { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); padding-block: clamp(56px, 8vw, 112px); border-block: 1px solid var(--line-dark); }
.rt-home__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.6; filter: saturate(0.8); }
.rt-home::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6, 15, 36, 0.97) 0%, rgba(6, 15, 36, 0.88) 55%, rgba(6, 15, 36, 0.55) 100%); }
.rt-home__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.rt-home .label { display: block; margin-bottom: 16px; }
.rt-home h2 { max-width: 20ch; }
.rt-home .lead { margin-top: 20px; color: var(--on-dark); }
.rt-home .hero__cta { margin-top: 28px; }
.rt-home__pts li { font-size: 1.05rem; }
.rt-home--s { padding-block: clamp(32px, 4vw, 52px); }
.rt-feat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.rt-feat p { margin-top: 8px; color: var(--on-dark); max-width: 56ch; }
.rt-feat h2 { margin-top: 6px; }
@media (max-width: 899px) { .rt-home__grid { grid-template-columns: minmax(0, 1fr); } }

.rt-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.rt-intro__t p { color: var(--ink-soft); font-size: 1.12rem; }
.rt-fases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(30px, 4vw, 48px); }
.rt-fase { background: #fff; border: 1px solid var(--line-paper); border-top: 3px solid var(--gold-500); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); color: var(--ink); }
.rt-fase__k { display: block; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; }
.rt-fase h3 { margin: 6px 0 12px; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.12; color: var(--navy-800); }
.rt-fase p { color: var(--ink-soft); }
.rt-decide { margin-top: 26px; padding: 20px 24px; border-left: 3px solid var(--gold-500); background: rgba(201, 154, 51, 0.1); color: var(--ink); }
.rt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 4vw, 48px); }
.rt-card { border: 1px solid var(--line-dark); border-top: 3px solid var(--gold-400); background: rgba(255, 255, 255, 0.03); padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); }
.rt-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.12; color: var(--gold-300); margin-bottom: 10px; }
.rt-card p { color: var(--on-dark-soft); }
.rt-note { margin-top: 22px; color: var(--ink-soft); font-size: 0.97rem; }
.rt-note--d { color: var(--on-dark-soft); }
.rt-faq { margin-top: 20px; }
.band--paper .rt-faq .acc { border-color: var(--line-paper); }
.band--paper .rt-faq .acc__t { color: var(--navy-800); }
.band--paper .rt-faq .acc__i { border-color: var(--line-paper); }
.band--paper .rt-faq .acc__i::before, .band--paper .rt-faq .acc__i::after { background: var(--gold-700); }
.faq__a { padding: 0 0 20px; color: var(--ink-soft); }
.rt-marco .ticks { margin-top: 14px; }
@media (max-width: 1000px) { .rt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rt-cards, .rt-fases, .rt-intro { grid-template-columns: minmax(0, 1fr); } }
.band--paper .rt-faq summary:hover .acc__t { color: var(--gold-700); }
#view-restitucion .shero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); max-width: 18ch; }
.rt-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 720px) { .rt-cards--2 { grid-template-columns: minmax(0, 1fr); } }

/* Etiquetas de énfasis en las tarjetas de especialidad */
.esp__badge { align-self: flex-start; display: inline-block; padding: 4px 12px; border: 1px solid var(--gold-400); border-radius: 999px; background: rgba(6, 15, 36, 0.72); color: var(--gold-300); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }
.rt-empezar { margin-top: 20px; }
.band--paper .rt-empezar li { border-top-color: var(--line-paper); color: var(--ink); }
.band--paper .rt-empezar li::before { color: var(--gold-700); }

/* Cinco especialidades: la última tarjeta ocupa todo el ancho */
@media (min-width: 701px) { .esp-grid > .esp:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 260px; } }

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-400); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
