/* Tema GDZ Abogados, desde el prototipo aprobado (D40, versión 8 del Artifact). Origen: prototipo v2 (2026-10-14). Layout: fotografía grande a sangre con tarjeta superpuesta, bandas de color
   y un bloque personal de Sara, pensado primero para el móvil (referencias de Sara: Hidalgo Lawyers y Martínez-Echevarría).
   Un solo aspecto visual (claro), como fija sistema-diseno.md: no hay modo oscuro en el lanzamiento. */
:root {
  --navy: #092553;
  --navy-950: #061A3C;
  --navy-700: #1C3F7C;
  --navy-100: #E5EAF3;
  --navy-50: #F2F5FA;
  --gold: #BE9845;
  --gold-700: #7F6119;
  --gold-100: #F6EDD6;
  --white: #FFFFFF;
  --paper: #F7F5F0;
  --ink: #162033;
  --ink-muted: #475266;
  --line: #D5DAE3;
  --border-strong: #667085;
  --error: #B3261E;
  --success: #1E6B45;
  --veil: rgba(255, 255, 255, 0.94);

  --font-title: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.35rem + 3vw, 3.75rem);
  --fs-statement: clamp(1.5rem, 1.15rem + 1.6vw, 2.375rem);

  --wrap: 1180px;
  --read: 720px;
  --gutter: 16px;
  --radius: 4px;
  --radius-card: 12px;
  --shadow: 0 6px 20px rgba(9, 37, 83, 0.12);
  --shadow-soft: 0 2px 10px rgba(9, 37, 83, 0.08);
  --bar-h: 56px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--gold); }
img, svg { max-width: 100%; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--navy); color: var(--white); padding: 12px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* ---- aviso de prototipo ---- */
.proto { background: var(--gold-100); color: var(--gold-700); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; }
.proto .wrap { padding-block: 6px; }

