/* =============================================
   NAOS co — Sitio Institucional
   main.css · Julio 2026
   ============================================= */

/* ---- FONTS ---- */
@font-face {
  font-family: 'A Pompadour';
  src: url('../fonts/APompadourText.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'A Pompadour';
  src: url('../fonts/APompadourBold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ---- VARIABLES ---- */
:root {
  --teal: #0d393b;
  --teal-soft: #0f4446;      /* hero/topics — más claro para balance */
  --teal-deep: #082527;
  --cream: #ede8d9;
  --cream-soft: #f5f0e6;
  --gold: #a6804e;
  --gold-soft: #b08f6a;
  --forest: #186d48;
  --ink: #1a1a1a;
  --line: rgba(13,57,59,.2);
  --display: 'A Pompadour', 'Josefin Sans', sans-serif;
  --body: 'Jost', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- PHOTO PLACEHOLDERS (se eliminan cuando hay fotos reales) ---- */
.ph {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(13,57,59,.92) 0%, rgba(24,109,72,.55) 55%, rgba(166,128,78,.65) 100%);
}
.ph::after {
  content: attr(data-label);
  position: absolute; bottom: 10px; left: 12px;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-family: var(--body);
}
.ph::before {
  content: "";position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.08), transparent 50%),
              radial-gradient(ellipse at 80% 90%, rgba(166,128,78,.25), transparent 60%);
}
/* Cuando haya foto real: <img class="cover-img" src="..." alt="..."> dentro de .ph */
.cover-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* =============================================
   HEADER
   ============================================= */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 5vw;
  transition: background .4s, padding .4s;
}
header.scrolled {
  background: rgba(8,37,39,.96);
  padding: 14px 5vw;
  backdrop-filter: blur(8px);
}
/* Force solid header when mobile menu is open */
header.menu-open {
  background: rgba(8,37,39,1);
  backdrop-filter: none;
}
.logo {
  display: flex; align-items: center; gap: 12px;
}
.logo img {
  height: 42px; width: auto;
  filter: brightness(10) sepia(1) saturate(0.3) hue-rotate(10deg) drop-shadow(0 0 6px rgba(237,232,217,.35));
}
.logo-text {
  font-family: var(--display);
  font-weight: 300; font-size: 20px;
  color: #fff; letter-spacing: 6px;
  text-transform: uppercase;
}
.logo-text span { color: var(--gold-soft); font-size: 13px; letter-spacing: 3px; }
nav { display: flex; gap: 34px; align-items: center; }
nav a {
  color: rgba(255,255,255,1);
  font-size: 11.5px; letter-spacing: 3.5px;
  text-transform: uppercase;
  transition: color .3s, box-shadow .3s;
  text-decoration: none;
  padding-bottom: 3px;
}
nav a:not(.nav-cta):hover {
  color: var(--gold-soft);
  box-shadow: 0 2px 0 var(--gold);
}
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold-soft) !important;
  padding: 8px 20px;
}
.nav-cta:hover { background: var(--gold); color: #fff !important; }
.burger {
  display: none; color: #fff; font-size: 22px;
  background: none; border: none; cursor: pointer;
}

/* ---- NAV — B2B DROPDOWN ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
}
.nav-dropdown-menu {
  display: none; position: absolute;
  top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  background: rgba(8,37,39,.97);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  padding: 14px 0;
  min-width: 220px;
  z-index: 110;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.nav-dropdown-menu::before {
  content: ''; position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid rgba(8,37,39,.97);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 28px;
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color .25s, padding-left .25s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--gold-soft);
  padding-left: 34px;
  box-shadow: none;
}
/* Hover open on desktop */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
/* Invisible bridge so mouse can travel to dropdown */
.nav-dropdown::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 18px;
}

/* ---- NAV — ACADEMY "SOON" TAG ---- */
.nav-academy {
  position: relative;
}
.nav-soon {
  font-size: 8px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(166,128,78,.15);
  border: 1px solid rgba(166,128,78,.3);
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  position: relative; top: -1px;
}

