/* ===== Cubiertas y Pergolados C&P — paleta del manual de identidad ===== */
:root {
  --wine: #a1365e;
  --wine-deep: #65153d;
  --red: #a6192e;
  --gray: #494949;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-2: #f6f3f1;
  --ink: #232323;
  --ink-soft: #494949;
  --ink-dim: #7a7a7a;
  --line: rgba(73, 73, 73, 0.14);
  --line-2: rgba(73, 73, 73, 0.28);
  --dark: #1b1b1b;
  --dark-2: #262626;

  --font-h: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --font-b: Calibri, Carlito, "Inter", "Segoe UI", sans-serif;

  --r: 8px;
  --r-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1220px;
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink-soft);
  font-family: var(--font-b); font-size: 1.125rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--wine); color: #fff; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

h1, h2, h3, .h2 { font-family: var(--font-h); color: var(--ink); letter-spacing: -0.015em; }
.h2 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; margin-bottom: 18px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.kicker { font-family: var(--font-h); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--wine); margin-bottom: 14px; }
.kicker--light { color: #f0c9d9; }
.ico { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--wine); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip:focus { left: 8px; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--wine), var(--red)); z-index: 200; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; font-family: var(--font-h); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  border-radius: 10px; position: relative; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--wine); color: #fff; box-shadow: 0 10px 26px rgba(161, 54, 94, 0.28); }
.btn--primary:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(101, 21, 61, 0.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); transform: translateY(-2px); }
.btn--ghost .ico { color: #25d366; }
.btn--wa { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); }
.btn--wa .ico { color: #25d366; }
.btn--wa:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--wine-deep); }
.btn--light:hover { background: #fbe9f0; transform: translateY(-2px); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); }
.nav__brand { display: flex; align-items: center; color: var(--wine); }
.logo { height: 60px; width: auto; display: block; }
.logo--lg { height: 84px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-family: var(--font-h); font-weight: 600; font-size: 0.95rem; position: relative; transition: color .25s; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--wine); border-radius: 2px; transition: width .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--wine); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { padding: 11px 20px; font-size: 0.92rem; }
.nav__burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__burger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); background: #fff; z-index: 85;
  display: flex; flex-direction: column; gap: 4px; padding: calc(var(--nav-h) + 24px) 28px 30px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15); transform: translateX(105%); transition: transform .45s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a:not(.btn) { color: var(--ink); text-decoration: none; font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) clamp(20px, 5vw, 64px) 0; overflow: hidden; isolation: isolate; color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: kenburns 22s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1); } }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 35%, rgba(20,10,15,.55) 70%, rgba(20,10,15,.92) 100%); }
