/* Quantum Advisors — sistema visual
   Idea: el φ del logotipo se vuelve la retícula. Todo cuelga de un eje vertical
   al 38,2 % del ancho (la proporción áurea): títulos sobre el eje, notas a su izquierda. */

@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* color */
  --night: #0b0b0d;        /* negro: bloques de contraste, cierre, pie */
  --night-2: #1d1d21;      /* un paso de tono sobre --night */
  --paper: #ffffff;
  --paper-2: #f4f4f3;      /* un paso de tono sobre --paper */
  --paper-3: #e6e6e4;
  --ink: #0b0b0d;
  --muted: #4b4b52;        /* 8.5:1 sobre blanco */
  --on-night: #f4f3f0;
  --on-night-muted: #a9a9b0; /* 8.4:1 sobre --night */
  --red: #b52a30;          /* reservado a la acción principal */
  --red-press: #97222a;
  --copper: #a8503f;       /* del φ del logotipo, oscurecido para texto blanco (5.4:1) */
  --copper-soft: #d9a497;

  /* type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(50px, 6.6vw, 96px);
  --t-h2: clamp(32px, 3.7vw, 54px);
  --t-lead: clamp(19px, 1.55vw, 22px);
  --t-body: 18px;
  --t-small: 14px;
  --t-h3: clamp(20px, 1.55vw, 23px);
  --r: 14px;                            /* radio único de fotos y paneles */
  --t-sec: 16px;

  /* space */
  --m: clamp(20px, 4vw, 64px);          /* margen exterior */
  --g: clamp(20px, 3vw, 48px);          /* medianil */
  --section: clamp(96px, 11vw, 176px);
  --max: 1440px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--copper); color: #fff; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.on-night :focus-visible, .site-nav :focus-visible { outline-color: var(--copper-soft); }

.skip { position: absolute; left: var(--m); top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 12px 18px; font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── layout primitives ── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.phi { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); column-gap: var(--g); }
.phi > .axis { grid-column: 2; }
.phi > .side { grid-column: 1; grid-row: 1; }
.phi > .axis { grid-row: 1; }
.section { padding-block: var(--section); }
.on-night { background: var(--night); color: var(--on-night); }
.on-paper-2 { background: var(--paper-2); }

/* ── type ── */
.display, h1 { font-family: var(--serif); font-weight: 500; font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
h2, .h2 { font-family: var(--sans); font-weight: 700; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
h3, .h3 { font-family: var(--sans); font-weight: 700; font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; }
.lead { font-size: var(--t-lead); line-height: 1.5; text-wrap: pretty; color: var(--ink); }
.on-night .lead { color: var(--on-night); }
.body p + p { margin-top: 1em; }
.body { max-width: 62ch; text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.5; }
.muted { color: var(--muted); }
.on-night .muted { color: var(--on-night-muted); }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ── controls ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 16px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  background: var(--red); color: #fff;
  transition: background-color .18s var(--ease-out), transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-press); }
  .mosaic-photo:hover img, .band figure:hover img { transform: scale(1.03); }
  .btn:hover .arrow { transform: translateX(4px); }
}
.link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px;
  text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.35em;
  transition: text-underline-offset .2s var(--ease-out), color .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-underline-offset: 0.5em; } }
.arrow { display: inline-block; width: 18px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ── navigation ── */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: inset 0 -1px 0 transparent; transition: box-shadow .2s var(--ease-out); }
.site-nav .wrap { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); column-gap: var(--g); align-items: center; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: max-content; }
.brand img { width: 40px; height: 40px; object-fit: contain; transform: scale(1.75); /* el archivo trae margen interno */ }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav-links a:not(.btn) { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--muted); padding-block: 8px; transition: color .18s var(--ease-out); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.5em; }
@media (hover: hover) { .nav-links a:not(.btn):hover { color: var(--ink); } }
.nav-links .btn { margin-left: auto; min-height: 46px; padding: 0 22px; font-size: 16px; }
.menu-btn { display: none; }
.site-nav.is-scrolled { box-shadow: inset 0 -1px 0 var(--paper-3); }