/* ---- botones ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: var(--radius); border: 2px solid var(--navy); font: 600 var(--fs-base)/1.2 var(--font-text); text-decoration: none; cursor: pointer; transition: background 150ms ease, color 150ms ease; text-align: center; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy-50); color: var(--navy); }
/* Sobre azul: texto blanco sobre dorado oscuro con borde dorado (5,79:1). Nunca texto dorado sobre dorado */
.btn-gold { background: var(--gold-700); border-color: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.on-dark a.btn-gold, .on-dark a.btn-gold:visited { color: var(--white); }
.on-dark a.btn-gold:hover { color: var(--navy); }

/* ---- cabecera ---- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; min-height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); padding-block: 8px; }
.brand img { width: 40px; height: 40px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-title); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.005em; }
.brand-sub { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted); margin-top: 3px; }
.head-actions { display: flex; align-items: center; gap: 8px; order: 2; }
.lang { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.lang a, .lang span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.lang [aria-current="true"] { background: var(--navy); color: var(--white); }
.lang a { color: var(--navy); }
.menu-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--navy); font: 600 var(--fs-sm)/1 var(--font-text); padding: 0 12px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.head-cta { display: none; }

.nav { display: none; order: 3; flex: 1 0 100%; border-top: 1px solid var(--line); background: var(--white); }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul > li { border-bottom: 1px solid var(--line); }
.nav > ul > li:last-child { border-bottom: 0; }
.nav a.top, .nav button.top { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 0; background: none; border: 0; font: 600 var(--fs-base)/1.3 var(--font-text); color: var(--navy); text-decoration: none; cursor: pointer; text-align: left; }
.nav button.top svg { width: 18px; height: 18px; transition: transform 150ms ease; flex: none; }
.nav button.top[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { display: none; padding: 4px 0 16px; }
.mega.open { display: block; }
.group { padding-block: 8px; }
.group h3 { font: 600 0.75rem/1.3 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 4px; }
.group li a { display: block; padding: 8px 0; text-decoration: none; font-size: var(--fs-base); color: var(--ink); }
.group li a:hover { color: var(--navy-700); text-decoration: underline; }
.mega-all { display: inline-block; margin-top: 8px; font-weight: 600; }

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .head-cta { display: inline-flex; }
  .head-actions { order: 3; }
  .nav { display: block; order: 2; flex: 1 1 auto; border: 0; background: transparent; }
  .nav > ul { display: flex; gap: 4px; justify-content: center; }
  .nav > ul > li { border: 0; }
  .nav a.top, .nav button.top { width: auto; padding: 8px 14px; gap: 8px; border-radius: var(--radius); }
  .nav a.top:hover, .nav button.top:hover { background: var(--navy-50); }
  .mega { position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; background: var(--white); border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow); padding: 24px 24px 20px; }
  .mega.open { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 28px; }
  .mega .mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
  .mega .group li a { padding: 5px 0; font-size: var(--fs-sm); }
  /* Despacho y Conocimiento: panel estrecho bajo su propio botón */
  .nav > ul > li.has-small { position: relative; }
  .mega.small { left: 0; right: auto; width: 320px; top: calc(100% + 8px); border-top: 1px solid var(--line); padding: 14px 20px 16px; }
  .mega.small.open { display: block; }
  .mega.small .mega-all { display: block; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
}

/* ---- secciones ---- */
section { padding-block: 56px; }
@media (min-width: 768px) { section { padding-block: 88px; } }
.alt { background: var(--paper); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-700); }
.chev { width: 10px; height: 16px; flex: none; fill: var(--gold); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.sec-head { max-width: 46rem; margin-bottom: 36px; display: grid; gap: 12px; }
.sec-head p { color: var(--ink-muted); }

/* ---- fotografía (o hueco de fotografía mientras Sara no la envíe) ---- */
.ph { position: relative; overflow: hidden; background:
    linear-gradient(160deg, rgba(6, 26, 60, 0.15), rgba(6, 26, 60, 0.55)),
    repeating-linear-gradient(115deg, rgba(190, 152, 69, 0.07) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #1C3F7C 0%, #092553 55%, #061A3C 100%);
  border-radius: var(--radius-card); max-width: 100%; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph .ph-mark { position: absolute; right: -6%; top: 8%; width: 46%; height: 84%; fill: var(--gold); opacity: 0.18; pointer-events: none; }
.ph .ph-tag { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 8px; color: var(--white); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; }
.ph .ph-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
/* con fotografía: la etiqueta pasa a ser una píldora legible sobre cualquier foto */
.ph.con-foto { background: var(--navy-950); }
.ph.con-foto .ph-tag { left: auto; right: 12px; width: auto; background: rgba(6, 26, 60, 0.78); padding: 4px 10px; border-radius: 999px; font-weight: 500; }
.sara .ph.con-foto img { object-position: center 25%; }

/* ---- portada: hero a sangre con tarjeta superpuesta ---- */
.hero2 { position: relative; padding: 0; background: var(--navy-950); }
.hero2 .ph { position: absolute; inset: 0; border-radius: 0; }
.hero2 .ph .ph-tag { top: 14px; bottom: auto; justify-content: flex-end; }
.hero2 .wrap { position: relative; display: flex; align-items: flex-end; min-height: 600px; padding-block: 220px 24px; }
.hero-card { background: var(--veil); border-radius: var(--radius-card); padding: 24px 20px 26px; display: grid; gap: 16px; max-width: 720px; box-shadow: var(--shadow); min-width: 0; }
.hero-card h1 { max-width: 20ch; }
.hero-card .lead { font-size: var(--fs-base); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) {
  .hero2 .wrap { min-height: 640px; align-items: center; padding-block: 96px; }
  .hero-card { padding: 40px 40px 36px; gap: 20px; }
  .hero-card .lead { font-size: var(--fs-lg); }
}

/* ---- banda de datos ---- */
.band { background: var(--navy); color: var(--white); padding-block: 22px; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* mensajes cortos y verificables (Sara, 2026-10-14): una línea cada uno, centrados, como en sus referencias */
.band li { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; font-family: var(--font-title); font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--white); }
.band li svg { width: 18px; height: 18px; flex: none; stroke: var(--gold); }
@media (min-width: 768px) { .band ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } .band { padding-block: 28px; } }

/* ---- portada: introducción y tesis ---- */
.intro { display: grid; gap: 20px; }
.intro .lead { max-width: 64ch; }
.thesis { display: grid; gap: 28px; }
.thesis h2 { max-width: 22ch; }
.statement { position: relative; margin: 8px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); font-family: var(--font-title); font-size: var(--fs-statement); font-weight: 500; line-height: 1.25; color: var(--navy); max-width: 30ch; text-wrap: balance; }
.statement .chev { position: absolute; left: 0; top: -9px; background: var(--white); padding-right: 8px; width: 18px; height: 16px; box-sizing: content-box; }
.alt .statement .chev { background: var(--paper); }
@media (min-width: 900px) { .thesis { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }

/* ---- tarjetas (situaciones y áreas) ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow-soft); }
.card .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-700); flex: none; }
.card .ico svg { width: 20px; height: 20px; }
.card q, .card h3 { font-family: var(--font-title); font-size: var(--fs-h3); line-height: 1.25; color: var(--navy); quotes: "«" "»"; font-weight: 500; }
.card p { color: var(--ink); font-size: var(--fs-sm); line-height: 1.6; }
.card a { font-weight: 600; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards.five { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cards.five .card { grid-column: span 2; } .cards.five .card:nth-child(4) { grid-column: 2 / span 2; } .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.areas-note { margin-top: 20px; font-size: var(--fs-sm); color: var(--ink-muted); }

/* ---- pasos ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding-block: 18px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(paso) "."; font-family: var(--font-title); font-size: 1.75rem; line-height: 1; color: var(--gold-700); font-weight: 500; grid-row: 1 / span 2; }
.steps li strong { font-family: var(--font-title); font-size: var(--fs-h3); font-weight: 600; color: var(--navy); line-height: 1.25; }
.steps li span { color: var(--ink); }
@media (min-width: 900px) {
  .steps.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps.wide li { grid-template-columns: 1fr; border-top: 3px solid var(--gold); padding-top: 16px; }
  .steps.wide li::before { grid-row: auto; }
}

/* ---- bloque personal de Sara ---- */
.sara { background: var(--navy); color: var(--white); }
.sara-grid { display: grid; gap: 28px; align-items: center; }
.sara .ph { aspect-ratio: 4 / 5; width: 100%; max-width: 440px; }
.sara h2 { color: var(--white); }
.sara p { color: var(--white); max-width: 60ch; }
.sara a { color: var(--gold); }
.sara .eyebrow { color: var(--gold); }
.sara .star { font-family: var(--font-title); font-size: var(--fs-h3); line-height: 1.3; color: var(--white); border-left: 3px solid var(--gold); padding-left: 16px; }
.sara-text { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 900px) { .sara-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }

/* ---- banda de despachos ---- */
.firms { background: var(--navy-950); color: var(--white); }
.firms .grid { display: grid; gap: 24px; }
.firms h2 { color: var(--white); max-width: 22ch; }
.firms p { color: var(--white); max-width: 62ch; }
.firms a { color: var(--gold); }
.firms .eyebrow { color: var(--gold); }
@media (min-width: 900px) { .firms .grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }

/* ---- Coín ---- */
.place { display: grid; gap: 28px; align-items: center; }
.place .ph { aspect-ratio: 16 / 10; width: 100%; }
.place-text { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 900px) { .place { grid-template-columns: 6fr 5fr; gap: 64px; } }

/* ---- FAQ ---- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-family: var(--font-title); font-size: var(--fs-h3); font-weight: 500; color: var(--navy); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--navy), var(--navy)) center/100% 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center/2px 100% no-repeat; transition: transform 150ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; color: var(--ink); max-width: 68ch; }
.faq .ans > * + * { margin-top: 0.8em; }

/* ---- contacto y formulario ---- */
.contact { display: grid; gap: 32px; }
.contact address { font-style: normal; display: grid; gap: 10px; }
.contact .name { font-family: var(--font-title); font-size: var(--fs-h3); font-weight: 600; color: var(--navy); }
.contact dl { margin: 0; display: grid; gap: 4px; }
.contact dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--gold-700); margin-top: 10px; }
.contact dd { margin: 0; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 18px; display: grid; gap: 16px; box-shadow: var(--shadow-soft); min-width: 0; }
.form h2, .form h3 { font-size: var(--fs-h3); font-weight: 600; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field .help { font-size: var(--fs-xs); color: var(--ink-muted); }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); font: 400 var(--fs-base)/1.4 var(--font-text); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.field .err { display: none; color: var(--error); font-size: var(--fs-sm); font-weight: 600; align-items: center; gap: 6px; }
.field.bad .err { display: flex; }
.field.bad input, .field.bad select { border-color: var(--error); border-width: 2px; }
.err svg { width: 16px; height: 16px; flex: none; }
.notice { background: var(--gold-100); border-left: 3px solid var(--gold); padding: 12px 14px; font-size: var(--fs-sm); color: var(--ink); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 8px 0 0; accent-color: var(--navy); }
.check label { font-weight: 400; font-size: var(--fs-sm); }
.row2 { display: grid; gap: 16px; }
.ok { display: none; background: var(--navy-50); border: 1px solid var(--navy-100); border-left: 3px solid var(--success); padding: 14px 16px; }
.ok.show { display: block; }
.ok strong { color: var(--success); }
.ok .tag { display: block; margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-muted); }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .form { padding: 32px; } }

