/* ==========================================================
   CA Roofing & Construction Services — styles
   Paleta: negro carbón · bronce champagne · blanco marfil
   ========================================================== */

:root {
  --char: #0b1629;
  --char-2: #111f38;
  --char-3: #1a2b4a;
  --bronze: #d8b04f;
  --bronze-2: #b48d32;
  --bronze-soft: rgba(216, 176, 79, .14);
  --ivory: #eef2f7;
  --ivory-2: #d9e0ea;
  --ink: #eef2f7;
  --muted: rgba(238, 242, 247, .62);
  --line: rgba(238, 242, 247, .12);
  --silver: #c9d2de;
  --silver-grad: linear-gradient(180deg, #ffffff 0%, #c9d2de 45%, #8e9aab 55%, #e8edf3 100%);
  --line-strong: rgba(216, 176, 79, .45);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--char);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--bronze); color: var(--char); }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--bronze); letter-spacing: 0; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; }
.progress span { display: block; height: 100%; background: var(--bronze); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor.is-on { opacity: 1; }
.cursor span {
  display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--ivory); transition: transform .35s var(--ease);
}
.cursor.is-hover span { transform: scale(3.2); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================
   SPLASH
   ========================================================== */
.splash {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(120% 90% at 50% 80%, #16284a 0%, var(--char) 60%);
  color: var(--ivory);
  transition: clip-path 1.1s var(--ease), opacity .6s ease .5s;
  clip-path: inset(0 0 0 0);
  /* Red de seguridad: se oculta solo a los 4.5s aunque falle el JS */
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); visibility: hidden; } }
.splash__stage { position: absolute; inset: 0; }
.splash__stage canvas { display: block; width: 100% !important; height: 100% !important; }
.splash__fallback { position: absolute; inset: 0; display: none; place-items: center; }
.splash.no-gl .splash__fallback { display: grid; }
.splash__fallback svg { width: min(320px, 60vw); stroke: var(--bronze); stroke-width: 3; stroke-linejoin: round; }
.splash__fallback path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s var(--ease) forwards; }
.splash__fallback path + path { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.splash__ui {
  position: absolute; inset: 0; padding: clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  pointer-events: none;
}
.splash__brand {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 22px; letter-spacing: .02em;
  display: flex; flex-direction: column; line-height: 1;
}
.splash__brand span { font-family: var(--f-body); font-weight: 500; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--bronze); margin-top: 8px; font-stretch: 100%; }
.splash__meta {
  grid-column: 1; grid-row: 3; align-self: end;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}
.splash__tiles { color: var(--bronze); font-variant-numeric: tabular-nums; }
.splash__count {
  grid-column: 2; grid-row: 3; align-self: end;
  font-family: var(--f-display); font-weight: 300; font-stretch: 110%;
  font-size: clamp(64px, 12vw, 168px); line-height: .8; font-variant-numeric: tabular-nums;
}
.splash__count small { font-size: .28em; color: var(--bronze); margin-left: 6px; vertical-align: top; }

/* ==========================================================
   BUTTONS / UTIL
   ========================================================== */
.btn {
  --bg: var(--bronze); --fg: var(--char);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 28px; border-radius: 100px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: color .45s var(--ease), transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory);
  transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn i { font-style: normal; transition: transform .45s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { color: var(--char); }
.btn--light { --bg: var(--char); --fg: var(--ivory); }
.btn--light::before { background: var(--ivory); }
.btn--light:hover { color: var(--char); }
.btn--small { padding: 12px 20px; font-size: 13px; }
.btn--full { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--bronze);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 0 rgba(216,176,79,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(216,176,79,0); } 100% { box-shadow: 0 0 0 0 rgba(216,176,79,0); } }