@media (max-width: 860px) {
  .site-nav .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink); font: 600 16px/1 var(--sans); padding: 12px 0 12px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn .bars { position: relative; width: 20px; height: 10px; display: block; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s var(--ease-out), top .25s var(--ease-out); }
  .menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 8px; }
  .menu-btn[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; height: calc(100dvh - 64px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--m) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s linear .22s;
    overscroll-behavior: contain; overflow-y: auto;
  }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a:not(.btn) { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; font-size: 34px; color: var(--ink); padding-block: 14px; background: var(--paper); }

  .nav-links .btn { margin: 28px 0 0; min-height: 56px; font-size: 16px; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .nav-links { transform: none; } }

/* ── home hero: conversación estrecha, titular ancho ── */
.hero { padding-top: clamp(48px, 7vw, 104px); overflow: hidden; }
.hero .phi { align-items: start; }
.hero-talk { grid-column: 1; grid-row: 1 / span 2; padding-top: clamp(12px, 9vw, 150px); max-width: 30ch; }
.hero-talk p { font-size: var(--t-lead); line-height: 1.45; color: var(--ink); }
.hero-talk .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.hero h1 { grid-column: 2; }
.hero-figure { grid-column: 2; position: relative; margin-top: clamp(64px, 8vw, 120px); }
.hero-photo { position: relative; height: clamp(320px, 50vh, 560px); overflow: hidden; background: var(--paper-3); }
.hero-photo img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; max-width: none; object-fit: cover; object-position: 50% 32%; filter: saturate(.9) contrast(1.06); will-change: transform; }
.hero-tile {
  position: absolute; left: 0; top: 0; transform: translateY(-50%); width: min(300px, 70%);
  background: var(--night); color: #fff; padding: 22px 24px 24px; z-index: 2;
}
.hero-tile b { display: block; font: 700 var(--t-h2)/1 var(--sans); letter-spacing: -0.04em; }
.hero-tile span { display: block; margin-top: 10px; font-size: 16px; line-height: 1.4; }
.hero-figure figcaption { position: absolute; right: 0; bottom: 0; z-index: 2; max-width: 34ch; padding: 10px 14px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 14px; line-height: 1.4; }

/* masked headline lines */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }
html.js .reveal-lines .line > span { transform: translateY(105%); }
html.js .reveal-lines.is-in .line > span { transform: none; transition: transform .9s var(--ease-out); }
html.js .reveal-lines.is-in .line:nth-child(2) > span { transition-delay: .11s; }
html.js .after-lines { opacity: 0; transform: translateY(12px); }
html.js .after-lines.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) .45s, transform .6s var(--ease-out) .45s; }

@media (max-width: 860px) {
  .hero .phi { display: flex; flex-direction: column; align-items: stretch; }
  .hero h1 { order: 1; font-size: clamp(42px, 11.4vw, 64px); }
  .hero-talk { order: 2; padding-top: 24px; max-width: none; }
}
@media (max-width: 520px) { .hero-talk .actions .btn { flex: 1 1 100%; } }
@media (max-width: 860px) {
  .hero-figure { order: 3; margin-inline: calc(var(--m) * -1); margin-top: 120px; }
  .hero-tile { transform: translateY(-36px); }
  .hero-photo { height: auto; aspect-ratio: 4 / 3; }
  .hero-tile { left: var(--m); width: min(60vw, 280px); }
  .hero-figure figcaption { position: static; max-width: none; background: none; padding: 10px var(--m) 0; color: var(--muted); }
}

