/* ==========================================================================
   CS DESIGN 2.0 — ESTILOS
   Concepto: estudio nocturno. Fondo casi negro, tarjetas oscuras, líneas
   finas y el amarillo de aviación como única señal. El material real
   (video, fotos, 3D) es el protagonista.
   ========================================================================== */
:root {
  --ink: #0A0C0F;        /* fondo */
  --panel: #12161B;      /* tarjetas */
  --panel-2: #181D23;    /* tarjetas elevadas */
  --line: #232A32;       /* líneas finas */
  --fg: #F2F1EC;         /* texto */
  --muted: #9AA1AB;      /* texto secundario */
  --accent: #F5B301;     /* amarillo aviación */
  --accent-ink: #0A0C0F; /* texto sobre amarillo */
  --accent-text: #F5B301; /* amarillo usado como TEXTO (en claro se oscurece para leerse) */
  --ink-2: #0E1115;      /* fondo de secciones alternas */
  --fg-2: #D3D6DA;       /* texto casi principal */
  --fg-3: #A3A9B2;       /* texto de apoyo */
  --line-2: #3A424C;     /* borde al pasar el mouse */
  --faint: #2A323C;      /* números grandes decorativos */
  --nav-bg: rgba(10, 12, 15, .72);
  --grid-line: rgba(242, 241, 236, .035);
  --hover: rgba(242, 241, 236, .06);
  --cursor-line: rgba(242, 241, 236, .35);
  --globe-dot: #56606B;
  --globe-base: #0C1014;
  --globe-rim: #8C99A6;
  --f-display: "Unbounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 5vw, 80px);
  --max: 1440px;
  --r: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 16px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; line-height: 1.04; }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 44ch; }
.tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }

/* Texto progresivo */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer; border: 0; transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; stroke-width: 2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--fg); color: var(--ink); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: var(--hover); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.97); }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ NAV ============ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav.hide { transform: translateY(-101%); }
.nav-row { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 5px; }
.brand img { height: 24px; width: auto; }
.brand small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav-links a:not(.btn) { position: relative; padding: 12px 0; color: var(--fg-2); transition: color .3s; }
.nav-links a:not(.btn):hover { color: var(--fg); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--accent-text); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; align-content: center; gap: 6px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gut) 40px; display: flex; flex-direction: column; gap: 4px; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease), visibility .6s; }
.menu-open .mobile-menu { visibility: visible; clip-path: inset(0 0 0 0); }
.mobile-menu a:not(.btn) { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 8vw, 46px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 28px; }
@media (max-width: 960px) { .nav-links { display: none; } .menu-btn { display: grid; } }

