/* RDC Abogados · sitio */
:root {
    --ink: #0d1726;
    --ink-2: #15243b;
    --ink-3: #1d3150;
    --gold: #c9971c;
    --gold-2: #e0b13e;
    --gold-ink: #8a6512;
    --paper: #f6f3ec;
    --text: #1f2733;
    --muted: #5d6675;
    --line: #e4ded1;
    --white: #fff;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 14px;
    --shadow: 0 18px 50px -24px rgba(13, 23, 38, .35);
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container--text { width: min(760px, 100% - 2.5rem); }

/* ---------- Tipografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; margin: 0 0 1rem; font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow:empty { display: none; }
.eyebrow--light, .section--dark .eyebrow, .contact .eyebrow { color: var(--gold-2); }
.title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.005em; color: var(--ink); margin-bottom: 1.4rem; text-wrap: balance; }
.title--sm { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); }
.title--light { color: var(--white); }
.prose { color: var(--muted); font-size: 1.02rem; }
.prose--light { color: rgba(255, 255, 255, .78); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(201, 151, 28, .8); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--sm { padding: .62rem 1.2rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--gold-ink); text-decoration: none; }
.link-arrow::after { content: '→'; transition: transform .25s; }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Encabezado ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .3s, box-shadow .3s; }
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; transition: height .3s; }
.header__logo img { height: 52px; width: auto; transition: height .3s; }
.header.is-solid, .header.is-scrolled { background: rgba(13, 23, 38, .96); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); }
.header.is-scrolled .header__bar { height: 70px; }
.header.is-scrolled .header__logo img { height: 44px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: .93rem; font-weight: 500; position: relative; padding: .3rem 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--gold); transition: right .3s; }
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s, top .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; padding-top: var(--header-h); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; z-index: -2; animation: hero-zoom 18s ease-out both; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 23, 38, .94) 0%, rgba(13, 23, 38, .78) 42%, rgba(13, 23, 38, .35) 100%), linear-gradient(0deg, rgba(13, 23, 38, .9) 0%, rgba(13, 23, 38, 0) 40%); }
.hero__inner { padding: 4rem 0 3.5rem; max-width: 1200px; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 1.4rem + 5vw, 5.2rem); line-height: 1.02; max-width: 15ch; letter-spacing: -.01em; text-wrap: balance; }
.hero__lead { margin: 1.5rem 0 2.2rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: .1s; }
.hero__inner > :nth-child(3) { animation-delay: .2s; }
.hero__inner > :nth-child(4) { animation-delay: .3s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0 0 3rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.stats__item { display: flex; flex-direction: column-reverse; padding: 1.6rem 1.5rem 0 0; }
.stats__item + .stats__item { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .16); }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--gold-2); }
.stats dt { margin-top: .5rem; font-size: .9rem; color: rgba(255, 255, 255, .72); }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 3rem + 5vw, 7.5rem) 0; }
.section--tight { padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head--wide { max-width: 820px; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section-head .title { margin-bottom: 1rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; }
.framed { position: relative; }
.framed::before { content: ''; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.framed img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split__media { isolation: isolate; }

/* Legado */
.legacy { position: relative; overflow: hidden; }
.legacy__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: center; position: relative; z-index: 1; }
.legacy__portrait img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.legacy__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-2); margin: 0 0 .3rem; }
.legacy__caption { font-size: .92rem; color: rgba(255, 255, 255, .6); font-style: italic; margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }

/* Clientes */
.clients .section-head { text-align: center; margin-inline: auto; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.logos__item { display: grid; place-items: center; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.logos__item img { max-height: 110px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .35s, opacity .35s; }
.logos__item:hover img { filter: none; opacity: 1; }

/* Servicios */
.services { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.service { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--white); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: 0 1px 0 var(--line), var(--shadow); }
.service:nth-child(even) { grid-template-columns: 1.25fr 1fr; }
.service:nth-child(even) .service__media { order: 2; }
.service__media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.service__body { padding: clamp(1.8rem, 1.2rem + 2.5vw, 3.2rem); color: var(--muted); }
.service__num { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.service h3 { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; color: var(--ink); margin: .2rem 0 1.1rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230d1726' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.3l2.6 2.5L12 5.4'/%3E%3C/svg%3E") center / 72% no-repeat; }

.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.feature { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; color: var(--white); background: var(--ink-2); isolation: isolate; display: flex; min-height: 520px; }
.feature__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 23, 38, .35) 0%, rgba(13, 23, 38, .9) 45%, rgba(13, 23, 38, .97) 100%); }
.feature:hover .feature__bg { transform: scale(1.05); }
.feature__body { margin-top: auto; padding: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); color: rgba(255, 255, 255, .8); font-size: .98rem; }
.feature h3 { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.feature .link-arrow { color: var(--gold-2); margin-top: .6rem; }

/* Equipo */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(1rem, .6rem + 1.5vw, 1.75rem); }
.member__card { width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.member__card:disabled { cursor: default; }
.member__photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--paper); margin-bottom: 1rem; display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(.25); transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.member__card:hover .member__photo img { transform: scale(1.04); filter: none; }
.member__initials { font-family: var(--serif); font-size: 3.2rem; font-weight: 600; color: var(--gold); }
.member__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.member__role { font-size: .9rem; font-weight: 500; color: var(--gold-ink); margin-top: .25rem; }
.member__uni { font-size: .84rem; color: var(--muted); margin-top: .15rem; }
.member__more { margin-top: .7rem; font-size: .84rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }

.dialog { border: 0; padding: 0; background: transparent; max-width: min(680px, 100% - 2rem); width: 100%; max-height: min(86vh, 900px); }
.dialog::backdrop { background: rgba(13, 23, 38, .7); backdrop-filter: blur(4px); }
.dialog[open] { animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
.dialog__panel { position: relative; background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); max-height: min(86vh, 900px); overflow-y: auto; }
.dialog__head { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 1.5rem; padding-right: 2rem; }
.dialog__head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.dialog__head h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.dialog__head p { font-size: .9rem; color: var(--gold-ink); margin: .3rem 0 0; }
.dialog__close { position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.dialog__close:hover { background: var(--line); }

/* Publicaciones */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.posts--two { margin-top: 2rem; }
.posts__more { margin-top: clamp(2rem, 1.5rem + 1vw, 2.75rem); text-align: center; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; margin-top: clamp(2.5rem, 2rem + 1vw, 3.25rem); font-size: .92rem; }
.pager__item { font-weight: 600; color: var(--gold-ink); text-decoration: none; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.pager__item:hover { border-color: var(--gold); }
.pager__item.is-disabled { color: var(--muted); opacity: .5; }
.pager__status { color: var(--muted); }
.post-card__link { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 1px 0 var(--line), 0 14px 40px -28px rgba(13, 23, 38, .5); transition: transform .35s, box-shadow .35s; }
.post-card__link:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.post-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin: .4rem 0 .7rem; line-height: 1.15; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .link-arrow { margin-top: 1rem; }

/* Enlaces de interes */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.links__item { height: 100%; display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 1.2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; text-decoration: none; font-size: .84rem; line-height: 1.35; color: var(--muted); transition: border-color .3s, transform .3s, color .3s; }
.links__item img { height: 64px; width: auto; object-fit: contain; }
.links__item:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }

/* Contacto */
.contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; width: 640px; height: 640px; right: -260px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 151, 28, .16), transparent 65%); pointer-events: none; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 2rem + 4vw, 5.5rem); position: relative; }
.contact__intro { color: rgba(255, 255, 255, .75); font-size: 1.05rem; }
.contact__data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin: 2.2rem 0; }
.contact__data dt { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .3rem; }
.contact__data dd { margin: 0; color: rgba(255, 255, 255, .88); }
.contact__data a { text-decoration: none; overflow-wrap: anywhere; }
.contact__data a:hover { color: var(--gold-2); }
.contact__map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--ink-2); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.contact__form { background: var(--white); color: var(--text); border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 1rem + 2.5vw, 2.8rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); align-self: start; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field label span { color: var(--gold); }
.field input, .field textarea { width: 100%; font: inherit; font-size: .98rem; color: var(--text); padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf7; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(201, 151, 28, .18); }
.has-error input, .has-error textarea { border-color: #c2412d; }
.field__error { color: #b3351f; font-size: .82rem; margin: .35rem 0 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--gold); flex: none; }
.check a { color: var(--ink); font-weight: 600; }
.alert { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: .95rem; }
.alert p { margin: .25rem 0 0; }
.alert--ok { background: #eef7ef; border: 1px solid #b9dcbe; color: #1f5a2a; }

/* Pie */
.footer { background: #08101c; color: rgba(255, 255, 255, .66); font-size: .92rem; padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 34ch; }
.footer h3 { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__social { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; color: rgba(255, 255, 255, .8); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.footer__bottom a { color: var(--gold-2); font-weight: 600; }

/* WhatsApp */
.wa { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); transition: transform .25s; }
.wa:hover { transform: scale(1.07); }

/* Paginas internas */
.page-inner main { padding-top: var(--header-h); }
.article__head { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 2rem; }
.article__head h1 { font-family: var(--serif); font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); font-weight: 600; line-height: 1.08; color: var(--ink); margin: 1rem 0; text-wrap: balance; }
.article__meta { color: var(--muted); font-size: .92rem; }
.back { font-size: .88rem; font-weight: 600; color: var(--gold-ink); text-decoration: none; }
.article__media { margin-bottom: 2.5rem; }
.article__media img { width: 100%; border-radius: var(--radius); }
.article__source { font-size: .9rem; font-style: italic; color: var(--muted); padding: 1rem 1.2rem; background: var(--paper); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; margin-bottom: 2rem; }
.article__source a { color: var(--gold-ink); }
.prose--article { color: var(--text); font-size: 1.08rem; line-height: 1.8; padding-bottom: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.prose--article h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); margin: 2.2rem 0 .8rem; line-height: 1.15; }
.prose--article h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); margin: 1.8rem 0 .6rem; }
.prose--article ul, .prose--article ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose--article li { margin-bottom: .4rem; }
.prose--article a { color: var(--gold-ink); overflow-wrap: anywhere; }
.prose--article blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }

