/* Lcda. Dania M. Matías Brebán — diseño en vino y blanco (colores de la tarjeta de presentación) */
:root {
  --wine: #5B1722;        /* vino principal (fondo del logo en la tarjeta) */
  --wine-dark: #4A1422;   /* títulos y encabezado */
  --wine-2: #7A2C3C;      /* tarjetas sobre fondo vino (un poco más claro que el fondo) */
  --wine-3: #934759;      /* bordes sobre fondo vino */
  --accent: #8E2F41;      /* detalles pequeños sobre blanco */
  --rose: #E3C58C;        /* detalles sobre fondo vino (champán claro, combina con los botones) */
  --cta: #D8B26E;         /* botones principales: oro champán */
  --cta-hover: #E4C287;
  --cta-ink: #3E0F1A;     /* texto de los botones */
  --ink: #2B1C20;
  --muted: #6E5D61;
  --line: #ECDFE1;
  --paper: #FBF6F6;
  --white: #FFFFFF;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1, h2, h3, strong, .step-n, .service::before, .trust strong { font-variant-numeric: lining-nums; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--wine-dark); text-wrap: balance; }
h3 { font-size: 1.05rem; font-weight: 700; color: var(--wine-dark); }
p { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 60ch; margin-top: 1rem; }
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 100; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s, transform .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-light { background: var(--cta); color: var(--cta-ink); box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.btn-light:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-wine { background: var(--wine); color: var(--white); }
.btn-wine:hover { background: var(--wine-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { border: 1.5px solid var(--wine); color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: var(--white); }

/* Logo (recortado de la tarjeta; cambiar por el archivo original cuando llegue) */
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--white); flex: none; }
.logo img { height: 58px; width: auto; }
.logo-tag { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.25); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); white-space: nowrap; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(74,20,34,.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.07); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1.5rem; }
.nav { display: flex; gap: 1.9rem; }
.nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--rose); }
.header-cta { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { color: var(--rose); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.header-cta .btn { padding: .65rem 1.15rem; font-size: .88rem; }

/* Portada */
.hero { background: var(--wine); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 10%, rgba(227,197,140,.13), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 5.8vw, 4.6rem); letter-spacing: -.01em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero .sub { margin-top: 1.25rem; color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.6); }

.hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); background: #E9E7E4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.monogram-logo { width: 78%; height: auto; position: relative; }

/* Monograma DMB (imita el logo de la tarjeta mientras llega el archivo original) */
.monogram { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 14px; background: radial-gradient(80% 80% at 30% 20%, #6A2130, var(--wine-dark)); border: 1px solid rgba(255,255,255,.14); overflow: hidden; }
.monogram::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(227,197,140,.22); border-radius: 8px; pointer-events: none; }
.monogram-letters { font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 13vw, 11rem); letter-spacing: -.05em; line-height: 1; color: var(--white); }
.monogram-name { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -38%); white-space: nowrap; font-family: var(--serif); font-weight: 500; font-size: clamp(1rem, 1.9vw, 1.45rem); color: var(--white); background: #561520; padding: .1rem .7rem; }
.monogram-caption { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }

.trust { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid rgba(255,255,255,.12); }
.trust ul { list-style: none; margin: 0; padding: 1.75rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust li { display: flex; gap: .9rem; align-items: flex-start; }
.trust strong { display: block; font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--rose); line-height: 1.1; }
.trust span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* Áreas de práctica */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.75rem; flex-wrap: wrap; }
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; transition: border-color .2s, box-shadow .2s, transform .2s; }
.case:hover { border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(74,20,34,.4); transform: translateY(-2px); }
.case-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--white); color: var(--accent); display: grid; place-items: center; margin-bottom: .4rem; border: 1px solid var(--line); }
.case-icon svg { width: 24px; height: 24px; }
.case p { color: var(--muted); font-size: .93rem; }
.case a { margin-top: auto; padding-top: .5rem; font-weight: 700; font-size: .9rem; color: var(--wine); text-decoration: none; }
.case a:hover { color: var(--accent); }
.also { margin-top: 1.75rem; color: var(--muted); font-size: .95rem; }