.h2 {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(38px, 6vw, 92px); line-height: .98; letter-spacing: -.025em;
}
.h2 em { font-size: 1.08em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Placeholders de imagen ---------- */
.ph {
  position: relative; overflow: hidden; background-color: var(--char-3);
  background-image:
    repeating-linear-gradient(135deg, rgba(216,176,79,.07) 0 1px, transparent 1px 22px),
    radial-gradient(120% 90% at 30% 20%, rgba(216,176,79,.16), transparent 60%);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.ph--dark { background-color: #0f1d36; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--round { border-radius: 50%; aspect-ratio: 1; }
.ph__label {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(238,242,247,.45); line-height: 1.5;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: 32px; padding: 20px var(--gutter);
  transition: background .4s, padding .4s, transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(11,22,41,.92); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(11,22,41,.7); backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__badge { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 18px -6px rgba(0,0,0,.7); transition: transform .5s var(--ease); }
.nav__logo:hover .nav__badge { transform: rotate(-8deg) scale(1.05); }
.nav__word em { font-size: 1em; margin-left: 2px; }
.nav__word { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: .01em; }
.nav__links { display: flex; gap: 32px; font-size: 14px; }
.nav__links a { position: relative; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Selector de idioma */
.lang { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.lang a { padding: 6px 10px; border-radius: 100px; color: var(--muted); transition: background .35s, color .35s; }
.lang a:hover { color: var(--ivory); }
.lang a[aria-current="page"] { background: var(--ivory); color: var(--char); }
.menu__lang { margin-top: 24px; font-family: var(--f-body) !important; font-size: 16px !important; font-weight: 600 !important; color: var(--bronze); letter-spacing: .04em; }
.lang-hint {
  position: fixed; left: 50%; bottom: 24px; z-index: 75; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 100px;
  background: var(--ivory); color: var(--char); font-size: 14px; white-space: nowrap;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.7); transition: transform .7s var(--ease);
}
.lang-hint.is-on { transform: translate(-50%, 0); }
.lang-hint[hidden] { display: none; }
.lang-hint a { padding: 8px 16px; border-radius: 100px; background: var(--char); color: var(--ivory); font-weight: 600; }
.lang-hint button { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--char); }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ivory); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--char-2);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu.is-open { clip-path: inset(0); visibility: visible; }
.menu a { font-family: var(--f-display); font-weight: 700; font-stretch: 115%; font-size: 40px; line-height: 1.2; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--gutter) 72px; overflow: hidden;
}
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__lines path { fill: none; stroke: rgba(216,176,79,.18); stroke-width: 1.2; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.is-ready .hero__lines path { animation: draw 3.2s var(--ease) forwards; }
.is-ready .hero__lines path:nth-child(2) { animation-delay: .35s; }
.is-ready .hero__lines path:nth-child(3) { animation-delay: .7s; }
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  margin: 0 0 40px; font-family: var(--f-display); font-weight: 800; font-stretch: 118%;
  font-size: clamp(40px, 6.5vw, 124px); line-height: .94; letter-spacing: -.035em;
  text-shadow: 0 2px 40px rgba(11,22,41,.45);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.hero__title em { font-size: 1.08em; }
.hero__eyebrow, .hero__foot { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s; }
.is-ready .hero__eyebrow, .is-ready .hero__foot { opacity: 1; transform: none; }
.hero__foot { display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.hero__lead { max-width: 420px; margin: 0; color: var(--muted); font-size: 17px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__visual {
  position: absolute; z-index: 1; right: var(--gutter); top: max(110px, 13vh); width: min(31vw, 470px);
  transform-style: preserve-3d; perspective: 1200px;
  opacity: 0; transform: translateY(60px) scale(.96); transition: opacity 1.4s var(--ease) .2s, transform 1.4s var(--ease) .2s;
}
.is-ready .hero__visual { opacity: 1; transform: none; }
.ph--hero { aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius) var(--radius); box-shadow: 0 60px 120px -40px rgba(0,0,0,.8); }
.hero__badge {
  position: absolute; right: -5%; bottom: -7%; width: 200px; padding: 22px;
  background: var(--ivory); color: var(--char); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: translateZ(60px);
}
.hero__badge strong { font-family: var(--f-display); font-stretch: 120%; font-weight: 800; font-size: 54px; line-height: .9; }
.hero__badge span { font-family: var(--f-serif); font-style: italic; font-size: 32px; color: var(--bronze-2); margin-left: 4px; }
.hero__badge p { margin: 8px 0 0; font-size: 13px; line-height: 1.4; }
.hero__chip {
  position: absolute; left: -8%; top: 22%; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px; background: rgba(11,22,41,.85); border: 1px solid var(--line-strong);
  font-size: 13px; transform: translateZ(40px);
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll span { width: 1px; height: 44px; background: linear-gradient(var(--bronze), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--char-2); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font-family: var(--f-display); font-stretch: 125%; font-weight: 600; font-size: clamp(22px, 3vw, 40px); white-space: nowrap; letter-spacing: -.01em; }
.marquee span:nth-of-type(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; color: var(--bronze); }
.marquee b { color: var(--bronze); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   MANIFESTO
   ========================================================== */
.manifesto { padding: clamp(100px, 16vw, 220px) var(--gutter); max-width: 1500px; }
.manifesto__text {
  margin: 0; font-family: var(--f-display); font-weight: 500; font-stretch: 105%;
  font-size: clamp(28px, 4.2vw, 64px); line-height: 1.12; letter-spacing: -.02em;
}
.manifesto__text .w { color: rgba(238,242,247,.16); transition: color .5s; }
.manifesto__text .w.is-lit { color: var(--ivory); }
.manifesto__text .w.is-key.is-lit { color: var(--bronze); font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* ==========================================================
   ADVANTAGES
   ========================================================== */
.advantages { padding: 0 var(--gutter) clamp(100px, 12vw, 180px); }
.advantages__head { display: grid; grid-template-columns: 1fr; max-width: 900px; margin-bottom: 72px; }
.advantages__intro { color: var(--muted); font-size: 18px; margin: 24px 0 0; max-width: 460px; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.adv {
  --mx: 50%; --my: 50%;
  position: relative; padding: 44px 36px 52px; min-height: 340px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
}
.adv::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(216,176,79,.16), transparent 60%);
}
.adv:hover::before { opacity: 1; }
.adv::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.adv:hover::after { transform: scaleX(1); }
.adv__n { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--bronze); }
.adv__icon { width: 52px; height: 52px; margin: 36px 0 auto; fill: none; stroke: var(--ivory); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, transform .6s var(--ease); }
.adv:hover .adv__icon { stroke: var(--bronze); transform: translateY(-6px); }
.adv h3 { margin: 36px 0 12px; font-family: var(--f-display); font-stretch: 115%; font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.adv p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; }

/* ==========================================================
   STATS
   ========================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 72px var(--gutter); background: var(--ivory); color: var(--char); position: relative;
}
.stat { padding: 8px 24px; border-left: 1px solid rgba(11,22,41,.15); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat p { margin: 10px 0 0; font-size: 14px; color: rgba(11,22,41,.65); }
.stats__note { grid-column: 1 / -1; margin: 36px 0 0; font-size: 11px; letter-spacing: .08em; color: rgba(11,22,41,.45); }

/* ==========================================================
   PROCESS
   ========================================================== */
.process { position: relative; padding: clamp(100px, 12vw, 180px) var(--gutter); }
.process__head { margin-bottom: 80px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; z-index: 1; }
.step { padding-top: 40px; }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--char); color: var(--bronze);
  font-family: var(--f-serif); font-style: italic; font-size: 22px; margin-bottom: 28px;
  transition: background .5s, color .5s;
}
.step.is-in .step__n { background: var(--bronze); color: var(--char); transition-delay: .5s; }
.step h3 { margin: 0 0 10px; font-family: var(--f-display); font-stretch: 115%; font-weight: 700; font-size: 24px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.process__line { position: absolute; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.process__line span { display: block; height: 100%; background: var(--bronze); transform-origin: left; transform: scaleX(0); }

/* ==========================================================
   WORK / COMPARE
   ========================================================== */
.work { padding: 0 var(--gutter) clamp(100px, 12vw, 180px); }
.work__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 56px; }
.work__head .eyebrow { grid-column: 1 / -1; }
.work__intro { margin: 0; max-width: 340px; color: var(--muted); }
.compare { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y; --pos: 50%; }
.compare__img { position: absolute; inset: 0; aspect-ratio: auto; border: 0; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__img--before .ph__label { right: auto; max-width: 40%; }
.compare__img--after .ph__label { left: auto; text-align: right; max-width: 40%; }
.compare__tag {
  position: absolute; top: 20px; padding: 8px 14px; border-radius: 100px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(11,22,41,.8); border: 1px solid var(--line); pointer-events: none;
}
.compare__tag--l { left: 20px; } .compare__tag--r { right: 20px; background: var(--bronze); color: var(--char); border-color: transparent; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ivory); transform: translateX(-1px); pointer-events: none; }
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ivory); color: var(--char); font-size: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.gallery__item { margin: 0; }
.gallery__item:nth-child(2) { margin-top: 80px; }
.gallery__item .ph { border-radius: var(--radius); }
.gallery figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials { padding: clamp(100px, 12vw, 160px) 0; background: var(--char-2); border-block: 1px solid var(--line); overflow: hidden; }
.testimonials__head { padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 64px; }
.testimonials__head .eyebrow { grid-column: 1 / -1; }
.t-controls { display: flex; align-items: center; gap: 18px; }
.t-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 18px; transition: background .4s, color .4s; }
.t-btn:hover { background: var(--bronze); color: var(--char); }
.t-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.t-count b { color: var(--ivory); font-weight: 600; }
.t-viewport { padding: 0 var(--gutter); }
.t-track { display: flex; gap: 24px; transition: transform .9s var(--ease); }
.t-card {
  flex: 0 0 min(620px, 82vw); margin: 0; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--char); opacity: .38; transform: scale(.96); transition: opacity .7s, transform .9s var(--ease), border-color .7s;
  display: flex; flex-direction: column;
}
.t-card.is-active { opacity: 1; transform: none; border-color: var(--line-strong); }
.t-stars { color: var(--bronze); letter-spacing: .3em; font-size: 14px; }
.t-card blockquote { margin: 28px 0 40px; font-family: var(--f-serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.t-card figcaption strong { display: block; color: var(--ivory); font-size: 15px; }
.t-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
.t-note { padding: 0 var(--gutter); margin: 32px 0 0; font-size: 11px; letter-spacing: .08em; color: rgba(238,242,247,.35); }

/* ==========================================================
   BAND
   ========================================================== */
.band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(60px, 8vw, 110px) var(--gutter); background: var(--bronze); color: var(--char);
}
.band__text { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: clamp(34px, 5.4vw, 84px); line-height: 1; letter-spacing: -.03em; }
.band__text em { color: var(--char); }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; padding: clamp(100px, 12vw, 180px) var(--gutter); }
.contact__lead { color: var(--muted); font-size: 18px; max-width: 440px; margin: 28px 0 48px; }
.contact__direct { display: grid; border-top: 1px solid var(--line); }
.direct { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .4s; }
.direct:hover { padding-left: 12px; color: var(--bronze); }
.direct__k { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.direct__v { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: clamp(18px, 2vw, 26px); text-align: right; overflow-wrap: anywhere; }

.form { background: var(--char-2); border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); display: grid; gap: 22px; align-self: start; }
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ivory); font: inherit; font-size: 16px; outline: none; border-radius: 0; resize: vertical; transition: border-color .3s;
}
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); font-size: 15px; pointer-events: none; transition: transform .35s var(--ease), color .35s, font-size .35s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--bronze); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.78); color: var(--bronze); }
.field.is-error input { border-color: #d77a5f; }
.chips { border: 0; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); font-size: 14px; transition: background .35s, color .35s, border-color .35s; }
.chips input:checked + span { background: var(--bronze); border-color: var(--bronze); color: var(--char); }
.chips input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.form__hint { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { padding: 80px var(--gutter) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__logo { width: min(220px, 60%); margin-bottom: 56px; border-radius: 50%; box-shadow: 0 30px 70px -25px rgba(0,0,0,.8), 0 0 0 1px rgba(216,176,79,.25); }
.footer__logo img { width: 100%; height: auto; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; color: var(--muted); font-size: 15px; }
.footer__cols p { margin: 0; }
.footer__cols a:hover { color: var(--bronze); }
.footer__k { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze) !important; margin-bottom: 14px !important; }
.footer__big {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.04em;
  font-size: 11vw; white-space: nowrap; margin: 60px 0 24px; color: transparent; -webkit-text-stroke: 1px rgba(216,176,79,.3); text-align: center;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(238,242,247,.4); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bronze); color: var(--char);
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.7); transition: transform .4s var(--ease), background .4s;
}
.wa-float:hover { background: var(--ivory); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .process__line { display: none; }
}
@media (max-width: 900px) {
  .nav__links, .nav .btn--small { display: none; }
  .nav__burger { display: block; }
  .nav { gap: 14px; }
  .lang-hint { bottom: 96px; }
  .hero { flex-direction: column; align-items: stretch; padding-top: 120px; }
  .hero__visual { position: relative; right: auto; top: auto; max-width: 420px; width: 86%; margin: 48px auto 0; }
  .hero__badge { right: -6%; width: 170px; padding: 18px; }
  .hero__badge strong { font-size: 44px; }
  .hero__chip { left: -6%; }
  .hero__scroll { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .work__head, .testimonials__head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:nth-child(2) { margin-top: 0; }
  .gallery__item:nth-child(3) { display: none; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv { min-height: 0; padding: 36px 24px 40px; }
  .adv__icon { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 5; }
  .compare .ph__label { display: none; }
  .t-card { padding: 32px 26px; }
  .hero__foot { gap: 28px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__cols { grid-template-columns: 1fr; }
  .splash__brand { font-size: 18px; }
}

/* ==========================================================
   QUOTE QUIZ (quote.html / es/cotizar.html)
   ========================================================== */
.quiz-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(90% 60% at 80% 0%, rgba(216,176,79,.10), transparent 60%), var(--char); }
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); }
.qz-progress { height: 3px; background: var(--line); margin: 0 var(--gutter); border-radius: 3px; overflow: hidden; }
.qz-progress span { display: block; height: 100%; background: var(--bronze); transform-origin: left; transform: scaleX(.04); transition: transform .7s var(--ease); }
.qz { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) var(--gutter) 40px; display: flex; flex-direction: column; }
.qz-step { display: block; margin-bottom: 64px; }
.qz.is-js .qz-step { display: none; margin: 0; }
.qz.is-js .qz-step.is-active { display: block; animation: qzIn .6s var(--ease); }
@keyframes qzIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.qz-step__k { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); }
.qz-step__q { margin: 0 0 14px; font-family: var(--f-display); font-weight: 700; font-stretch: 112%; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.025em; }
.qz-step__help { margin: 0 0 32px; color: var(--muted); font-size: 17px; max-width: 520px; }
.qz-step__q + .qz-options { margin-top: 36px; }
.qz-field { margin-bottom: 18px; max-width: 520px; }
.qz-field input { font-size: 20px; }
.qz-step .btn { margin-top: 18px; }
.qz-error { display: none; margin: 4px 0 0; color: #e0957f; font-size: 14px; }
.qz-step.has-error .qz-error { display: block; }

.qz-options { display: grid; gap: 12px; }
.qz-options--grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.qz-options--row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.qz-opt { position: relative; cursor: pointer; }
.qz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qz-opt > span {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 20px 56px; position: relative;
  border: 1px solid var(--line); border-radius: 14px; background: var(--char-2);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.qz-opt > span::before {
  content: ""; position: absolute; left: 22px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; border: 1.5px solid var(--line-strong); transition: border-color .3s, box-shadow .3s;
}
.qz-opt b { font-weight: 600; font-size: 17px; }
.qz-opt small { color: var(--muted); font-size: 14px; }
.qz-opt:hover > span { border-color: var(--line-strong); transform: translateY(-2px); }
.qz-opt input:checked + span { border-color: var(--bronze); background: rgba(216,176,79,.10); }
.qz-opt input:checked + span::before { border-color: var(--bronze); box-shadow: inset 0 0 0 4px var(--char-2), inset 0 0 0 10px var(--bronze); }
.qz-opt input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }
.qz-opt--tile > span, .qz-opt--big > span { padding: 24px 16px; align-items: center; justify-content: center; text-align: center; height: 100%; }
.qz-opt--tile, .qz-opt--big { display: block; height: 100%; }
.qz-opt--tile > span::before, .qz-opt--big > span::before { display: none; }
.qz-opt--tile svg { width: 56px; height: 38px; margin-bottom: 10px; fill: none; stroke: var(--bronze); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qz-opt--big b { font-family: var(--f-display); font-stretch: 115%; font-size: 40px; font-weight: 800; line-height: 1; }

.qz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; min-height: 44px; }
.qz-back { padding: 10px 0; color: var(--muted); font-size: 15px; transition: color .3s; }
.qz-back:hover { color: var(--ivory); }
.qz-back[hidden] { display: inline-block; visibility: hidden; }
.qz-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.qz:not(.is-js) .qz-nav { display: none; }
.qz-trust { list-style: none; margin: auto 0 0; padding: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: var(--muted); }
.qz-trust li::before { content: "✓"; color: var(--bronze); margin-right: 8px; }
.qz-legal { margin: 16px 0 0; font-size: 12px; color: rgba(238,242,247,.45); }

.qz-summary { margin: 8px 0 28px; border-top: 1px solid var(--line); }
.qz-summary > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qz-summary dt { color: var(--muted); font-size: 14px; }
.qz-summary dd { margin: 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.qz-edit { color: var(--bronze); font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn--wa svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 600px) {
  .qz-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .qz-opt > span { padding: 18px 18px 18px 52px; }
}

/* Tarjetas con foto del cuestionario */
.qz { max-width: 980px; }
.qz-options--photos { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.qz-opt--photo { display: block; height: 100%; }
.qz-opt--photo > span { height: 100%; padding: 0 0 18px; gap: 2px; overflow: hidden; border-radius: 16px; }
.qz-opt--photo > span::before {
  left: auto; right: 12px; top: 12px; margin: 0; z-index: 2; width: 26px; height: 26px;
  background: rgba(11,22,41,.55); border-color: rgba(238,242,247,.7);
}
.qz-opt--photo input:checked + span::before {
  background: var(--bronze); border-color: var(--bronze); box-shadow: none;
}
.qz-opt--photo input:checked + span::after {
  content: "✓"; position: absolute; right: 12px; top: 12px; z-index: 3; width: 26px; height: 26px;
  display: grid; place-items: center; color: var(--char); font-size: 14px; font-weight: 800;
}
.qz-opt--photo img {
  width: 100%; height: auto; flex: 0 0 auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: 14px;
  filter: saturate(.9) brightness(.92); transition: transform .8s var(--ease), filter .5s;
}
.qz-opt--photo:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.qz-opt--photo input:checked + span img { filter: saturate(1.05) brightness(1); }
.qz-opt--photo b, .qz-opt--photo small { padding: 0 18px; }
.qz-opt--photo b { font-size: 17px; }
.qz-opt--unsure > span { justify-content: center; align-items: center; text-align: center; min-height: 220px; padding: 24px 18px; }
.qz-unsure {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  border: 1.5px solid var(--line-strong); color: var(--bronze); font-family: var(--f-serif); font-style: italic; font-size: 34px;
}
@media (max-width: 600px) {
  .qz-options--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qz-opt--photo b, .qz-opt--photo small { overflow-wrap: anywhere; }
  .qz-opt--photo b { font-size: 15px; padding: 0 12px; }
  .qz-opt--photo small { font-size: 12px; padding: 0 12px; }
  .qz-opt--unsure > span { min-height: 0; }
}

/* Fotos de ejemplo: hero, galería y antes/después */
.ph--photo { background-image: none; border-color: transparent; }
.ph--photo img { transition: transform 1.2s var(--ease); }
.gallery__item:hover .ph--photo img { transform: scale(1.04); }
.ph--hero.ph--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,22,41,.35)); pointer-events: none; }
.compare__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease; }
.compare.is-swapping .compare__img img { opacity: 0; }
.compare__img--before { background: var(--char-3); }
.compare__sample {
  position: absolute; left: 20px; bottom: 18px; padding: 6px 12px; border-radius: 100px; pointer-events: none;
  background: rgba(11,22,41,.7); color: rgba(238,242,247,.75); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
}
.compare-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.compare-tab {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--char-2);
  transition: border-color .35s, background .35s;
}
.compare-tab b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 22px; color: var(--bronze); }
.compare-tab span { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; line-height: 1.3; }
.compare-tab small { font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 3px; }
.compare-tab:hover { border-color: var(--line-strong); }
.compare-tab.is-active { border-color: var(--bronze); background: rgba(216,176,79,.10); }
.sample-note { margin: 28px 0 0; font-size: 11px; letter-spacing: .08em; color: rgba(238,242,247,.4); }
@media (max-width: 700px) {
  .compare-tabs { grid-template-columns: 1fr; gap: 8px; }
  .compare-tab { padding: 12px 14px; }
}