/* ============ HERO ============ */
.hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero-title { font-size: clamp(36px, 4.3vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.hero-sub { color: var(--fg-3); font-size: clamp(16px, 1.3vw, 19px); max-width: 48ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.globe-card { position: relative; aspect-ratio: 1 / .92; max-width: 100%; border-radius: 24px; background: radial-gradient(120% 90% at 50% 40%, #121820 0%, var(--ink) 70%); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.globe-stage { position: absolute; inset: 0; cursor: grab; }
.globe-stage.dragging { cursor: grabbing; }
.globe-canvas { width: 100% !important; height: 100% !important; display: block; }
.hud { position: absolute; inset: 22px; pointer-events: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 241, 236, .82); z-index: 3; }
.hud i { position: absolute; width: 30px; height: 30px; border: 0 solid rgba(242, 241, 236, .7); }
.hud .c1 { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud .c2 { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud .c3 { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud .c4 { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud-tl { position: absolute; top: 8px; left: 46px; display: flex; align-items: center; gap: 10px; }
.hud-tl .rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(2) infinite; }
.hud-tr { position: absolute; top: 8px; right: 46px; color: var(--muted); }
.hud-bl { position: absolute; bottom: 8px; left: 46px; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .15; } }
.globe-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; font-size: 13px; color: var(--muted); white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.globe-reset { position: absolute; right: 22px; bottom: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 12, 15, .7); backdrop-filter: blur(8px); cursor: pointer; font-size: 13px; }
.globe-reset svg { width: 16px; height: 16px; }
.globe-reset:hover { border-color: var(--fg); }

/* Marcadores HTML del globo */
.gl-markers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.gl-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gl-lines line { stroke: rgba(245, 179, 1, .55); stroke-width: 1; stroke-dasharray: 3 3; }
.gl-lines circle { fill: var(--accent); stroke: none; }
.gpin, .gcluster { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; background: transparent; padding: 0; cursor: pointer; transition: opacity .35s; will-change: transform; }
.gpin.off, .gcluster.off { opacity: 0; pointer-events: none; }
.gpin-dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.gpin-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 179, 1, .18); transition: transform .3s var(--ease), box-shadow .3s; }
.gpin::after { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; }
.gpin:hover .gpin-dot::before, .gpin:focus-visible .gpin-dot::before, .gpin.is-active .gpin-dot::before { transform: scale(1.35); box-shadow: 0 0 0 7px rgba(245, 179, 1, .22); }
.gpin-lbl { position: absolute; left: 16px; top: -20px; display: grid; gap: 1px; text-align: left; white-space: nowrap; padding: 7px 11px; border-radius: 10px; background: rgba(10, 12, 15, .82); border: 1px solid var(--line); backdrop-filter: blur(8px); opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.gpin-lbl b { font-family: var(--f-display); font-weight: 500; font-size: 12px; letter-spacing: 0; }
.gpin-lbl small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gpin.lbl-left .gpin-lbl { left: auto; right: 16px; transform: translateX(4px); text-align: right; }
.gpin:hover .gpin-lbl, .gpin:focus-visible .gpin-lbl, .gpin.is-active .gpin-lbl, .expanded .gpin .gpin-lbl { opacity: 1; transform: none; }
.gcluster { width: 0; height: 0; }
.gc-ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.2s var(--ease) infinite; }
.gc-n { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-weight: 700; font-size: 12px; display: grid; place-items: center; transition: transform .3s var(--ease); }
.gcluster:hover .gc-n { transform: scale(1.12); }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* Tarjeta de proyecto sobre el globo */
.gcard { position: absolute; left: 18px; bottom: 18px; z-index: 6; width: min(330px, calc(100% - 36px)); display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 18px; background: rgba(18, 22, 27, .9); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.gcard-media { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--panel-2); }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; }
.gcard-body { display: grid; align-content: start; gap: 6px; min-width: 0; padding-right: 26px; }
.gcard h3 { font-size: 16px; font-weight: 700; line-height: 1.2; }
.gcard-city { font-size: 13px; color: var(--muted); }
.gcard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gcard-actions .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
.gcard-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.gcard-close:hover { color: var(--fg); background: var(--panel-2); }
.gcard-close svg { width: 16px; height: 16px; }

.gchips { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.gchips::-webkit-scrollbar { display: none; }
.gchip { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 14px; transition: border-color .3s, background .3s; }
.gchip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gchip:hover { border-color: var(--line-2); }
.gchip[aria-pressed="true"] { border-color: var(--accent-text); background: rgba(245, 179, 1, .08); }
.gchip small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .globe-card { aspect-ratio: 1 / 1.05; }
}
@media (max-width: 560px) {
  .hud { inset: 14px; }
  .hud-tl, .hud-bl { left: 38px; } .hud-tr { display: none; }
  .globe-card { aspect-ratio: 1 / 1.25; border-radius: 20px; }
  .gcard { grid-template-columns: 76px minmax(0, 1fr); left: 10px; bottom: 10px; width: calc(100% - 20px); }
  .globe-hint { bottom: 20px; font-size: 12px; }
  .globe-reset { right: 12px; top: 44px; bottom: auto; }
}

/* ============ SECCIONES ============ */
.sec { padding-block: clamp(90px, 11vw, 150px); position: relative; }
.sec-alt { background: var(--ink-2); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 60px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-title { display: grid; gap: 20px; min-width: 0; max-width: 820px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 0 0 12px; }
.svc h3 { transition: color .3s; }
.svc:hover h3 { color: var(--accent-text); }
.svc-media { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--panel-2); }
.svc-media img, .svc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; }
.svc-media video { opacity: 0; }
.svc-media video.on { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.svc-ico { width: 28px; height: 28px; color: var(--accent-text); display: grid; place-items: center; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.svc h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; line-height: 1.25; }
.svc p { color: var(--fg-3); font-size: 15.5px; }
.svc-for { margin-top: auto; font-size: 13.5px; color: var(--fg-2); }
@media (max-width: 1040px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Destacados */
.featured { display: grid; gap: clamp(20px, 3vw, 32px); }
.feat { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: 14px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); text-align: left; cursor: pointer; width: 100%; transition: border-color .4s; }
.feat:hover { border-color: var(--line-2); }
.feat:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.feat:nth-child(even) .feat-media { order: 2; }
.feat-media { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--panel-2); }
.feat-media img, .feat-media video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feat-media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 15, 0); transition: background .5s; }
.feat:hover .feat-media::after { background: rgba(10, 12, 15, .25); }
.feat-open { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; transform: translateY(10px); opacity: 0; transition: opacity .4s, transform .5s var(--ease); }
.feat-open svg { width: 16px; height: 16px; stroke-width: 2.2; }
.feat:hover .feat-open, .feat:focus-visible .feat-open { opacity: 1; transform: none; }
.feat-copy { display: grid; gap: 14px; padding: clamp(6px, 2vw, 24px); min-width: 0; }
.feat-copy h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 800; line-height: 1.05; }
.feat-copy p { color: var(--muted); max-width: 42ch; }
.feat-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.feat-meta span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; }
@media (max-width: 860px) {
  .feat, .feat:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .feat:nth-child(even) .feat-media { order: 0; }
  .feat-open { opacity: 1; transform: none; }
}

