/* =========================================================
   1. Tokens de la marca (ver LEEME)
   ========================================================= */
:root {
  font-variant-numeric: lining-nums;
  --ink: #111111;
  --ink-2: #1b1a17;
  --gold: #ffb900;          /* dorado oficial del monograma VSR: botones y la V */
  --gold-soft: #ffcb45;     /* hover del botón */
  --silver-logo: #818181;   /* plata oficial de la S y la R */
  --gold-text: #7a5c0f;     /* dorado legible sobre crema */
  --silver: #a6a6a6;        /* letras SR del monograma, semitono */
  --cream: #f4f3ee;         /* fondo de la web */
  --paper: #ffffff;
  --line: #e2ded2;
  --muted: #5d5a52;
  --on-dark: #d9d6cc;
  --cta: var(--gold);
  --cta-ink: var(--ink);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --ease: cubic-bezier(.2,.9,.3,1);
  --ease-io: cubic-bezier(.7,0,.3,1);
  --t-hover: .45s;
  --maxw: 1240px;
  --section-y: clamp(72px, 9vw, 120px);
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-variant-numeric: lining-nums; font-family: var(--font); background: var(--cream); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: clamp(18px, 5vw, 56px); }
.container.narrow { width: min(860px, 100%); }
section { padding: var(--section-y) 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
em { font-style: italic; }
.lead { color: var(--muted); max-width: 560px; font-size: 17px; }
.skip-link { position: absolute; left: -9999px; top: 10px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =========================================================
   3. Botones, etiquetas y elementos de la marca
   ========================================================= */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 14px; min-height: 50px; padding: 6px 6px 6px 24px; border-radius: 999px; border: 0; font: 600 15px var(--font); cursor: pointer; white-space: nowrap; transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.btn .arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: transform var(--t-hover) var(--ease); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--cta); color: var(--cta-ink); }
