:root {
  --paper: #fbfaf7;
  --tint: #f4f0e8;
  --card: #ffffff;
  --ink: #0f1b2d;
  --muted: #4f5b6b;
  --navy: #13284a;
  --navy-deep: #0c1b33;
  --on-navy: #f6f2ea;
  --on-navy-muted: #b8c2d1;
  --gold: #b8913f;
  --gold-text: #8a6824;
  --gold-head: #a37b2e;
  --gold-light: #d9b76c;
  --gold-soft: #efe3c8;
  --line: #e7e1d4;
  --btn: #13284a;
  --btn-hover: #1d3a66;
  --btn-ink: #f6f2ea;
  --shadow-sm: 0 1px 2px rgba(12, 27, 51, .05), 0 6px 16px -8px rgba(12, 27, 51, .14);
  --shadow-md: 0 2px 4px rgba(12, 27, 51, .04), 0 22px 40px -22px rgba(12, 27, 51, .32);
  --shadow: 0 34px 64px -34px rgba(12, 27, 51, .5);
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Fira Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Un solo criterio de movimiento: curva expo de salida para todo, curva de cortina para las fotos */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --t-fast: .25s;
  --t-base: .5s;
  --t-slow: 1.1s;
  --rise: 48px;
  --radius: 18px;
  --mat: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1424; --tint: #0f1a2e; --card: #14223b; --ink: #f2ede3; --muted: #aab4c3;
    --navy: #0f2140; --navy-deep: #08111f; --on-navy: #f2ede3; --on-navy-muted: #a9b4c4;
    --gold: #d2ae63; --gold-text: #dcbb75; --gold-head: #d9b76c; --gold-light: #e2c27d; --gold-soft: #2c2619;
    --line: #22314b; --btn: #d2ae63; --btn-hover: #e2c27d; --btn-ink: #0c1b33;
    --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .5); --shadow-md: 0 22px 40px -22px rgba(0, 0, 0, .7); --shadow: 0 34px 64px -34px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1424; --tint: #0f1a2e; --card: #14223b; --ink: #f2ede3; --muted: #aab4c3;
  --navy: #0f2140; --navy-deep: #08111f; --on-navy: #f2ede3; --on-navy-muted: #a9b4c4;
  --gold: #d2ae63; --gold-text: #dcbb75; --gold-head: #d9b76c; --gold-light: #e2c27d; --gold-soft: #2c2619;
  --line: #22314b; --btn: #d2ae63; --btn-hover: #e2c27d; --btn-ink: #0c1b33;
  --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .5); --shadow-md: 0 22px 40px -22px rgba(0, 0, 0, .7); --shadow: 0 34px 64px -34px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a:not(.btn):not(.wa):focus-visible, summary:focus-visible { border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top var(--t-base) var(--ease); }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-text); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h2 { font-weight: 600; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 20px; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-head); }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { margin: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font: 600 .96rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.btn .arrow { display: inline-block; transition: transform var(--t-base) var(--ease); }
.btn { transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease), translate .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 1px 2px rgba(12, 27, 51, .18), 0 12px 24px -16px rgba(12, 27, 51, .7); }
.btn-primary:hover { background: var(--btn-hover); box-shadow: 0 1px 2px rgba(12, 27, 51, .18), 0 18px 30px -16px rgba(12, 27, 51, .6); }
.btn-gold { background: var(--gold); color: #0c1b33; box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .8); }
.btn-gold:hover { background: var(--gold-light); }
.btn-text { min-height: 44px; padding: 0 4px; background: none; color: var(--ink); border-radius: 8px; }
.btn-text:hover { transform: none; color: var(--gold-text); }
.btn-text:hover .arrow { transform: translateY(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-text); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size var(--t-base) var(--ease); }
.link .arrow { transition: transform var(--t-base) var(--ease); }
.link:hover { background-size: 100% 1px; }
.link:hover .arrow { transform: translateX(3px); }

/* Encabezado */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid transparent; transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); animation: headIn 1s var(--ease) both; }
header.scrolled, header.open { background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); box-shadow: 0 12px 32px -28px rgba(12, 27, 51, .55); }
header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 10px; }
.mark { width: 44px; height: 44px; border-radius: 50%; display: block; flex: none; box-shadow: 0 6px 16px -8px rgba(12, 27, 51, .55); transition: transform var(--t-base) var(--ease); }
.brand:hover .mark { transform: translateY(-1px); }
.brand-text { display: grid; line-height: 1.25; }
.brand-text b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .03em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .92rem; text-decoration: none; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1.5px; border-radius: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 20px; margin-left: 12px; font-size: .9rem; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.menu-btn:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease); }
.menu-btn i:first-child { top: 17px; }
.menu-btn i:last-child { top: 25px; }
header.open .menu-btn i:first-child { top: 21px; transform: rotate(45deg); }
header.open .menu-btn i:last-child { top: 21px; transform: rotate(-45deg); }