/* ---- METHOD — DUAL CTA BUTTONS ---- */
.method-ctas {
  margin-top: 34px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.method-cta--gold {
  background: var(--gold); color: #fff !important;
  border-color: var(--gold);
}
.method-cta--gold:hover {
  background: var(--gold-soft); color: #fff;
}

/* ---- CITY OTHER CONDITIONAL (used in modals) ---- */
.city-other-wrap { display: none; margin-top: 12px; }
.city-other-wrap.visible { display: block; }

/* ---- MODAL — COMPACT VARIANT (Academy) ---- */
.modal-box--compact { max-width: 520px; }

/* ---- FORM VALIDATION — shared across all modals ---- */
.field.error label { color: #e05252; }
.field.error input,
.field.error select,
.field.error textarea,
.field.error .phone-code,
.field.error .phone-wrap input[type="tel"] {
  border-bottom-color: #e05252;
}
.form-error-msg {
  display: none;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #e05252; margin-bottom: -8px;
}
.form-error-msg.visible { display: block; }
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}
.field.shake { animation: fieldShake .35s ease; }

/* =============================================
   HERO — gradiente suavizado para más claridad
   ============================================= */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end; color: #fff; padding-bottom: 8vh;
}
.hero .ph, .hero .hero-bg { position: absolute; inset: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(8,37,39,.65) 0%,
      rgba(8,37,39,.10) 18%,
      transparent 30%),
    linear-gradient(to top,
      rgba(8,37,39,.88) 0%,
      rgba(8,37,39,.35) 35%,
      rgba(8,37,39,.10) 55%,
      transparent 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 0 5vw 6vh; max-width: 780px;
}
.hero-eyebrow {
  font-size: 11.5px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(20px, 4vw, 36px); line-height: 1.15;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 24px;
}
.hero p {
  font-size: clamp(15px, 1.4vw, 19px);
  max-width: 560px; color: rgba(255,255,255,.85); font-weight: 300;
}
/* ---- SPINNING CIRCLE ---- */
.spin-circle {
  position: absolute; z-index: 1;
bottom: 36px; right: 48px;
  z-index: 1;
}
.spin-circle > svg:first-child {
  animation: spinText 20s linear infinite;
}
@keyframes spinText {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-iso {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  color: rgba(237,232,217,.75);
  font-family: var(--display), 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  user-select: none;
}

/* .hero-scroll — fusionado con .spin-circle (esquina inferior derecha) */

/* =============================================
   SHARED SECTION STYLES
   ============================================= */
section { padding: 110px 5vw; }
.eyebrow {
  font-size: 11px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2;
  color: var(--teal); text-transform: uppercase;
  letter-spacing: .08em;
}
.lede {
  font-size: 17px; max-width: 620px;
  margin-top: 20px; color: #3d3d3d;
}

/* =============================================
   TOPICS CAROUSEL — teal suave (#0f4446)
   ============================================= */
.topics {
  background: var(--teal-soft);
  color: #fff; padding: 110px 0;
}
.topics-head {
  padding: 0 5vw;
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 20px;
  margin-bottom: 56px;
}
.topics .h2 { color: #fff; }
.topics-counters {
  display: flex; align-items: flex-start; gap: 20px;
}
.topics-count {
  font-family: var(--display); font-size: 58px;
  color: rgba(237,232,217,.7); line-height: 1;
}
.topics-count small {
  display: block; font-family: var(--body);
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}
.topics-divider {
  width: 1px; height: 52px; margin-top: 4px;
  background: rgba(166,128,78,.35);
}
.topics-count-link {
  text-decoration: none; display: block; text-align: left;
}
.topics-count-link .topics-count {
  color: var(--gold-soft);
}
.topics-count-link small {
  color: rgba(200,169,110,.7);
}
.topics-count-link:hover .topics-count { color: var(--gold); }
.topics-count-link:hover small { color: var(--gold-soft); }
.rail-wrap { overflow: hidden; position: relative; }
.rail {
  display: flex; gap: 24px; width: max-content;
  animation: rail 60s linear infinite;
  padding: 0 5vw;
}
/* hover-pause removed — drag JS handles play/pause */
@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.topic { width: 290px; flex-shrink: 0; }
.topic .ph, .topic .topic-img-wrap {
  height: 360px; border-radius: 2px;
  margin-bottom: 18px; overflow: hidden;
  transition: transform .5s;
}
.topic:hover .ph, .topic:hover .topic-img-wrap { transform: translateY(-6px); }
.topic-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.topic-num { font-size: 11px; letter-spacing: 3px; color: var(--gold-soft); }
.topic h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 19px; letter-spacing: .08em;
  text-transform: uppercase; margin: 6px 0 6px;
  line-height: 1.35; min-height: 2.7em;
}
.topic p { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.6; }
.rail-hint {
  padding: 36px 5vw 0;
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* =============================================
   3 DOORS
   ============================================= */
.doors {
  background: var(--teal-deep);
  padding: 110px 5vw; color: #fff;
}
.doors-head { margin-bottom: 56px; max-width: 640px; }
.doors .h2 { color: #fff; }
.doors-subtitle {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.doors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.door {
  position: relative; height: 480px;
  overflow: hidden; border-radius: 2px;
  display: flex; align-items: flex-end; cursor: pointer;
}
.door .ph, .door .door-bg { position: absolute; inset: 0; transition: transform .7s ease; }
.door .door-bg { width: 100%; height: 100%; object-fit: cover; }
.door:hover .ph, .door:hover .door-bg { transform: scale(1.05); }
.door-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,37,39,.9), rgba(8,37,39,.05) 60%);
  transition: background .5s;
}
.door-inner { position: relative; z-index: 2; padding: 34px; }
.door-tag {
  font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-soft);
}
.door h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 28px; letter-spacing: .1em;
  text-transform: uppercase; margin: 10px 0 8px;
}
.door p {
  font-size: 13.5px; color: rgba(255,255,255,.8);
  max-width: 280px; margin-bottom: 16px;
}
.door-link {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: #fff;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px; display: inline-block;
  transition: color .3s;
}
.door:hover .door-link { color: var(--gold-soft); }