/* Portafolio masonry */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14.5px; color: var(--fg-2); transition: all .3s; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.masonry { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 64px; grid-auto-flow: dense; gap: 16px; }
.mitem { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel); border: 0; padding: 0; cursor: pointer; text-align: left; grid-column: span 4; grid-row: span 5; }
.mitem.xl { grid-column: span 8; grid-row: span 6; }
.mitem.tall { grid-column: span 4; grid-row: span 8; }
.mitem.wide { grid-column: span 6; grid-row: span 5; }
.mitem.sq { grid-column: span 4; grid-row: span 5; }
.mitem img, .mitem video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 15, 0) 45%, rgba(10, 12, 15, .88)); opacity: .85; transition: opacity .4s; pointer-events: none; }
.mitem:hover::after { opacity: 1; }
.mmeta { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px; display: grid; gap: 4px; }
.mmeta .t { font-family: var(--f-display); font-weight: 700; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.2; }
.mmeta .s { font-size: 13px; color: var(--muted); }
.mplay { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 12, 15, .5); border: 1px solid rgba(242, 241, 236, .25); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .3s, color .3s; }
.mplay svg { width: 16px; height: 16px; }
.mitem:hover .mplay { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-text); }
@media (max-width: 1040px) {
  .mitem, .mitem.sq, .mitem.wide { grid-column: span 6; grid-row: span 5; }
  .mitem.xl { grid-column: span 12; grid-row: span 6; }
  .mitem.tall { grid-column: span 6; grid-row: span 8; }
}
@media (max-width: 560px) {
  .masonry { grid-auto-rows: 44px; gap: 10px; }
  .mmeta { padding: 12px; }
  .mplay { width: 34px; height: 34px; top: 10px; right: 10px; }
}

