*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --obsidian:      #111111;
  --charcoal:      #242424;
  --porcelain:     #F6F2EA;
  --warm-stone:    #D8CDBB;
  --cyan:          #37C8D7;
  --white:         #FFFFFF;
  --teal:          #006B68;
  --terracotta:    #C66A3D;
  --olive:         #3D4A32;
  --bg:            var(--porcelain);
  --ink:           var(--obsidian);
  --muted:         var(--warm-stone);
  --radius-card:   18px;
  --space-section: clamp(72px, 10vw, 140px);
  --top-bar-h:     44px;
  --header-h:      72px;
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar ── */
#top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-bar-h);
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.top-phone {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.top-phone svg { width: 14px; height: 14px; flex-shrink: 0; }
.top-phone:hover { color: var(--cyan); }
.top-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-socials a {
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.top-socials a:hover { color: var(--cyan); }
.top-socials svg { width: 16px; height: 16px; }

/* ── Header ── */
#site-header {
  position: fixed;
  top: var(--top-bar-h);
  left: 0; right: 0;
  z-index: 201;
  height: var(--header-h);
  transition: background 0.4s, backdrop-filter 0.4s;
}
#site-header.scrolled {
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#site-header.nav-open {
  background: rgba(13,13,13,0.95);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.07em;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  z-index: 202;
}
.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--cyan); }

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 202;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Scroll driver / Hero ── */
#scroll-driver {
  position: relative;
  height: 450vh;
}
#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.overlay-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 40%);
  pointer-events: none;
}
.overlay-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.30) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Hero text ── */
#hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
  will-change: opacity, transform;
}
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
#hero-text h1 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(28px, 3.8vw, 58px);
  font-weight: 850;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 36px;
}
.btn {
  display: inline-block;
  background-color: var(--cyan);
  color: var(--obsidian);
  border: none;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background-color: var(--teal);
  color: #ffffff;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  #top-bar { padding: 0 20px; }
  .top-phone span { display: none; }

  .header-inner { padding: 0 20px; }
  .nav-toggle { display: flex; }

  /* Nav panel lateral */
  .nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    background: rgba(13,13,13,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 32px;
    gap: 22px;
    box-shadow: -8px 0 24px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 200;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    font-size: clamp(16px, 4.5vw, 20px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 400;
  }
  .nav a:hover { color: var(--cyan); }

  #hero-text {
    top: 70%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 90vw;
    white-space: normal;
  }
  #hero-text h1 { font-size: clamp(28px, 7vw, 42px); }

  .location-content { flex-direction: column; }
  .location-map iframe { height: 320px; }
}

/* ── Ubicación ── */
#location-page {
  padding-top: calc(var(--top-bar-h) + var(--header-h));
}
.location-banner {
  background: var(--obsidian);
  padding: 56px 40px;
  text-align: center;
}
.location-banner h1 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.location-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-section) 40px;
  display: flex;
  gap: 48px;
  align-items: stretch;
}
.location-card {
  flex: 1 1 320px;
  background: var(--porcelain);
  border: 1px solid var(--warm-stone);
  border-radius: var(--radius-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.location-company {
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--obsidian);
  margin-bottom: 10px;
}
.location-line {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.5;
}
.location-btn {
  margin-top: 24px;
  align-self: flex-start;
}
.location-map {
  flex: 1 1 420px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--warm-stone);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}
