/* ════════════════════════════════════════════════
   Jakotango — home.css
   Estilos exclusivos de la home (front page).
════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #000;
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__cover {
  position: absolute; inset: 0;
  z-index: 2;
  background-color: var(--bg);
  transition: opacity 900ms ease;
  pointer-events: none;
}
.hero__cover.is-gone { opacity: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero__slide.is-active { opacity: 1; }
#vimeo-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
}
#vimeo-bg iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.5) 0%, transparent 22%, transparent 62%, rgba(10,10,10,0.78) 100%);
  pointer-events: none;
}
.hero__bottom {
  position: absolute;
  z-index: 2;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  white-space: nowrap;
  transition: opacity 300ms ease;
}
.hero__cta:hover { opacity: 0.72; }
.hero__cta-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.hero__cta-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ────────────────────────────────────────────────
   EXPEDITIONS
──────────────────────────────────────────────── */
.expeditions {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100vh;
  height: 100dvh;
}
.exp {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.exp:last-child { border-bottom: 0; }
.exp__slides {
  position: absolute;
  inset: 0;
  isolation: isolate;
}
.exp__slides img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.exp__slides img.is-active { opacity: 1; }
.exp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}
.exp__line {
  display: block;
  position: relative;
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: rgba(232, 227, 216, 0.18);
  overflow: hidden;
}
.exp__line::after {
  content: "";
  position: absolute;
  top: 0; left: -80px;
  width: 80px; height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(181, 151, 112, 0.6) 40%,
    rgba(232, 227, 216, 1) 50%,
    rgba(181, 151, 112, 0.6) 60%,
    transparent
  );
  animation: lineLight 8s linear infinite;
}
.exp:nth-child(2) .exp__line::after { animation-delay: -4s; }
.exp::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.exp__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 28px 32px;
  z-index: 3;
}
.exp__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.exp__name em { font-style: italic; color: var(--gold); }

/* ────────────────────────────────────────────────
   INTERLUDE
──────────────────────────────────────────────── */
.interlude {
  padding: 60px 44px 30px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(181, 151, 112, 0.09) 0%, var(--bg) 68%);
  border-bottom: 1px solid var(--rule);
}
.interlude__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}
.interlude__bar {
  display: none;
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
  position: relative;
  overflow: hidden;
}
.interlude__bar::after {
  content: "";
  position: absolute;
  top: 0; left: -80px;
  width: 80px; height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(181, 151, 112, 0.6) 40%,
    rgba(232, 227, 216, 1) 50%,
    rgba(181, 151, 112, 0.6) 60%,
    transparent
  );
  animation: lineLight 4s linear infinite;
}
.interlude__bar:last-child::after { animation-delay: -2s; }
.interlude__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 5.5vw, 52px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
}
.interlude__title em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* ────────────────────────────────────────────────
   GALLERY — Home grid
──────────────────────────────────────────────── */
.gallery { height: 100vh; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1.5fr 1fr 1.5fr;
  height: 100%;
  gap: 2px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--bg);
  transform: translateZ(0);
  cursor: pointer;
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 600ms ease;
  z-index: 1;
}
.gallery__item:hover::after { opacity: 0.08; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1200ms var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(10,10,10,0.65), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 300ms;
}
.gallery__item:hover .gallery__caption { opacity: 1; }
.gallery__caption em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.gallery__caption span {
  display: none;
}
.gallery__cta .eyebrow { font-size: 9px; }
.gallery__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  gap: 10px;
  transition: background 300ms ease;
  overflow: hidden;
}
.gallery__cta:hover { background: rgba(181,151,112,0.07); }
.gallery__cta-label {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
}
.gallery__cta-arrow {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* ────────────────────────────────────────────────
   DIVIDER
──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--rule);
  margin: 50px 44px;
  position: relative;
  overflow: hidden;
}
.divider::after {
  content: "";
  position: absolute;
  top: 0; left: -80px;
  width: 80px; height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(181, 151, 112, 0.6) 40%,
    rgba(232, 227, 216, 1) 50%,
    rgba(181, 151, 112, 0.6) 60%,
    transparent
  );
  animation: lineLight 10s linear infinite;
}

