/* Hoja de estilos única. Paleta tomada del azul del logotipo.
   Titulares: Playfair Display (manuscrita y legal). Texto: Montserrat. Fuentes locales (SIL OFL).
   Radios: botones y campos 4px, paneles 8px, fotos con arco superior (regla documentada). */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/playfair-display-400.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/playfair-display-600.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/playfair-display-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/montserrat-400.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/montserrat-500.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/montserrat-600.woff2) format('woff2'); }

:root {
  --navy: #0b2e52;
  --navy-deep: #082342;
  --blue: #1f5a96;
  --blue-hover: #174a7e;
  --sky: #9cc9f2;
  --paper: #f6f8fb;
  --mist: #e9eff6;
  --white: #ffffff;
  --line: #d3dde9;
  --ink: #1e293b;
  --muted: #4b5b70;
  --silver: #8798ad;
  --focus: #2f7fd1;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hero-surface: linear-gradient(125deg, #081f35 0%, #123955 56%, #24536e 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-color: #7fa6cf var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
::selection { background: #cfe2f5; color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.8vw, 4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--navy); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.3; color: var(--navy); }
h4 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: var(--navy); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); }
p { color: var(--muted); }
strong { font-weight: 600; color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 60; padding: 12px 16px; background: var(--white); color: var(--navy); }
.skip-link:focus { top: 12px; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.block { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); background: var(--white); }
.block-alt { background: var(--paper); }

/* Numeración de bloques: solo el número, como pide el orden del proyecto */
.chapter-number { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--serif); font-size: 1rem; line-height: 1; color: var(--navy); }
.chapter-number::after { content: ""; width: 36px; height: 1px; background: var(--silver); }
.section-heading { margin-bottom: 44px; }
.section-heading h2 { max-width: 22ch; }
.section-heading > p { max-width: 62ch; margin-top: 16px; font-size: 1rem; }