/* Tours */
.tours-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tours-copy { display: grid; gap: 24px; min-width: 0; }
.tours-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.tour-list { display: grid; gap: 12px; }
.tour-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.tour-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.tour-item b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 16px; }
.tour-item small { font-size: 13px; color: var(--muted); }
.tour-item .go { color: var(--accent-text); font-weight: 700; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: gap .3s var(--ease); }
.tour-item:hover, .tour-item.on { border-color: var(--line-2); background: var(--panel-2); }
.tour-item:hover .go { gap: 12px; }
.tour-preview { position: relative; aspect-ratio: 4 / 5; max-height: 720px; max-width: 100%; justify-self: center; width: 100%; border-radius: 26px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.tour-preview video { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.tour-preview video.fade { opacity: 0; }
.tp-hud { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: linear-gradient(180deg, rgba(10, 12, 15, .4), transparent 30%, transparent 65%, rgba(10, 12, 15, .8)); pointer-events: none; }
.tp-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: rgba(10, 12, 15, .6); backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tp-badge svg { width: 16px; height: 16px; color: var(--accent-text); animation: spin 8s linear infinite; }
.tp-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .tours-grid { grid-template-columns: minmax(0, 1fr); } .tour-preview { aspect-ratio: 4 / 4.4; } }
@media (max-width: 480px) { .tour-item { grid-template-columns: 52px minmax(0, 1fr); } .tour-item img { width: 52px; height: 52px; } .tour-item .go { grid-column: 2; } }

/* Proceso */
.steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step-n { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--faint); }
.step h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; }
.step p { color: var(--fg-3); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Contacto */
.cta-title { font-size: clamp(40px, 7vw, 108px); font-weight: 800; line-height: 1; letter-spacing: -.04em; margin-top: 24px; max-width: 14ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 24px; min-width: 0; }
.info-row { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.info-k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-v { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.8vw, 22px); word-break: break-word; }
.copy { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.copy:hover { color: var(--fg); border-color: var(--fg); }
.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.form h3 { font-size: 22px; font-weight: 700; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--fg); font: inherit; font-size: 16px; transition: border-color .3s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { cursor: pointer; margin: 0; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; color: var(--fg-3); transition: all .25s; }
.opts input:checked + span { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); font-weight: 700; }
.opts input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.form-note { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.foot img { height: 20px; width: auto; }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all .3s; }
.socials a:hover { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); }
.socials svg { width: 18px; height: 18px; }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(10, 12, 15, .4); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ============ EXPERIENCIA DE PROYECTO ============ */
.pview { position: fixed; inset: 0; z-index: 70; background: var(--ink); }
.pv-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pv-inner { transition: opacity .45s var(--ease), transform .6s var(--ease); }
.pv-inner.swap { opacity: 0; transform: translateY(24px); }
.pv-close { position: fixed; top: calc(18px + env(safe-area-inset-top, 0px)); right: 18px; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 12, 15, .7); backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .5s var(--ease); }
.pv-close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
.pv-close svg { width: 20px; height: 20px; stroke-width: 2; }
.pv-hero { position: relative; min-height: min(88svh, 900px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.pv-hero-media { position: absolute; inset: 0; z-index: -2; }
.pv-hero-media img, .pv-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.pv-hero-media .bg-blur { position: absolute; inset: 0; filter: blur(40px) brightness(.5); transform: scale(1.2); }
.pv-hero-media .fg-contain { position: absolute; inset: 0; object-fit: contain; }
.pv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 15, .35) 0%, rgba(10, 12, 15, 0) 35%, rgba(10, 12, 15, .75) 78%, var(--ink) 100%); }
.pv-hero-copy { display: grid; gap: 16px; padding-block: 120px clamp(40px, 6vw, 80px); }
.pv-hero-copy h2 { font-size: clamp(36px, 7vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
.pv-city { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.pv-hero-copy .row-btns { margin-top: 10px; }
@media (max-width: 560px) { .pv-hero-copy .row-btns:has(> :nth-child(3)) { flex-direction: column; align-items: stretch; } .pv-hero-copy .row-btns:has(> :nth-child(3)) .btn { width: 100%; } }
.pv-body { display: grid; gap: clamp(60px, 8vw, 110px); padding-block: clamp(40px, 5vw, 70px) 120px; }
.pv-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pv-summary { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.01em; text-wrap: pretty; }
.pv-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pv-facts div { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.pv-facts dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pv-facts dd { margin: 0; text-align: right; }
.pv-h { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; margin-bottom: 24px; }
.pv-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.pv-g { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 0; padding: 0; cursor: zoom-in; grid-column: span 3; aspect-ratio: 4 / 3; }
.pv-g:first-child { grid-column: span 6; aspect-ratio: 16 / 8; }
.pv-g.vert { aspect-ratio: 9 / 12; grid-column: span 2; }
.pv-g img, .pv-g video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pv-g:hover img, .pv-g:hover video { transform: scale(1.04); }
.pv-g figcaption, .pv-g .cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 12.5px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 12, 15, .7); backdrop-filter: blur(6px); }
@media (max-width: 700px) { .pv-g, .pv-g.vert { grid-column: span 6; } .pv-g:first-child { aspect-ratio: 4 / 3; } .pv-info { grid-template-columns: minmax(0, 1fr); } }

.compare { position: relative; aspect-ratio: 1 / 1; max-width: 760px; max-height: 80vh; width: 100%; border-radius: 22px; overflow: hidden; background: #fff; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .cmp-top { clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.cmp-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare input:focus-visible ~ .cmp-handle::after { outline: 2px solid var(--fg); outline-offset: 3px; }
.cmp-lbl { position: absolute; top: 14px; z-index: 2; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(10, 12, 15, .78); padding: 7px 12px; border-radius: 999px; }
.cmp-lbl.l { left: 14px; } .cmp-lbl.r { right: 14px; }

.pv-tour { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: var(--accent); color: var(--accent-ink); transition: transform .5s var(--ease); }
.pv-tour .tag { color: var(--accent-ink); opacity: .75; width: 100%; }
.pv-tour-t { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 5vw, 64px); line-height: 1; }
.pv-tour:hover { transform: translateY(-4px); }
.pv-go { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-ink); color: var(--accent-text); flex: none; transition: transform .5s var(--ease); }
.pv-go svg { width: 22px; height: 22px; stroke-width: 2; }
.pv-tour:hover .pv-go, .pv-next:hover .pv-go { transform: translateX(6px); }
.pv-loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 30px; align-items: center; }
.pv-coords { font-size: clamp(16px, 2vw, 22px); letter-spacing: .06em; }
.pv-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.pv-globe { position: relative; aspect-ratio: 16 / 11; max-width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 40%, #121820 0%, var(--ink) 70%); }
@media (max-width: 760px) { .pv-loc { grid-template-columns: minmax(0, 1fr); } }
.pv-next { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: clamp(240px, 32vw, 420px); padding: clamp(20px, 3vw, 36px); border-radius: 26px; overflow: hidden; border: 0; cursor: pointer; text-align: left; isolation: isolate; }
.pv-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.pv-next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 15, .1), rgba(10, 12, 15, .85)); }
.pv-next:hover img { transform: scale(1.05); }
.pv-next-copy { display: grid; gap: 8px; min-width: 0; }
.pv-next-t { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4vw, 52px); line-height: 1.02; }
.pv-next .pv-go { background: var(--accent); color: var(--accent-ink); }