/* ---- migas ---- */
.crumbs { padding-block: 14px; font-size: var(--fs-sm); color: var(--ink-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---- página de servicio ---- */
.svc-hero { position: relative; padding: 0; background: var(--navy-950); }
.svc-hero .ph { position: absolute; inset: 0; border-radius: 0; }
.svc-hero .ph .ph-tag { top: 14px; bottom: auto; justify-content: flex-end; }
.svc-hero .wrap { position: relative; display: flex; align-items: flex-end; min-height: 440px; padding-block: 96px 24px; }
.svc-hero .hero-card h1 { max-width: 24ch; font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); }
.svc-hero .crumbs { padding: 0; }
@media (min-width: 768px) { .svc-hero .wrap { min-height: 480px; align-items: center; padding-block: 80px; } }
.svc-layout { display: grid; gap: 40px; padding-block: 48px 64px; }
.svc-main { min-width: 0; }
.svc-main > p.prose { font-size: var(--fs-lg); line-height: 1.55; }
.svc-main section { padding: 0; margin-top: 48px; scroll-margin-top: 88px; }
.svc-main h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.svc-main h3 { margin: 22px 0 10px; }
.svc-main .prose + .ticks, .svc-main .ticks + .prose { margin-top: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 68ch; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 13px; background: var(--gold); clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); }
.ticks ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks ul li { padding-left: 22px; }
.ticks ul li::before { width: 6px; height: 10px; top: 0.6em; background: var(--gold-700); }
.example { background: var(--gold-100); border-left: 3px solid var(--gold); padding: 18px 20px; max-width: 68ch; margin-top: 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.example .lbl { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 6px; }
.aside { display: grid; gap: 24px; align-content: start; }
.toc { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 18px 14px; background: var(--white); }
.toc h2 { font: 600 0.75rem/1.3 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.toc a { display: flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--navy-700); text-decoration: underline; }
.cta-card { background: var(--navy); color: var(--white); border-radius: var(--radius-card); padding: 22px 20px; display: grid; gap: 12px; }
.cta-card h2 { color: var(--white); font-size: 1.375rem; font-weight: 600; }
.cta-card p { font-size: var(--fs-sm); color: var(--white); }
.related { display: grid; gap: 16px; }
@media (min-width: 640px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rel { display: block; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px; text-decoration: none; color: var(--ink); background: var(--white); box-shadow: var(--shadow-soft); }
.rel strong { display: block; font-family: var(--font-title); font-size: var(--fs-h3); font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 6px; }
.rel span { font-size: var(--fs-sm); color: var(--ink-muted); }
.rel:hover strong { text-decoration: underline; }
@media (min-width: 1024px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-block: 64px 80px; }
  .aside { position: sticky; top: 96px; align-self: start; }
}

/* ---- pie ---- */
.site-footer { background: var(--navy-950); color: var(--white); padding-block: 48px 32px; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--white); }
.foot { display: grid; gap: 32px; }
.foot h2 { font: 600 0.75rem/1.3 var(--font-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot address { font-style: normal; display: grid; gap: 4px; font-size: var(--fs-sm); }
.foot .fname { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: var(--fs-xs); display: grid; gap: 6px; color: var(--white); }
@media (min-width: 768px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

/* ---- barra móvil y cookies ---- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bar-h); color: var(--white); font-weight: 600; text-decoration: none; }
.mbar a + a { border-left: 1px solid rgba(255, 255, 255, 0.28); }
.mbar a:focus-visible { outline-color: var(--gold); outline-offset: -4px; }
.mbar svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .mbar { display: none; } }
.cookies { position: fixed; z-index: 70; left: 8px; right: 8px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 8px); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 10px; max-width: 460px; }
.cookies[hidden] { display: none; }
.cookies h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-size: 1.125rem; }
.cookies p { font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
.cookies .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cookies .btn { padding: 8px 6px; min-height: 44px; font-size: var(--fs-sm); background: var(--white); color: var(--navy); border-color: var(--navy); }
.cookies .btn:hover { background: var(--navy-50); }
@media (min-width: 768px) {
  .cookies { left: 24px; right: auto; bottom: 24px; padding: 18px; gap: 12px; }
  .cookies h2 { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .cookies p { font-size: var(--fs-sm); }
}

/* ================================================================ v3 (2026-10-15): movimiento e imagen
   Todo el movimiento parte de un estado visible y se desactiva con prefers-reduced-motion. */
@keyframes rise { from { transform: translateY(22px); opacity: 0.35; } to { transform: none; opacity: 1; } }
@keyframes enter { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes ticker { to { transform: translateX(-50%); } }

.site-header { transition: box-shadow 200ms ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(9, 37, 83, 0.10); }

/* hero: carrusel de fotos con fundido y zoom lento */
.hero2 .slides { position: absolute; inset: 0; overflow: hidden; }
.hero2 .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1400ms ease; }
.hero2 .slide.on { opacity: 1; animation: kenburns 9s ease-out both; }
.hero2 .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 26, 60, 0.05) 30%, rgba(6, 26, 60, 0.45)); pointer-events: none; }
@media (min-width: 768px) { .hero2 .shade { background: linear-gradient(90deg, rgba(6, 26, 60, 0.55), rgba(6, 26, 60, 0.05) 65%); } }
.hero2 .hero-tag { position: absolute; top: 14px; right: 12px; left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: var(--fs-xs); font-weight: 500; background: rgba(6, 26, 60, 0.78); padding: 4px 10px; border-radius: 999px; z-index: 2; }
.hero2 .hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-card { animation: enter 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 150ms both; }
.dots { position: absolute; z-index: 2; right: 8px; bottom: 6px; display: flex; }
.dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dots button::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); transition: background 200ms ease, width 200ms ease; }
.dots button[aria-current="true"]::before { background: var(--gold); width: 34px; }
.dots button:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
@media (max-width: 767px) { .dots { top: 160px; bottom: auto; right: 6px; } }