/* Silver/chrome accents from the CA logo */
.splash__brand, .nav__word { background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash__brand span, .nav__word em { -webkit-text-fill-color: var(--bronze); color: var(--bronze); }
.footer__big { -webkit-text-stroke-color: rgba(201,210,222,.28) !important; }

/* ---------- Servicios ---------- */
.services { padding: 0 var(--gutter) clamp(100px, 12vw, 180px); }
.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-stretch: 115%; font-weight: 700; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.15; transition: color .3s, padding .5s var(--ease); }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; font-size: 28px; line-height: 1; color: var(--bronze); transition: transform .4s var(--ease); }
.svc[open] summary::after { transform: rotate(45deg); }
.svc summary:hover, .svc[open] summary { color: var(--bronze); }
.svc summary:hover { padding-left: 10px; }
.svc summary:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.svc p { margin: 0; padding: 0 40px 26px 0; color: var(--muted); max-width: 52ch; }
.stat strong small { font-size: .42em; letter-spacing: 0; margin-left: .15em; }

/* ---------- Fotos reales ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.photos figure { margin: 0; overflow: hidden; }
.photos img { width: 100%; height: auto; border-radius: var(--radius); }
.photos figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) {
    .photos { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
    .photos img { aspect-ratio: 1; object-fit: cover; }
}
main section[id] { scroll-margin-top: 90px; }
.hero .ph--hero.ph--photo::after { background: linear-gradient(90deg, rgba(11,22,41,.72), transparent 55%), linear-gradient(180deg, transparent 55%, rgba(11,22,41,.45)); -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 75%); mask-image: linear-gradient(180deg, transparent 35%, #000 75%); }
@media (max-width: 600px) { .hero__title .line, .hero__title .line > span { display: inline; } }
.compare__sample[hidden] { display: none; }
.photos__title { margin: clamp(80px, 9vw, 130px) 0 0; }
.photos { margin-top: 48px; }
.svc-list { max-width: 1100px; }
.svc__in { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; padding-bottom: 30px; }
.svc__in p { padding: 0; font-size: 17px; }
.svc__in img { width: 100%; height: auto; border-radius: var(--radius); }
.photos { align-items: start; }
@media (max-width: 600px) {
  .svc__in { grid-template-columns: 1fr; gap: 18px; }
  .hero__title .line, .hero__title .line > span { display: inline; }
}