/* Familia, Sucesiones y Notaría (sección vino) */
.groups { background: var(--wine); color: var(--white); }
.groups h2 { color: var(--white); }
.groups .eyebrow { color: var(--rose); }
.groups .lead { color: rgba(255,255,255,.75); }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.who { background: var(--wine-2); border: 1px solid var(--wine-3); border-radius: var(--radius); padding: 2rem; border-top: 3px solid var(--rose); display: flex; flex-direction: column; }
.who h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--white); }
.who .def { color: rgba(255,255,255,.72); margin-top: .5rem; font-size: .95rem; }
.who ul { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.who li { padding-left: 1.6rem; position: relative; font-size: .95rem; }
.who li a { color: var(--white); text-decoration-color: rgba(227,197,140,.5); text-underline-offset: 3px; }
.who li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .4rem; border-left: 2px solid var(--rose); border-bottom: 2px solid var(--rose); transform: rotate(-45deg); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2.75rem; counter-reset: s; }
.service { border-top: 2px solid var(--wine); padding-top: 1.25rem; }
.service::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 1.3rem; margin-bottom: .4rem; }
.service p { color: var(--muted); font-size: .93rem; margin-top: .5rem; }

/* Pasos */
.process { background: var(--wine); color: var(--white); }
.process h2 { color: var(--white); }
.process .eyebrow { color: var(--rose); }
.process .lead { color: rgba(255,255,255,.75); }
.steps { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { background: var(--wine-2); border: 1px solid var(--wine-3); border-radius: var(--radius); padding: 1.75rem; }
.step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--wine); font-weight: 800; display: grid; place-items: center; margin-bottom: 1rem; }
.step h3 { color: var(--white); }
.step p { color: rgba(255,255,255,.75); font-size: .93rem; margin-top: .5rem; }
.process .cta-row { margin-top: 2.5rem; display: flex; gap: .85rem; flex-wrap: wrap; }

/* La Licenciada */
.attorney-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.attorney-photo { border-radius: 14px; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 5; }
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.attorney-photo.monogram { aspect-ratio: 4 / 5; background: radial-gradient(80% 80% at 30% 20%, #6A2130, var(--wine-dark)); }
.attorney-photo .monogram-letters { font-size: clamp(5rem, 10vw, 8.5rem); }
.attorney-photo .monogram-name { font-size: clamp(.95rem, 1.5vw, 1.15rem); }
.creds { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.creds li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.creds li:last-child { border-bottom: 0; }
.creds .yr { color: var(--accent); font-weight: 700; font-size: .85rem; padding-top: .1rem; }
.creds b { color: var(--wine-dark); font-weight: 700; }
.creds span { color: var(--muted); display: block; }

/* Contacto final (vino, cierra cada página) */
.final { background: var(--wine); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 0%, rgba(227,197,140,.12), transparent 65%); pointer-events: none; }
.final .wrap { position: relative; }
.final .eyebrow { color: var(--rose); }
.final h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.final .lead { color: rgba(255,255,255,.75); margin-inline: auto; }
.final .cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 3rem auto 0; max-width: 48rem; text-align: left; }
.contact-card { background: var(--wine-2); border: 1px solid var(--wine-3); border-radius: var(--radius); padding: 1.25rem 1.4rem; text-decoration: none; display: flex; gap: 1rem; align-items: center; transition: border-color .2s; }
.contact-card:hover { border-color: var(--rose); }
.contact-card svg { width: 22px; height: 22px; color: var(--rose); flex: none; }
.contact-card small { display: block; color: rgba(255,255,255,.6); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-card b { color: var(--white); font-weight: 700; font-size: .98rem; overflow-wrap: anywhere; }
.offices { margin-top: 1.75rem; font-size: .92rem; color: rgba(255,255,255,.7); }

/* Pie de página */
.site-footer { background: var(--wine-dark); color: rgba(255,255,255,.62); font-size: .86rem; padding: 2.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.site-footer .links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.disclaimer { width: 100%; font-size: .78rem; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; margin-top: .5rem; }

/* Barra fija de celular */
.mobile-bar { display: none; }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--wine); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.75rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 90% at 90% 0%, rgba(227,197,140,.13), transparent 60%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.crumbs { font-size: .84rem; color: rgba(255,255,255,.6); margin-bottom: 1.25rem; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: var(--rose); }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4.8vw, 3.6rem); max-width: 22ch; text-wrap: balance; }
.page-hero h1 em { font-style: italic; color: var(--rose); }
.page-hero .sub { margin-top: 1.1rem; color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 42rem; }
.page-hero .hero-actions { margin-top: 1.75rem; }