/* contador de la banda */
.band .count { font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.1em; text-align: right; }

/* cinta de términos (los que buscan los despachos) */
.ticker { background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; flex: none; }
.ticker span { display: inline-flex; align-items: center; font-family: var(--font-title); font-style: italic; font-size: 1.25rem; color: var(--navy); white-space: nowrap; padding-inline: 18px; }
.ticker span::after { content: ""; width: 7px; height: 11px; margin-left: 36px; background: var(--gold); clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%); }

/* franja con la frase de posicionamiento sobre una foto, con parallax suave */
.statement-band { position: relative; overflow: hidden; background: var(--navy-950); padding-block: 88px; }
@media (min-width: 768px) { .statement-band { padding-block: 136px; } }
.statement-band .bg { position: absolute; inset: -18% 0; will-change: transform; }
.statement-band .bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.statement-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 26, 60, 0.92), rgba(6, 26, 60, 0.7)); }
.statement-band .wrap { position: relative; z-index: 1; }
.statement-big { position: relative; font-family: var(--font-title); font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem); font-weight: 500; line-height: 1.22; color: var(--white); max-width: 28ch; text-wrap: balance; padding-top: 28px; }
.statement-big .chev { position: absolute; top: 0; left: 0; width: 12px; height: 19px; }

/* tarjetas con foto */
.card { transition: transform 260ms ease, box-shadow 260ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.has-img { overflow: hidden; padding-top: 0; }
.card-img { margin: 0 -20px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-100); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card.has-img .ico { margin-top: -34px; background: var(--white); position: relative; box-shadow: var(--shadow-soft); }

/* despachos con foto de fondo */
.firms { position: relative; overflow: hidden; }
.firms .bg { position: absolute; inset: 0; }
.firms .bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.firms .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 26, 60, 0.95) 35%, rgba(6, 26, 60, 0.78)); }
.firms .wrap { position: relative; z-index: 1; }

