:root {
  --ink: #1d1d1f;
  --deep: #000;
  --cream: #f5f5f7;
  --paper: #fff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apple-blue: #0071e3;
  --link: #0066cc;
  --sun: #f0bf38;
  --blue: #2f9fe0;
  --green: #3aa650;
  --rig: #f07d1a;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-light: rgba(255, 255, 255, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.grad { background: linear-gradient(90deg, #2f9fe0 0%, #3aa650 55%, #f0bf38 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hsp-h { color: var(--blue); }
.hsp-s { color: var(--sun); }
.hsp-p { color: var(--green); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 78px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff;
  transition: background .4s ease, height .4s var(--ease), box-shadow .4s ease, transform .5s var(--ease);
}
.nav.scrolled { background: rgba(7, 26, 34, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 66px; box-shadow: 0 1px 0 var(--line-light); }
.nav.hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo { height: 42px; width: auto; border-radius: 50%; display: block; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.brand-name { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }
.nav nav { display: flex; gap: 30px; }
.nav nav a { position: relative; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 0; opacity: .85; transition: opacity .2s; }
.nav nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav nav a:hover, .nav nav a.current { opacity: 1; }
.nav nav a:hover::after, .nav nav a.current::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); background: var(--sun); text-decoration: none; font-size: 12px; font-weight: 800; padding: 12px 18px; border-radius: 999px; transition: transform .25s var(--ease), background .2s; }
.nav-cta:hover { transform: translateY(-2px); background: #ffd25a; }
.nav-cta span { transition: transform .25s var(--ease); }
.nav-cta:hover span { transform: translateX(3px); }
.nav-toggle { display: none; background: none; border: 0; padding: 0; width: 32px; height: 32px; position: relative; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 5px; right: 5px; height: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -8px; left: 0; right: 0; }
.nav-toggle span::after { top: 8px; left: 0; right: 0; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Tipografía y piezas comunes ---------- */
.eyebrow { font: 500 11px var(--font); letter-spacing: 1.8px; margin: 0 0 24px; display: flex; gap: 10px; align-items: center; }
.eyebrow i { width: 22px; height: 1px; background: currentColor; display: block; }
.eyebrow .index { margin-left: auto; opacity: .55; }
.eyebrow.dark { color: #477786; }
.section-head { max-width: 1240px; margin: 0 auto 70px; }
.section-head h2 { font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -.03em; font-weight: 700; margin: 0; }
.section-head h2 em { color: var(--green); }
.section-head > p:not(.eyebrow) { max-width: 520px; font-size: 17px; line-height: 1.7; color: var(--muted); margin: 28px 0 0; }
.section-head.light { color: #fff; }
.section-head.light h2 em { color: var(--sun); }

.button { display: inline-flex; align-items: center; gap: 28px; color: #fff; text-decoration: none; background: rgba(14, 48, 61, .5); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; font-weight: 800; font-size: 12px; padding: 17px 20px 17px 24px; transition: background .2s ease, transform .25s var(--ease); }
.button:hover { background: rgba(14, 48, 61, .78); transform: translateY(-2px); }
.button span { font-size: 18px; color: var(--sun); }
.button.ghost { background: transparent; }
.button.wa { background: var(--green); border-color: var(--green); }
.button.wa span { color: #fff; }
.button.wa:hover { background: #2f9143; }
.text-link { color: var(--blue); text-decoration: none; font-weight: 700; font-size: 14px; }
.text-link span { display: inline-block; padding-left: 6px; transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Intro cinemática ---------- */
.solar-film { height: 100svh; min-height: 650px; background: #0e303d; overflow: hidden; }
.film-sticky { height: 100%; position: relative; color: #fff; }
.sequence-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-shadow { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 25, 35, .86), rgba(3, 25, 35, .36) 55%, rgba(3, 25, 35, .1)), linear-gradient(0deg, rgba(3, 19, 27, .65), transparent 44%); }
.film-copy { position: absolute; z-index: 2; left: var(--gutter); max-width: 700px; opacity: 0; transform: translateY(22px); transition: opacity .5s, transform .7s; }
.film-intro { top: 26%; opacity: 1; transform: none; }
.film-final { pointer-events: none; top: auto; bottom: 104px; max-width: 1000px; }
.film-final > p:not(.eyebrow) { text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.film-copy h1, .film-copy h2 { letter-spacing: -.03em; line-height: .94; margin: 0; font-size: clamp(48px, min(8.8vw, 13vh), 132px); font-weight: 700; }
.film-copy h1 em, .film-copy h2 em { color: var(--sun); }
.film-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.7; max-width: 440px; margin: 24px 0; color: rgba(255, 255, 255, .85); }
.film-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.film-progress { position: absolute; z-index: 3; bottom: 29px; left: var(--gutter); display: flex; align-items: center; gap: 8px; }
.film-progress span { display: block; width: 42px; height: 2px; background: rgba(255, 255, 255, .38); }
.film-progress span.active { background: var(--sun); }
.film-progress b { font: 10px var(--font); letter-spacing: 1.3px; margin-left: 14px; }
.film-skip { position: absolute; z-index: 4; right: var(--gutter); bottom: 29px; background: rgba(14, 48, 61, .4); border: 1px solid rgba(255, 255, 255, .4); color: #fff; font: 11px var(--font); letter-spacing: 1px; padding: 11px 20px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, background .2s ease; }
.film-skip span { padding-left: 8px; }
.film-skip.visible { opacity: 1; pointer-events: auto; transform: none; }
.film-skip:hover { background: rgba(14, 48, 61, .65); }

/* ---------- Cinta de servicios ---------- */
.ticker { background: var(--sun); color: var(--deep); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font-size: clamp(18px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; text-transform: uppercase; }
.ticker i { width: 12px; height: 12px; border-radius: 50%; background: var(--deep); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Servicios ---------- */
.services { padding: 140px var(--gutter) 130px; background: var(--paper); }
.service-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service-card { position: relative; padding: 36px 28px 44px 0; border-right: 1px solid var(--line); overflow: hidden; }
.service-card + .service-card { padding-left: 28px; }
.service-card:last-child { border-right: 0; }
.service-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--sun), var(--green), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { font: 11px var(--font); color: var(--muted); }
.service-card svg { display: block; width: 46px; height: 46px; margin: 34px 0 30px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease), stroke .3s; }
.service-card:hover svg { transform: translateY(-6px) rotate(-4deg); stroke: var(--green); }
.service-card h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 12px; }
.service-card p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- Equipos ---------- */
.equipment { position: relative; overflow: hidden; padding: 140px var(--gutter) 90px; color: #fff; background: radial-gradient(120% 80% at 50% 45%, #163b48 0%, var(--deep) 62%); }
.equipment-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 80%); opacity: .45; }
.equipment-word { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: clamp(90px, 17vw, 300px); font-weight: 800; letter-spacing: -.035em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); transition: opacity .5s ease; }
.equipment .section-head { position: relative; z-index: 1; margin-bottom: 30px; }
.showcase { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 40px; align-items: center; min-height: 540px; }
.showcase-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.showcase-list button { width: 100%; display: flex; gap: 16px; align-items: baseline; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-light); padding: 18px 0; cursor: pointer; color: rgba(255, 255, 255, .5); font-size: 15px; font-weight: 700; transition: color .3s, padding .4s var(--ease); }
.showcase-list button b { font: 10px var(--font); letter-spacing: 1px; }
.showcase-list button:hover { color: rgba(255, 255, 255, .85); }
.showcase-list button[aria-selected="true"] { color: #fff; padding-left: 14px; box-shadow: inset 3px 0 0 var(--rig); }
.showcase-list button[aria-selected="true"] b { color: var(--rig); }
.showcase-stage { position: relative; height: 560px; display: grid; place-items: center; perspective: 1200px; }
.stage-scan { position: absolute; left: 8%; right: 8%; height: 2px; top: 0; background: linear-gradient(90deg, transparent, rgba(240, 191, 56, .9), transparent); opacity: 0; pointer-events: none; z-index: 3; }
.showcase-stage.switching .stage-scan { animation: scan .9s var(--ease); }
@keyframes scan { 0% { top: 10%; opacity: 0; } 15% { opacity: 1; } 100% { top: 90%; opacity: 0; } }
.stage-img { position: relative; z-index: 2; max-height: 520px; max-width: 92%; width: auto; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .45)); transition: opacity .45s ease, transform .8s var(--ease), filter .45s ease; will-change: transform; }
.stage-img.out { opacity: 0; transform: translateX(-60px) scale(.94); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .45)) blur(6px); }
.stage-img.from-right { opacity: 0; transform: translateX(60px) scale(.94); transition: none; }
.stage-floor { position: absolute; bottom: 4%; width: 70%; height: 40px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%); z-index: 1; }
.info-kicker { font: 11px var(--font); letter-spacing: 1.6px; color: var(--rig); display: flex; justify-content: space-between; margin: 0 0 18px; }
.info-count { color: rgba(255, 255, 255, .5); }
.info-title { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; }
.info-text { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .72); margin: 0 0 24px; }
.info-tags { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.info-tags li { font: 11px var(--font); letter-spacing: .5px; border: 1px solid var(--line-light); border-radius: 999px; padding: 7px 12px; color: rgba(255, 255, 255, .85); }
.showcase-info > * { transition: opacity .35s ease, transform .5s var(--ease); }
.showcase-info.swap > *:not(.info-nav) { opacity: 0; transform: translateY(12px); }
.info-nav { display: flex; align-items: center; gap: 14px; }
.info-nav button { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; font-size: 16px; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.info-nav button:hover { background: var(--rig); border-color: var(--rig); transform: scale(1.06); }
.info-bar { flex: 1; height: 2px; background: var(--line-light); overflow: hidden; }
.info-bar span { display: block; height: 100%; width: 100%; background: var(--rig); transform: scaleX(0); transform-origin: left; }
.info-bar span.run { animation: bar var(--cycle, 7s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Proceso con mecha ---------- */
.process { padding: 140px var(--gutter); background: var(--cream); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6vw; max-width: 100%; }
.process-copy { position: sticky; top: 120px; align-self: start; }
.process-copy h2 { font-size: clamp(44px, 5.6vw, 86px); line-height: .98; letter-spacing: -.03em; margin: 0; }
.process-copy h2 em { color: var(--blue); }
.process-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 440px; margin: 28px 0 40px; }
.depth-readout { display: flex; align-items: flex-end; gap: 12px; }
.depth-value { font-size: clamp(64px, 7vw, 110px); font-weight: 800; letter-spacing: -.035em; line-height: .8; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--sun), var(--rig)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.depth-readout small { font: 10px var(--font); letter-spacing: 1px; color: var(--muted); line-height: 1.5; }
.process-track { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 30px; }
.drill { position: relative; }
.drill-shaft { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, rgba(13, 39, 49, .16) 0 8px, transparent 8px 14px); border-radius: 4px; }
.drill-fill { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--sun), var(--rig) 60%, var(--blue)); border-radius: 4px; }
.drill-bit { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 30px; transform: translate(-50%, -6px); z-index: 2; }
.drill-bit svg { width: 30px; height: 44px; display: block; fill: var(--ink); stroke: var(--rig); stroke-width: 1.5; animation: wobble .25s linear infinite alternate; animation-play-state: var(--spin, paused); }
@keyframes wobble { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.strata { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(5, 1fr); pointer-events: none; }
.strata span { border-top: 1px dashed rgba(13, 39, 49, .15); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 40px 0 52px; border-top: 1px solid var(--line); opacity: .35; transform: translateX(10px); transition: opacity .6s ease, transform .7s var(--ease); }
.step.active { opacity: 1; transform: none; }
.step b { font: 11px var(--font); color: var(--rig); }
.step h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.03em; margin: 12px 0 10px; }
.step p { font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 440px; margin: 0; }
.step.water h3 { color: var(--blue); }

/* ---------- Proyectos ---------- */
.projects { padding: 140px var(--gutter); background: var(--paper); }
.frame { overflow: hidden; border-radius: 22px; clip-path: inset(0 0 100% 0 round 22px); transition: clip-path 1.3s var(--ease); background: #111; }
.in .frame { clip-path: inset(0 0 0 0 round 22px); }
figure.in .frame img { transform: scale(1); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1240px; margin: 0 auto; }
.project-grid figure { margin: 0; }
.project-grid img { width: 100%; height: 460px; display: block; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.project-grid figure.in .frame img { transform: scale(1); }
.project-grid figure.in .frame:hover img { transform: scale(1.05); transition-duration: .8s; }
.project-grid figcaption { display: flex; gap: 14px; align-items: baseline; margin: 16px 4px; font-size: 14px; color: var(--muted); }
.project-grid figcaption span { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Hogares ---------- */
.homes { background: #fff; padding: 140px var(--gutter); display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 6vw; }
.homes-copy h2 { font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -.03em; line-height: 1; margin: 0; }
.homes-copy h2 em { color: var(--green); }
.homes-copy > p:not(.eyebrow) { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.7; margin: 28px 0; }
.home-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 34px 0; }
.home-points span { font-size: 13px; font-weight: 700; border-top: 1px solid #d2d2d6; padding-top: 10px; }
.home-points span:last-child { grid-column: 1 / -1; }
.home-points b { font: 10px var(--font); color: var(--muted); padding-right: 7px; }
.homes-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; height: 480px; box-shadow: 0 30px 60px rgba(13, 39, 49, .16); }
.homes-photo img { width: 100%; height: 115%; object-fit: cover; display: block; transform: translateY(calc(var(--py, 0) * 1px)); }
.homes-photo figcaption { position: absolute; left: 16px; bottom: 16px; color: #fff; font: 11px var(--font); letter-spacing: 1px; background: rgba(9, 25, 32, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 7px 14px; border-radius: 999px; }

/* ---------- Nosotros ---------- */
.statement { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 140px var(--gutter); }
.statement-copy { position: relative; z-index: 1; max-width: 660px; }
.statement-copy h2 { font-size: clamp(50px, 6.4vw, 94px); letter-spacing: -.03em; line-height: .96; margin: 0 0 38px; }
.statement-copy h2 em { color: var(--sun); }
.statement-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.8; color: #c5d3d5; }
.signature { margin-top: 42px; display: flex; align-items: center; gap: 13px; }
.signature span { font: 700 30px var(--font); letter-spacing: -.02em; }
.signature span i { font-style: normal; }
.signature small { font: 10px var(--font); color: #8ca4ab; letter-spacing: 1px; }
.statement-machine { position: absolute; right: 6vw; bottom: -40px; height: 115%; width: auto; opacity: .9; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); transform: translateY(calc(var(--py, 0) * 1px)); pointer-events: none; }

/* ---------- Contacto ---------- */
.contact { padding: 150px var(--gutter); display: flex; justify-content: space-between; gap: 40px; background: var(--deep); color: #fff; }
.contact h2 { font-size: clamp(50px, 6.6vw, 98px); letter-spacing: -.03em; line-height: .96; margin: 0; font-weight: 700; }
.contact h2 em { color: var(--green); }
.contact-details { padding-top: 34px; min-width: 340px; }
.phone { display: flex; justify-content: space-between; text-decoration: none; color: #fff; font-size: 32px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 13px; transition: color .2s; }
.phone:hover { color: var(--sun); }
.phone span { font-weight: 400; color: var(--blue); }
.contact-details p { font-size: 13px; line-height: 1.7; margin: 23px 0 30px; color: rgba(255, 255, 255, .7); }

footer { padding: 27px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #04131a; color: #fff; font: 10px var(--font); letter-spacing: .8px; }
footer a { color: #fff; text-decoration: none; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .35s ease, transform .45s var(--ease); }
.wa-float.visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Estilo Apple: tipografía del sistema, grises neutros y azul de acción ---------- */
h1, h2, h3 { font-weight: 600; }
.section-head h2, .film-copy h1, .film-copy h2, .contact h2, .process-copy h2, .homes-copy h2, .statement-copy h2 { font-weight: 600; line-height: 1.04; }
.section-head h2 em, .section-head.light h2 em, .film-copy h1 em, .film-copy h2 em, .contact h2 em, .homes-copy h2 em, .statement-copy h2 em, .process-copy h2 em { color: inherit; }
.eyebrow { font: 600 12px var(--font); letter-spacing: .08em; color: var(--rig); }
.eyebrow.dark { color: var(--rig); }
.eyebrow i { background: var(--rig); }
.eyebrow .index { color: var(--muted); }
.section-head > p:not(.eyebrow), .process-copy > p:not(.eyebrow), .homes-copy > p:not(.eyebrow) { font-size: 19px; line-height: 1.42; letter-spacing: -.012em; color: var(--muted); }

.nav { height: 52px; }
.nav.scrolled { height: 52px; background: rgba(22, 22, 23, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: none; }
.brand-logo { height: 34px; box-shadow: none; }
.brand-name { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.nav nav a { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .8); opacity: 1; }
.nav nav a:hover, .nav nav a.current { color: #fff; }
.nav nav a::after { height: 1px; background: #fff; }
.nav-cta { background: var(--apple-blue); color: #fff; font-size: 12px; font-weight: 400; padding: 6px 14px; }
.nav-cta:hover { background: #0077ed; }

.button { gap: 10px; background: var(--apple-blue); border: 1px solid var(--apple-blue); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 980px; font-size: 17px; font-weight: 400; padding: 11px 22px; letter-spacing: -.02em; }
.button:hover { background: #0077ed; }
.button span { font-size: 15px; color: #fff; }
.button.ghost { background: transparent; border-color: #fff; color: #fff; }
.button.ghost:hover { background: rgba(255, 255, 255, .12); }
.text-link { color: var(--link); font-weight: 400; font-size: 17px; }
.text-link:hover { text-decoration: underline; }

.ticker { background: var(--cream); color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticker span { font-weight: 600; text-transform: none; letter-spacing: -.02em; }
.ticker i { background: var(--rig); width: 8px; height: 8px; }

.services, .projects { background: #fff; }
.process { background: var(--cream); }
.homes { background: #fff; }
.service-card h3 { font-weight: 600; }
.equipment { background: radial-gradient(120% 80% at 50% 45%, #2a2a2d 0%, #000 62%); }
.statement { background: #000; }
.statement-copy > p:not(.eyebrow) { color: #a1a1a6; }
.contact { background: #000; }
.phone:hover { color: #2997ff; }
.phone span { color: #2997ff; }
footer { background: var(--cream); color: var(--muted); border-top: 1px solid var(--line); font: 12px var(--font); letter-spacing: 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.home-points b, .service-num, .step b, .flow-number { font-weight: 600; }
.info-tags li, .film-skip, .film-progress b, .homes-photo figcaption { letter-spacing: .02em; }

/* ---------- Zona de operación ---------- */
.zone { background: #000; color: #f5f5f7; padding: 140px var(--gutter) 120px; overflow: hidden; }
.zone-head { max-width: 980px; margin: 0 auto 60px; text-align: center; }
.zone-head .eyebrow { justify-content: center; }
.zone-head .eyebrow .index { margin-left: 10px; }
.zone-head h2 { font-size: clamp(44px, 6vw, 88px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; margin: 0; }
.zone-head > p:not(.eyebrow) { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: #a1a1a6; max-width: 680px; margin: 26px auto 0; }
.zone-map { max-width: 1280px; margin: 0 auto; }
.zone-frame { display: block; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); transform: scale(.88); transition: transform 1.6s var(--ease); }
.zone-map.in .zone-frame { transform: scale(1); }
.zone-frame img { display: block; width: 100%; height: auto; transform: scale(1.12); transform-origin: 55% 50%; transition: transform 2.4s var(--ease); }
.zone-map.in .zone-frame img { transform: scale(1); }
.zone-map figcaption { text-align: center; color: #86868b; font-size: 14px; margin-top: 18px; }
.zone-towns { list-style: none; padding: 0; margin: 60px auto 0; max-width: 1280px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.zone-towns li { display: flex; }
.zone-towns .town { position: relative; width: 100%; background: #1d1d1f; color: #f5f5f7; border-radius: 18px; padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.zone-towns .town::after { content: '✓'; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; display: grid; place-items: center; }
.zone-towns b { font-size: 12px; font-weight: 600; color: var(--rig); }
.zone-towns span { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.zone-towns small { font-size: 13px; color: #86868b; }
.zone-towns li.main .town { background: linear-gradient(160deg, #0b3d91, #0071e3); }
.zone-towns li.main small { color: rgba(255, 255, 255, .75); }
.zone-towns li.main b { color: #ffd25a; }
.zone-frame { position: relative; }
.zone-map figcaption a { color: #2997ff; text-decoration: none; }
.zone-map figcaption a:hover { text-decoration: underline; }

/* ---------- Accesos al hogar ---------- */
.nav-home { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 12px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 980px; padding: 5px 13px; transition: background .2s, border-color .2s; }
.nav-home:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.nav-home svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #fff; text-decoration: none; font-size: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25); border-radius: 980px; padding: 9px 16px 9px 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .2s; }
.home-pill:hover { background: rgba(0, 0, 0, .55); }
.home-pill b { font-weight: 600; color: var(--sun); }
.home-pill .sun { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(240, 191, 56, .7); animation: sunpulse 2s ease-out infinite; flex: none; }
@keyframes sunpulse { to { box-shadow: 0 0 0 10px rgba(240, 191, 56, 0); } }

/* ---------- Obras destacadas ---------- */
.work-grid { max-width: 1240px; margin: 24px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work { background: var(--cream); border-radius: 22px; padding: 26px 22px 28px; transition: transform .4s var(--ease), box-shadow .4s ease, background .3s; }
.work:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .1), 0 0 0 1px var(--line); }
.work-kind { display: inline-block; font-size: 12px; font-weight: 600; color: var(--rig); background: rgba(240, 125, 26, .1); border-radius: 980px; padding: 4px 10px; margin: 0 0 16px; }
.work h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 6px; }
.work-place { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.work ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.work li { font-size: 14px; line-height: 1.4; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); position: relative; }
.work li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- Trabajos ---------- */
.summary { max-width: 1240px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.summary-card { background: var(--cream); border-radius: 22px; padding: 34px 32px 36px; }
.summary-card h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; }
.summary-card p:last-child { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.job dl { margin: 0; border-top: 1px solid var(--line); }
.job dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--rig); margin: 16px 0 6px; }
.job dd { font-size: 15px; line-height: 1.5; margin: 0; color: var(--ink); }
.track { padding: 140px var(--gutter); background: var(--cream); overflow: hidden; }
.jobs { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.job { background: #fff; border-radius: 22px; padding: 26px 22px 24px; }
.job h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; }
.job ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.job li { font-size: 14px; line-height: 1.4; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); position: relative; }
.job li:last-child { border-bottom: 0; }
.job li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--rig); }
.town-count { font-style: normal; font-size: 13px; font-weight: 600; color: #f5f5f7; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav nav { gap: 20px; }
  .brand-name { display: none; }
  .showcase { grid-template-columns: minmax(0, 1fr) 300px; }
  .showcase-list { display: none; }
  .zone-towns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work-grid, .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:nth-child(2) { border-right: 0; }
  .service-card:nth-child(3) { padding-left: 0; }
  .service-card:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .nav, .nav.scrolled { height: 56px; padding: 0 20px; }
  .brand-logo { height: 38px; }
  .nav-toggle { display: block; }
  .nav-cta { font-size: 11px; padding: 10px 14px; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--deep); padding: 6px 20px 16px; box-shadow: 0 18px 30px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
  .nav.open nav { opacity: 1; visibility: visible; transform: none; }
  .nav nav a { padding: 15px 0; font-size: 15px; border-top: 1px solid var(--line-light); }
  .nav nav a::after { display: none; }

  .film-copy { left: 20px; right: 20px; }
  .film-copy > p:not(.eyebrow) { font-size: 14px; }
  .film-progress { left: 20px; }
  .film-skip { right: 20px; bottom: 22px; font-size: 10px; padding: 9px 16px; }
  .film-final { pointer-events: none; top: auto; bottom: 84px; }

  .section-head { margin-bottom: 46px; }
  .services, .projects, .homes, .statement, .process { padding-top: 90px; padding-bottom: 90px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { padding: 28px 0 32px; border-right: 0; border-top: 1px solid var(--line); }
  .service-card svg { margin: 20px 0; }

  .equipment { padding: 90px 20px 60px; }
  .zone { padding: 90px 20px 80px; }
  .zone-frame { border-radius: 16px; }
  .zone-towns { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .work-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-left: -20px; margin-right: -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .work { flex: 0 0 82%; scroll-snap-align: center; }
  .track { padding: 90px 20px; }
  .jobs { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; gap: 30px; }
  .summary { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .summary-card { padding: 26px 22px 28px; }
  .project-grid img { height: 74vw; }
  .nav-home { padding: 5px 10px; }
  .nav-cta { display: none; }
  .home-pill { font-size: 13px; }
  .showcase { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .showcase-stage { height: 380px; }
  .stage-img { max-height: 360px; }

  .process { grid-template-columns: 1fr; gap: 40px; }
  .process-copy { position: static; }
  .process-track { grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
  .depth-readout { display: none; }

      
  .homes { grid-template-columns: 1fr; gap: 44px; }
  .homes-photo { height: 300px; }

  .statement { padding-bottom: 420px; }
  .statement-machine { height: 440px; right: 50%; transform: translateX(50%); bottom: -30px; }

  .contact { padding: 90px 20px; display: block; }
  .contact-details { min-width: 0; padding-top: 40px; }
  .phone { font-size: 26px; }
  footer { padding: 23px 20px; flex-wrap: wrap; }
  footer { padding-right: 90px; }
  footer > span { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal, .frame, .project-grid img { transition: none; opacity: 1; transform: none; clip-path: none; }
}