/* =============================================
   METHOD
   ============================================= */
.method { background: var(--cream); padding: 80px 5vw; }
.method-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 70px; align-items: center;
}
.method-img {
  overflow: hidden;
}
.method-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  min-height: 380px;
}
.method-sub {
  font-size: 15px; color: #4a4a4a; line-height: 1.7;
  margin-top: 20px; max-width: 480px;
}
.method blockquote {
  font-family: var(--display); font-size: 20px;
  color: var(--teal); line-height: 1.5;
  margin-top: 28px; letter-spacing: .05em;
  border-left: 2px solid var(--gold); padding-left: 22px;
  text-transform: uppercase;
}
.method-cta {
  margin-top: 34px; display: inline-block;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--teal);
  padding: 15px 34px; transition: all .3s;
}
.method-cta:hover { background: var(--teal); color: #fff; }

/* =============================================
   TRAJECTORY
   ============================================= */
.story { background: var(--cream-soft); padding: 110px 5vw; }
.story .h2 { font-size: 1.8rem; }
.story-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 70px; align-items: center;
}
.story-fig { margin: 0; }
.story .ph, .story .story-img { height: 520px; border-radius: 2px; overflow: hidden; }
.story .story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-caption {
  margin-top: 14px; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); text-align: center;
}
.stats {
  display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap;
  justify-content: center; text-align: center;
}
.stat b {
  font-family: var(--display); font-weight: 300;
  font-size: 36px; color: var(--teal); display: block; line-height: 1;
}
.stat i {
  font-style: normal; font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-top: 8px;
}
.story-gold {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 2rem;
}
.refs { margin-top: 36px; font-size: 13px; color: #5a5a5a; font-style: italic; }
.story-more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); transition: color .3s;
}
.story-more:hover { color: var(--gold); }
.arrow-right {
  display: inline-block; transition: transform .3s;
  font-size: 16px;
}
.story-more:hover .arrow-right { transform: translateX(5px); }

/* =============================================
   MEMORIES
   ============================================= */
.memories { background: var(--cream-soft); padding: 0 5vw 110px; }
.mem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px; margin-top: 52px;
}
.mem .ph, .mem .mem-img { height: 380px; border-radius: 2px; overflow: hidden; }
.mem .mem-img img { width: 100%; height: 100%; object-fit: cover; }
.mem figcaption { margin-top: 14px; font-size: 13px; letter-spacing: 1px; color: #4c4c4c; }
.mem figcaption b { font-weight: 500; color: var(--teal); }
.mem-detail {
  display: block; margin-top: 6px;
  font-size: 13px; color: #6a6a6a; line-height: 1.6;
  font-style: italic;
}

/* =============================================
   INSTAGRAM
   ============================================= */
.social { background: var(--cream); padding: 60px 5vw; }
.social-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 18px;
  margin-bottom: 48px;
}
.ig-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.ig-grid a { aspect-ratio: 1/1; border-radius: 2px; overflow: hidden; display: block; }
.ig-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-grid a:hover img { transform: scale(1.04); }
.social-links { display: flex; gap: 26px; }
.social-links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); border-bottom: 1px solid var(--gold); padding-bottom: 4px;
  transition: color .3s;
}
.social-links a:hover { color: var(--gold); }
.social-links a svg { flex-shrink: 0; }