/* Portada */
.glow-clip { position: absolute; inset: 0 0 auto; height: 1100px; overflow: hidden; pointer-events: none; z-index: 0; }
.glow { position: absolute; top: -220px; right: -14%; width: min(68vw, 920px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold-soft) 75%, transparent) 0%, transparent 62%); pointer-events: none; z-index: 0; animation: fade 2s var(--ease) both; }
main, footer { position: relative; z-index: 1; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding-block: 48px 112px; }
.hero-copy { min-width: 0; }
h1 { font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 26px; }
h1 .line { display: block; }
.lead { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 32em; margin: 0 0 36px; }
.hero-actions { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }

.framed { position: relative; width: 100%; max-width: 440px; justify-self: end; }
.framed::before { content: ""; position: absolute; z-index: -1; inset: calc(var(--mat) * -1); border: 1px solid color-mix(in srgb, var(--gold) 75%, transparent); border-radius: calc(var(--radius) + var(--mat)); pointer-events: none; }
.framed::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: var(--radius); box-shadow: var(--shadow); pointer-events: none; }
.framed { isolation: isolate; will-change: transform; }
.framed .img { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 900 / 1085; }
.tiles { position: relative; height: 100%; }
.tiles img { position: absolute; left: 0; width: 100%; max-width: none; }
.badge { position: absolute; left: -36px; bottom: -26px; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-md); }
.badge .ok { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--gold) 16%, transparent); }
.badge .ok svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-head); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge b { display: block; font-family: var(--display); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.badge span { font-size: .8rem; color: var(--muted); }

/* Cifras */
.figures { background: var(--navy); color: var(--on-navy); }
.figures .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 38px; }
.figure { display: flex; align-items: center; gap: 16px; padding-inline: 32px; border-left: 1px solid rgba(217, 183, 108, .28); min-width: 0; }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure b { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.5rem); color: var(--gold-light); line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; letter-spacing: -.01em; }
.figure span { color: var(--on-navy-muted); font-size: .92rem; line-height: 1.4; }

/* Secciones */
.section { padding-block: 112px; }
.section.tinted { background: var(--tint); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about h2 { margin-bottom: 0; }
.about-text p { margin: 0 0 18px; max-width: 34em; }
.signature { margin-top: 28px; padding-left: 18px; border-left: 1px solid var(--gold); display: grid; gap: 2px; }
.signature b { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--gold-head); }
.signature span { color: var(--muted); font-size: .9rem; }

.office { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; align-items: center; margin-top: 88px; }
.office .framed { max-width: none; justify-self: stretch; }
.office .framed .img { aspect-ratio: 1320 / 885; }
.office h3 { font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.22; margin-bottom: 16px; }
.office p { margin: 0; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; min-width: 0; padding: 32px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.service .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: color-mix(in srgb, var(--gold) 12%, transparent); transition: background-color var(--t-base) var(--ease); }
.service .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-head); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-weight: 600; font-size: 1.18rem; line-height: 1.28; margin-bottom: 10px; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (hover: hover) {
  .service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
  .service:hover .ico { background: color-mix(in srgb, var(--gold) 22%, transparent); }
}
.services-note { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; margin: 40px 0 0; text-align: center; color: var(--muted); }

/* Llamado a la acción */
.band { padding-block: 0 112px; background: var(--tint); }
.band-card { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: 48px 56px; border-radius: 24px; background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.band-card::before { content: ""; position: absolute; right: -10%; top: -80%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(217, 183, 108, .18), transparent 65%); pointer-events: none; }
.band-card > * { position: relative; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