/* Aparicion al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --header-h: 70px; }
    .header__logo img, .header.is-scrolled .header__logo img { height: 42px; }
    .header.is-scrolled .header__bar { height: var(--header-h); }
    .burger { display: block; }
    .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem; background: rgba(13, 23, 38, .98); border-top: 1px solid rgba(255, 255, 255, .08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
    .nav a:not(.btn) { padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 1.2rem; }
    .nav-open .header { background: rgba(13, 23, 38, .98); }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
    .split, .legacy__grid, .contact__grid { grid-template-columns: 1fr; }
    .framed::before { inset: 1rem -.75rem -1rem .75rem; }
    .service, .service:nth-child(even) { grid-template-columns: 1fr; }
    .service:nth-child(even) .service__media { order: 0; }
    .service__media img { min-height: 0; aspect-ratio: 16 / 9; }
    .legacy__portrait img { max-width: 320px; }
}

@media (max-width: 640px) {
    .container { width: min(1200px, 100% - 2.5rem); }
    .hero { min-height: 100svh; }
    .hero__bg { object-position: 68% center; }
    .hero::before { background: linear-gradient(0deg, rgba(13, 23, 38, .96) 0%, rgba(13, 23, 38, .7) 55%, rgba(13, 23, 38, .5) 100%); }
    .hero__inner { padding: 3rem 0 2rem; }
    .hero__actions .btn { flex: 1 1 100%; }
    .stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 2rem; }
    .stats__item, .stats__item + .stats__item { padding: 1.2rem .5rem 0 0; border-left: 0; }
    .stats dd { font-size: 1.9rem; }
    .stats dt { font-size: .76rem; line-height: 1.35; }
    .form__row, .contact__data { grid-template-columns: 1fr; }
    .logos { grid-template-columns: repeat(2, 1fr); }
    .logos__item { padding: .8rem; }
    .team { grid-template-columns: repeat(2, 1fr); }
    .member__name { font-size: 1.12rem; }
    .member__role { font-size: .82rem; }
    .member__uni { display: none; }
    .links { grid-template-columns: repeat(2, 1fr); }
    .feature { min-height: 0; }
    .feature__body { padding-top: 10rem; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; }
    .wa { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