/* Botones y enlaces */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 14px 24px; background: var(--blue); color: var(--white); border: 1px solid var(--blue); border-radius: 4px; font-size: .88rem; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: background .2s ease, transform .2s var(--ease), box-shadow .25s ease; }
.button:active, .menu-toggle:active { transform: scale(.97); }
@media (hover: hover) { .button:hover { background: var(--blue-hover); box-shadow: 0 10px 22px #0b2e5226; } }
.button-block { width: 100%; justify-content: space-between; margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .88rem; font-weight: 600; color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.action-arrow { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; transition: transform .25s var(--ease); }
@media (hover: hover) { .button:hover .action-arrow, .text-link:hover .action-arrow { transform: translateX(3px); } }

/* Logotipo: el SVG del monograma se pinta con currentColor mediante una máscara */
.logo-mark { display: block; flex-shrink: 0; width: 64px; height: 56px; background: currentColor; -webkit-mask: url(assets/logo-pg.svg) center / contain no-repeat; mask: url(assets/logo-pg.svg) center / contain no-repeat; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--white); }
.brand-name small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #bcd3ec; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 46, 82, .78); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px #08234233; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner > .brand { flex-shrink: 0; }
#main-nav { display: flex; gap: 22px; }
#main-nav a { position: relative; padding-block: 12px; font-size: .8rem; font-weight: 500; color: #d8e5f4; white-space: nowrap; transition: color .2s ease; }
#main-nav a:hover { color: var(--white); }
#main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
#main-nav a[aria-current="location"] { color: var(--white); }
#main-nav a[aria-current="location"]::after { transform: scaleX(1); }
.header-cta { min-height: 44px; padding: 10px 18px; background: var(--white); color: var(--navy); border-color: var(--white); font-size: .8rem; }
@media (hover: hover) { .header-cta:hover { background: #e6eef8; border-color: #e6eef8; color: var(--navy); } }
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: transparent; color: var(--white); border: 1px solid #5f7fa3; border-radius: 4px; font-size: .8rem; font-weight: 500; }
.menu-toggle svg { width: 20px; height: 20px; }
/* Barra de lectura con el estilo del diseño 1: oscura y nítida, justo bajo la cabecera, sobre el contenido. */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 3px; background: #12385f14; pointer-events: none; }
.reading-progress { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; height: 3px; background: linear-gradient(90deg, #4f7fb3, var(--navy)); box-shadow: 0 0 8px #4f7fb366; transform: scaleX(var(--reading-progress, 0)); transform-origin: left; pointer-events: none; }
@supports (animation-timeline: scroll(root block)) { .reading-progress { animation: reading-line linear both; animation-timeline: scroll(root block); } }
@keyframes reading-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Inicio */
/* Franja bajo la cabecera con el mismo fondo que el hero: al cargar, la cabecera translúcida ya se ve sobre el hero. */
body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--header-h); background: var(--hero-surface); background-size: 100% 100vh; background-position: 0 0; background-repeat: no-repeat; pointer-events: none; }

.hero { position: relative; overflow: hidden; background: var(--hero-surface); background-size: 100% 100vh; background-position: 0 calc(-1 * var(--header-h)); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
/* Portada sobre azul continuo, sin pautado ni líneas superpuestas. */
/* Retrato en arco con un detalle circular de la pericia solapado: la persona y sus dos oficios de un vistazo. */
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 440px; min-width: 0; padding: 0 0 28px 56px; }
.hero-visual::before { content: ""; position: absolute; top: -28px; right: -36px; width: 78%; aspect-ratio: 1; border: 1px solid #9cc9f259; border-radius: 50%; pointer-events: none; }
.hero-portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 220px 220px 8px 8px; background: radial-gradient(90% 70% at 50% 30%, #e9f1fa, #b9cee6); box-shadow: 0 30px 60px #02101f59; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b2e5214, #0b2e5280); mix-blend-mode: multiply; pointer-events: none; }
.hero-detail { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1; margin: 0; overflow: hidden; border: 6px solid var(--navy); border-radius: 50%; box-shadow: 0 18px 40px #02101f66; }
.hero-detail img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); }

.values-bar { background: var(--mist); border-bottom: 1px solid var(--line); }
.values-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px 28px; padding-block: 22px; }
.values-inner span { display: flex; align-items: center; gap: 12px; font-size: .84rem; font-weight: 500; color: var(--navy); }
.values-inner svg { width: 20px; height: 20px; color: var(--blue); }



/* 01 · Sobre mí */
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px 72px; align-items: start; }
.about-heading { grid-column: 1 / -1; }
.about-heading h2 { max-width: 980px; }
.about-heading h2 em { display: block; }
.about-portrait { position: relative; width: 100%; max-width: 400px; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 200px 8px 8px 8px; background: linear-gradient(165deg, #dbe6f2, #bcd0e7); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Tinta original con guías curvas por trazo: avance continuo y pequeñas pausas al levantar la pluma. */
.rubric-wrap { --rubric-tempo: .8; width: min(320px, 100%); margin-top: 22px; }
.rubric { display: block; width: 100%; height: auto; overflow: visible; color: var(--navy); shape-rendering: geometricPrecision; }
.rubric-ink { fill: currentColor; stroke: none; }
.rubric-stroke { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion-ready .rubric-wrap[data-reveal] { opacity: 1; transform: none; translate: none; transition: none; }
.motion-ready .rubric-wrap:not(.is-visible) .rubric-stroke { stroke-dashoffset: 1; }
.motion-ready .rubric-wrap.is-visible .rubric-stroke { transition: stroke-dashoffset calc(var(--stroke-duration) * var(--rubric-tempo)) cubic-bezier(.25, .2, .75, .8) calc(var(--stroke-delay) * var(--rubric-tempo)); }
.signature-label { margin-top: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: var(--muted); }
.local-intro { max-width: 420px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.local-heading { display: flex; align-items: flex-start; gap: 12px; }
.local-heading svg { width: 22px; height: 22px; margin-top: 4px; color: var(--blue); }
.local-heading h3 { font-size: 1.35rem; font-weight: 400; }
.local-heading h3 strong { font-weight: 600; }
.local-intro > p { margin-top: 12px; font-size: .95rem; }
/* Dos detalles del despacho bajo la dirección; las fotos comparten el recorte 4:5 del retrato. */
.office-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.office-details figure, .faq-photo, .contact-photo { margin: 0; overflow: hidden; background: linear-gradient(165deg, #dbe6f2, #bcd0e7); }
.office-details figure { aspect-ratio: 4 / 5; border-radius: 8px; }
.office-details img, .faq-photo img, .contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-biography > p { max-width: 65ch; margin-top: 18px; font-size: 1rem; }
.about-copy .lead { font-family: var(--serif); font-size: 1.32rem; line-height: 1.5; color: var(--navy); margin-top: 0; }
.education { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.education > h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 18px; }
.education-item { display: flex; gap: 14px; align-items: flex-start; }
.education-item + .education-item { margin-top: 18px; }
.education-item > svg { width: 22px; height: 22px; margin-top: 3px; color: var(--blue); }
.education-item h4 { font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.5; margin-bottom: 2px; }
.education-item p { font-size: .88rem; line-height: 1.6; }
.education-item span { display: block; margin-top: 2px; font-size: .84rem; color: var(--muted); }
.registration-demo { margin-top: 26px; padding: 16px 18px; background: var(--mist); border: 1px dashed #7d98b8; border-radius: 8px; }
.registration-demo-label { display: block; margin-bottom: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; color: var(--blue); }
.registration-demo p { font-size: .88rem; color: var(--ink); }
.registration-demo strong { font-weight: 600; white-space: nowrap; }
.registration-demo small { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.aside-note { display: flex; gap: 14px; margin-top: 24px; padding: 16px 18px; background: var(--mist); border-radius: 8px; }
.aside-note svg { margin-top: 3px; color: var(--blue); width: 22px; height: 22px; }
.aside-note p { font-size: .88rem; }

/* 02 · Cómo trabajo */
/* Recorrido de los cuatro pasos: círculos alternos unidos por una línea discontinua que avanza. */
.journey { --step-size: 72px; position: relative; }
.journey-route { position: absolute; top: calc(var(--step-size) / 2 - 48px); left: 0; width: 100%; height: 230px; overflow: visible; pointer-events: none; }
.journey-route path { fill: none; stroke: #7d98b8; stroke-width: 2; stroke-dasharray: 7 10; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: journey-flow 1.1s linear infinite; animation-play-state: paused; }
.journey-compass { position: absolute; top: -104px; right: 0; width: 76px; height: 76px; fill: none; stroke: var(--navy); stroke-width: 1.2; }
.compass-needle { fill: var(--sky); transform-origin: 40px 40px; animation: compass-sway 5s ease-in-out infinite; animation-play-state: paused; }
.compass-pin { fill: var(--navy); }
.journey.is-running .journey-route path, .journey.is-running .compass-needle { animation-play-state: running; }
@keyframes journey-flow { to { stroke-dashoffset: -34; } }
@keyframes compass-sway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(16deg); } }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; text-align: center; }
.steps li:nth-child(even) { padding-top: 126px; }
.step-number { display: grid; place-items: center; width: var(--step-size); height: var(--step-size); margin: 0 auto 24px; border: 1px solid var(--silver); border-radius: 50%; background: var(--paper); font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.steps li:last-child .step-number { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--silver); }
.steps h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.steps p { max-width: 30ch; margin-inline: auto; font-size: .97rem; line-height: 1.7; }

/* 03 · Tu caso (selector accesible de cuatro casos) */
.situation-intro { max-width: 720px; margin-bottom: 40px; }
.situation-intro h2 { margin-bottom: 16px; }
.situation-intro > p:last-child { max-width: 580px; font-size: .97rem; }
.situation-explorer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 52px; align-items: start; }
.situation-choices { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.situation-choice { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 16px; min-height: 44px; padding: 22px 14px 22px 8px; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.situation-choice > svg:first-child { width: 24px; height: 24px; color: var(--blue); }
.situation-choice strong { display: block; font-size: .98rem; font-weight: 500; line-height: 1.5; color: var(--navy); }
.situation-choice small { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.6; }
.situation-choice .choice-arrow { width: 18px; height: 18px; opacity: .45; transition: transform .25s var(--ease), opacity .25s ease; }
.situation-choice[aria-selected="true"] { background: linear-gradient(90deg, #e3ecf7, transparent); box-shadow: inset 3px 0 0 var(--blue); }
.situation-choice[aria-selected="true"] strong { font-weight: 600; }
.situation-choice[aria-selected="true"] .choice-arrow { opacity: 1; transform: translateX(3px); }
@media (hover: hover) { .situation-choice:hover .choice-arrow { opacity: 1; transform: translateX(3px); } }
.situation-answer { position: relative; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px #0b2e520d; }
.situation-answer + .situation-answer { margin-top: 22px; }
/* Todos los paneles comparten celda: el más alto reserva el espacio de todas las pestañas. */
.situation-explorer.is-interactive .situation-answers { display: grid; }
.situation-explorer.is-interactive .situation-answer { grid-area: 1 / 1; min-width: 0; margin-top: 0; }
.situation-explorer.is-interactive .situation-answer[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.situation-answer h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.2; margin-bottom: 16px; max-width: 460px; }
.situation-answer > p { max-width: 62ch; font-size: 1rem; line-height: 1.75; }
.situation-first-step { margin-top: 22px; padding: 16px 18px; background: var(--mist); border-radius: 8px; }
.situation-first-step h4 { font-family: var(--sans); font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.situation-first-step p { font-size: .95rem; line-height: 1.7; }
.situation-answer .situation-note { margin-top: 16px; font-size: .8rem; line-height: 1.7; }
.situation-answer .button { margin-top: 24px; }
.situation-answer.answer-enter { animation: answer-entrance .28s var(--ease); }
@keyframes answer-entrance { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.situation-outro { margin-top: 30px; }
.situation-outro > p { max-width: 640px; font-size: .84rem; }

/* 04 · Servicios: estilos del selector en services.css. */

/* 05 · Preguntas */
.faq { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: 88px; align-items: start; }
.faq-intro, .faq-list { min-width: 0; }
.faq-intro h2 { margin-bottom: 16px; }
.faq-intro > p:not(.chapter-number) { margin-bottom: 20px; font-size: .95rem; }
.faq-photo { max-width: 400px; margin-top: 36px; aspect-ratio: 1; border-radius: 8px 140px 8px 8px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq-list summary:hover { color: var(--blue); } }
.faq-icon { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); transition: transform .25s var(--ease), background .2s ease; }
.faq-icon svg { width: 16px; height: 16px; stroke-width: 2; }
.faq-list details[open] .faq-icon { transform: rotate(45deg); background: var(--white); }
.faq-list details > p { max-width: 65ch; padding: 0 36px 22px 0; font-size: 1rem; }
.faq-list details > p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  .faq-list details { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-list details::details-content, .faq-icon { transition: none; }
}

/* 06 · Valoraciones y cifras ficticias */
.reviews .section-heading { margin-bottom: 16px; }
.reviews-pending { margin-bottom: 8px; font-size: .84rem; line-height: 1.6; }
.reviews-track { --review-fade: clamp(18px, 4vw, 56px); --review-gap: 24px; display: flex; gap: var(--review-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 8px; scrollbar-width: thin; scrollbar-color: #7fa6cf transparent; padding: 12px 8px 28px; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--review-fade), #000 calc(100% - var(--review-fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--review-fade), #000 calc(100% - var(--review-fade)), transparent); }
/* La lectura con teclado conserva el contorno de foco y todo el texto. */
.reviews-track:focus-visible { -webkit-mask-image: none; mask-image: none; }
@media print, (forced-colors: active) { .reviews-track { -webkit-mask-image: none; mask-image: none; } }
.reviews-track.reviews-continuous { scroll-snap-type: none; scroll-behavior: auto; overflow-anchor: none; }
.review-card { display: flex; flex: 0 0 calc((100% - var(--review-gap)) / 2); flex-direction: column; min-width: 0; padding: 32px 36px; background: var(--white); border-radius: 16px; box-shadow: 0 8px 20px -4px #0b2e5224, 0 2px 6px #0b2e520a; scroll-snap-align: start; }
.review-example { font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--blue); }
.review-quote { margin-top: 14px; height: 36px; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--blue); }
.review-card blockquote { margin: 6px 0 24px; font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; color: var(--navy); }
.review-card > p { margin-top: auto; font-size: .76rem; }
.stats-section { margin-top: 40px; padding: 36px 40px; background: var(--navy); color: var(--white); border-radius: 8px; }
.stats-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.demo-badge { padding: 6px 12px; border: 1px solid #5f7fa3; border-radius: 4px; font-size: .78rem; color: #e3edf8; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0; font-variant-numeric: lining-nums tabular-nums; }
.stats-grid > div { padding: 0 32px; border-left: 1px solid #3b5f86; }
.stats-grid > div:first-child { padding-left: 0; border-left: 0; }
.stats-grid strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1.1; color: var(--white); }
.stats-grid p { margin-top: 6px; max-width: 240px; font-size: .84rem; color: #cfdcec; }
.stats-disclaimer { padding-top: 20px; border-top: 1px solid #3b5f86; font-size: .76rem; line-height: 1.7; color: #cfdcec; }

/* 07 · Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy > p:not(.chapter-number) { font-size: .95rem; }
.contact-methods { display: grid; gap: 20px; margin-top: 32px; }
.contact-methods > div { display: flex; align-items: center; gap: 16px; }
.contact-methods svg { width: 24px; height: 24px; color: var(--blue); }
.contact-methods small { display: block; margin-bottom: 2px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.contact-methods span > span { font-size: .95rem; font-weight: 500; color: var(--navy); }
.contact-methods a { color: var(--navy); text-decoration: underline; text-decoration-color: #9db9d8; text-underline-offset: 4px; }
.contact-photo { max-width: 460px; margin-top: 36px; aspect-ratio: 1; border-radius: 8px 8px 160px 8px; }.contact-form { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px #0b2e520d; }
.contact-form h3 { font-size: 1.9rem; margin-bottom: 8px; }
.contact-form > p:not(.privacy-hint):not(.form-status) { margin-bottom: 22px; font-size: .84rem; }
.contact-form label { display: block; margin-bottom: 8px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-bottom: 18px; padding: 12px 14px; background: #fbfcfe; border: 1px solid #b9c8da; border-radius: 4px; color: var(--ink); caret-color: var(--blue); font-size: 1rem; line-height: 1.5; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #5d6d82; font-size: .88rem; opacity: 1; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form select { appearance: none; padding-right: 44px; background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2e52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; cursor: pointer; }
.privacy-hint { display: flex; align-items: flex-start; gap: 9px; font-size: .74rem; line-height: 1.6; margin-bottom: 18px; }
.privacy-hint svg { width: 16px; height: 16px; margin-top: 3px; color: var(--blue); }
.contact-form .button:disabled { opacity: .6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 14px; background: var(--mist); border-radius: 4px; font-size: .85rem; color: var(--navy); }

/* Acceso flotante a WhatsApp */
.whatsapp-floating { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; max-width: calc(100vw - 40px); pointer-events: none; }
.whatsapp-button { pointer-events: auto; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 12px 24px 12px 28px; background: var(--blue); color: var(--white); border: 1px solid #4f7fb0; border-radius: 50px; box-shadow: 0 10px 28px #0b2e5240; transition: background .2s ease, transform .2s var(--ease); }
.whatsapp-button:active { transform: scale(.97); }
@media (hover: hover) { .whatsapp-button:hover { background: var(--blue-hover); } }
.whatsapp-button > svg { width: 34px; height: 34px; }
.whatsapp-label { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.whatsapp-label small { display: block; font-size: .82rem; font-weight: 400; color: #d6e4f5; }
#whatsapp-status:empty { display: none; }
#whatsapp-status { pointer-events: auto; max-width: 300px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #0b2e5224; color: var(--navy); font-size: .85rem; line-height: 1.6; }

/* Pie */
.site-footer { font-size: .875rem; }
.footer-dark { background: var(--navy); color: #d6e4f5; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; padding-block: 40px; }
.footer-top .brand { color: var(--white); }
.footer-top > p { max-width: 320px; font-size: .88rem; color: #bcd3ec; }
.back-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .8rem; font-weight: 600; color: var(--white); }
.back-top svg { width: 18px; height: 18px; }
@media (hover: hover) { .back-top:hover { text-decoration: underline; text-underline-offset: 4px; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px; border-top: 1px solid #24476d; font-size: .74rem; color: #a9c3de; }
.footer-bottom > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.footer-bottom button { min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
@media (hover: hover) { .footer-bottom button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; } }.footer-credit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; padding-block: 20px; background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
.footer-credit img { width: 82px; height: auto; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Diálogo legal */
dialog { width: calc(100% - 32px); max-width: 560px; padding: 32px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
dialog::backdrop { background: #082342a6; backdrop-filter: blur(3px); }
dialog h2 { font-size: 2.2rem; }
dialog p { margin-bottom: 18px; font-size: .9rem; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-top .dialog-close { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--navy); }
.dialog-top .dialog-close svg { width: 24px; height: 24px; }

/* Entrada integrada en el hero (entrance.js). En escritorio, el hero se fija y, al hacer scroll,
   el monograma grande se encoge y se acopla en el logo de la cabecera mientras aparece el contenido.
   Sin JavaScript, en móvil o con movimiento reducido, el hero se muestra tal cual. */
:root { --header-h: 88px; --stage: 75vh; }
main:focus { outline: none; }
.stage-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.hero { display: grid; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.hero-entrance { display: grid; place-items: center; padding: 56px 20px 112px; text-align: center; }
.entrance-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; justify-content: center; min-height: 44px; }
.entrance-hint:focus-visible { outline-color: var(--sky); }
.has-stage .hero { height: calc(100vh - var(--header-h)); }
.has-stage .hero-entrance { position: fixed; inset: var(--header-h) 0 0 0; z-index: 35; padding: 0; pointer-events: none; }
.has-stage .entrance-hint { pointer-events: auto; }
.entrance-center { display: grid; justify-items: center; animation: entrance-fade .9s ease .1s both; }
.entrance-logo { width: clamp(220px, 36vh, 320px); height: auto; aspect-ratio: 1003 / 881; transform-origin: 50% 50%; background: var(--white); will-change: transform, opacity; }
.entrance-text { margin-top: 26px; will-change: transform, opacity; }
.entrance-name { color: var(--white); font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.15; animation: intro-up .7s var(--ease) .5s both; }
.entrance-role { margin-top: 10px; font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #bcd3ec; animation: intro-up .7s var(--ease) .7s both; }
.entrance-hint span { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #bcd3ec; animation: intro-up .7s var(--ease) 1.1s both; }
.entrance-chevron { width: 22px; height: 22px; color: var(--sky); animation: intro-bob 1.8s ease-in-out 1.8s infinite; }
.has-stage .site-header .brand .logo-mark, .has-stage .site-header .brand-name { opacity: 0; }
@keyframes entrance-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes intro-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Lectura por bloques: cada entrada termina por sí sola y permanece visible.
   Las propiedades individuales no interfieren con selectores ni carruseles. */
.motion-ready [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .55s ease, translate .7s var(--ease), scale .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready [data-reveal="fade"] { translate: none; }
.motion-ready [data-reveal="portrait"] { scale: .985; transform-origin: center bottom; }
.motion-ready [data-reveal].is-visible { opacity: 1; translate: none; scale: 1; }
.motion-ready [data-reveal].reveal-immediate, .motion-ready [data-reveal]:focus-within { opacity: 1; translate: none; scale: 1; transition: none; }

/* Por debajo de 1260 px la navegación pasa a un menú desplegable */
@media (max-width: 1260px) {
  .menu-toggle { display: inline-flex; }
  #main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 10px 24px 20px; background: var(--navy-deep); border-top: 1px solid #24476d; box-shadow: 0 18px 30px #02101f40; }
  #main-nav.is-open { display: flex; }
  #main-nav a { padding: 14px 4px; font-size: .95rem; border-bottom: 1px solid #1d3d62; }
  #main-nav a::after { display: none; }
  .header-cta { display: none; }
}

@media (max-width: 1040px) {
  .faq-layout { gap: 48px; }
  .about-grid { column-gap: 48px; }
  .contact-grid, .situation-explorer { gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .steps li:nth-child(even) { padding-top: 0; }
  .journey-route, .journey-compass { display: none; }
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-grid, .contact-grid, .situation-explorer { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; }
  .faq-photo { max-width: 320px; margin-top: 28px; border-top-right-radius: 110px; }
  .stats-section { padding: 30px 26px; }
  .review-card { flex-basis: 80%; }
  /* En una columna el selector pasa a acordeón: la respuesta se abre justo debajo de la opción
     elegida. Las dos listas se funden (display: contents) y el orden empareja cada opción con su panel. */
  .situation-explorer.is-interactive { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .situation-explorer.is-interactive :is(.situation-choices, .situation-answers) { display: contents; }
  .situation-explorer.is-interactive .situation-choice:first-child { border-top: 1px solid var(--line); }
  .situation-explorer.is-interactive .situation-answer { margin: 14px 0 22px; }
  .situation-explorer.is-interactive .situation-answer[aria-hidden="true"] { display: none; }
  .situation-explorer.is-interactive .situation-choice[aria-selected="true"] .choice-arrow { transform: rotate(90deg); }
  .situation-explorer.is-interactive :is(.situation-choice, .situation-answer):nth-child(1) { order: 1; }
  .situation-explorer.is-interactive :is(.situation-choice, .situation-answer):nth-child(2) { order: 2; }
  .situation-explorer.is-interactive :is(.situation-choice, .situation-answer):nth-child(3) { order: 3; }
  .situation-explorer.is-interactive :is(.situation-choice, .situation-answer):nth-child(4) { order: 4; }
  .situation-explorer.is-interactive :is(.situation-choice, .situation-answer):nth-child(5) { order: 5; }
  .situation-explorer.is-interactive :is(.situation-choice, .situation-answer):nth-child(6) { order: 6; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .header-inner > .brand { flex-shrink: 1; }
  .brand { gap: 10px; }
  .logo-mark { width: 40px; height: 35px; }
  .brand-name { min-width: 0; font-size: 1.05rem; }
  .brand-name small { font-size: .6rem; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* El botón del menú queda en icono para que la marca quepa entera; el texto sigue disponible para lectores de pantalla. */
  .menu-toggle { flex-shrink: 0; justify-content: center; width: 44px; padding: 0; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero { padding-block: 44px 40px; }
  .values-inner { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 20px; }
  .block { padding-block: 56px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .situation-answer { padding: 24px 20px; }
  .situation-choice { padding: 16px 8px; }
  .situation-choice small { display: none; }
  .situation-answer .button { width: 100%; }
  .faq-list details > p { padding-right: 6px; }
  .reviews-track { --review-gap: 16px; }
  .review-card { flex-basis: 88%; padding: 26px 22px; }
  .stats-section { padding: 26px 20px; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .stats-grid > div { padding: 0 0 22px; border-left: 0; border-bottom: 1px solid #3b5f86; }
  .stats-grid > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .contact-form { padding: 26px 20px; }
  .whatsapp-label { display: none; }
  .whatsapp-floating { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .whatsapp-button { min-width: 56px; min-height: 56px; justify-content: center; padding: 0; border-radius: 50%; }
  .whatsapp-button > svg { width: 28px; height: 28px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  /* Hueco al final para que el botón flotante de WhatsApp no tape el crédito. */
  .footer-credit { padding-bottom: 88px; }
}

@media (max-width: 600px) {
  .entrance-logo { width: 210px; height: auto; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: .98rem; }
  .brand-name small { font-size: .56rem; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Sin desplazamientos ni bucles; se conservan los cambios de opacidad y color que confirman acciones. */
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-duration: .15s !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; translate: none; scale: 1; }
  .motion-ready .rubric-wrap .rubric-stroke { stroke-dashoffset: 0; transition: none !important; }
  .reviews-track [data-review-copy] { display: none; }
}

@media print { .motion-ready [data-reveal] { opacity: 1; translate: none; scale: 1; transition: none; } }

@media (forced-colors: active) {
  .situation-choice[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .review-card { outline: 1px solid CanvasText; outline-offset: -1px; }
}