/* ── page hero (interior pages): masthead ── */
.phero { padding-top: clamp(48px, 7vw, 104px); }
.phero h1 { grid-column: 2; }
.phero .side { align-self: end; }
.phero .lead { color: var(--ink); max-width: 32ch; }
.phero-intro { grid-column: 2; margin-top: 28px; max-width: 46ch; color: var(--on-night-muted); }
.masthead { position: relative; margin-top: clamp(48px, 6vw, 88px); height: clamp(260px, 44vh, 520px); overflow: hidden; background: var(--paper-3); }
.masthead img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; max-width: none; object-fit: cover; filter: saturate(.9) contrast(1.06); will-change: transform; }
.masthead-cap { padding: 12px 0 0; font-size: 14px; color: var(--muted); }
.phero .crumbs { grid-column: 2; display: flex; gap: 10px; font-size: 16px; color: var(--on-night-muted); margin-bottom: 20px; }
.phero .crumbs a { color: var(--on-night-muted); }
@media (max-width: 860px) {
  .phero .phi { display: flex; flex-direction: column; }
  .phero .side { order: 3; margin-top: 24px; }
  .phero .crumbs { order: 0; }
  .phero h1 { order: 1; font-size: clamp(40px, 10.6vw, 60px); }
  .phero-intro { order: 2; }
  .masthead { margin-inline: calc(var(--m) * -1); height: auto; aspect-ratio: 4 / 3; }
}