.btn-gold .arrow { background: var(--ink); color: var(--gold); }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease); }
.btn-gold:hover::before { transform: scaleX(1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .arrow { background: var(--gold); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-line .arrow { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white .arrow { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-ghost .arrow { background: #fff; color: var(--ink); }
.btn-sm { font-size: 13px; min-height: 44px; padding: 4px 4px 4px 18px; gap: 10px; }
.btn-sm .arrow { width: 34px; height: 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--paper); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.sec-num { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 46px; line-height: .9; color: var(--gold-text); font-variant-numeric: lining-nums; }
.bento .wide .sec-num { color: var(--gold-text); }
.area .sec-num { font-size: 40px; }
.v-mini { width: 30px; height: 30px; color: var(--gold); flex: none; }
.text-link { font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--gold-text); }

/* Semitono (puntos de la portada de la web actual) */
.dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, var(--silver) 1.1px, transparent 1.4px); background-size: 11px 11px; opacity: .35; -webkit-mask: radial-gradient(70% 60% at 65% 35%, #000 15%, transparent 75%); mask: radial-gradient(70% 60% at 65% 35%, #000 15%, transparent 75%); }

/* Letras SR del monograma, en contorno */
.sr-outline { position: absolute; right: -4%; bottom: -6%; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(170px, 34vw, 380px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(166,166,166,.5); letter-spacing: -.06em; user-select: none; pointer-events: none; }
.sr-outline.small { position: static; font-size: clamp(90px, 14vw, 150px); -webkit-text-stroke-color: rgba(255,185,0,.4); }

/* Marco de sello: esquinas doradas */
.frame { position: relative; padding: clamp(16px, 3vw, 30px); }
.frame::before, .frame::after, .frame > i::before, .frame > i::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; }
.frame::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.frame::after { top: 0; right: 0; border-width: 1px 1px 0 0; }
.frame > i::before { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.frame > i::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

/* Fotos: si no hay imagen se ve un degradado sobrio */
.photo { background: linear-gradient(135deg, #e2e0d8, #c4c2bb); border-radius: var(--r-lg); object-fit: cover; width: 100%; height: 100%; min-height: 160px; }
.photo.dark { background: radial-gradient(120% 80% at 70% 20%, #2a2822 0%, var(--ink) 60%); }

/* =========================================================
   4. Header
   ========================================================= */
.header { position: sticky; top: 0; z-index: 50; background: rgba(244,243,238,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.scrolled { border-color: var(--line); }
.admin-bar .header { top: 32px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 14px; }
.brand img, .brand .custom-logo { height: 46px; width: auto; }
.menu { display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.menu > li { position: relative; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: .2s; white-space: nowrap; }
.menu a:hover, .menu .current-menu-item > a, .menu .current-menu-ancestor > a, .menu .current_page_item > a { background: var(--ink); color: #fff; }
.menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 24px 50px -24px rgba(17,17,17,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); }
.menu .sub-menu a { border-radius: 10px; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: 12px; font-weight: 700; min-width: 36px; min-height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.lang-switch a.on { background: var(--ink); color: var(--gold); }
.lang-switch.foot { margin-top: 18px; display: inline-flex; background: transparent; border-color: rgba(255,255,255,.2); }
.lang-switch.foot a { color: rgba(255,255,255,.7); }
.lang-switch.foot a.on { background: var(--gold); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   5. Portada (hero) con la rúbrica
   ========================================================= */
.hero { position: relative; padding: 24px 0 64px; }
.hero-grid { display: grid; gap: 22px; }
.hero-title { font-size: clamp(40px, 10.6vw, 78px); margin: 14px 0 16px; }
.hero-title em { color: var(--gold-text); font-weight: 500; }
.hero-title .line-mask { overflow: hidden; padding: .12em 0 .14em; margin: -.12em 0 -.14em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; position: relative; z-index: 2; }
.facts { display: grid; grid-template-columns: repeat(2, max-content); gap: 28px; margin-top: 30px; }
.facts a { border-left: 1px solid var(--gold); padding-left: 14px; }
.facts strong { display: block; font-family: var(--font-display); font-size: 36px; line-height: 1; font-weight: 600; }
.facts span { font-size: 13px; color: var(--muted); }
.stage { position: relative; order: -1; height: 240px; }
.arch { position: absolute; inset: 0; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; background: #e9e6dc; }
.arch-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; filter: saturate(.85) brightness(1.03); }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,243,238,.25) 0%, rgba(244,243,238,.45) 55%, rgba(244,243,238,.8) 100%); }
.arch .dots { z-index: 1; opacity: .22; }
.arch .sr-outline { z-index: 2; -webkit-text-stroke-color: rgba(255,255,255,.35); }
.vmark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; pointer-events: none; }
.vmark path { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.seal { position: absolute; top: 8%; left: -6px; width: 74px; height: 74px; color: var(--gold); z-index: 4; }
.seal text { font: 600 9.6px var(--font); letter-spacing: 2.4px; fill: var(--gold-text); }
.seal-ring { transform-origin: 60px 60px; }
.link-line { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 1; }
.link-line path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }

/* =========================================================
   6. Secciones de la portada
   ========================================================= */
.services { background: var(--paper); }
.services-grid { display: grid; gap: 16px; }
.services-intro { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-bottom: 10px; }
.services-intro p { color: var(--muted); font-size: 15px; max-width: 380px; }
.service-card { position: relative; background: var(--cream); border-radius: var(--r-lg); padding: 26px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; overflow: hidden; transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.service-card::after, .area::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.service-card:hover, .area:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(17,17,17,.3); }
.service-card:hover::after, .area:hover::after { transform: scaleX(1); }
.service-card h3 { font-size: 26px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); }

.mission { text-align: center; }
.mission-text { font-size: clamp(26px, 3.4vw, 42px); max-width: 1000px; margin-inline: auto; line-height: 1.22; font-weight: 500; }
.mission-text span { color: #9a978e; }
.mission-grid { display: grid; gap: 18px; margin-top: 56px; text-align: left; }
.firm-tile { position: relative; display: block; height: 300px; border-radius: var(--r-lg); overflow: hidden; }
.firm-media { position: absolute; inset: -8% 0; display: block; }
.firm-media .photo { border-radius: 0; }
.tile-label { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); padding: 8px 18px 8px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.tile-label .v-mini { width: 24px; height: 24px; }
.attorney-card { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--gold); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.attorney-top { display: flex; gap: 16px; align-items: center; }
.attorney-card small { color: var(--gold-text); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.attorney-card h3 { font-size: 30px; margin-top: 4px; }
.attorney-card p { color: var(--muted); font-size: 14px; }
.attorney-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.attorney-card .text-link { color: var(--ink); }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }

.values { padding-top: 10px; }
.center-head { text-align: center; margin-bottom: 44px; }
.bento { display: grid; gap: 16px; }
.bento .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.bento .tall { display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.tall-media { display: block; height: 320px; border-radius: var(--r-md); overflow: hidden; position: relative; }
.tall-media .photo { position: absolute; inset: -8% 0; height: 116%; object-position: top; border-radius: 0; }
.bento .tall h3 { font-size: 24px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.bento .tall h3 b { color: var(--ink); font-weight: 600; }
.bento .value .sec-num { margin-bottom: 26px; }
.bento .value h3 { font-size: 28px; }
.bento .value p { font-size: 15px; color: var(--muted); margin-top: 10px; }
.bento .value .btn { margin-top: 22px; }
.bento .wide { background: #fbecc0; color: var(--ink); border-color: #f4dc94; }
.bento .wide p { color: #5a4a1e; }
.bento .wide .sec-num { color: var(--gold-text); }

.areas-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.areas-head p { color: var(--muted); font-size: 15px; max-width: 400px; }
.head-right { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.areas-grid { display: grid; gap: 12px; }
.area { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; min-height: 150px; overflow: hidden; transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), background .3s; }
.area h3 { font-size: 24px; margin: 14px 0 auto; }
.area .area-more { font-size: 13px; color: var(--muted); margin-top: 18px; transition: color .2s; }
.area:hover .area-more { color: var(--gold-text); }

.honors { background: var(--cream); color: var(--ink); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.honors-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.honors-head p { color: var(--muted); max-width: 520px; margin-top: 10px; }
.honors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hon { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 104px; display: grid; place-items: center; padding: 16px 18px; transition: transform var(--t-hover) var(--ease), background .3s; }
.hon img { max-height: 62px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .82; transition: filter .35s, opacity .35s; }
.hon:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(17,17,17,.3); }
.hon:hover img { filter: none; opacity: 1; }
.honors-widget img { max-height: 62px; width: auto; }
.honors-widget .wp-block-gallery { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px !important; }
.honors-widget figure { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); display: grid !important; place-items: center; padding: 16px; width: auto !important; margin: 0 !important; }

.news-band { background: var(--paper); }
.news-grid { display: grid; gap: 18px; }
.news-card { background: var(--cream); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(17,17,17,.3); }
.news-thumb { display: block; height: 210px; overflow: hidden; }
.news-thumb .photo { border-radius: 0; min-height: 0; transition: transform .8s var(--ease); }
.news-card:hover .news-thumb .photo { transform: scale(1.04); }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time { font-size: 12px; color: var(--muted); }
.news-body h3 { font-size: 23px; line-height: 1.15; }
.news-body p { font-size: 14px; color: var(--muted); flex: 1; }
.news-body .more { font-size: 13px; color: var(--gold-text); font-weight: 700; }
.news-card.dark { background: rgba(255,255,255,.05); }

.faq-grid { display: grid; gap: 40px; }
.faq-grid > div > p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 380px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; padding: 20px 0; min-height: 44px; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 17px; font-weight: 500; }
.faq-q i { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; color: var(--gold-text); transition: transform .3s var(--ease), background .3s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--muted); font-size: 15px; padding-bottom: 20px; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--ink); }
.no-js .faq-a { max-height: none; }

/* =========================================================
   7. Páginas internas y noticias
   ========================================================= */
.page-hero { padding: 48px 0 36px; }
.page-hero.center { text-align: center; padding: 120px 0; }
.page-hero.center .lead { margin-inline: auto; }
.page-hero.center .actions { justify-content: center; display: flex; margin-top: 26px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin: 14px 0 12px; max-width: 920px; }
.page-hero .meta { color: var(--muted); font-size: 14px; }
.page-hero .meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--gold-text); }
.page-body { padding: 10px 0 100px; }
.page-grid { display: grid; gap: 40px; align-items: start; }
.entry-thumb img { width: 100%; border-radius: var(--r-lg); margin-bottom: 36px; max-height: 480px; object-fit: cover; }
.children-grid { margin-top: 30px; }
.child-img { width: calc(100% + 44px); margin: -22px -22px 18px; height: 160px; object-fit: cover; max-width: none; }
.entry-content { font-size: 17px; color: #2b2a26; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(30px, 3.4vw, 40px); margin-top: 1.5em; color: var(--ink); }
.entry-content h3 { font-size: 27px; margin-top: 1.4em; color: var(--ink); }
.entry-content h4 { font-size: 22px; margin-top: 1.3em; color: var(--ink); }
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--gold-text); }
.entry-content blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; color: var(--muted); font-family: var(--font-display); font-size: 24px; font-style: italic; }
.entry-content img { border-radius: var(--r-md); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.entry-content a[href$=".pdf"] { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.entry-content a[href$=".pdf"]::before { content: "PDF"; font-size: 10px; font-weight: 700; color: var(--ink); background: var(--gold); padding: 2px 6px; border-radius: 4px; }
.entry-content input:not([type=submit]):not([type=checkbox]):not([type=radio]), .entry-content textarea, .entry-content select { width: 100%; font: inherit; font-size: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.entry-content input[type=submit], .entry-content button[type=submit], .wp-block-button__link { background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 26px; font: 600 15px var(--font); cursor: pointer; text-decoration: none; min-height: 48px; }
.entry-content input[type=submit]:hover, .entry-content button[type=submit]:hover { background: var(--gold-soft); }
.alignwide { width: min(1100px, 100%); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.entry-tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.entry-tags a { font-size: 12px; background: var(--paper); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav a:hover { color: var(--gold-text); }
.aside { display: grid; gap: 18px; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: block; }
.aside-card h4 { font-size: 24px; margin-bottom: 10px; }
.aside-card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.aside-card.navy { background: var(--ink); color: #fff; border-color: var(--ink); }
.aside-card.navy h4 { color: #fff; }
.aside-card.navy p { color: var(--on-dark); }
.blog-card span { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--gold); }
.blog-banner { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; }
.blog-banner span { font-family: var(--font-display); font-size: 24px; flex: 1; min-width: 220px; }
.blog-banner b { color: var(--gold); font-weight: 600; }
.mini-news { display: grid; gap: 14px; }
.mini-news a { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.35; }
.mini-news a:hover { color: var(--gold-text); }
.mini-news img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.mini-news time { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.widget + .widget { margin-top: 20px; }
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 14px; padding: 0 12px; }
.pagination .page-numbers.current { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.comments-area { margin-top: 60px; }
.comment-body { background: var(--paper); border-radius: var(--r-md); padding: 18px; margin-bottom: 14px; }

/* WPBakery (páginas existentes) */
.entry-content .vc_row { margin-left: -15px; margin-right: -15px; }
.entry-content .vc_column-inner { padding-top: 0; }
.entry-content .wpb_content_element { margin-bottom: 24px; }
.entry-content .vc_btn3, .entry-content .vc_general.vc_btn3 { border-radius: 999px !important; background: var(--gold) !important; color: var(--ink) !important; border: 0 !important; text-decoration: none; }
.entry-content .vc_separator .vc_sep_line { border-color: var(--line) !important; }
.entry-content .wpb_single_image img { border-radius: var(--r-md); }

/* =========================================================
   8. Footer
   ========================================================= */
.footer { background: var(--ink); color: #fff; padding: 70px 0 30px; position: relative; overflow: hidden; }
.cta { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 64px 24px; text-align: center; background: radial-gradient(ellipse at top, rgba(255,185,0,.09), transparent 70%); }
.cta-v { position: absolute; right: -40px; top: -30px; width: min(420px, 70%); color: rgba(255,185,0,.22); pointer-events: none; }
.cta h2 { position: relative; margin-bottom: 12px; }
.cta p { position: relative; color: rgba(255,255,255,.65); font-size: 15px; max-width: 480px; margin: 0 auto 28px; }
.cta-actions { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.foot-grid { display: grid; gap: 36px; margin-top: 64px; }
.foot-grid p, .foot-grid li { color: rgba(255,255,255,.62); font-size: 14px; }
.foot-grid p + p { margin-top: 6px; }
.foot-grid a:hover { color: var(--gold); }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.foot-about p { margin-top: 12px; max-width: 340px; }
.foot-blog a { color: var(--gold); font-weight: 600; }
.foot-grid h4 { font-family: var(--font); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.foot-menu { display: grid; gap: 8px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; font-size: 12px; transition: .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.newsletter { margin-top: 22px; font-size: 13px; }
.newsletter input:not([type=submit]) { width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font: inherit; font-size: 16px; margin: 6px 0; }
.newsletter input[type=submit], .newsletter button { background: var(--gold); color: var(--ink); border: 0; padding: 11px 20px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; min-height: 44px; }
.foot-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; font-size: 12px; color: rgba(255,255,255,.5); gap: 20px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.2); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* =========================================================
   9. Estados de animación (solo si el JS cargó)
   ========================================================= */
/* Solo la portada se oculta antes de animar; si algo falla, a los 3.5 s se muestra sola. */
.js .sr-motion .hero [data-in], .js .sr-motion .hero-title, .js .sr-motion .stage { opacity: 0; animation: sr-show 0s linear 3.5s forwards; }
@keyframes sr-show { to { opacity: 1; } }
.js .sr-motion.sr-ready .hero [data-in], .js .sr-motion.sr-ready .hero-title, .js .sr-motion.sr-ready .stage { animation: none; }

/* =========================================================
   10. Escritorio y tablet
   ========================================================= */
@media (min-width: 640px) {
  .stage { height: 320px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honors-grid, .honors-widget .wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .tall { grid-row: span 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seal { width: 90px; height: 90px; }
}
@media (min-width: 1000px) {
  .hero { padding: 40px 0 90px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
  .hero-title { font-size: clamp(52px, 5.4vw, 78px); }
  .stage { order: 0; height: 600px; }
  .seal { width: 104px; height: 104px; left: -26px; }
  .services-grid { grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); }
  .services-intro { justify-content: space-between; padding: 0 20px 0 0; }
  .mission-grid { grid-template-columns: 1.8fr 1fr; }
  .firm-tile { height: 420px; }
  .bento { grid-template-columns: 1fr 1fr 1fr; }
  .bento .wide { grid-column: span 2; }
  .tall-media { height: auto; flex: 1; min-height: 340px; }
  .areas-head { flex-direction: row; justify-content: space-between; align-items: end; }
  .areas-head p { text-align: right; }
  .head-right { align-items: flex-end; }
  .areas-grid, .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .honors-grid, .honors-widget .wp-block-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; }
  .page-grid.no-aside { grid-template-columns: 1fr; }
  .aside { position: sticky; top: 110px; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr; }
  .foot-about { grid-column: auto; }
}
@media (max-width: 1180px) and (min-width: 1000px) { .nav-cta { display: none; } }
@media (max-width: 999px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 0 clamp(18px, 5vw, 56px); }
  .menu { display: none; flex-direction: column; border-radius: var(--r-lg); padding: 8px; box-shadow: 0 24px 50px -24px rgba(17,17,17,.35); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; font-size: 16px; }
  .menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .burger { display: flex; }
  .nav-cta { display: none; }
  .link-line { display: none; }
}
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 420px) {
  .brand img, .brand .custom-logo { height: 38px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.facts strong, .sec-num, h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* Monograma VSR oficial */
.mono-sign { display: block; overflow: visible; }
.hero-sign { position: absolute; z-index: 3; left: 50%; top: 54%; height: 76%; width: auto; aspect-ratio: 1227 / 1173; max-width: 86%; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 18px rgba(60,45,10,.22)); pointer-events: none; }
.v-mini { width: 34px; height: 32px; }
.honors-mono { width: clamp(90px, 12vw, 140px); height: auto; aspect-ratio: 1227 / 1173; opacity: .5; }
.cta-v { position: absolute; right: -30px; top: -40px; width: min(360px, 60%); opacity: .16; pointer-events: none; --silver-logo: #ffffff; }
.footer .foot-logo .v-mini { --silver-logo: #bdbdbd; }
.attorney-card .v-mini, .tile-label .v-mini { --silver-logo: #818181; }

/* WhatsApp (tema o Joinchat): aparece al empezar a bajar, para no tapar el botón principal */
.wa-float, .joinchat { transition: opacity .35s var(--ease), transform .35s var(--ease) !important; }
body.sr-watch:not(.sr-scrolled) .wa-float, body.sr-watch:not(.sr-scrolled) .joinchat { opacity: 0 !important; transform: translateY(14px) !important; pointer-events: none !important; }

/* Códigos del tema anterior (páginas existentes) */
.entry-content .sr-heading { font-size: clamp(28px, 3.2vw, 38px); color: var(--ink); margin: 0 0 18px; }
.entry-content .sr-heading.has-line::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold); margin-top: 14px; }
.contact-info { background: var(--paper); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--gold); border-radius: var(--r-lg); padding: 24px 26px; }
.contact-info h3 { margin: 0 0 14px; font-size: 26px; }
.ci-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ci-row span { font-size: 13px; font-weight: 600; color: var(--gold-text); }
.ci-row p { margin: 0 !important; font-size: 15px; }
.ci-row a { text-decoration: none !important; }
.icon-box-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; height: 100%; }
.icon-box-card h3 { margin: 0 0 8px; font-size: 24px; }
.icon-box-card p { margin: 0; color: var(--muted); font-size: 15px; }
.entry-content .sc-children { margin: 10px 0 30px; }
.entry-content .sc-children a { text-decoration: none; }
.entry-content iframe { max-width: 100%; border-radius: var(--r-md); }
@media (max-width: 520px) { .ci-row { grid-template-columns: 1fr; gap: 2px; } }

/* Comentarios de las noticias */
.comments-area { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 36px); font-weight: 600; margin: 0 0 8px; }
.comment-reply-title small { font-family: var(--font); font-size: 13px; margin-left: 10px; }
.comment-reply-title small a { color: var(--gold-text); }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; margin-left: 28px; }
.comment-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.comment-metadata a { color: inherit; }
.comment-content p { margin: 0 0 10px; font-size: 15px; }
.comment-reply-link { font-size: 13px; font-weight: 700; color: var(--gold-text); }
.comment-respond { background: var(--paper); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--gold); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.comment-notes .required, .comment-form .required { color: var(--gold-text); }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,185,0,.22); }
@media (min-width: 700px) {
  .comment-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comment-form > .comment-notes, .comment-form > .logged-in-as, .comment-form > .comment-form-comment, .comment-form > .comment-form-cookies-consent, .comment-form > .form-submit, .comment-form > div, .comment-form > .g-recaptcha, .comment-form > p:not([class]) { grid-column: 1 / -1; }
}
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.comment-form-cookies-consent label { font-weight: 400; color: var(--muted); margin: 0; }
.comment-form-cookies-consent input { margin-top: 3px; accent-color: var(--gold); }
.comment-form .g-recaptcha, .comment-form div[class*=recaptcha] { margin: 2px 0; }
.comment-form .form-submit { margin-top: 4px; }
.comment-form input[type=submit] { background: var(--gold); color: var(--ink); border: 0; border-radius: 999px; padding: 0 28px; min-height: 50px; font: 600 15px var(--font); cursor: pointer; transition: background .3s, transform .3s var(--ease); }
.comment-form input[type=submit]:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* Redes al final de las noticias: solo el nombre, como botones */
.entry-content .sr-social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.entry-content .sr-social-line { margin-top: 12px; }
.entry-content a.sr-social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 14px var(--font); text-decoration: none; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.entry-content a.sr-social::after { content: "\2197"; color: var(--gold-text); font-size: 13px; }
.entry-content a.sr-social:hover { border-color: var(--gold); background: #fff8e1; transform: translateY(-2px); }

/* Logo: completo en pantallas anchas, compacto (monograma + nombre) en celular */
.brand-link { display: flex; align-items: center; }
.brand .brand-full { height: 54px; width: auto; }
.brand-compact { display: none; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); white-space: nowrap; }
.brand-mono { width: 40px; height: 38px; }
@media (max-width: 600px) {
  .brand .brand-full { display: none; }
  .brand-compact { display: inline-flex; }
}