.hero__content { max-width: 860px; padding-bottom: 46px; }
.hero__kicker { opacity: 0; animation: fadeUp .9s var(--ease) .2s forwards; }
.hero__title { font-weight: 800; font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.02; color: #fff; letter-spacing: -0.02em; max-width: 21ch; opacity: 0; animation: fadeUp 1s var(--ease) .35s forwards; }
.hero__sub { font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: rgba(255,255,255,.85); max-width: 56ch; margin: 22px 0 30px; opacity: 0; animation: fadeUp 1s var(--ease) .55s forwards; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.hero__switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards; }
.hero__switch span { font-family: var(--font-h); font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.75); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; font-family: var(--font-h); font-weight: 600; font-size: .92rem; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.chip .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.chip:hover { background: var(--wine); border-color: var(--wine); transform: translateY(-2px); }
.chip:hover .ico { transform: translateX(3px); }
.hero__trust { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.22); margin: 0 calc(-1 * clamp(20px, 5vw, 64px)); padding: 22px clamp(20px, 5vw, 64px) 26px; gap: 20px; background: rgba(20,10,15,.35); backdrop-filter: blur(6px); }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-h); font-weight: 800; font-size: 1.25rem; color: #fff; }
.hero__trust span { font-size: .95rem; color: rgba(255,255,255,.7); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ===== 3D: la cubierta se construye ===== */
.build { position: relative; z-index: 1; background: var(--dark); }
.build__sticky { position: relative; height: 100vh; height: 100dvh; overflow: hidden; color: #fff; }
.build__replay { position: absolute; left: clamp(20px, 5vw, 60px); bottom: 68px; z-index: 4; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); backdrop-filter: blur(10px); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .3s, transform .3s var(--ease), opacity .3s; }
.build__replay:hover { background: var(--wine); border-color: var(--wine); transform: translateY(-2px); }
.build__sky { position: absolute; inset: 0; background: radial-gradient(90% 80% at 62% 55%, #3a3a3a 0%, #1f1f1f 55%, #141414 100%); }
.build__sky--night { background: radial-gradient(90% 80% at 62% 55%, #2a1b26 0%, #15111a 55%, #0b0a0f 100%); opacity: 0; }
#stage3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#stage3d.dragging { cursor: grabbing; }
.build__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.build.no-3d { height: auto; }
.build.no-3d .build__sticky { position: relative; height: auto; min-height: 80vh; padding: 120px 0 60px; }
.build.no-3d #stage3d, .build.no-3d .build__rail, .build.no-3d .build__hint { display: none; }
.build.no-3d .build__fallback { display: block; }
.build.no-3d .stages { position: relative; transform: none; top: auto; left: auto; margin: 0 auto; max-width: 720px; padding: 0 20px; }
.build.no-3d .stage { position: relative; opacity: 1; transform: none; margin-bottom: 36px; }
.build__hud { position: absolute; inset: 0; pointer-events: none; }
.hud { position: absolute; font-family: var(--font-h); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 10px; }
.hud .iso { width: 22px; height: 22px; color: #fff; }
.hud--tl { top: calc(var(--nav-h) + 22px); left: clamp(20px, 5vw, 60px); }
.hud--tr { top: calc(var(--nav-h) + 22px); right: clamp(20px, 5vw, 60px); color: #f0c9d9; font-variant-numeric: tabular-nums; }
.hud--bl { bottom: 28px; left: clamp(20px, 5vw, 60px); }
.hud--br { bottom: 28px; right: clamp(20px, 5vw, 60px); }
.stages { position: absolute; left: clamp(20px, 5vw, 60px); top: 50%; transform: translateY(-50%); max-width: 440px; z-index: 2; }
.stage { position: absolute; top: 0; left: 0; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.stage.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.stage h2 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05; margin-bottom: 14px; }
.stage p:not(.kicker) { color: rgba(255,255,255,.75); max-width: 380px; font-size: 1.1rem; }
.build__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.build__rail { position: absolute; right: clamp(20px, 5vw, 60px); top: 50%; transform: translateY(-50%); width: 2px; height: 240px; background: rgba(255,255,255,.18); border-radius: 2px; z-index: 3; }
.build__rail i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, #f0c9d9, var(--wine)); border-radius: 2px; }
.build__rail button { position: absolute; left: -6px; width: 14px; height: 14px; padding: 0; border-radius: 50%; background: var(--dark); border: 2px solid rgba(255,255,255,.5); cursor: pointer; transition: transform .25s var(--ease), border-color .25s; }
.build__rail button:hover { transform: scale(1.35); border-color: #fff; }
.build__rail button:nth-of-type(1) { top: -6px; } .build__rail button:nth-of-type(2) { top: calc(25% - 7px); } .build__rail button:nth-of-type(3) { top: calc(50% - 7px); } .build__rail button:nth-of-type(4) { top: calc(75% - 7px); } .build__rail button:nth-of-type(5) { top: calc(100% - 8px); }
.build.cfg-open .build__rail { display: none; }

/* ===== Configurador ===== */
.cfg-toggle { position: absolute; right: clamp(20px, 5vw, 60px); bottom: 68px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .3s, transform .3s var(--ease), opacity .3s; }
.cfg-toggle:hover { background: var(--wine); border-color: var(--wine); transform: translateY(-2px); }
.build.cfg-open .cfg-toggle { opacity: 0; pointer-events: none; }
.cfg { position: absolute; right: clamp(16px, 3vw, 36px); top: 50%; transform: translate(calc(100% + 60px), -50%); width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - var(--nav-h) - 60px); display: flex; flex-direction: column; background: rgba(22, 20, 22, .82); backdrop-filter: blur(16px) saturate(130%); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; color: #fff; z-index: 5; box-shadow: 0 30px 80px rgba(0,0,0,.5); transition: transform .5s var(--ease); }
.cfg.open { transform: translate(0, -50%); }
.cfg__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 10px; }
.cfg__head .kicker { margin-bottom: 4px; }
.cfg__head h3 { color: #fff; font-size: 1.15rem; font-weight: 800; }
.cfg__close { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: .9rem; flex: none; transition: background .25s; }
.cfg__close:hover { background: var(--wine); }
.cfg__body { overflow-y: auto; padding: 4px 18px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.cfg__group { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.cfg__label { display: block; font-family: var(--font-h); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips + .chips { margin-top: 6px; }
.chips button { background: transparent; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.82); font-family: var(--font-h); font-weight: 600; font-size: .82rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chips button:hover { border-color: #fff; color: #fff; transform: translateY(-1px); }
.chips button.is-on { background: #fff; color: var(--wine-deep); border-color: #fff; }
.chips--phase button.is-on { background: var(--wine); color: #fff; border-color: var(--wine); }
.chips--color button { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.25); }
.chips--color button.is-on { border-color: #fff; box-shadow: 0 0 0 2px var(--wine); background: var(--c); }
.cfg__range { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: .88rem; color: rgba(255,255,255,.75); }
.cfg__range input { flex: 1; accent-color: var(--wine); }
.cfg__note { font-size: .82rem; color: #f0c9d9; margin-top: 8px; min-height: 0; }
.cfg__note:empty { display: none; }
.cfg__actions { display: flex; align-items: center; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.cfg__actions .btn { flex: 1; padding: 12px 14px; font-size: .9rem; white-space: normal; }
.cfg__reset { background: none; border: 0; color: rgba(255,255,255,.6); font-family: var(--font-h); font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cfg__reset:hover { color: #fff; }
.build__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--font-h); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); opacity: 0; transition: opacity .5s; }
.build__hint.show { opacity: 1; }

/* ===== Secciones ===== */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 60px); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }

/* ===== Producto (Cubiertas / Pergolados) ===== */
.product--alt { background: var(--bg-2); max-width: none; }
.product--alt .product__grid { max-width: var(--maxw); margin: 0 auto; }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.product__grid--rev .product__text { order: 2; }
.benefits { list-style: none; display: grid; gap: 16px; margin: 28px 0 32px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; }
.benefits .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: rgba(161, 54, 94, .12); color: var(--wine); margin-top: 2px; }
.benefits b { display: block; font-family: var(--font-h); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.benefits span { color: var(--ink-soft); font-size: 1rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.mosaic__item { display: block; border: 0; padding: 0; background: var(--bg-2); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; aspect-ratio: 16/11; }
.mosaic__item--tall { grid-row: 1 / 3; aspect-ratio: auto; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
/* clip en los hijos: un elemento totalmente recortado no intersecta para IntersectionObserver */
.wipe > * { transition: clip-path 1.1s var(--ease); }
.js .wipe:not(.in) > * { clip-path: inset(0 100% 0 0 round var(--r-lg)); }
.js .mosaic.wipe:not(.in) > * { clip-path: inset(0 0 100% 0 round var(--r-lg)); }
.mosaic.wipe > *:nth-child(2) { transition-delay: .12s; }
.mosaic.wipe > *:nth-child(3) { transition-delay: .24s; }

/* ===== Proyectos ===== */
.project { border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 50px); margin-top: clamp(30px, 4vw, 50px); }
.project__head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 26px; }
.project__head h3 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.project__head p { max-width: 56ch; }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { font-family: var(--font-h); font-weight: 600; font-size: .8rem; letter-spacing: .04em; padding: 7px 12px; border-radius: 999px; background: rgba(161, 54, 94, .1); color: var(--wine-deep); }
.project__body { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.project__body--reels { grid-template-columns: 1fr 240px 240px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.thumb { display: block; border: 0; padding: 0; background: var(--bg-2); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; aspect-ratio: 3/4; }
.thumb--h { grid-column: span 2; aspect-ratio: auto; }
.gallery--3 .thumb { aspect-ratio: 16/9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.thumb:hover img { transform: scale(1.05); }
.thumb:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.reel { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #111; aspect-ratio: 9/16; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--wine-deep); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), opacity .3s; }
.reel__play .ico { width: 28px; height: 28px; }
.reel__play:hover { transform: scale(1.08); }
.reel.playing .reel__play { opacity: 0; pointer-events: none; }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; color: #fff; font-family: var(--font-h); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }

/* ===== Proceso ===== */
.process { background: var(--bg-2); max-width: none; }
.process > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; position: relative; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px 30px; position: relative; overflow: hidden; transition: opacity .7s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), transform .4s var(--ease), box-shadow .4s; }
.steps li:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.steps__n { font-family: var(--font-h); font-weight: 800; font-size: 2.2rem; color: var(--wine); line-height: 1; display: block; margin-bottom: 26px; }
.steps h3 { font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.steps p { font-size: 1rem; }

/* ===== Garantía ===== */
.warranty { position: relative; z-index: 1; background: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine) 60%, var(--red) 130%); color: #fff; padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 60px); overflow: hidden; }
.warranty::after { content: "&"; position: absolute; right: -2vw; bottom: -12vw; font-family: var(--font-h); font-weight: 800; font-size: 44vw; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none; }
.warranty__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; position: relative; }
.warranty__big { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 18px; }
.warranty__pre { grid-column: 1 / -1; margin-bottom: 4px; }
.warranty__num { font-family: var(--font-h); font-weight: 800; font-size: clamp(6rem, 16vw, 13rem); line-height: .85; letter-spacing: -0.04em; }
.warranty__lbl { font-family: var(--font-h); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.9rem); line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.warranty .h2 { color: #fff; }
.warranty__list { list-style: none; display: grid; gap: 16px; margin: 24px 0 30px; }
.warranty__list li { display: flex; flex-direction: column; border-left: 3px solid rgba(255,255,255,.55); padding-left: 16px; }
.warranty__list b { font-family: var(--font-h); font-size: 1.1rem; }
.warranty__list span { color: rgba(255,255,255,.82); }

/* ===== Contacto ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact__info { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact__info li { display: flex; flex-direction: column; gap: 4px; }
.contact__info li span { font-family: var(--font-h); font-weight: 700; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.contact__info a, .contact__info em { font-family: var(--font-h); font-weight: 700; font-style: normal; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.contact__info a:hover { color: var(--wine); }
[data-mail] { overflow-wrap: anywhere; } /* un correo largo no tiene cortes: sin esto ensancha la página en celulares de 360 px */
.form { display: flex; flex-direction: column; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 70px rgba(0,0,0,.07); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-h); font-weight: 600; font-size: .86rem; color: var(--ink-soft); }
.field label i { color: var(--wine); font-style: normal; }
.field input, .field select, .field textarea { background: var(--bg-2); border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px; color: var(--ink); font-family: inherit; font-size: 1.05rem; transition: border-color .25s, background .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); background: #fff; box-shadow: 0 0 0 4px rgba(161, 54, 94, .14); }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 84px; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.error { color: var(--red); font-size: .85rem; min-height: 1em; }
.form__note { font-size: .92rem; color: var(--ink-dim); text-align: center; }
.form__ok { color: var(--wine-deep); font-weight: 600; text-align: center; min-height: 1em; }
.btn.loading .btn__label { opacity: .5; }

/* ===== Footer ===== */
.footer { position: relative; z-index: 1; background: var(--dark); color: rgba(255,255,255,.7); padding: 60px clamp(20px, 5vw, 60px) 30px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer__brand { color: #fff; }
.footer__brand p { margin-top: 10px; font-size: 1rem; color: rgba(255,255,255,.6); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: rgba(255,255,255,.75); text-decoration: none; font-family: var(--font-h); font-weight: 600; font-size: .95rem; transition: color .25s; }
.footer__links a:hover { color: #fff; }
.footer__copy { max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.45); }

/* ===== Barra móvil ===== */

/* ===== Lightbox ===== */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 6, 8, .92); backdrop-filter: blur(6px); }
.lightbox figure { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 70px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { color: rgba(255,255,255,.8); font-family: var(--font-h); font-weight: 600; letter-spacing: .04em; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--wine); }
.lightbox__close { top: 18px; right: 18px; font-size: 1.1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }

/* ===== Reveal (solo se oculta si JavaScript está vivo: <html class="js">) ===== */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .project__body { grid-template-columns: 1fr; }
  .project__body--reels { grid-template-columns: 1fr; }
  .project__body .reel { max-width: 300px; }
  .project__body--reels .reel { max-width: 260px; }
  .project__body--reels { display: grid; grid-template-columns: 1fr 1fr; }
  .project__body--reels .gallery { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .logo { height: 50px; }
  .hero__trust { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product__grid { grid-template-columns: 1fr; }
  .product__grid--rev .product__text { order: 0; }
  .mosaic__item--tall { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16/10; }
  .stages { top: auto; bottom: 74px; transform: none; max-width: min(90vw, 440px); transition: opacity .3s; }
  .build.cfg-open .stages, .build.cfg-open .build__replay { opacity: 0; pointer-events: none; }
  .build__replay { left: 14px; bottom: 86px; padding: 10px 14px; font-size: .8rem; }
  .hud--tl b { display: none; }
  .stage h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .stage p:not(.kicker) { font-size: 1rem; }
  .build__rail, .hud--bl, .build__hint { display: none; }
  .hud--tl, .hud--tr { top: calc(var(--nav-h) + 16px); }
  .cfg-toggle { right: 14px; bottom: 86px; padding: 11px 16px; }
  .cfg { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 62vh; border-radius: 18px 18px 0 0; transform: translateY(110%); padding-bottom: 74px; }
  .cfg.open { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .warranty__inner { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--3 { grid-template-columns: 1fr 1fr; }
  .lightbox figure { padding: 70px 14px 40px; }
  .lightbox__nav { top: auto; bottom: 8px; transform: none; }
}
@media (max-width: 560px) {
  .hero__title { max-width: none; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery--3 { grid-template-columns: 1fr; }
  .project__body--reels { grid-template-columns: 1fr; }
  .build__controls .btn { width: 100%; }
  .form__nav { flex-direction: column; }                         /* en fila no caben y empujaban la página de lado */
  .form__nav .btn { white-space: normal; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .js .wipe:not(.in) > *, .js .mosaic.wipe:not(.in) > * { clip-path: none; }
  html { scroll-behavior: auto; }
}

/* ===== Proyectos: tarjetas (generadas desde projects.js) ===== */
.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.pcard { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; padding: 0; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.12); }
.pcard:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.pcard__media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__count { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(20,10,15,.6); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-h); font-weight: 600; font-size: .75rem; letter-spacing: .06em; }
.pcard__body { display: block; padding: 20px 22px 22px; }
.pcard__type { display: block; font-family: var(--font-h); font-weight: 700; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); margin-bottom: 8px; }
.pcard__name { display: block; font-family: var(--font-h); font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.pcard__place { display: block; color: var(--ink-dim); font-size: .95rem; margin-top: 2px; }
.pcard__short { display: block; color: var(--ink-soft); margin: 10px 0 14px; font-size: 1rem; }
.pcard__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-h); font-weight: 700; color: var(--wine); font-size: .95rem; }
.pcard__more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pcard:hover .pcard__more .ico { transform: translateX(4px); }

/* ===== Vista de proyecto ===== */
.pv { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: #141414; color: #fff; overflow: hidden; }
.pv::backdrop { background: rgba(10,6,8,.8); }
.pv__wrap { display: grid; grid-template-columns: 1fr 400px; height: 100vh; height: 100dvh; }
.pv__close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(20,20,20,.55); color: #fff; font-size: 1.05rem; cursor: pointer; transition: background .25s; }
.pv__close:hover { background: var(--wine); }
.pv__media { display: flex; flex-direction: column; min-width: 0; padding: 24px 24px 18px; gap: 14px; }
.pv__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pv__fig { position: relative; display: inline-block; margin: 0; line-height: 0; max-width: 100%; }
.pv__fig[hidden], .pv__video[hidden] { display: none; }
.pv__fig img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; display: block; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.pv__video { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 12px; background: #000; }
.pv__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(20,20,20,.7); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.pv__nav:hover { background: var(--wine); }
.pv__nav--prev { left: 0; } .pv__nav--next { right: 0; }
.pv__hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(20,10,15,.7); backdrop-filter: blur(6px); font-family: var(--font-h); font-weight: 600; font-size: .78rem; color: rgba(255,255,255,.85); pointer-events: none; white-space: nowrap; margin: 0; }
.pv__hint i { width: 10px; height: 10px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 3px rgba(161,54,94,.35); }
.pv__hint[hidden] { display: none; }
.pv__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.pv__thumb { position: relative; flex: 0 0 auto; width: 84px; height: 60px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #222; cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s; }
.pv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv__thumb.is-on, .pv__thumb:hover { opacity: 1; border-color: #fff; }
.pv__thumb--video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1rem; background: rgba(0,0,0,.35); }
.pv__info { background: #fff; color: var(--ink-soft); padding: 60px 30px 30px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.pv__info h2 { font-weight: 800; font-size: 2rem; line-height: 1.05; }
.pv__meta { font-family: var(--font-h); font-weight: 600; color: var(--wine); font-size: .95rem; }
.pv__desc { font-size: 1.02rem; }
.pv__label { display: block; font-family: var(--font-h); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }
.pv__mats { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv__mats ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pv__mats button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; font-family: var(--font-h); font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; transition: background .25s, border-color .25s; }
.pv__mats button:hover, .pv__mats button.is-on { background: rgba(161,54,94,.08); border-color: rgba(161,54,94,.25); }
.pv__mats button i { width: 22px; height: 22px; border-radius: 50%; background: var(--wine); color: #fff; font-style: normal; font-size: .72rem; display: grid; place-items: center; flex: none; }
.pv__cap { font-size: .9rem; color: var(--ink-dim); }
.pv__info .btn { margin-top: auto; }

/* puntos de materiales sobre la foto */
.pv__hs { position: absolute; inset: 0; }
.hs { position: absolute; margin: -15px 0 0 -15px; z-index: 2; }
.hs.is-open { z-index: 3; }
.hs__dot { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--wine); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; font-family: var(--font-h); font-weight: 800; font-size: .8rem; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .3s var(--ease), background .3s, color .3s; }
.hs__dot i { font-style: normal; }
.hs__dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); animation: hsPulse 2s ease-out infinite; }
.hs__dot:hover { transform: scale(1.12); }
.hs.is-open .hs__dot { background: #fff; color: var(--wine-deep); transform: scale(1.12); }
.hs.is-open .hs__dot::before { animation: none; opacity: 0; }
@keyframes hsPulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.hs__card { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(.9); width: 240px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.96); color: var(--ink-soft); box-shadow: 0 18px 50px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); line-height: 1.45; }
.hs__card b { display: block; font-family: var(--font-h); font-weight: 800; color: var(--wine-deep); font-size: .95rem; margin-bottom: 4px; }
.hs__card p { font-size: .86rem; margin: 0; }
.hs__card::before { content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-right-color: rgba(255,255,255,.96); }
.hs.is-open .hs__card { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.hs--left .hs__card { left: auto; right: calc(100% + 12px); }
.hs--left .hs__card::before { right: auto; left: 100%; border-right-color: transparent; border-left-color: rgba(255,255,255,.96); }
.hs--up .hs__card { top: auto; bottom: 50%; transform: translateY(50%) scale(.9); }
.hs--up.is-open .hs__card { transform: translateY(50%) scale(1); }
.hs--up .hs__card::before { top: auto; bottom: 14px; transform: none; }

@media (max-width: 900px) {
  .pv { overflow-y: auto; }
  .pv__wrap { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .pv__media { padding: 64px 12px 12px; }
  .pv__stage { flex: none; min-height: 0; }
  .pv__fig img, .pv__video { max-height: 58vh; }
  .pv__info { padding: 22px 20px 90px; }
}
@media (max-width: 640px) {
  /* en teléfono la tarjeta del material aparece abajo, fija, para que nunca se salga de la foto */
  .hs__card, .hs--left .hs__card, .hs--up .hs__card { position: fixed; left: 12px; right: 12px; top: auto; bottom: 84px; width: auto; transform: translateY(8px); }
  .hs.is-open .hs__card, .hs--up.is-open .hs__card { transform: none; }
  .hs__card::before { display: none; }
}

/* ===== Contenido complementario: contacto directo, servicios, por qué elegirnos, FAQ y formulario en 2 pasos ===== */
.nav__phone { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; margin-left: auto; margin-right: 14px; }
.nav__phone span { font-family: var(--font-h); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.nav__phone strong { font-family: var(--font-h); font-weight: 800; font-size: 1rem; color: var(--wine); }
.nav__phone:hover strong { color: var(--wine-deep); }
.ico--phone { width: 18px; height: 18px; }
.btn--ghost .ico--phone { color: var(--wine); }
.btn--wa .ico--phone { color: #fff; }
.mobile-menu .btn--ghost { margin-top: 10px; }
.intro { padding-bottom: 0; }
.intro .h2 { max-width: 22ch; }
.services { background: var(--bg-2); max-width: none; }
.services > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), box-shadow .4s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.svc__n { font-family: var(--font-h); font-weight: 800; font-size: .8rem; letter-spacing: .2em; color: var(--wine); }
.svc h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.svc p { font-size: 1rem; }
.svc__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--wine); font-family: var(--font-h); font-weight: 700; text-decoration: none; font-size: .95rem; }
.svc__link .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc__link:hover .ico { transform: translateX(4px); }
.steps li { position: relative; }
.steps__time { position: absolute; top: 24px; right: 20px; font-family: var(--font-h); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wine-deep); background: rgba(161,54,94,.1); padding: 6px 10px; border-radius: 999px; }

/* Cómo trabajamos: cada paso se enciende en orden, del plano (número en contorno) a la obra (número sólido) */
.steps li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--wine), var(--red)); transform-origin: left; transition: transform .8s var(--ease) calc(var(--d, 0s) + .25s); }
.steps__n { -webkit-text-stroke: 1px var(--wine); transition: color .6s ease calc(var(--d, 0s) + .7s); }
.steps__time { transition: opacity .4s ease calc(var(--d, 0s) + 1s), scale .5s var(--ease) calc(var(--d, 0s) + 1s); }
.js .steps li:not(.on) { opacity: 0; translate: 0 28px; }
.js .steps li:not(.on)::before { transform: scaleX(0); }
.js .steps li:not(.on) .steps__n { color: transparent; }
.js .steps li:not(.on) .steps__time { opacity: 0; scale: .8; }
@media (prefers-reduced-motion: reduce) {
  .js .steps li:not(.on), .js .steps li:not(.on) .steps__time { opacity: 1; translate: none; scale: none; }
  .js .steps li:not(.on)::before { transform: none; }
  .js .steps li:not(.on) .steps__n { color: var(--wine); }
}
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__item { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; background: #fff; transition: transform .4s var(--ease), box-shadow .4s; }
.why__item:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.why__item .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(161,54,94,.12); color: var(--wine); margin-bottom: 12px; }
.why__item h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.why__item p { font-size: .98rem; }
.why__zones { display: block; margin-top: 12px; font-family: var(--font-h); font-weight: 700; font-size: .82rem; color: var(--wine-deep); }
.faq { background: var(--bg-2); max-width: none; }
.faq > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.faq__list { display: grid; gap: 10px; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(161,54,94,.1); color: var(--wine); font-weight: 800; transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 18px; font-size: 1rem; max-width: 72ch; }
.contact__info small { display: block; color: var(--ink-dim); font-size: .85rem; margin-top: 2px; }
.form__step { display: flex; flex-direction: column; gap: 16px; }
.form__step[hidden], .form__done[hidden] { display: none; }
.form__stepLabel { font-family: var(--font-h); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.form__stepLabel b { color: var(--wine); margin-right: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-family: var(--font-h); font-weight: 600; font-size: .86rem; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; } /* se ajusta a las opciones que haya */
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.choice span { display: flex; flex-direction: column; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 10px; background: var(--bg-2); transition: border-color .25s, background .25s, box-shadow .25s; }
.choice b { font-family: var(--font-h); font-size: .95rem; color: var(--ink); }
.choice small { color: var(--ink-dim); font-size: .82rem; }
.choice input:checked + span { border-color: var(--wine); background: #fff; box-shadow: 0 0 0 3px rgba(161,54,94,.14); }
.choice input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.form__nav { display: flex; gap: 10px; }
.form__nav .btn--primary { flex: 1; }
.form__done { text-align: center; padding: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.form__doneTitle { font-family: var(--font-h); font-weight: 800; font-size: 1.5rem; color: var(--wine-deep); }
.form__doneActions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 10px; }
.form__again { background: none; border: 0; color: var(--ink-dim); font-family: var(--font-h); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form__again:hover { color: var(--wine); }
.footer__contact { display: flex; flex-direction: column; gap: 6px; }
.footer__label { font-family: var(--font-h); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.footer__contact a { color: rgba(255,255,255,.85); text-decoration: none; font-family: var(--font-h); font-weight: 600; font-size: .95rem; }
.footer__contact a:hover { color: #fff; }
@media (max-width: 1180px) { .nav__phone { display: none; } }
@media (max-width: 900px) {
  .services__grid, .why__grid { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .intro .h2 { max-width: none; }
}

/* ===== Cristal, velarias, combinaciones, clientes y garantías ===== */
/* Cubiertas: tipos de cristal y ventajas */
.glass { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 4px; }
.glass__label { font-family: var(--font-h); font-weight: 700; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.glass__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.glass__list li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(161,54,94,.35); background: #fff; color: var(--wine-deep); font-family: var(--font-h); font-weight: 600; font-size: .88rem; transition: background .3s, color .3s, transform .3s var(--ease); }
.glass__list li:hover { background: var(--wine); color: #fff; transform: translateY(-2px); }
.benefits__title { margin-top: 26px; font-family: var(--font-h); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.benefits--grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.benefits--grid li { align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.benefits--grid li:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.07); border-color: rgba(161,54,94,.35); }
.benefits--grid .ico { flex: none; width: 34px; height: 34px; padding: 7px; margin-top: 0; }
.benefits--grid b { font-size: 1rem; line-height: 1.25; }
.mosaic__item { position: relative; }
.mosaic__item[hidden] { display: none; }
.mosaic__more { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(20,10,15,.62); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: .78rem; pointer-events: none; }

/* Nuestros clientes: dos cintas en movimiento, la segunda en contorno y en sentido contrario */
.clients { position: relative; z-index: 1; padding: clamp(60px, 8vw, 100px) 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients__head { max-width: var(--maxw); margin: 0 auto clamp(24px, 4vw, 40px); padding: 0 clamp(20px, 5vw, 60px); text-align: center; }
.clients__head .h2 { margin-bottom: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 8px; }
.marquee__track { list-style: none; display: flex; width: max-content; }
.marquee__track li { display: flex; align-items: center; gap: clamp(22px, 3vw, 40px); padding-right: clamp(22px, 3vw, 40px); font-family: var(--font-h); font-weight: 800; font-size: clamp(1.35rem, 2.8vw, 2.3rem); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; transition: color .3s; }
.marquee__track li::after { content: ""; flex: none; width: 9px; height: 9px; border: 2px solid var(--wine); }
.marquee__track li:hover { color: var(--wine); }
.marquee--rev .marquee__track li { color: transparent; -webkit-text-stroke: 1.2px var(--ink-soft); }
.marquee--rev .marquee__track li:hover { color: var(--wine); -webkit-text-stroke-color: var(--wine); }
.marquee--rev .marquee__track li::after { border-color: rgba(161,54,94,.55); }
.marquee.is-on .marquee__track { animation: marquee var(--dur, 70s) linear infinite; }
.marquee--rev.is-on .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Combinaciones posibles: vitrina oscura con carrusel que lleva a combinaciones.html */
.combos { position: relative; z-index: 1; padding: clamp(70px, 9vw, 120px) 0; background: radial-gradient(120% 90% at 85% 0%, rgba(161,54,94,.35), transparent 55%), var(--dark); color: #fff; overflow: hidden; }
.combos__inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.combos__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-bottom: clamp(28px, 4vw, 44px); }
.combos .h2 { color: #fff; max-width: 16ch; }
.combos .lead { color: rgba(255,255,255,.72); max-width: 52ch; }
.combos__rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23.5%, 290px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.combos__rail::-webkit-scrollbar { display: none; }
.combo-card { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; isolation: isolate; background: #2a2a2a; color: #fff; text-decoration: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .combos__rail:not(.in) .combo-card { opacity: 0; transform: translateY(30px); }
.combo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.combo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(20,8,14,.88)); }
.combo-card__n { position: absolute; top: 14px; left: 16px; z-index: 1; font-family: var(--font-h); font-weight: 800; font-size: 2.1rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.85); transition: color .5s; }
.combo-card__t { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; font-family: var(--font-h); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.combo-card__t em { display: block; margin-top: 4px; font-style: normal; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.78); }
.combo-card__t::after { content: "Ver combinación →"; display: block; margin-top: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #f0c9d9; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.combo-card:hover img, .combo-card:focus-visible img { transform: scale(1.07); }
.combo-card:hover .combo-card__n, .combo-card:focus-visible .combo-card__n { color: #fff; }
.combo-card:hover .combo-card__t::after, .combo-card:focus-visible .combo-card__t::after { opacity: 1; transform: none; }
.combo-card:focus-visible { outline: 3px solid #f0c9d9; outline-offset: 3px; }
.combos__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.combos__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; transition: background .3s, border-color .3s; }
.combos__btn:hover { background: var(--wine); border-color: var(--wine); }
.combos__btn .ico { width: 18px; height: 18px; }
.combos__btn[data-dir="-1"] .ico { transform: rotate(180deg); }

/* Garantías: tarjetas con el plazo destacado */
.warranty__list { grid-template-columns: 1fr 1fr; gap: 12px; }
.warranty__list li { position: relative; gap: 6px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.07); transition: background .35s, transform .35s var(--ease); }
.warranty__list li:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.warranty__list .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; }
.warranty__list b { font-size: .95rem; font-weight: 700; color: rgba(255,255,255,.88); }
.warranty__list span { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; color: #fff; }

@media (max-width: 640px) {
  .combos__rail { grid-auto-columns: 72%; }
  .combos__nav { display: none; }
  .combos__head .btn { width: 100%; justify-content: center; }
}
@media (max-width: 440px) {
  .benefits--grid, .warranty__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .marquee__track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track li[aria-hidden] { display: none; }
  .js .combos__rail:not(.in) .combo-card { opacity: 1; transform: none; }
}

/* =====================================================================
   Botones flotantes de contacto: WhatsApp siempre; llamada solo en celular
   ===================================================================== */
.fab { position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: calc(clamp(16px, 2.4vw, 28px) + env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .35s, transform .35s var(--ease); }
.fab.is-away { opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none; }
.fab__btn { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 12px 28px rgba(0,0,0,.2); transition: transform .3s var(--ease), box-shadow .3s; animation: fab-in .6s var(--ease) .9s backwards; }
.fab__btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.fab__btn:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.fab__btn .ico { width: 30px; height: 30px; }
.fab__btn--wa { background: #25d366; }
.fab__btn--wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: fab-pulse 3s ease-out 2.4s infinite; }
.fab__btn--tel { display: none; width: 52px; height: 52px; background: var(--wine); animation-delay: 1.05s; }
.fab__btn--tel .ico { width: 24px; height: 24px; }
.fab__label { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--font-h); font-weight: 700; font-size: .9rem; box-shadow: 0 8px 22px rgba(0,0,0,.14); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
@media (hover: hover) { .fab__btn--wa:hover .fab__label { opacity: 1; transform: translate(0, -50%); } }
.fab__btn--wa:focus-visible .fab__label { opacity: 1; transform: translate(0, -50%); }
@keyframes fab-in { from { opacity: 0; transform: translateY(18px) scale(.8); } }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
@media (max-width: 900px) {
  .fab__btn--tel { display: grid; }
  .fab__btn--wa { width: 56px; height: 56px; }
  .fab__btn--wa .ico { width: 28px; height: 28px; }
  .footer__copy { padding-right: 80px; } /* el último renglón no queda debajo de los botones flotantes */
}
@media (prefers-reduced-motion: reduce) { .fab__btn, .fab__btn--wa::after { animation: none; } }

/* Celular: sin el render 3D (traba los teléfonos). Misma condición que en script.js, que ahí ni descarga Three.js */
@media (max-width: 900px), (pointer: coarse) and (max-height: 520px) {
  .build { display: none; }
}
/* "¿Qué buscas?" en una sola línea en celular */
@media (max-width: 560px) {
  .hero__switch { flex-wrap: nowrap; gap: 6px; }
  .hero__switch span { font-size: .82rem; margin-right: 2px; white-space: nowrap; }
  .hero__switch .chip { padding: 8px 10px; gap: 6px; font-size: .88rem; white-space: nowrap; }
}
@media (max-width: 349px) { .hero__switch { flex-wrap: wrap; } .hero__switch span { flex-basis: 100%; } } /* pantallas muy angostas: la pregunta arriba, los dos botones juntos */
