/* Origin 360° — paleta de marca: negro, gris #e8e8e8, menta #d7e4e2, acento #f7ff82 */
:root {
  --ink: #000;
  --ink-2: #0d0f0f;
  --paper: #f4f5f4;
  --gray: #e8e8e8;
  --mint: #d7e4e2;
  --accent: #f7ff82;
  --text: #111;
  --muted: #5d6463;
  --muted-dark: #9aa3a1;
  --line: rgba(0, 0, 0, .12);
  --line-dark: rgba(255, 255, 255, .16);
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
h2 em, h1 em, .cta h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: 14px 22px; border-radius: var(--radius); font: 500 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }

/* Encabezado */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-header.solid { background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px); border-color: var(--line-dark); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .01em; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .lang { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line-dark); padding: 5px 8px; border-radius: var(--radius); }
.nav .btn { color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; font: 500 13px var(--mono); padding: 8px 12px; border-radius: var(--radius); cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.92) 100%); }
.hero > .wrap { width: 100%; }
.hero-inner { position: relative; padding-top: 140px; padding-bottom: 48px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.axis { position: relative; width: 22px; height: 22px; }
.axis::before, .axis::after { content: ""; position: absolute; background: currentColor; }
.axis::before { left: 0; right: 0; top: 50%; height: 1.5px; }
.axis::after { top: 0; bottom: 0; left: 50%; width: 1.5px; }
.hero h1 { font-size: clamp(40px, 7.2vw, 92px); max-width: 15ch; }
.hero .lede { margin-top: 24px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-bottom: 22px; font: 400 12px/1.4 var(--mono); color: rgba(255, 255, 255, .6); border-top: 1px solid var(--line-dark); padding-top: 14px; }

/* Tecnología */
.tech { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.tech-row { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; overflow-x: auto; }
.tech-label { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.tech ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font: 500 14px var(--display); white-space: nowrap; color: #fff; }

/* Secciones */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.kicker { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.section h2 { font-size: clamp(34px, 5vw, 60px); }
.intro { margin-top: 20px; color: var(--muted); max-width: 56ch; }

/* Tours */
.tour { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tour + .tour { margin-top: clamp(56px, 8vw, 104px); }
.tour-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); }
.tour-flip .tour-stage { order: 2; }
.tour-stage { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.tour-stage picture, .tour-stage img { width: 100%; height: 100%; object-fit: cover; }
.tour-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); pointer-events: none; }
.tour-stage.live::after, .tour-stage.live .tour-hint { display: none; }
.tour-play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: none; border: 0; cursor: pointer; color: #fff; font: 500 14px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tour-play .ring { width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); transition: transform .2s ease, background .2s ease; }
.tour-play .ring::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tour-play:hover .ring { transform: scale(1.08); background: rgba(0,0,0,.45); }
.tour-play-label { background: rgba(0,0,0,.55); padding: 7px 12px; border-radius: var(--radius); }
.tour-play[disabled] { cursor: default; }
.tour-play[disabled] .ring::before { background: var(--muted-dark); }
.tour-hint { position: absolute; left: 16px; bottom: 12px; z-index: 1; font: 400 11px var(--mono); color: rgba(255,255,255,.75); }
.tag { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tour-info h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 12px; }
.place { color: var(--muted); font-size: 15px; margin: 6px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.ticks li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); font-size: 15px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 1.5px; background: var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 7.25px; top: 14px; width: 1.5px; height: 12px; background: var(--ink); }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); width: 100%; }
.full-link[hidden] { display: none; }
.full-link { display: inline-block; margin-top: 18px; font: 500 13px var(--mono); }

/* Servicios */
.services { background: var(--mint); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--mint); padding: 32px 26px 28px; display: flex; flex-direction: column; gap: 14px; min-height: 360px; }
.card h3 { font-size: 22px; }
.card p { font-size: 15px; color: #2a2f2e; }
.card .out { margin-top: auto; font: 400 12px/1.5 var(--mono); color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.num { font: 500 12px var(--mono); color: var(--muted); }
.card-dark { background: var(--ink); color: #fff; }
.card-dark p { color: rgba(255,255,255,.8); }
.card-dark .out { color: var(--accent); border-color: var(--line-dark); }
.card-dark .num { color: var(--accent); }

/* Fotogrametría */
.mapping { background: var(--ink); color: #fff; }
.mapping .kicker, .mapping .intro, .mapping .tag { color: var(--muted-dark); }
.map-diagram { width: 100%; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.map-example { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(56px, 8vw, 104px); }
.map-stage { position: relative; aspect-ratio: 2000 / 1371; }
.map-stage img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; }
.map-stage img.active { opacity: 1; }
.map-legend { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: rgba(0,0,0,.7); border-radius: var(--radius); font: 400 11px var(--mono); color: rgba(255,255,255,.8); }
.map-legend[hidden] { display: none; }
.map-legend i { width: 90px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #122040, #2c6e8c, #96c8be, #f7ff82, #fff); }
.map-info h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 12px; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 18px; }
.map-tabs button { flex: 1; padding: 10px 12px; background: none; color: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius); font: 500 13px var(--mono); cursor: pointer; }
.map-tabs button:hover { border-color: var(--accent); }
.map-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.map-desc { color: rgba(255,255,255,.82); min-height: 5.2em; }
.map-note { margin-top: 12px; font: 400 12px var(--mono); color: var(--muted-dark); }
.map-3d { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.map-3d p { margin-top: 12px; font-size: 14px; color: var(--muted-dark); }

/* Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.step-n { font: 500 12px var(--mono); color: var(--muted); }
.steps h3 { font-size: 22px; margin: 14px 0 10px; }
.steps p { font-size: 15px; color: var(--muted); }

/* Contacto */
.cta { background: var(--ink); color: #fff; text-align: center; }
.cta-inner { max-width: 860px; }
.cta h2 { font-size: clamp(36px, 5.5vw, 68px); }
.cta .lede { margin: 22px auto 36px; max-width: 52ch; color: rgba(255,255,255,.78); }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 32px; font: 400 14px var(--mono); color: var(--muted-dark); }
.contact-lines a { color: #fff; }

/* Pie */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding: 36px 0; font-size: 13px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row img { width: 130px; }
.footer-row p { text-align: right; line-height: 1.7; }
.muted { opacity: .7; }

/* Botón flotante WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }

/* Responsivo */
@media (max-width: 1000px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line-dark); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; font-size: 16px; }
  .nav .lang { width: auto; padding: 6px 10px; margin: 8px 0; }
  .nav .btn { width: 100%; justify-content: center; margin-top: 8px; }
  .site-header { background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }
  .tour, .tour-flip, .map-example { grid-template-columns: 1fr; }
  .tech-row { flex-wrap: wrap; gap: 12px 20px; }
  .tech ul { flex-wrap: wrap; gap: 8px 20px; white-space: normal; }
  .tour-flip .tour-stage { order: 0; }
  .tour-stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .grid4, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .hero-meta .coords { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-row p { text-align: left; }
  .actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.map-legend-lines b { width: 18px; height: 1px; background: var(--mint); }
.map-legend-lines b.major { height: 2px; background: var(--accent); margin-left: 6px; }
.model-block { margin-top: clamp(56px, 8vw, 104px); }
.model-stage { border: 1px solid var(--line-dark); }
.model-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.model-cap .full-link { margin-top: 0; color: #fff; }