/* ── about mosaic ── */
.about-head h2 { grid-column: 2; }
.about-head .lead { grid-column: 2; margin-top: 24px; max-width: 46ch; }
.about-head .side { grid-row: 1 / span 2; align-self: end; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 6vw, 88px); align-items: start; }
.mosaic-photo { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.mosaic-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transition: transform 1.2s var(--ease-out); }
.mosaic-note { position: absolute; top: 0; right: 0; width: min(340px, 52%); background: var(--paper); padding: 22px 24px 24px; font-size: 16px; line-height: 1.55; }
.mosaic-side { grid-column: 9 / span 4; }
.mosaic-tile { background: var(--paper-2); aspect-ratio: 798 / 629; overflow: hidden; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.mosaic-tile { position: relative; }
.mosaic-tile-cap { position: absolute; left: 0; top: 0; z-index: 1; background: var(--paper); font-size: 14px; color: var(--ink); padding: 0 12px 8px 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 48px; }
.facts dt { font-size: var(--t-small); color: var(--muted); }
.facts dd { font: 700 var(--t-h3)/1.15 var(--sans); }
@media (max-width: 860px) {
  .about-head { display: block; }
  .about-head .side { margin-top: 20px; }
  .mosaic { display: block; }
  .mosaic-photo { aspect-ratio: 4 / 3; margin-inline: calc(var(--m) * -1); }
  .mosaic-note { position: static; width: auto; padding: 20px var(--m) 0; }
  .mosaic-side { margin-top: 40px; }
}

/* ── perfil de inversión (live) ── */
.profiles h2 { max-width: 22ch; }
.profiles-head { align-items: end; }
.profiles-head .axis p { max-width: 46ch; }
.ptable { margin-top: clamp(48px, 5vw, 72px); }
.ptable fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ptable-grid { display: grid; grid-template-columns: minmax(0, 38.2fr) repeat(3, minmax(0, 20.6fr)); position: relative; }
.ptable-grid > * { padding: 20px 20px; min-height: 68px; display: flex; align-items: center; font-size: 16px; line-height: 1.4; position: relative; z-index: 1; }
.ptable-grid .rowname { font: 700 var(--t-h3)/1.2 var(--sans); padding-left: 16px; }
.ptable-grid .alt { background: var(--paper-3); }
.pchoice { padding: 0 !important; min-height: 0 !important; align-items: stretch !important; }
.pchoice label { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 22px 20px 18px; cursor: pointer; transition: color .2s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.pchoice label b { font: 700 var(--t-h3)/1.1 var(--sans); }
.pchoice label small { font-size: 14px; color: var(--muted); }
.pchoice input { position: absolute; opacity: 0; pointer-events: none; }
.pchoice input:focus-visible + label { outline: 2px solid var(--copper); outline-offset: -2px; }
.ptable-hl { position: absolute; z-index: 0; top: -24px; bottom: 0; left: 38.2%; width: 20.6%; background: var(--night); transition: transform .45s var(--ease-out); pointer-events: none; }
.ptable-grid[data-pick="1"] .ptable-hl { transform: translateX(100%); }
.ptable-grid[data-pick="2"] .ptable-hl { transform: translateX(200%); }
.ptable-grid .c1, .ptable-grid .c2, .ptable-grid .c3 { transition: color .3s var(--ease-out), background-color .3s var(--ease-out); }
.ptable-grid[data-pick="0"] .c1, .ptable-grid[data-pick="1"] .c2, .ptable-grid[data-pick="2"] .c3 { color: var(--on-night); background: var(--night); }
.ptable-grid[data-pick="0"] .c1 small, .ptable-grid[data-pick="1"] .c2 small, .ptable-grid[data-pick="2"] .c3 small { color: var(--on-night-muted); }
@media (hover: hover) and (pointer: fine) { .pchoice label:hover b { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; } }
.ptable-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 40px; }
.ptable-foot p { max-width: 56ch; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .ptable-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ptable-grid .rowname { grid-column: 1 / -1; min-height: 0; padding: 28px 0 8px; background: none !important; }
  .ptable-grid > *:not(.rowname):not(.pchoice):not(.ptable-hl) { font-size: 16px; padding: 14px 8px; align-items: flex-start; hyphens: auto; -webkit-hyphens: auto; }
  .ptable-grid .corner { display: none; }
  .pchoice label { padding: 16px 8px 14px; }
  .pchoice label b { font-size: 20px; }
  .pchoice label small { font-size: 14px; }
  .ptable-hl { display: none; }
  .ptable-grid .alt { background: none; }
  .ptable-grid[data-pick="0"] .c1, .ptable-grid[data-pick="1"] .c2, .ptable-grid[data-pick="2"] .c3 { background: var(--night); }
  .ptable-foot .btn { width: 100%; }
}

/* ── metodología: muchos en uno ── */
.method-head h2 { grid-column: 1; }
.method-head p { grid-column: 2; align-self: end; max-width: 50ch; }
.method-fig { margin-top: clamp(48px, 5vw, 72px); }
.method-fig svg { width: 100%; height: auto; }
.method-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-top: 36px; }
.method-steps p { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.on-night .method-steps p { color: var(--on-night-muted); }
.sq { transform-box: fill-box; transform-origin: center; }
html.js .method-fig .sq { opacity: 0; }
html.js .method-fig.is-in .sq { opacity: 1; transition: opacity .5s var(--ease-out); transition-delay: calc(var(--i) * 6ms); }
@media (max-width: 860px) {
  .method-head { display: block; }
  .method-head p { margin-top: 20px; }
  .method-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 520px) { .method-steps { grid-template-columns: 1fr; } }

/* ── lista de servicios: enunciado, tabla a la derecha ── */
.svc h2 { max-width: 20ch; }
.svc h2 > span { display: block; }
.svc h2 .indent { padding-left: 3vw; }
.svc-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); margin-top: clamp(56px, 6vw, 96px); align-items: end; }
.svc-photo { grid-column: 1 / span 4; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); align-self: end; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.svc-word { grid-column: 6 / span 1; align-self: start; font-size: var(--t-small); color: var(--muted); padding-top: 6px; }
.svc-list { grid-column: 7 / span 6; }
.svc-list li + li { margin-top: 0; }
.svc-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 24px; padding: 18px 0; text-decoration: none; }
.svc-list li:nth-child(4) a { margin-top: 28px; }
.svc-list a b { font: 700 var(--t-h3)/1.2 var(--sans); }
.svc-list a span { grid-column: 1; font-size: 16px; color: var(--muted); line-height: 1.5; }
.svc-list a .arrow { grid-column: 2; grid-row: 1; color: var(--muted); transition: transform .2s var(--ease-out), color .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .svc-list a:hover b { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; } .svc-list a:hover .arrow { transform: translateX(4px); color: var(--ink); } }
@media (max-width: 860px) {
  .svc h2 .indent { padding-left: 0; }
  .svc-body { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .svc-word { display: none; }
  .svc-photo { width: 64%; margin-left: auto; margin-top: 40px; }
}

/* ── testimonio ── */
.quote .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.quote-photo { grid-column: 1 / span 5; aspect-ratio: 3 / 4; max-height: 74svh; overflow: hidden; background: var(--paper-3); }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.quote-text { grid-column: 7 / span 6; padding-top: clamp(40px, 8vw, 120px); }
.quote h2 { font-size: var(--t-h2); }
.quote blockquote { margin-top: 32px; font: 400 var(--t-h3)/1.35 var(--serif); max-width: 34ch; text-wrap: pretty; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 16px; }
.quote cite b { font-weight: 600; }
.quote-cap { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) {
  .quote .wrap { display: block; }
  .quote-photo { width: 72%; }
  .quote-text { padding-top: 40px; }
}

/* ── cierre invertido ── */
.close { min-height: min(72svh, 720px); display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(80px, 10vw, 140px) clamp(40px, 5vw, 64px); }
.close .display { line-height: .98; }
.close-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px 40px; margin-top: 64px; }
.close-foot p { max-width: 40ch; font-size: var(--t-lead); line-height: 1.5; color: var(--on-night-muted); }
@media (max-width: 860px) { .close-foot .btn { width: 100%; } }

