/* Landing + /gracias + /privacidad. Light, geofield.com.mx palette (see base.css tokens). */

body { background: #fff; }
h1 { font-size: clamp(28px, 7.6vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 6.2vw, 36px); font-weight: 800; letter-spacing: -0.015em; }
.h3 { font-size: 22px; margin: 0; }
.narrow-sm { max-width: 520px; }
.narrow-md { max-width: 720px; }
.eyebrow { margin: 0 0 8px; font: 700 13px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Strip + header */
.strip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px var(--gutter); background: var(--accent); color: #fff;
  font-size: 13.5px; text-align: center; line-height: 1.35;
}
.strip strong { font-weight: 700; }
.live-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.top { display: flex; justify-content: center; padding-top: 14px; padding-bottom: 4px; }
.logo { height: 64px; width: auto; aspect-ratio: 400 / 150; object-fit: cover; object-position: center 62%; }

/* Hero */
.hero { text-align: center; padding-top: 28px; padding-bottom: 64px; max-width: 820px; }
.callout {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 14px;
  background: var(--accent-bg); color: var(--accent-hover); font-size: 13.5px; font-weight: 600;
}
.hl { color: var(--accent); }
.theme { margin: 0 0 10px; font: 700 15px/1.3 var(--font-body); color: var(--ink); }
.theme span { color: var(--accent-hover); }
.hero h1 { max-width: 760px; margin: 0 auto 28px; }

.vsl { position: relative; margin: 0 auto 28px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 18px 40px -18px rgba(17, 17, 17, .45); }

.btn-cta { min-height: 56px; padding: 16px 28px; font-size: 17px; font-weight: 700; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(74, 163, 58, .7); }
.hero .btn-cta { width: 100%; max-width: 420px; }
.btn-white { background: #fff; color: var(--accent-hover); font-weight: 700; min-height: 56px; padding: 16px 32px; }
.btn-white:hover { background: var(--accent-bg); }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; color: var(--ink-subtle); }
.trust li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 6px; }