/* =============================================
   CTA / FORM
   ============================================= */
.cta { background: var(--teal); color: #fff; padding: 120px 5vw; }
.cta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.cta .h2 { color: #fff; }
.cta-side p { margin-top: 22px; color: rgba(255,255,255,.8); max-width: 420px; }
.cta-wa {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px;
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--gold);
  padding: 15px 30px; transition: all .3s;
}
.cta-wa:hover { background: var(--gold); color: #fff; }
.form { display: grid; gap: 22px; }
.field label {
  display: block; font-size: 10.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  color: #fff; font-family: var(--body); font-size: 15px;
  padding: 10px 2px; outline: none; transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field select { appearance: none; cursor: pointer; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.submit {
  background: var(--gold); color: #fff; border: none;
  font-family: var(--body); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; padding: 18px; cursor: pointer;
  transition: background .3s; margin-top: 6px;
}
.submit:hover { background: var(--gold-soft); }
.form-note { font-size: 11px; color: rgba(255,255,255,.5); }
/* Success/error states */
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success h3 {
  font-family: var(--display); font-weight: 300; font-size: 24px;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.form-success p { color: rgba(255,255,255,.8); }
.form-success.visible { display: block; }
.form.hidden { display: none; }

/* =============================================
   MODAL — AGENCIES
   ============================================= */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(8,37,39,.85);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--teal);
  color: #fff;
  width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
  padding: 52px 48px 44px;
  border-radius: 2px; position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none;
  color: rgba(255,255,255,.6); font-size: 28px;
  cursor: pointer; line-height: 1; transition: color .3s;
}
.modal-close:hover { color: #fff; }
.modal-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(20px, 2.5vw, 28px);
  text-transform: uppercase; letter-spacing: .08em;
  color: #fff; margin: 8px 0 10px;
}
.modal-sub {
  font-size: 14px; color: rgba(255,255,255,.7);
  margin-bottom: 30px; max-width: 480px;
}
/* Phone field layout */
.phone-wrap {
  display: flex; gap: 12px;
}
.phone-code {
  width: 110px !important; flex-shrink: 0; flex-grow: 0;
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  color: #fff; font-family: var(--body); font-size: 15px;
  padding: 10px 2px; outline: none; cursor: pointer;
  appearance: none; transition: border-color .3s;
}
.phone-code:focus { border-color: var(--gold); }
.phone-code option { color: var(--ink); }
.phone-wrap input[type="tel"] {
  flex: 1; width: auto !important; min-width: 0;
}
.field-phone { max-width: 420px; }
/* ---- FORM VALIDATION — error state ---- */
/* Label rojo */
.field.error label {
  color: #e05252;
}
/* Borde inferior rojo en input / textarea / select / phone-code */
.field.error input,
.field.error select,
.field.error textarea,
.field.error .phone-code,
.field.error .phone-wrap input[type="tel"] {
  border-bottom-color: #e05252;
}
/* Mensaje de error encima del botón */
.form-error-msg {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #e05252; margin-bottom: -8px;
}
/* Micro-shake 5px */
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}
.field.shake { animation: fieldShake .35s ease; }

/* Scroll en modal para mobile */
@media (max-width: 760px) {
  .modal-box { padding: 40px 24px 32px; }
  .phone-code { width: 95px; font-size: 14px; }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #ffffff;
  color: var(--ink);
  padding: 70px 5vw 36px;
  border-top: 1px solid rgba(13,57,59,.1);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(13,57,59,.12);
}
.foot-logo-img { width: 70px; margin-bottom: 16px; }
.foot-claim { margin-top: 4px; font-size: 13px; max-width: 260px; color: #6a6a6a; }
footer h5 {
  font-family: var(--display); font-weight: 300;
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
footer li { margin-bottom: 11px; font-size: 13.5px; color: #4a4a4a; }
footer li a { color: #4a4a4a; }
footer li a:hover { color: var(--teal); }
.foot-legal {
  padding-top: 28px; border-top: 1px solid rgba(13,57,59,.08);
  margin-top: 0;
}
.foot-legal p {
  font-size: 11px; color: #999; line-height: 1.7;
  max-width: 640px;
}
.foot-legal p + p { margin-top: 6px; }
.foot-base {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; padding-top: 20px;
  font-size: 11.5px; letter-spacing: 1px;
  color: #999;
}

/* =============================================
   SUB-PAGES — SHARED STYLES
   ============================================= */
.sub-hero { background: var(--cream-soft); }

.founders-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.founder-card { background: #fff; border-radius: 2px; overflow: hidden; }
.founder-img { height: 340px; overflow: hidden; }
.founder-img img { width: 100%; height: 100%; object-fit: cover; }
.founder-card h3 {
  font-family: var(--display); font-weight: 300;
  font-size: 22px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal);
  padding: 24px 24px 0;
}
.founder-role {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); padding: 6px 24px 0;
}
.founder-bio {
  font-size: 14px; color: #4a4a4a; line-height: 1.7;
  padding: 14px 24px 28px;
}

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail { animation: none; }
  .spin-circle > svg:first-child { animation: none; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1080px) {
  .doors-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .method-grid, .story-grid, .cta-grid { grid-template-columns: 1fr; gap: 50px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .founders-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .spin-circle { width: 150px; height: 150px; bottom: 24px; right: 20px; }
  .spin-circle svg { width: 150px; height: 150px; }
  nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,37,39,.97);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 28px; z-index: 99;
  }
  nav.open { display: flex; }
  nav.open a { font-size: 16px; letter-spacing: 4px; }
  .burger { display: block; z-index: 101; }

  /* Dropdown — mobile: inline sub-items below B2B */
  .nav-dropdown { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .nav-dropdown-menu {
    display: none; position: static;
    transform: none; background: transparent;
    backdrop-filter: none; border: none;
    box-shadow: none; padding: 8px 0 0; min-width: auto;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .nav-dropdown-menu a {
    padding: 4px 0;
    font-size: 13px; letter-spacing: 3px;
    color: rgba(255,255,255,.6);
  }
  .nav-dropdown-menu a:hover { padding-left: 0; }
  /* Disable hover-open on mobile */
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }

  /* Academy tag on mobile */
  nav.open .nav-academy { font-size: 16px; letter-spacing: 4px; }
  .nav-soon { font-size: 7px; }

  /* Modal scroll on mobile */
  .modal-box { padding: 40px 24px 32px; }
  .modal-box--compact { max-width: 100%; }
  .phone-code { width: 95px !important; font-size: 14px; }

  .mem-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer mobile — reorder: Logo|Contact, Explore|Follow + center */
  .foot-grid { grid-template-columns: 1fr 1fr; text-align: center; }
  .foot-grid > div:nth-child(1) { order: 1; }
  .foot-grid > div:nth-child(2) { order: 3; }
  .foot-grid > div:nth-child(3) { order: 2; }
  .foot-grid > div:nth-child(4) { order: 4; }
  .foot-logo-img { margin-left: auto; margin-right: auto; }
  .foot-claim { margin-left: auto; margin-right: auto; }
  footer li { white-space: nowrap; }
  .foot-legal { text-align: center; }
  .foot-legal p { margin-left: auto; margin-right: auto; }
  .foot-base { justify-content: center; text-align: center; }
  .topic { width: 240px; }
  .topics-head { flex-direction: column; align-items: flex-start; }
  .topics-counters { align-self: flex-start; }
  .topic h3 { min-height: 3.7em; }
  .topic .ph, .topic .topic-img-wrap { height: 300px; }
  section, .topics, .doors, .method, .story, .cta { padding-top: 80px; padding-bottom: 80px; }
  .hero h1 { letter-spacing: .03em; }
  .hero-inner { padding: 0 6vw 30vh; }
  .method-ctas { flex-direction: column; }
}


/* =============================================
   ANTI-BOT — Honeypot field (invisible para humanos)
   ============================================= */
.hp-field{position:absolute !important;left:-9999px !important;top:-9999px !important;height:1px;width:1px;overflow:hidden;opacity:0;pointer-events:none;}