/* ── pie ── */
.site-foot { background: var(--night); color: var(--on-night); box-shadow: inset 0 1px 0 var(--night-2); padding-top: clamp(48px, 5vw, 72px); padding-bottom: calc(32px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; width: max-content; }
.foot-brand img { width: 44px; height: 44px; object-fit: contain; transform: scale(1.75); }
.foot-brand span { font: 500 26px/1 var(--serif); letter-spacing: 0.02em; }
.foot-brand + p { margin-top: 16px; max-width: 40ch; color: var(--on-night-muted); font-size: 16px; }
.foot-row { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); column-gap: var(--g); margin-top: clamp(48px, 5vw, 72px); }
.foot-places { margin-top: 32px; }
.foot-places a { display: block; width: max-content; max-width: 100%; font: 600 18px/1.8 var(--sans); color: var(--on-night); text-decoration: none; }
@media (hover: hover) { .foot-places a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; } }
.foot-places address { font-style: normal; margin-top: 18px; color: var(--on-night-muted); font-size: 16px; line-height: 1.55; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font: 600 16px/1.4 var(--sans); color: var(--on-night); letter-spacing: 0; }
.foot-cols ul { margin-top: 12px; display: grid; gap: 8px; }
.foot-cols a, .foot-cols li { font-size: 16px; color: var(--on-night-muted); text-decoration: none; }
@media (hover: hover) { .foot-cols a:hover { color: var(--on-night); text-decoration: underline; } }
.foot-legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; margin-top: clamp(56px, 6vw, 96px); font-size: 14px; line-height: 1.55; color: var(--on-night-muted); }
.foot-legal > div { max-width: 64ch; }
.foot-legal p + p { margin-top: 8px; }
.foot-legal a { color: var(--on-night-muted); }
.foot-top { white-space: nowrap; }
@media (max-width: 860px) {
  .foot-row { display: block; }
  .foot-cols { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .foot-legal { grid-template-columns: 1fr; }
}

/* ── páginas interiores ── */
.text-page .side { padding-top: 0.6em; }
.side-note { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 26ch; }
.side-note b { display: block; font: 700 var(--t-h3)/1.1 var(--sans); color: var(--ink); margin-bottom: 6px; }
.on-night .side-note b { color: var(--on-night); }
.on-night .side-note { color: var(--on-night-muted); }
.side-photo { margin-top: 32px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); max-width: 340px; }
.side-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.text-page .axis h2 + .body, .text-page .axis h2 + .lead { margin-top: 28px; }
.two-col { columns: 2 34ch; column-gap: var(--g); }
.two-col p { break-inside: avoid; }
.two-col p + p { margin-top: 0; padding-top: 1em; }
@media (max-width: 860px) {
  .text-page .side { padding-top: 0; }
  .text-page .side.after { margin: 32px 0 0; }
}

.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) var(--g); margin-top: clamp(40px, 4vw, 64px); }
.pairs p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.on-night .pairs p { color: var(--on-night-muted); }
@media (max-width: 640px) { .pairs { grid-template-columns: 1fr; } }