/* Visor */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 10, 12, .95); backdrop-filter: blur(10px); display: grid; place-items: center; padding: calc(80px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.lb-stage { max-width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; }
.lb-stage video, .lb-stage img { max-height: calc(100svh - 120px); max-width: 100%; border-radius: 14px; background: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   GLOBO SATELITAL (MapLibre) — capas, pantalla completa y visor del tour
   ========================================================================== */
.globe-card { background: #000; }
.sg-stars, .sg-map, .sg-clouds { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-map { background: transparent; }
.sg-map canvas:focus { outline: none; }
.sg-clouds { display: none; pointer-events: none; z-index: 2; }
.globe-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; transition: opacity .6s; font-size: 12px; }
.globe-loading span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent-text); animation: spin 1s linear infinite; }
.globe-loading.done { opacity: 0; }

/* Marcadores sobre el satélite: el nombre aparece al acercarse */
.maplibregl-marker.gpin { position: absolute; left: 0; top: 0; }
.sg-zoomed .gpin .gpin-lbl { opacity: 1; transform: none; }
.gpin.sg-static { pointer-events: none; }
.gcard-addr { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Controles del mapa con los colores de la marca */
.globe-card .maplibregl-ctrl-top-right { top: 56px; right: 12px; }
.maplibregl-ctrl-group { background: rgba(10, 12, 15, .82) !important; border: 1px solid var(--line); border-radius: 12px !important; box-shadow: none !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 36px !important; height: 36px !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-attrib { background: rgba(10, 12, 15, .7) !important; color: var(--muted) !important; font-size: 11px; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-cooperative-gesture-screen { font-family: var(--f-body) !important; font-size: 15px !important; background: rgba(10, 12, 15, .55) !important; }
.globe-card .maplibregl-ctrl-bottom-right { bottom: 64px; }

/* Botones del globo */
.globe-expand { position: absolute; right: 22px; bottom: 18px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 12, 15, .7); backdrop-filter: blur(8px); cursor: pointer; display: grid; place-items: center; }
.globe-expand svg { width: 18px; height: 18px; }
.globe-expand:hover { border-color: var(--fg); }
.globe-expand .i-close { display: none; }
.globe-full .globe-expand .i-open { display: none; }
.globe-full .globe-expand .i-close { display: block; }
.globe-card .globe-reset { right: 76px; }

/* Pantalla completa (explorar o vuelo hacia un tour) */
.globe-card.globe-full { position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0; aspect-ratio: auto; max-width: none; transform: none !important; }
.globe-full .hud { inset: calc(22px + env(safe-area-inset-top, 0px)) 22px calc(22px + env(safe-area-inset-bottom, 0px)); }
body.globe-full-open { overflow: hidden; }
body.globe-full-open .wa-float, body.globe-full-open .nav { visibility: hidden; }

/* Visor del tour 360° */
.tv { position: fixed; inset: 0; z-index: 95; background: #000; display: flex; flex-direction: column; }
.tv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(10, 12, 15, .92); border-bottom: 1px solid var(--line); }
.tv-title { flex: 1; min-width: 0; }
.tv-title strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-title small { color: var(--muted); font-size: 12px; }
.tv iframe { flex: 1; width: 100%; border: 0; background: #000; }
.tv-short { display: none; }
@media (max-width: 640px) { .tv-long { display: none; } .tv-short { display: inline; } }
.fade { position: fixed; inset: 0; z-index: 99; background: #000; opacity: 0; pointer-events: none; transition: opacity .5s; }
.fade.on { opacity: 1; }
.pv-addr { color: var(--fg-3); font-size: 15px; margin-bottom: 8px; }
@media (max-width: 560px) {
  .globe-card .maplibregl-ctrl-top-right { top: 44px; right: 6px; }
  .globe-expand { right: 12px; bottom: auto; top: 96px; }
  .globe-card .globe-reset { right: 12px; top: 44px; }
  .globe-card .maplibregl-ctrl-top-right { display: none; }
}

/* ============ AJUSTES UI v2.1 ============ */
/* Celular y tablet: el globo sube justo después del título */
@media (max-width: 960px) {
  .hero-copy { display: contents; }
  .hero-grid { gap: 22px; }
  .hero .eyebrow { order: 1; }
  .hero-title { order: 2; }
  .globe-card { order: 3; }
  .hero-sub { order: 4; }
  .hero-ctas { order: 5; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
  .hero-title { font-size: clamp(32px, 9.4vw, 40px); letter-spacing: -.03em; }
  .globe-card { aspect-ratio: 1 / 1.08; }
  .services { gap: 44px; }
}

/* ==========================================================================
   CS DESIGN 2.1 — MOTION, MICROINTERACCIONES Y OVERLAYS
   Curvas: --ease (expo.out), --ease-ui (power4.out), --ease-io (expo.inOut)
   ========================================================================== */
:root {
  --ease-ui: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.87, 0, .13, 1);
  --t-fast: .25s; --t-mid: .45s; --t-slow: .7s;
}

/* Mientras GSAP prepara la secuencia del hero, sus piezas esperan ocultas (máx. 3,5 s) */
html.js-motion [data-hero], html.js-motion #globeCard, html.js-motion .gchips, html.js-motion .hero-atmos { visibility: hidden; }

/* Bloqueo de scroll al abrir overlays (se restaura a la misma posición) */
html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- Atmósfera del hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero-atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ha-glow { position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 179, 1, .07), rgba(140, 153, 166, .05) 45%, transparent 70%); }
.ha-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 96px 96px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%); }

/* ---------- HUD ---------- */
.hud-scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 179, 1, .7), transparent); opacity: 0; }
.hud-tl .rec { animation: none; }
.hud.live .hud-tl .rec { animation: blink 2.4s steps(2) infinite; }
.hud-tl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(56vw, 440px); }
.hud-bl { transition: color .4s; }
.globe-card.is-flying .hud-bl { color: var(--accent-text); }
/* Cuando hay un proyecto elegido, el resto de puntos pasa a segundo plano */
.globe-card.has-selection .gpin:not(.is-active) { opacity: .45; }
.gpin { transition: opacity .5s var(--ease); }
.gpin.is-hover .gpin-dot::before { transform: scale(1.35); box-shadow: 0 0 0 7px rgba(245, 179, 1, .22); }
.gpin.is-hover .gpin-lbl { opacity: 1; transform: none; }

