/* C&A Proyectos e Ingenieria: oscuro, premium, dorado del logo */
:root {
  --bg: #1c1b19;
  --surface: #232220;
  --surface-2: #2b2926;
  --ink: #f1eee8;
  --muted: #c2b9a8;
  --gold: #d8b56c;
  --gold-hi: #e6c77e;
  --gold-deep: #8a6a2c;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* escala tipografica unica: 6 tamanos */
  --fs-1: 0.9375rem;                                        /* 15  notas, chips, etiquetas */
  --fs-2: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);          /* 16-17 texto base */
  --fs-3: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);     /* 18-21 lead, botones grandes */
  --fs-4: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);        /* 22-28 titulos de tarjeta */
  --fs-5: clamp(1.75rem, 1.1rem + 2vw, 3rem);               /* 28-48 titulos de seccion */
  --fs-6: var(--fs-5);                                      /* titular principal = titulo de seccion */
  --m: clamp(20px, 3.6vw, 52px);
  --gap-sec: clamp(88px, 11vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-2); line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* tipografia */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: var(--fs-6); line-height: 1.05; }
h2 { font-size: var(--fs-5); line-height: 1.06; }
h3 { font-size: var(--fs-4); line-height: 1.15; font-weight: 600; letter-spacing: -.005em; }
.lead { font-size: var(--fs-3); }
.sub { color: var(--muted); max-width: 46ch; }
.fine { font-size: var(--fs-1); color: var(--muted); }

/* botones: cuadrados, planos, con iman en escritorio */
.btn { --mx: 0px; --my: 0px; --lift: 0px; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--gold); color: var(--bg); font-size: var(--fs-2); font-weight: 700; line-height: 1; text-decoration: none; border: 0; border-radius: 2px; cursor: pointer; transform: translate(var(--mx), calc(var(--my) + var(--lift))); transition: transform .25s var(--ease), background-color .25s; }
.btn:hover { background: var(--gold-hi); --lift: -2px; }
.btn:active { --lift: 0px; transform: translate(var(--mx), var(--my)) scale(.98); }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: var(--fs-3); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: #35322e; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--m); transition: background-color .3s; }
.nav.solid, .nav.open { background: var(--bg); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: auto; }
.brand-name { font-family: var(--serif); font-size: var(--fs-3); font-weight: 600; line-height: 1; letter-spacing: .01em; }
.brand-name span { display: none; font-family: var(--sans); font-size: var(--fs-1); font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.menu a { text-decoration: none; font-size: var(--fs-1); font-weight: 500; padding: 8px 2px; margin-left: clamp(14px, 2vw, 32px); color: var(--ink); transition: color .2s; }
.menu a:hover { color: var(--gold-hi); }
.nav-toggle { display: none; background: var(--surface-2); color: var(--ink); border: 0; border-radius: 2px; min-height: 44px; padding: 0 18px; font-size: var(--fs-1); font-weight: 500; cursor: pointer; }

/* hero */
.hero-pin { position: relative; display: grid; gap: 22px; padding: 96px var(--m) 0; }
.hero-copy { display: contents; }
.hero h1 { order: 1; } .hero .lead { order: 2; } .hero-cta { order: 3; } .stage { order: 4; } .stage-ui { order: 5; } .trust { order: 6; }
.lead { max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-cta .btn { flex: 1 1 100%; }
.trust { display: grid; gap: 14px; padding-bottom: 8px; }
.trust li { display: flex; flex-direction: column; }
.trust strong { font-family: var(--serif); font-size: var(--fs-4); font-weight: 600; line-height: 1.15; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.trust span { font-size: var(--fs-1); color: var(--muted); }
.glow { position: absolute; z-index: 0; left: 0; top: 0; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; background: var(--gold); opacity: .12; filter: blur(60px); transform: translate3d(var(--gx, 70vw), var(--gy, 40vh), 0); pointer-events: none; will-change: transform; }
.stage { position: relative; z-index: 1; height: 50svh; min-height: 330px; margin: 0 calc(var(--m) * -1); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; display: block; touch-action: pan-y; }
.stage.is-drag canvas { cursor: grabbing; }
.stage::after { content: "Arrastra para girar. Toca una pieza para ver su nombre."; position: absolute; left: var(--m); bottom: 8px; font-size: var(--fs-1); color: var(--muted); pointer-events: none; }
.stage-fallback { position: absolute; inset: 0; display: none; place-items: center; color: var(--muted); }
.stage.no-webgl .stage-fallback { display: grid; }
.tip { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, -150%); background: var(--gold); color: var(--bg); padding: 6px 12px; font-size: var(--fs-1); font-weight: 700; border-radius: 2px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.tip.on { opacity: 1; }
.stage-ui { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--surface-2); color: var(--ink); border: 0; border-radius: 2px; min-height: 44px; padding: 0 16px; font-size: var(--fs-1); font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, transform .2s var(--ease); }
.chip:hover { background: #3a3732; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--bg); }

@media (min-width: 900px) {
  .hero { height: 210svh; }
  .hero-pin { position: sticky; top: 0; display: block; height: 100svh; padding: 0; overflow: hidden; }
  .hero-copy { position: relative; z-index: 2; height: 100svh; padding: 100px var(--m) 90px; display: flex; flex-direction: column; justify-content: center; gap: 22px; width: 56%; }
  .hero h1 { max-width: 15.5em; }
  .hero-cta .btn { flex: 0 0 auto; }
  .trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 18px; }
  .stage { position: absolute; inset: 0; height: auto; margin: 0; }
  .stage::after { bottom: 44px; }
  .stage-ui { position: absolute; left: var(--m); right: var(--m); bottom: 24px; justify-content: flex-end; padding-right: 180px; }
  .glow { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .brand-name span { display: inline; }
}
@media (max-width: 899px) {
  .chip { padding: 0 10px; }
  .nav-toggle { display: inline-block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 8px var(--m) 20px; display: none; flex-direction: column; }
  .js .nav.open .menu { display: flex; }
  .menu a { margin: 0; padding: 14px 0; font-size: var(--fs-3); }
  html:not(.js) .menu { display: flex; position: static; flex-direction: row; flex-wrap: wrap; }
}

/* franja con marquee */
.strip { background: var(--surface); padding: 26px 0; overflow: hidden; }
.marquee { display: flex; }
.mq-track { flex: none; min-width: 100%; display: flex; align-items: baseline; justify-content: space-around; gap: 48px; padding-right: 48px; animation: mq 38s linear infinite; }
.strip li { font-size: var(--fs-1); color: var(--muted); white-space: nowrap; }
.strip .tech { font-family: var(--serif); font-size: var(--fs-4); font-weight: 600; line-height: 1; color: var(--gold-hi); }
.strip.paused .mq-track, .strip:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-100%); } }