.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
.band > * { min-height: clamp(220px, 28vw, 420px); overflow: hidden; background: var(--paper-3); }
.band img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); filter: saturate(.9) contrast(1.05); }
.band .b1 { grid-column: span 5; } .band .b2 { grid-column: span 3; } .band .b3 { grid-column: span 4; }
.band.four .b1 { grid-column: span 4; } .band.four .b2 { grid-column: span 2; } .band.four .b3, .band.four .b4 { grid-column: span 3; }
.band .tile { background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 2.4vw, 36px); }
.band .tile b { font: 700 var(--t-h2)/1 var(--sans); letter-spacing: -0.04em; }
.band .tile.ink { background: var(--night); }
.band .tile span { margin-top: 10px; font-size: 16px; line-height: 1.45; max-width: 26ch; }
.band-cap { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .band { grid-template-columns: 1fr 1fr; margin-inline: calc(var(--m) * -1); }
  .band .b1, .band.four .b1 { grid-column: 1 / -1; } .band .b2, .band .b3, .band.four .b2, .band.four .b3, .band.four .b4 { grid-column: span 1; }
  .band > * { min-height: 46vw; }
  .band-cap { padding-inline: 0; }
}

.years { margin-top: clamp(40px, 4vw, 64px); display: grid; gap: 0; }
.years li { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); column-gap: var(--g); padding-block: 26px; }
.years li { padding-inline: 20px; }
.years li:nth-child(odd) { background: var(--paper-2); }
.years b { font: 700 var(--t-h2)/1 var(--sans); letter-spacing: -0.04em; }
.years p { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 56ch; }
@media (max-width: 640px) { .years li { display: block; } .years li > div { margin-top: 10px; } }

/* servicios detalle */
.detail { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); column-gap: var(--g); padding-block: clamp(56px, 6vw, 88px); }
.detail + .detail { box-shadow: inset 0 1px 0 var(--paper-3); }
.detail-side h3 { max-width: 22ch; }
.detail-side { padding-right: var(--g); }
.detail-side .small { margin-top: 12px; color: var(--muted); }
.detail-main .lead { max-width: 48ch; }
.detail-main ul { margin-top: 24px; display: grid; gap: 10px; }
.detail-main li { position: relative; padding-left: 26px; font-size: 18px; }
.detail-main li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--red); }
.detail-main .link { margin-top: 28px; }
@media (max-width: 860px) { .detail { display: block; } .detail-main { margin-top: 20px; } }

.offer { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); column-gap: var(--g); }
.offer li { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px var(--g); padding-block: 22px; }
.offer li:nth-child(odd) { background: var(--paper-2); padding-inline: 20px; margin-inline: -20px; }
.offer p { font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) { .offer { display: block; } .offer li { display: block; } .offer p { margin-top: 8px; } }

/* contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 38.2fr) minmax(0, 61.8fr); column-gap: var(--g); }
.reach { display: grid; gap: 28px; }
.reach > div, .facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.reach dt, .facts dt { margin-top: 6px; }
.reach dt { font-size: var(--t-small); color: var(--muted); }
.reach dd { font: 700 var(--t-h3)/1.3 var(--sans); }
.reach dd a { text-decoration: none; }
@media (hover: hover) { .reach dd a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; } }
.reach dd span { display: block; font: 400 16px/1.5 var(--sans); color: var(--muted); }
.map { margin-top: 40px; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.05); }
.form { background: var(--paper-2); padding: clamp(24px, 4vw, 56px); }
.form > p { margin-top: 12px; max-width: 52ch; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-top: 36px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 18px; background: var(--paper); color: var(--ink);
  border: 1px solid #bcbcc2; border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2318181c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #75757c; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8c8c93; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field .err { font-size: 14px; color: var(--red-press); min-height: 0; }
.field .err:empty { display: none; }
.form-note { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 60ch; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-status { font-size: 16px; }
.form-status:empty { display: none; }
@media (max-width: 860px) { .contact-grid { display: flex; flex-direction: column-reverse; } .form { margin: 0 calc(var(--m) * -1) 64px; } .fields { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

.faq { margin-top: 0; }
.faq details { box-shadow: inset 0 -1px 0 #3a3a43; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 20px; align-items: center; padding: 24px 0; font: 600 18px/1.45 var(--sans); -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 40px 28px 0; color: var(--on-night-muted); max-width: 64ch; }
@media (hover: hover) { .faq summary:hover { color: #fff; } }

/* ── entradas al hacer scroll ── */
html.js [data-rise] > * { opacity: 0; transform: translateY(24px); }
html.js [data-rise].is-in > * { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js [data-rise].is-in > *:nth-child(2) { transition-delay: .07s; }
html.js [data-rise].is-in > *:nth-child(3) { transition-delay: .14s; }
html.js [data-rise].is-in > *:nth-child(4) { transition-delay: .21s; }
html.js [data-rise].is-in > *:nth-child(5) { transition-delay: .28s; }
html.js [data-rise].is-in > *:nth-child(n+6) { transition-delay: .32s; }
html.js .img-in > img { clip-path: inset(0 0 100% 0); }
html.js .img-in.is-in > img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-in-out), transform 1.2s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html.js [data-rise] > *, html.js .reveal-lines .line > span, html.js .after-lines, html.js .method-fig .sq { opacity: 1 !important; transform: none !important; transition: opacity .3s linear !important; }
  html.js .img-in > img { clip-path: none !important; }
  .hero-photo img, .masthead img { transform: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-nav, .menu-btn, .close, .map { display: none !important; }
  .on-night { background: #fff; color: #000; }
}

/* utilidades */
.only-phone { display: none; }
@media (max-width: 640px) { .only-wide { display: none; } .only-phone { display: block; width: 100% !important; max-width: 340px; margin-inline: auto; } }
.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; }
@media (max-width: 860px) { .facts-4 { grid-template-columns: 1fr 1fr; } }