/* Coín: la foto respira un poco con el desplazamiento */
.place .ph.parallax-img img { transform: scale(1.12); will-change: transform; }

/* entrada al aparecer en pantalla: el elemento ya es visible; solo se mueve un poco */
[data-reveal].in { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cards [data-reveal].in:nth-child(2), .steps [data-reveal].in:nth-child(2) { animation-delay: 80ms; }
.cards [data-reveal].in:nth-child(3), .steps [data-reveal].in:nth-child(3) { animation-delay: 160ms; }
.cards [data-reveal].in:nth-child(4), .steps [data-reveal].in:nth-child(4) { animation-delay: 240ms; }
.cards [data-reveal].in:nth-child(5) { animation-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; }
  .ticker-set[aria-hidden="true"] { display: none; }
  .ticker-set { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .hero2 .slide.on, .hero-card, [data-reveal].in { animation: none; }
  .card:hover, .card:hover .card-img img { transform: none; }
}

/* ================================================================ WordPress (tema gdz, 2026-10-25) */
.wp-site-blocks { padding: 0; }
.wp-block-post-content, .gdz-main { margin: 0; }
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.wp-block-image img, .wp-block-image { max-width: 100%; height: auto; }
.svc-hero .ph.con-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* cabecera de las páginas sin foto */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 36px 40px; }
.page-hero-text { display: grid; gap: 16px; max-width: 780px; min-width: 0; }
.page-hero h1 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); }
.page-hero .crumbs, .svc-hero .crumbs { padding: 0; }
@media (min-width: 768px) { .page-hero { padding-block: 64px; } }
.page-body { padding-block: 40px 72px; }
@media (min-width: 768px) { .page-body { padding-block: 56px 88px; } }