/* Tarjeta del globo: entra y sale con estado, no de golpe */
.gcard { transform-origin: 0% 100%; }

/* ---------- Botones: el texto rueda y la flecha avanza ---------- */
.btn { position: relative; overflow: hidden; transition: background .35s var(--ease-ui), color .35s var(--ease-ui), border-color .35s var(--ease-ui), transform .5s var(--ease-ui); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn svg { transition: transform .45s var(--ease-ui); }
.btn:hover svg { transform: translateX(3px); }
.btn-t { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.btn-t > span { display: block; transition: transform .5s var(--ease-ui); }
.btn-t > span + span { position: absolute; left: 0; top: 100%; }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn-t > span { transform: translateY(-100%); } }

/* ---------- Navegación ---------- */
.nav { transition: background .5s var(--ease-ui), border-color .5s var(--ease-ui), transform .6s var(--ease-ui), backdrop-filter .5s; }
.nav.scrolled { background: var(--nav-bg); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.mobile-menu { clip-path: inset(0 0 100% 0); transition: clip-path .75s var(--ease-io), visibility .75s; }
.mobile-menu a:not(.btn) { overflow: hidden; }
.mobile-menu .mm-i { display: inline-block; }

/* ---------- Tarjetas de proyecto: zoom leve, borde que responde, meta que entra ---------- */
.feat, .mitem { transition: border-color .5s var(--ease-ui), box-shadow .6s var(--ease-ui); }
/* Inclinación 3D mínima (máx. 3°) solo en la imagen del destacado */
.feat { --rx: 0deg; --ry: 0deg; }
.feat-media { transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .9s var(--ease-ui); }
.feat:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(245, 179, 1, .25); }
/* El zoom usa la propiedad `scale`, independiente del parallax (transform) de GSAP */
.feat-media img, .feat-media video, .mitem img, .mitem video, .svc-media img, .tour-preview video { transition: scale 1.2s var(--ease-ui), opacity .5s; }
.feat:hover .feat-media img, .feat:hover .feat-media video, .mitem:hover img, .mitem:hover video, .svc:hover .svc-media img { scale: 1.03; }
.feat-open svg { transition: transform .45s var(--ease-ui); }
.feat:hover .feat-open svg { transform: translateX(4px); }
.mitem { box-shadow: inset 0 0 0 1px rgba(242, 241, 236, 0); }
.mitem:hover { box-shadow: inset 0 0 0 1px rgba(245, 179, 1, .35); }
.mmeta { transform: translateY(6px); transition: transform .6s var(--ease-ui); }
.mitem:hover .mmeta, .mitem:focus-visible .mmeta { transform: none; }
.mmeta .s { opacity: .75; transition: opacity .5s var(--ease-ui); }
.mitem:hover .mmeta .s { opacity: 1; }
.mplay { transition: background .35s var(--ease-ui), color .35s, border-color .35s, transform .5s var(--ease-ui); }
.mitem:hover .mplay { transform: scale(1.08); }
.tour-item .go svg { transition: transform .45s var(--ease-ui); }
.tour-item:hover .go svg { transform: translateX(4px); }
.chip, .gchip, .tag { transition: background .35s var(--ease-ui), color .35s var(--ease-ui), border-color .35s var(--ease-ui); }


/* ---------- Transición tarjeta → proyecto ---------- */
.morph { position: fixed; left: 0; top: 0; width: 100vw; z-index: 80; overflow: hidden; pointer-events: none; will-change: clip-path; background: var(--panel); }
.morph img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pview { opacity: 1; }
.pview[data-state="opening"] .pv-inner, .pview[data-state="closing"] .pv-inner { pointer-events: none; }

/* ---------- Visor (lightbox) con estados ---------- */
.lightbox { background: rgba(8, 10, 12, 0); backdrop-filter: blur(0); transition: background .5s var(--ease-ui), backdrop-filter .5s; }
.lightbox[data-state="open"] { background: rgba(8, 10, 12, .95); backdrop-filter: blur(10px); }
.lb-stage { transition: opacity .5s var(--ease-ui), transform .6s var(--ease-ui); opacity: 0; transform: scale(.95); }
.lightbox[data-state="open"] .lb-stage { opacity: 1; transform: none; }
.lightbox .pv-close { opacity: 0; transition: opacity .4s .1s; }
.lightbox[data-state="open"] .pv-close { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 12, 15, .7); cursor: pointer; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .45s var(--ease-ui); }
.lb-nav svg { width: 20px; height: 20px; stroke-width: 2; }
.lb-nav:hover { border-color: var(--fg); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); } .lb-next:hover { transform: translateY(-50%) translateX(3px); }
.lb-count { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: none; } .lb-prev:hover, .lb-next:hover { transform: none; } }