/* secciones */
.sec { padding: var(--gap-sec) var(--m); }
.sec-tone { background: var(--surface); }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { max-width: 24ch; }
.split { display: grid; gap: 48px; }
.split .sec-head { margin-bottom: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; } }

/* servicios */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tile { position: relative; background: var(--surface); display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 36px); transition: background-color .3s, transform .35s var(--ease); overflow: hidden; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tile p { color: var(--muted); max-width: 32ch; }
.tile a { margin-top: auto; padding-top: 14px; color: var(--gold-hi); font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.tile a::after { content: "→"; transition: transform .3s var(--ease); }
.tile:hover, .tile:active { background: var(--surface-2); transform: translateY(-6px); }
.tile:hover::after, .tile:active::after { transform: scaleX(1); }
.tile:hover a::after { transform: translateX(6px); }
.tile h3 { max-width: 20ch; }
.viz { width: 120px; height: 64px; margin-bottom: 6px; overflow: visible; }
.viz .d { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.viz .bar, .viz .col, .viz .fl { fill: var(--gold-deep); }
.viz .tot { fill: var(--gold-hi); }
.viz .bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.viz .col, .viz .fl { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); }
.viz-on .d { animation: draw 5.5s ease-in-out infinite; }
.viz-on .bar { animation: growx 5.5s var(--ease) infinite; animation-delay: var(--dl, 0s); }
.viz-on .col, .viz-on .fl { animation: growy 5.5s var(--ease) infinite; animation-delay: var(--dl, 0s); }
.tile.viz-on:hover .d, .tile.viz-on:hover .bar, .tile.viz-on:hover .col, .tile.viz-on:hover .fl { animation-duration: 2.4s; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 40%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes growx { 0% { transform: scaleX(0); } 35%, 82% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes growy { 0% { transform: scaleY(0); } 35%, 82% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.cubewrap { display: grid; place-items: center; width: 120px; height: 64px; perspective: 400px; }
.cube { position: relative; width: 38px; height: 38px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(30deg); animation: spin 10s linear infinite paused; }
.viz-on .cube { animation-play-state: running; }
.tile:hover .cube { animation-duration: 4s; }
.cube i { position: absolute; inset: 0; border: 2px solid var(--gold); background: rgba(216, 181, 108, .1); }
.cube i:nth-child(1) { transform: translateZ(19px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(19px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(19px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(19px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(19px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(19px); }
@keyframes spin { to { transform: rotateX(-24deg) rotateY(390deg); } }

/* pasos */
.track { height: 6px; background: var(--surface-2); margin-bottom: 40px; }
.track span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.steps { display: grid; gap: 36px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.step { display: flex; flex-direction: column; gap: 10px; }
.when { font-family: var(--serif); font-size: var(--fs-5); font-weight: 600; line-height: 1; color: var(--gold); }
.step p { color: var(--muted); max-width: 28ch; }
.count b { font-family: var(--serif); font-size: var(--fs-5); font-weight: 600; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }

/* proyectos */
.work { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; background: var(--surface); transition: transform .35s var(--ease), background-color .3s; }
.card:hover { transform: translateY(-5px); background: var(--surface-2); }
.cover { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--bg); overflow: hidden; cursor: pointer; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .cover img { transform: scale(1.05); }
.cover-plan img { object-fit: contain; padding: 14px; filter: invert(1) sepia(1) saturate(2.6) hue-rotate(-8deg) brightness(.95); }
.mini { display: flex; gap: 6px; padding: 8px 22px 0; background: var(--surface); }
.mini img { height: 52px; width: auto; flex: none; background: var(--bg); filter: invert(1) sepia(1) saturate(2.6) hue-rotate(-8deg) brightness(.9); opacity: .85; }
.cap { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cap p { color: var(--muted); font-size: var(--fs-1); }
.cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: auto; padding-top: 14px; }
.cap-link { color: var(--gold-hi); font-weight: 700; font-size: var(--fs-1); text-decoration: none; padding: 10px 0; }
.cap-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.work-fallback a { color: var(--gold-hi); }
@media (min-width: 700px) { .work { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* visor de proyectos */
.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: #000; }
.v-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--m) 4px; }
.v-title { font-size: var(--fs-4); line-height: 1.1; }
.v-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 6px var(--m) 10px; }
.v-tabs, .v-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.v-filters[hidden] { display: none; }
.v-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #e9e2d3; touch-action: none; cursor: grab; }
.v-stage.is-photo { background: #11100f; }
.v-stage.grab { cursor: grabbing; }
.v-img { position: absolute; left: 50%; top: 50%; max-width: 100%; max-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); transform-origin: center; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .35s; will-change: transform; }
.v-img.on { opacity: 1; }
.v-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #5b5448; font-size: var(--fs-2); pointer-events: none; }
.v-stage.is-photo .v-loading { color: var(--muted); }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; min-height: 64px; padding: 0; font-size: var(--fs-4); background: rgba(28, 27, 25, .82); }
.v-nav[hidden] { display: none; }
.v-prev { left: 10px; } .v-next { right: 10px; }
.v-zoom { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.v-zoom .chip { background: rgba(28, 27, 25, .82); }
.v-thumbs { display: flex; gap: 8px; padding: 10px var(--m); overflow-x: auto; background: var(--surface); }
.thumb { flex: none; height: 64px; padding: 0; border: 0; background: var(--bg); cursor: pointer; opacity: .65; transition: opacity .2s, transform .2s var(--ease); }
.thumb img { height: 100%; width: auto; max-width: 120px; object-fit: contain; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--gold); outline-offset: -2px; }
.v-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px var(--m) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); }
.v-cap { color: var(--ink); font-size: var(--fs-1); flex: 1 1 240px; }
.v-foot .btn { flex: 0 1 auto; }
.chip[role="tab"][aria-selected="true"] { background: var(--gold); color: var(--bg); }
@media (max-width: 699px) { .v-foot .btn { flex: 1 1 100%; } .v-thumbs { padding: 8px var(--m); } .thumb { height: 52px; } }

/* casos */
.cases { display: grid; gap: 12px; }
.cases a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px clamp(20px, 2.4vw, 36px); background: var(--bg); text-decoration: none; font-family: var(--serif); font-size: var(--fs-4); font-weight: 500; line-height: 1.1; transition: background-color .3s, color .3s, padding .35s var(--ease); }
.cases a i { font-style: normal; color: var(--gold); transition: transform .3s var(--ease); }
.cases a:hover, .cases a:active { background: var(--gold); color: var(--bg); padding-left: clamp(28px, 3vw, 46px); }
.cases a:hover i { color: var(--bg); transform: translateX(8px); }

/* precios como carta */
.sec-head .btn { margin-top: 10px; }
.menu-price { display: grid; gap: 26px; }
.menu-price li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.menu-price h3 { font-family: var(--sans); font-size: var(--fs-3); font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.menu-price p { color: var(--muted); font-size: var(--fs-1); }
.tbc { color: var(--gold-hi); font-weight: 700; font-variant-numeric: tabular-nums; }

/* faq */
.faq { display: grid; gap: 12px; }
details { background: var(--bg); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none; padding: 22px clamp(20px, 2.4vw, 32px); font-size: var(--fs-3); font-weight: 500; line-height: 1.25; min-height: 64px; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { padding: 0 clamp(20px, 2.4vw, 32px) 24px; color: var(--muted); max-width: 56ch; animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }
summary:hover { color: var(--gold-hi); }

/* cierre */
.close h2 { max-width: none; }
.close .rv { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.phones { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.phones a { font-family: var(--serif); font-size: var(--fs-4); font-weight: 600; line-height: 1.1; color: var(--gold-hi); text-decoration: none; }
.phones a:hover { text-decoration: underline; text-underline-offset: 6px; }
.form { background: var(--surface); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 8px; }
.form-title { font-family: var(--serif); font-size: var(--fs-4); font-weight: 600; line-height: 1.2; margin-bottom: 10px; }
label { font-size: var(--fs-1); color: var(--muted); margin-top: 8px; }
input, select { width: 100%; min-height: 52px; padding: 0 16px; background: var(--bg); color: var(--ink); border: 1px solid #3d3a35; border-radius: 2px; font-size: var(--fs-2); }
input::placeholder { color: #8f877a; }
input:focus, select:focus { outline: 2px solid var(--gold-hi); outline-offset: 1px; border-color: var(--gold); }
.form .btn { margin-top: 18px; }
.err { color: #f0b49a; font-size: var(--fs-1); margin-top: 6px; }
.err[hidden] { display: none; }
@media (min-width: 900px) { .close .split { grid-template-columns: 6fr 5fr; } }

/* footer */
.foot { padding: 96px var(--m) 28px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 2fr 1.2fr 1fr; gap: 48px; } }
.foot-logo { width: 120px; height: auto; }
.foot-h { font-family: var(--serif); font-size: var(--fs-3); font-weight: 600; line-height: 1.2; color: var(--gold-hi); margin-bottom: 10px; }
.foot p { color: var(--muted); }
.foot a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.foot a:hover { color: var(--gold-hi); }
.foot .wordmark { font-family: var(--serif); font-weight: 600; font-size: clamp(120px, 30vw, 480px); line-height: .8; letter-spacing: -.04em; color: var(--surface-2); margin: 0 0 64px; order: -1; white-space: nowrap; transform-origin: left bottom; user-select: none; }
.foot .legal { margin-top: 12px; font-size: var(--fs-1); }

/* whatsapp flotante con pulso discreto */
.wa-float { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; background: var(--gold); color: var(--bg); font-size: var(--fs-2); font-weight: 700; text-decoration: none; border-radius: 28px; transition: transform .25s var(--ease), background-color .25s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background: var(--gold); z-index: -1; animation: pulse 3.6s ease-out infinite; }
.wa-float:hover { background: var(--gold-hi); transform: translateY(-3px); }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 55%, 100% { transform: scale(1.35, 1.6); opacity: 0; } }

/* revelado */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .3s; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .tile.rv.in:hover, .js .card.rv.in:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; } .js .hero-copy > :nth-child(3) { animation-delay: .2s; } .js .hero-copy > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
  .btn:hover, .tile:hover, .card:hover, .wa-float:hover { transform: none; }
  .mq-track { flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
  .mq-track[aria-hidden] { display: none; }
  .viz .d { stroke-dashoffset: 0; }
  .viz .bar { transform: none; } .viz .col, .viz .fl { transform: none; }
  .wa-float::before { display: none; }
  .glow { display: none; }
}

/* aviso de cookies */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 60; display: grid; gap: 14px; padding: 18px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--gold-deep); border-radius: 2px; font-size: var(--fs-1); line-height: 1.5; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cookie[hidden] { display: none; }
.cookie a { color: var(--gold-hi); }
.cookie-act { display: flex; gap: 10px; }
.cookie-act .btn { min-height: 44px; padding: 0 22px; font-size: var(--fs-1); flex: 1; }
@media (min-width: 820px) { .cookie { left: 20px; right: auto; bottom: 20px; width: 460px; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-hi); text-decoration: underline; cursor: pointer; }
.legal a { color: var(--gold-hi); }
.doc { max-width: 760px; margin: 0 auto; padding: 120px var(--m) 96px; }
.doc h1 { font-family: var(--serif); font-size: var(--fs-5); font-weight: 600; line-height: 1.1; margin-bottom: 24px; }
.doc h2 { font-family: var(--serif); font-size: var(--fs-4); font-weight: 600; color: var(--gold-hi); margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: var(--fs-2); line-height: 1.65; margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--gold-hi); }

.ck-open .wa-float { opacity: 0; pointer-events: none; }