/* ────────────────────────────────────────────────
   INTRO / ABOUT
──────────────────────────────────────────────── */
.intro__body {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: 0 auto;
  padding: 60px 0;
  gap: 40px;
}
.intro__partners {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.intro__partners .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.intro__partners-lede {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.intro__partners-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.intro__partners-list li { border-bottom: 1px solid var(--rule); }
.intro__partners-list a {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  transition: color 200ms;
}
.intro__partners-list a:hover { color: var(--gold); }
.intro__partners-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 200ms;
}
.intro__partners-desc {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 200ms;
}
.intro__partners-list a:hover .intro__partners-name,
.intro__partners-list a:hover .intro__partners-desc { color: var(--gold); }
.intro__stats {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  gap: 14px 0;
}
.intro__stat .num {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.intro__stat .num em { font-style: italic; color: var(--gold); }
.intro__stat .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 5px;
}
.insta__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.insta__follow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 200ms;
}
.insta__follow:hover { color: var(--gold); }
.insta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.insta__item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-2);
  display: block;
  position: relative;
}
.insta__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
  display: block;
}
.insta__item:hover img { transform: scale(1.06); }
.insta__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 400ms;
}
.insta__item:hover::after { opacity: 0.08; }

/* ── Smash Balloon feed overrides ─────────────── */
.insta__grid--feed #sb_instagram {
  width: 100% !important;
  padding: 0 !important;
  background: none !important;
}
.insta__grid--feed #sbi_images {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.insta__grid--feed .sbi_item {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}
.insta__grid--feed .sbi_photo_wrap {
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}
.insta__grid--feed .sbi_photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 1200ms var(--ease-out) !important;
  display: block;
}
.insta__grid--feed .sbi_photo:hover { transform: scale(1.06); }
/* Ocultar elementos de UI del plugin */
.insta__grid--feed .sbi_header,
.insta__grid--feed #sbi_load,
.insta__grid--feed .sbi_follow_btn,
.insta__grid--feed .sbi_powered { display: none !important; }