/* Visor del tour y fundido */
.tv { opacity: 1; }

/* ---------- Cursor (solo escritorio con mouse) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 5px; height: 5px; background: var(--accent-text); }
.cursor-ring { width: 30px; height: 30px; border: 1px solid var(--cursor-line); display: grid; place-items: center; transition: width .45s var(--ease-ui), height .45s var(--ease-ui), background .35s, border-color .35s, opacity .3s; }
.cursor-ring em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .25s; }
.cursor.is-link .cursor-ring { width: 44px; height: 44px; border-color: rgba(245, 179, 1, .6); }
.cursor.is-media .cursor-ring { width: 68px; height: 68px; background: var(--accent); border-color: var(--accent-text); }
.cursor.is-media .cursor-ring em { opacity: 1; }
.cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none !important; } }

/* ---------- Movimiento reducido: todo visible, sin desplazamientos ---------- */
@media (prefers-reduced-motion: reduce) {
  .feat-media { transform: none !important; }
  .btn:hover, .btn:hover svg, .btn:hover .btn-t > span { transform: none !important; }
  .hud-scan { display: none; }
}


/* ==========================================================================
   MODO CLARO / OSCURO
   Oscuro es el diseño base (arriba, en :root). El claro se activa:
   · con el botón (guarda la elección en este navegador), o
   · si el sistema del visitante está en modo claro y no ha elegido.
   Los medios (globo, videos, visor, portadas) siempre quedan en oscuro:
   son "ventanas" a la imagen y su texto va en blanco sobre ella.
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --ink: #F3F2EE; --ink-2: #EAE8E2; --panel: #FFFFFF; --panel-2: #F0EEE9;
  --line: #DCD9D1; --line-2: #BDB8AD; --fg: #111317; --fg-2: #2A2F35; --fg-3: #4D535B; --muted: #5E646C; --faint: #CFCAC0;
  --accent: #F5B301; --accent-ink: #0A0C0F; --accent-text: #8A5E00;
  --nav-bg: rgba(243, 242, 238, .8); --grid-line: rgba(17, 19, 23, .055); --hover: rgba(17, 19, 23, .05); --cursor-line: rgba(17, 19, 23, .35);
  color-scheme: light;
  }
  :root:not([data-theme="dark"]) .brand img, :root:not([data-theme="dark"]) .foot img { filter: invert(1) brightness(.12); }
}
:root[data-theme="light"] {
  --ink: #F3F2EE; --ink-2: #EAE8E2; --panel: #FFFFFF; --panel-2: #F0EEE9;
  --line: #DCD9D1; --line-2: #BDB8AD; --fg: #111317; --fg-2: #2A2F35; --fg-3: #4D535B; --muted: #5E646C; --faint: #CFCAC0;
  --accent: #F5B301; --accent-ink: #0A0C0F; --accent-text: #8A5E00;
  --nav-bg: rgba(243, 242, 238, .8); --grid-line: rgba(17, 19, 23, .055); --hover: rgba(17, 19, 23, .05); --cursor-line: rgba(17, 19, 23, .35);
  color-scheme: light;
}
:root[data-theme="light"] .brand img, :root[data-theme="light"] .foot img { filter: invert(1) brightness(.12); }

/* Zonas que siempre son oscuras */
.preloader, .globe-card, .pv-hero, .tv, .lightbox, .morph, .feat-media, .mitem, .tour-preview, .pv-next, .pv-g, .pv-globe, .compare, .pv-close {
  --ink: #0A0C0F; --ink-2: #0E1115; --panel: #12161B; --panel-2: #181D23; --line: #232A32; --line-2: #3A424C;
  --fg: #F2F1EC; --fg-2: #D3D6DA; --fg-3: #A3A9B2; --muted: #9AA1AB; --faint: #2A323C; --accent-text: #F5B301;
  --hover: rgba(242, 241, 236, .06); color-scheme: dark;
  color: var(--fg);
}