@media (max-width: 860px) {
  .phi { display: flex; flex-direction: column; }
  .phi > .side { margin: 0 0 20px; }
  .phi > .side:not(.keep) { order: 2; margin: 32px 0 0; }
}
/* la foto propia del cliente es muy clara: más contraste para igualar el tratamiento */
img[src*="filesafe"] { filter: saturate(.85) contrast(1.12) brightness(.92) !important; }

/* v3 — más claro, más contraste */
.section.on-paper-2 + .section.on-paper-2 { padding-top: 0; }
.hero { padding-bottom: 0; }
.close { background: var(--night); }
.ptable-hl, .ptable-grid[data-pick] .c1, .ptable-grid[data-pick] .c2, .ptable-grid[data-pick] .c3 { }
.on-night h2, .on-night .display { color: #fff; }

/* v4 — toque moderno: un radio para fotos y paneles, botones en píldora */
.hero-photo, .hero-tile, .masthead, .mosaic-photo, .mosaic-tile, .svc-photo, .quote-photo, .side-photo,
.band, .map, .form, .ptable-hl, .years li, .offer li:nth-child(odd), .text-page figure.side, .close-card { border-radius: var(--r); overflow: hidden; }
.band > *:not(:last-child) { }
.mosaic-note { border-bottom-left-radius: var(--r); }
.mosaic-tile-cap { border-bottom-right-radius: 10px; }
.field input, .field select, .field textarea { border-radius: 10px; }
.ptable-grid[data-pick="0"] .c1, .ptable-grid[data-pick="1"] .c2, .ptable-grid[data-pick="2"] .c3 { }
.ptable-grid .alt.rowname { border-radius: 10px 0 0 10px; }
.hero-figure figcaption { border-top-left-radius: 10px; }
.foot-places a:hover { color: #fff; }
/* resaltado del perfil: esquinas suaves arriba y abajo */
.ptable-grid .pchoice.c1, .ptable-grid .pchoice.c2, .ptable-grid .pchoice.c3 { border-radius: var(--r) var(--r) 0 0; }
.btn .arrow { transition: transform .2s var(--ease-out); }
.link .arrow { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover .arrow { transform: translateX(4px); } }
@media (max-width: 860px) {
  .hero-figure, .masthead, .mosaic-photo, .band { border-radius: 0; }
  .hero-photo { border-radius: 0; }
  .form { border-radius: 0; }
  .ptable-grid[data-pick="0"] .c1, .ptable-grid[data-pick="1"] .c2, .ptable-grid[data-pick="2"] .c3 { border-radius: 10px; }
}
.hero-tile b { font-size: clamp(34px, 3vw, 44px); white-space: nowrap; }