/* ────────────────────────────────────────────────
   JOIN / FORM
──────────────────────────────────────────────── */
.join {
  padding: 56px 0 56px;
  position: relative;
  overflow: visible;
  height: auto;
}
.join::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(181,151,112,0.08) 0%, rgba(10,10,10,0) 50%);
  pointer-events: none;
}
.join__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.join h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 18px auto;
  max-width: 16ch;
}
.join h2 em { font-style: italic; color: var(--gold); }
.join__lede {
  color: var(--ink-body);
  font-size: 16px;
  max-width: 50ch;
  margin: 0 auto 40px;
}
.join__form {
  display: grid;
  gap: 0;
  text-align: left;
}
.field {
  border-bottom: 1px solid var(--rule-strong);
  padding: 16px 4px 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  transition: border-color 200ms;
}
.field:focus-within { border-color: var(--gold); }
.field label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.field label .num {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--gold);
  margin-right: 10px;
  text-transform: none;
}
.field input,
.field select {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 300 16px/1.5 var(--serif);
  width: 100%;
  outline: none;
  padding: 4px 0;
}
.field input::placeholder { color: var(--ink-faint); font-style: italic; }
.field select {
  color: var(--ink-faint);
  font-style: italic;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8579' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.field select.has-value { color: var(--ink); font-style: normal; }
.field select option {
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  font-style: normal;
}
.join__submit {
  margin-top: 40px;
  display: inline-flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: border-color 300ms ease, color 300ms ease, gap 300ms ease;
  grid-column: 1 / -1;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.join__submit:hover {
  border-color: var(--gold);
  color: var(--gold);
  gap: 32px;
}
.join__submit .arrow {
  width: 22px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 300ms ease;
}
.join__submit:hover .arrow { width: 34px; }
.join__submit .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── WPForms — diseño Jakotango ───────────────── */
.join__form .wpforms-container { display: block; }
.join__form .wpforms-form      { display: block; }
.join__form .wpforms-field-container { display: grid; gap: 0; }

.join__form .wpforms-field {
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 16px 4px 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 0;
  transition: border-color 200ms;
}
.join__form .wpforms-field:focus-within { border-color: var(--gold); }

.join__form .wpforms-field-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
  padding: 0;
}
.join__form .wpforms-required-label { display: none; }

.join__form .wpforms-field input[type="text"],
.join__form .wpforms-field input[type="email"],
.join__form .wpforms-field input[type="number"] {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  font: 300 16px/1.5 var(--serif);
  width: 100%;
  outline: none;
  padding: 4px 0;
}
.join__form .wpforms-field input::placeholder { color: var(--ink-faint); font-style: italic; }

.join__form .wpforms-field select {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-faint);
  font: italic 300 16px/1.5 var(--serif);
  width: 100%;
  outline: none;
  padding: 4px 24px 4px 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8579' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.join__form .wpforms-field select.has-value { color: var(--ink); font-style: normal; }
.join__form .wpforms-field select option {
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  font-style: normal;
}

/* Submit */
.join__form .wpforms-submit-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 0;
  background: none;
  border: 0;
}
.join__form .wpforms-submit {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 300ms ease, color 300ms ease, gap 300ms ease;
  width: auto;
}
.join__form .wpforms-submit:hover {
  border-color: var(--gold);
  color: var(--gold);
  gap: 32px;
}
.join__form .wpforms-submit-spinner { display: none !important; }

/* Mensajes de error de campo */
.join__form label.wpforms-error {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: none;
  margin-top: 2px;
  display: block;
}

/* Confirmación post-envío */
.join__form .wpforms-confirmation-container-full {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-dim);
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.join__form .wpforms-confirmation-container-full p { margin: 0; }

/* ════════════════════════════════════════════════
   MOBILE ONLY — max 767px
════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .gallery {
    height: auto;
    overflow: visible;
  }
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    height: auto;
  }
  .gallery__grid .gallery__item,
  .gallery__grid .gallery__cta {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1;
  }
}

/* ════════════════════════════════════════════════
   TABLET — 768px+
════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .intro__body { width: 70%; }
  .field { grid-template-columns: 1fr; gap: 6px; }
}

/* ════════════════════════════════════════════════
   DESKTOP — 1025px+
════════════════════════════════════════════════ */
@media (min-width: 1025px) {
  .hero { min-height: 720px; }
  .hero__overlay {
    background:
      linear-gradient(to right, transparent 35%, rgba(10,10,10,0.52) 100%),
      linear-gradient(180deg, rgba(10,10,10,0.45) 0%, transparent 22%, transparent 62%, rgba(10,10,10,0.78) 100%);
  }
  .expeditions {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    gap: 2px;
  }
  .exp {
    min-height: 0;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .exp:last-child { border-right: 0; }
  .exp__label { padding: 0 44px 48px; }
  .exp__name { font-size: clamp(36px, 3.4vw, 56px); }
  .interlude { padding: 148px 44px 96px; }
  .interlude__bar { display: block; }
  .interlude__title { text-align: left; }
  .mob-br { display: none; }
  .intro__body { width: 60%; }
  .intro__stats { grid-template-columns: repeat(4, 1fr); }
  .join { padding: 120px 0; overflow: visible; height: auto; }
  .join__lede { font-size: 17px; margin-bottom: 56px; }
  .field { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px 14px; }
  .field label { font-size: 11px; }
  .field input,
  .field select { font-size: 17px; }
  .join__submit { padding: 20px 40px; }
}