/* Botón de tema */
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; flex: none; transition: border-color .35s, background .35s, transform .6s var(--ease-ui); }
.theme-btn:hover { border-color: var(--line-2); background: var(--hover); }
.theme-btn:active { transform: rotate(-30deg) scale(.94); }
.theme-btn svg { width: 19px; height: 19px; grid-area: 1 / 1; transition: opacity .4s var(--ease-ui), transform .6s var(--ease-ui); }
.theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-btn .i-moon { opacity: 1; transform: none; }
.is-light .theme-btn .i-sun { opacity: 1; transform: none; }
.is-light .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-row .nav-links { margin-left: auto; margin-right: 6px; }

/* Cambio de tema: el nuevo tema se abre en círculo desde el botón (si el navegador lo permite) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-fade, html.theme-fade * { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }

/* Ajustes finales de tema */
.pv-go { color: var(--accent) !important; }
.pv-next .pv-go { color: var(--accent-ink) !important; }
.brand small { white-space: nowrap; }
@media (max-width: 430px) { .brand small { font-size: 9.5px; letter-spacing: .08em; } .nav-tools { gap: 8px; } }
@media (max-width: 360px) { .brand small { display: none; } }

/* ==========================================================================
   PRELOADER — las palabras de CS Design pasan una a una mientras carga
   ========================================================================== */
.preloader { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--fg); display: none; padding: calc(28px + env(safe-area-inset-top, 0px)) var(--gut) calc(28px + env(safe-area-inset-bottom, 0px)); }
html.js-preload .preloader { display: grid; grid-template-rows: auto 1fr auto; }
html.js-preload body { overflow: hidden; }
.pl-logo { height: 22px; width: auto; flex: none; }
.pl-words {
  position: relative; align-self: center; display: grid; place-items: center;
  width: 100%; padding: .15em 0; text-align: center;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 7vw, 104px);
  line-height: .95; letter-spacing: -.035em;
}
.pl-word {
  grid-area: 1 / 1; max-width: 100%;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none;
}
.pl-word:first-child { opacity: 1; visibility: visible; transform: none; }
.pl-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pl-count { font-size: clamp(28px, 4vw, 48px); letter-spacing: 0; color: var(--fg); font-variant-numeric: tabular-nums; }
.pl-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 560px) { .pl-foot span:first-child { display: none; } }

/* ==========================================================================
   SHOWREEL — el video crece de marco a pantalla completa con el scroll
   ========================================================================== */
.reel { position: relative; padding-block: clamp(20px, 4vw, 60px) 0; }
.reel-pin { height: 100svh; min-height: 520px; display: grid; place-items: center; padding-inline: var(--gut); }
.reel-frame { position: relative; width: 100%; height: 100%; max-height: 100svh; overflow: hidden; border-radius: 24px; background: #000; color: #F2F1EC; clip-path: inset(0 0 0 0 round 24px); }
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 15, .35) 0%, rgba(10, 12, 15, 0) 30%, rgba(10, 12, 15, .15) 55%, rgba(10, 12, 15, .82) 100%); pointer-events: none; }
.reel-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 22px 26px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 241, 236, .85); }
.reel-hud span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.reel-hud .rec { width: 8px; height: 8px; border-radius: 50%; background: #FF4D3D; animation: blink 2.4s steps(2) infinite; }
.reel-copy { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 18px; justify-items: start; padding-bottom: clamp(28px, 5vw, 64px); }
.reel-copy .eyebrow { color: var(--accent); }
.reel-title { font-size: clamp(36px, 6.4vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.04em; max-width: 13ch; }
@media (max-width: 760px) {
  .reel-pin { height: auto; min-height: 0; }
  .reel-frame { height: auto; aspect-ratio: 4 / 5; border-radius: 20px; clip-path: none; }
  .reel-hud { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .reel-hud .rec { animation: none; } }
@media (min-width: 761px) {
  /* En escritorio el marco ocupa todo el ancho; el recorte inicial (clip-path) crea el "marco" que se abre con el scroll */
  .reel-pin { padding-inline: 0; }
  .reel-frame { border-radius: 0; clip-path: inset(0 0 0 0); }
}