.countdown { margin-top: 40px; }
.cd-row { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.cd-row span { display: grid; min-width: 72px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; color: var(--ink-mute); }
.cd-row b { font: 800 26px/1.1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Sections */
.sec { padding: 72px 0; }
.sec-fill { background: var(--fill); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.checks li { position: relative; padding-left: 40px; font-size: 18px; font-weight: 500; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.learn-sub { margin: -0.3em 0 0; font-size: 17px; }
.checks-detail li b { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.checks-detail li { font-size: 16px; font-weight: 400; color: var(--ink-subtle); }

.split { display: grid; gap: 40px; align-items: center; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.flow li { font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.flow li:not(:last-child)::after { content: '→'; color: var(--accent); margin-left: 8px; }
.flow li:last-child { background: var(--accent); color: #fff; border-color: var(--accent); }
.shot { margin: 0; }
.shot img { border-radius: 14px; width: 100%; box-shadow: 0 14px 34px -18px rgba(17, 17, 17, .4); }
.shot figcaption { font-size: 13px; color: var(--ink-mute); margin-top: 8px; }

.instructor { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--accent-bg); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
@media (min-width: 900px) { .avatar { width: 112px; height: 112px; } }
.role { margin: 2px 0 0; }

/* Registration */
.reg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 22px; box-shadow: 0 20px 44px -26px rgba(17, 17, 17, .35); }
.reg-card h2 { margin-bottom: 8px; }
.when { font-weight: 600; color: var(--accent-hover); margin-bottom: 4px; }
.local { margin-bottom: 0; }
#reg-form { margin-top: 28px; }
#reg-form .field { margin-bottom: 20px; }
.ev-pick { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; display: grid; gap: 8px; }
.ev-pick legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.ev-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.ev-opt:hover { border-color: var(--accent-ring); }
.ev-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.ev-opt input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.ev-opt b { display: block; font-size: 15px; color: var(--ink); }
.ev-opt small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ink-subtle); margin-top: 2px; }
.ev-pick .hint { margin: 2px 0 0; }
.ev-pick[aria-invalid=true] .ev-opt { border-color: var(--danger); }
.err { margin: 0; font-size: 14px; color: var(--danger); }
input[aria-invalid=true] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.assure { text-align: center; color: var(--ink-mute); margin: 12px 0 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: '–'; }
details p { color: var(--ink-subtle); margin: 0 0 20px; line-height: 1.65; }

/* Final CTA: geofield green gradient */
.final { padding: 80px 0; text-align: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.final p { color: rgba(255,255,255,.85); }

.footer { padding: 24px var(--gutter) 96px; text-align: center; }
.footer a { color: inherit; }

/* Sticky CTA: always visible */
.sticky-cta {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sticky-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-info { display: none; margin: 0; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-subtle); }
.sticky-info strong { color: var(--ink); }
.sticky-info .live-dot { background: var(--accent); }
.sticky-cta .btn-cta { box-shadow: none; width: 100%; min-height: 50px; }

@media (min-width: 900px) {
  .sec { padding: 88px 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .reg-card { padding: 36px; }
  .sticky-info { display: flex; }
  .sticky-cta .btn-cta { width: auto; padding: 12px 28px; }
}

/* /gracias + /privacidad */
.page-head { padding: 16px 0; border-bottom: 1px solid var(--line); }
.thanks { padding: 48px 0 64px; text-align: center; }
.thanks .actions { display: grid; gap: 10px; max-width: 360px; margin: 24px auto; }
.hello { color: var(--accent-hover); font-weight: 600; margin-bottom: 6px; }
.legal { padding: 32px 0 64px; }
.draft { background: var(--accent-bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; }

h2 { margin-bottom: .6em; }
.final h2 { margin-bottom: .3em; }

/* LiDAR showcase band */
.scan { background: #0b0f0c; color: #fff; padding: 64px 0 28px; text-align: center; overflow: hidden; }
.scan h2 { color: #fff; max-width: 640px; margin: 0 auto; }
.scan .eyebrow { color: var(--accent-light); }
.scan-canvas { display: block; width: 100%; height: clamp(260px, 62vw, 520px); margin-top: 8px; }
.scan-legend { display: flex; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.6); }
.scan-sub { display: block; margin-top: 6px; font-size: .62em; font-weight: 600; color: rgba(255,255,255,.75); }
.scan-legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.scan-legend { flex-wrap: wrap; gap: 8px 16px; }
.ortho-sw { width: 56px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #5e7d3a 0 25%, #a89064 25% 45%, #7a9a4a 45% 70%, #4d6a7a 70% 82%, #c9b88e 82%); }
.ramp { width: 56px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #16341c, #3b8a2d, #4aa33a, #7ecd6a, #d6f0d0); }

/* Deliverables gallery: swipe on mobile, 3 columns on desktop */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; margin-top: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.g-item { margin: 0; scroll-snap-align: center; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 30px -18px rgba(17,17,17,.45); }
.g-item figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-subtle); }
.g-item figcaption b { display: block; color: var(--ink); font-size: 16px; }
.credit { font-size: 12px; color: var(--ink-mute); margin: 12px 0 0; }
@media (min-width: 900px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .scan { padding-top: 96px; }
  .logo { height: 76px; }
}

/* --- Impressive pass --- */
.hero-dots {
  position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 1000px; pointer-events: none; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
/* keep hero copy crisp over the stronger point cloud */
.hero h1, .hero .theme, .hero .trust { text-shadow: 0 0 14px #fff, 0 0 4px #fff; }
.strip, .top, .hero { position: relative; z-index: 1; }

.vsl { box-shadow: 0 0 0 1px rgba(74,163,58,.25), 0 24px 60px -24px rgba(74,163,58,.55), 0 18px 40px -18px rgba(17,17,17,.45); }

.cd-row span { background: #fff; }
.cd-row { gap: 8px; }
.cd-row span { min-width: 64px; }

.scan-canvas { cursor: grab; touch-action: pan-y; }
.scan-canvas:active { cursor: grabbing; }
.drag-hint { color: rgba(255,255,255,.45); }

.g-item img { transition: transform .35s ease, box-shadow .35s ease; }
.g-item:hover img { transform: translateY(-4px); box-shadow: 0 22px 40px -18px rgba(17,17,17,.5); }

/* Scroll reveal (only when JS is on) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Technologies */
.center { text-align: center; margin-left: auto; margin-right: auto; }
#tech-title, #events-title { max-width: 720px; }
.tech-grid { display: grid; gap: 16px; margin-top: 32px; }
.tech { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tech-icon { grid-row: span 2; width: 64px; height: 64px; border-radius: 14px; background: var(--accent-bg); display: grid; place-items: center; }
.tech-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--accent-hover); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tech h3 { font-size: 20px; margin: 4px 0 6px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ink-subtle); }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Event series */
.events { display: grid; gap: 18px; margin-top: 32px; }
.event { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 36px -26px rgba(17,17,17,.4); }
.event h3 { font-size: 21px; line-height: 1.25; margin: 0; }
.event img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.event p { margin: 0; color: var(--ink-subtle); }
.event .btn { margin-top: auto; }
.ev-tag { align-self: flex-start; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.event-1 .ev-tag { background: var(--accent); }
.event-2 .ev-tag { background: var(--accent-hover); }
.event-3 .ev-tag { background: var(--deep); }
.event-1 { border: 2px solid var(--accent); }
.ev-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ev-meta li { display: flex; align-items: center; color: var(--ink-subtle); }
.ev-meta strong { color: var(--ink); }
.ev-meta svg { width: 20px; height: 20px; flex: none; margin-right: 10px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-ev { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); min-height: 52px; font-weight: 700; }
.btn-ev:hover { background: var(--ink); color: #fff; }
.ev-note { margin-top: 20px; max-width: 560px; }

@media (min-width: 900px) {
  .tech-grid, .events { grid-template-columns: repeat(3, 1fr); }
}

/* VSL player (YouTube, muted autoplay → click to unmute) */
.vsl-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vsl-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.vsl.is-ready .vsl-frame { opacity: 1; }
/* iframe is taller than the box: YouTube letterboxes the video and draws its title bar in the
   letterbox, which the box crops away, so only the video itself is visible */
.vsl-frame { overflow: hidden; }
.vsl-frame iframe { position: absolute; left: 0; top: -64px; width: 100%; height: calc(100% + 128px); border: 0; pointer-events: none; }
.vsl-hit { all: unset; position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.vsl-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.vsl-unmute {
  all: unset; box-sizing: border-box; position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 14px 20px 14px 14px;
  border-radius: 16px; background: rgba(17,17,17,.78); color: #fff; cursor: pointer; text-align: left;
  font-size: 14px; line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: nudge 2.4s ease-in-out infinite;
}
.vsl-unmute[hidden] { display: none; }
.vsl-unmute strong { font-size: 15px; }
.vsl-unmute:focus-visible { outline: 3px solid var(--accent-light); }
.vsl-unmute-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); }
.vsl-unmute-icon svg { width: 26px; height: 26px; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.vsl-paused {
  position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(10,15,11,.3); pointer-events: none;
}
.vsl-paused[hidden] { display: none; }
.vsl-bigplay {
  all: unset; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; pointer-events: auto;
  background: rgba(255,255,255,.92); color: var(--accent-hover); box-shadow: 0 0 0 6px rgba(255,255,255,.2);
}
.vsl-bigplay svg { margin-left: 3px; width: 24px; height: 24px; }
.vsl-bigplay:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 4px; }
.vsl.is-ended .vsl-bigplay { display: none; }
.hero .vsl-cta {
  position: absolute; right: 14px; bottom: 16px; width: auto; max-width: none; pointer-events: auto;
  min-height: 0; padding: 9px 16px; font-size: 14px; border-radius: 10px;
}
.vsl.is-ended .vsl-paused { background: rgba(10,15,11,.55); }
.hero .vsl.is-ended .vsl-cta { position: static; min-height: 50px; padding: 12px 22px; font-size: 16px; }

.vsl-pp {
  all: unset; position: absolute; z-index: 4; left: 12px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: rgba(17,17,17,.65); color: #fff;
}
.vsl-pp[hidden] { display: none; }
.vsl-pp svg { width: 20px; height: 20px; }
.vsl-pp .i-play, .vsl.is-playing .vsl-pp .i-pause { display: block; }
.vsl-pp .i-pause, .vsl.is-playing .vsl-pp .i-play { display: none; }
.vsl-pp:focus-visible { outline: 3px solid var(--accent-light); }
.vsl-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.vsl-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }
@media (prefers-reduced-motion: reduce) { .vsl-unmute { animation: none; } }
@media (max-width: 520px) {
  .vsl-unmute { gap: 10px; padding: 10px 14px 10px 10px; font-size: 13px; border-radius: 12px; }
  .vsl-unmute strong { font-size: 13.5px; }
  .vsl-unmute-icon { width: 38px; height: 38px; }
  .vsl-unmute-icon svg { width: 20px; height: 20px; }
  .vsl-bigplay { width: 48px; height: 48px; }
  .vsl-paused { gap: 12px; }
  .hero .vsl-cta { right: 10px; bottom: 12px; padding: 7px 12px; font-size: 13px; }
}

/* Phone country picker (intl-tel-input) */
.iti { width: 100%; }
.iti input[type=tel] { width: 100%; }
.iti__country-container button:focus-visible { outline: 3px solid var(--accent-ring); }
.iti__dropdown-content { border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(17,17,17,.3); }