/* texto largo: servicios, páginas corporativas y artículos */
.gdz-prose { min-width: 0; }
.page-body .gdz-prose { max-width: 780px; }
.gdz-prose .wp-block-post-content > * + * { margin-top: 1em; }
.gdz-prose p, .gdz-prose li { max-width: 68ch; }
.gdz-prose h2 { margin: 52px 0 16px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); scroll-margin-top: 96px; }
.gdz-prose .wp-block-post-content > h2:first-child { margin-top: 0; }
.gdz-prose h3 { margin: 30px 0 10px; }
.gdz-prose h2 + *, .gdz-prose h3 + * { margin-top: 0; }
.gdz-prose ul { list-style: none; margin-left: 0; padding: 0; display: grid; gap: 12px; }
.gdz-prose ul > li { position: relative; padding-left: 26px; }
.gdz-prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 13px; background: var(--gold); clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%); }
.gdz-prose ul ul { margin-top: 10px; gap: 8px; }
.gdz-prose ul ul > li { padding-left: 22px; }
.gdz-prose ul ul > li::before { width: 6px; height: 10px; top: 0.6em; background: var(--gold-700); }
.gdz-prose ol { list-style: none; margin-left: 0; padding: 0; counter-reset: paso; display: grid; }
.gdz-prose ol > li { counter-increment: paso; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); }
.gdz-prose ol > li:last-child { border-bottom: 1px solid var(--line); }
.gdz-prose ol > li::before { content: counter(paso) "."; position: absolute; left: 0; top: 14px; font-family: var(--font-title); font-size: 1.625rem; line-height: 1; color: var(--gold-700); }
.gdz-prose ol > li strong:first-child { font-family: var(--font-title); font-size: 1.1875rem; color: var(--navy); }
.gdz-prose .example { background: var(--gold-100); border-left: 3px solid var(--gold); padding: 18px 20px; max-width: 68ch; border-radius: 0 var(--radius) var(--radius) 0; }
.gdz-prose .example strong:first-child { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 6px; }
.gdz-prose .wp-block-details { border-bottom: 1px solid var(--line); max-width: 860px; }
.gdz-prose h2 + .wp-block-details, .gdz-prose .wp-block-details:first-of-type { border-top: 1px solid var(--line); }
.gdz-prose .wp-block-details + .wp-block-details { margin-top: 0; border-top: 0; }
.gdz-prose .wp-block-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-family: var(--font-title); font-size: var(--fs-h3); font-weight: 500; color: var(--navy); line-height: 1.25; }
.gdz-prose .wp-block-details summary::-webkit-details-marker { display: none; }
.gdz-prose .wp-block-details summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--navy), var(--navy)) center/100% 2px no-repeat, linear-gradient(var(--navy), var(--navy)) center/2px 100% no-repeat; transition: transform 150ms ease; }
.gdz-prose .wp-block-details[open] summary::after { transform: rotate(45deg); }
.gdz-prose .wp-block-details > :not(summary) { padding-bottom: 18px; margin-top: 0; }
.gdz-prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.gdz-prose th, .gdz-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gdz-prose thead th { background: var(--navy-100); }
.gdz-prose .wp-block-table { overflow-x: auto; }
.related-wrap { margin-top: 56px; }
.related-wrap h2 { margin-top: 0; }
.svc-layout .svc-main { padding-top: 0; }
.aside .toc ol { counter-reset: none; display: grid; }
.aside .toc ol > li { padding: 0; border: 0; }
.aside .toc ol > li::before { content: none; }

/* sección final de consulta */
.consulta address { font-style: normal; display: grid; gap: 10px; margin-top: 20px; }
.consulta h2 { font-size: var(--fs-h2); }

/* móvil estrecho: logotipo, idioma y menú en una sola fila a 375 px; la tarjeta de la portada sube */
@media (max-width: 479px) {
  .head { gap: 0 6px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 0.9375rem; }
  .brand-sub { font-size: 0.625rem; letter-spacing: 0.2em; }
  .head-actions { gap: 6px; }
  .lang a, .lang span { min-width: 36px; }
  .menu-btn { padding: 0 10px; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero2 .wrap { padding-block: 150px 20px; min-height: 0; }
  .dots { top: 96px; }
}

/* la tarjeta de la portada entra solo con movimiento, sin partir de invisible: siempre se ve aunque la animación no llegue a correr */
@keyframes enter-suave { from { transform: translateY(18px); } to { transform: none; } }
.hero-card { animation-name: enter-suave; }