.content { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: clamp(1.75rem, 2.9vw, 2.2rem); margin-top: 3rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; font-size: 1.12rem; font-weight: 700; color: var(--wine-dark); }
.prose p, .prose li { color: #45363A; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .45rem; }
.prose strong { color: var(--wine-dark); font-weight: 700; font-variant-numeric: normal; }
.prose a { color: var(--wine); font-weight: 600; }

.checks { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; }
.checks li { position: relative; padding-left: 1.75rem; margin: 0 !important; }
.checks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .7rem; height: .4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem !important; }
.kind { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--wine); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.kind h3 { margin: 0 0 .45rem !important; font-family: var(--serif); font-size: 1.45rem !important; font-weight: 600 !important; }
.kind p { font-size: .95rem; }

.callout { background: var(--paper); border-left: 4px solid var(--wine); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; }
.callout p { color: var(--ink); }

.timeline { list-style: none; padding: 0 !important; counter-reset: t; display: grid; gap: 0; }
.timeline li { counter-increment: t; position: relative; padding: 0 0 1.5rem 3.25rem; margin: 0 !important; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--wine); color: var(--white); font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.timeline li::after { content: ""; position: absolute; left: 1.03rem; top: 2.3rem; bottom: .2rem; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; color: var(--wine-dark); font-weight: 700; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.25rem 1.1rem 0; font-weight: 700; color: var(--wine-dark); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: #45363A; }

.content-grid > aside { align-self: stretch; }
.aside-card { position: sticky; top: 96px; background: var(--wine); color: var(--white); border-radius: 14px; padding: 1.75rem; }
.aside-card h2 { color: var(--white); font-size: 1.6rem; }
.aside-card p { color: rgba(255,255,255,.75); font-size: .93rem; margin-top: .6rem; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.aside-card .btn + .btn { margin-top: .6rem; }
.aside-card .judge { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--wine-3); display: flex; gap: .85rem; align-items: center; }
.aside-card .judge .avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 1.05rem; letter-spacing: -.03em; color: var(--white); border: 1px solid rgba(255,255,255,.4); background: var(--wine-dark); object-fit: cover; object-position: top; }
.aside-card .judge span { font-size: .84rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.aside-card .judge b { display: block; color: var(--white); font-size: .92rem; }

.more { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.more h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }
.more .cases { grid-template-columns: repeat(3, 1fr); }
.more .case { padding: 1.4rem; }

.inline-cta { margin-top: 1.5rem !important; background: #F7ECEE; border-radius: var(--radius); padding: 1rem 1.25rem; font-weight: 600; color: var(--wine-dark) !important; }
.inline-cta a { color: var(--wine); font-weight: 700; text-decoration: none; white-space: nowrap; }
.inline-cta a:hover { text-decoration: underline; }
.note { font-size: .88rem; color: var(--muted) !important; font-style: italic; }
.folds { margin-top: 3rem !important; border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold summary { cursor: pointer; list-style: none; position: relative; padding: 1.3rem 2.5rem 1.3rem 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h2 { margin: 0 !important; font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
.fold summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent); transition: transform .2s; }
.fold[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fold summary:hover h2 { color: var(--accent); }
.fold > div { padding-bottom: 1.5rem; }
.fold > div > * + * { margin-top: 1rem; }

/* Biografía: formación y publicaciones */
.dark-band { background: var(--wine); color: var(--white); }
.dark-band h2 { color: var(--white); }
.dark-band .eyebrow { color: var(--rose); }
.dark-band .lead { color: rgba(255,255,255,.75); }
.pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.pub { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.pub small { color: var(--accent); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pub h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.pub p { color: var(--muted); font-size: .92rem; }
.dark-band .pub { background: var(--wine-2); border-color: var(--wine-3); }
.dark-band .pub small { color: var(--rose); }
.dark-band .pub h3 { color: var(--white); }
.dark-band .pub p { color: rgba(255,255,255,.75); }

.legal h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.legal .prose { max-width: 46rem; }

@media (max-width: 1080px) {
  .nav { gap: 1.4rem; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; max-width: 40rem; }
  .content-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .pubs, .more .cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .header-cta .btn, .header-phone { display: none; }
  .hero-grid, .attorney-grid { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-grid > div:first-child { text-align: center; }
  .hero .sub { margin-inline: auto; }
  .hero .hero-actions { flex-direction: column; align-items: center; }
  .hero .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .trust li { justify-content: center; text-align: center; }
  .cases, .services, .steps, .contact-cards, .checks, .kinds, .pubs, .more .cases { grid-template-columns: 1fr; }
  .attorney-photo, .attorney-photo.monogram { max-width: 340px; margin-inline: auto; width: 100%; }
  .creds li { grid-template-columns: 1fr; gap: .2rem; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; position: fixed; inset: auto 0 0 0; z-index: 60; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--wine-dark); border-top: 1px solid var(--wine-3); }
  .mobile-bar .btn { justify-content: center; padding: .85rem 1rem; }

  /* Móvil: todo el contenido centrado */
  main, .site-footer { text-align: center; }
  main .lead, main .sub, main h1, main h2 { margin-inline: auto; }
  .section-head { flex-direction: column; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; }
  .cta-row, .process .cta-row, .page-hero .hero-actions { justify-content: center; }
  .page-hero .hero-actions { flex-direction: column; align-items: center; }
  .page-hero .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .case, .pub { align-items: center; }
  .case a { margin-top: .25rem; }
  .split { margin-inline: auto; }
  .step-n { margin-inline: auto; }
  .contact-cards { text-align: left; }
  .contact-card { justify-content: center; }
  .who li, .checks li { padding-left: 0; }
  .who li::before, .checks li::before { position: relative; left: auto; top: -.2em; display: inline-block; margin-right: .6rem; vertical-align: middle; }
  .checks { justify-items: center; }
  .prose ul:not(.checks):not(.timeline) { list-style-position: inside; padding-left: 0; }
  .timeline li { padding: 0 0 1.75rem; }
  .timeline li::before { position: static; margin: 0 auto .6rem; }
  .timeline li::after { display: none; }
  .callout { border-left: 0; border-top: 4px solid var(--wine); border-radius: 0 0 var(--radius) var(--radius); }
  .aside-card .judge { justify-content: center; text-align: left; }
  .faq summary { padding-left: 2.25rem; }
  .fold summary { padding-left: 2.5rem; }
  .site-footer .wrap { flex-direction: column; align-items: center; gap: 1rem; }
  .site-footer .links { justify-content: center; }

  /* Espacios más compactos */
  .split, .services, .steps, .pubs { margin-top: 1.75rem; }
  .services { gap: 1.5rem; }
  .process .cta-row, .final .cta-row { margin-top: 1.75rem; }
  .contact-cards { margin-top: 2rem; }
  .trust { margin-top: 2.5rem; }
  .trust ul { padding: 1.5rem 0; }
  .prose h2 { margin-top: 2.25rem; }
  .folds { margin-top: 2.25rem !important; }
  .more { margin-top: 2.5rem; }
}
@media (max-width: 400px) {
  .logo { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Menú desplegable (☰) en celular y tableta */
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .header-cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; margin-right: -11px; background: none; border: 0; cursor: pointer; flex: none; }
  .menu-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.menu-open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--wine-dark); border-top: 1px solid rgba(255,255,255,.08); padding: .4rem 0 .9rem; box-shadow: 0 22px 30px -14px rgba(0,0,0,.5); }
  .site-header.menu-open .nav a { padding: .95rem 1.5rem; font-size: 1.05rem; text-align: center; color: var(--white); }
  .site-header.menu-open .nav a + a { border-top: 1px solid rgba(255,255,255,.06); }
  .site-header.menu-open .nav a[aria-current="page"] { color: var(--rose); }
}

/* Encabezado y foto en pantallas medianas y celular */
@media (max-width: 1080px) {
  .logo-tag { display: none; }
}
@media (max-width: 760px) {
  .site-header .wrap { height: 68px; }
  .logo img { height: 48px; }
  .hero-photo { aspect-ratio: 1 / 1; max-width: 360px; width: 100%; margin-inline: auto; }
  .hero-photo img { object-position: center 18%; }
}

/* Portada, sección La Licenciada: logo centrado sobre vino */
.attorney-photo .monogram-logo { width: 76%; height: auto; object-fit: contain; }

/* Biografía: la foto se alinea arriba y acompaña la trayectoria al bajar (solo computadora) */
@media (min-width: 761px) {
  .page-hero + section .attorney-grid { align-items: start; }
  .page-hero + section .attorney-photo { position: sticky; top: 100px; }
}
