/* =========================================================
   HABITA — Aventuras & Vanstruck
   ========================================================= */

:root {
  --blue: #2F6FED;
  --blue-dark: #1B4FC4;
  --blue-light: #EAF0FE;
  --black: #0B0D12;
  --black-soft: #14171F;
  --white: #FFFFFF;
  --gray-light: #F4F6F9;
  --gray-text: #5B6472;
  --border: #E4E8F0;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 72px;
  --radius: 16px;
  --container: 1140px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--gray-text); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-mark {
  width: 28px; height: 28px;
  color: var(--blue);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); border-color: var(--blue); }
.nav-link.is-active { color: var(--white); border-color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 0;
  background: var(--black);
}
.hero-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
  color: var(--white);
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 20px;
}
.hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
}
.hero-sub strong { color: var(--white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-panel {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.split-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform .5s ease;
}
.split-panel:hover .split-bg { transform: scale(1.05); }
.split-bg[src$="aventuras-bg.jpg"],
.page-hero-bg[src$="aventuras-bg.jpg"] { object-position: 62% bottom; }

.split-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,0) 0%, rgba(11,13,18,0.85) 75%);
  z-index: -1;
}
.split-panel--vanstruck::after {
  background: linear-gradient(180deg, rgba(11,13,18,0) 0%, rgba(11,13,18,0.9) 75%);
}

.split-content {
  padding: 32px;
  color: var(--white);
  width: 100%;
}
.brand-logo-img {
  height: 96px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}
.brand-logo-img--hero {
  height: 128px;
  max-width: 260px;
  margin-bottom: 22px;
}

.split-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(47,111,237,0.25);
  border: 1px solid rgba(47,111,237,0.5);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.split-content h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.split-content p {
  color: rgba(255,255,255,0.78);
  max-width: 34ch;
}
.split-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 4px;
  transition: gap .2s;
}
.split-panel:hover .split-cta { gap: 14px; }

/* ---------- Page hero (brand pages) ---------- */
body.theme-dark { background: var(--black); }

.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,0.15) 0%, rgba(11,13,18,0.92) 85%);
  z-index: -1;
}
.page-hero-content {
  padding-bottom: 56px;
  padding-top: 120px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 28px;
  transition: color .2s;
}
.breadcrumb:hover { color: var(--white); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  margin-bottom: 14px;
}
.page-hero-content p {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 0;
}

.section-contact { padding-top: 0; }

/* ---------- Sections ---------- */
.brand-section { padding: 96px 0; }
.brand-section--light { background: var(--white); }
.brand-section--dark {
  background: var(--black);
  color: var(--white);
}
.brand-section--dark p { color: rgba(255,255,255,0.68); }
.brand-section--dark h2, .brand-section--dark h3 { color: var(--white); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.lead { font-size: 1.08rem; }

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pill--blue { background: var(--blue-light); color: var(--blue-dark); }
.pill--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11,13,18,0.08);
}
.card--dark {
  background: var(--black-soft);
  border-color: rgba(255,255,255,0.08);
}
.card--dark:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.card-icon {
  width: 44px; height: 44px;
  color: var(--blue);
  margin-bottom: 16px;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }
.card--dark p { color: rgba(255,255,255,0.65); }

/* ---------- Gallery (placeholder photo cards) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}
.photo-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.photo-card span {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.photo-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,18,0) 40%, rgba(11,13,18,0.75) 100%);
}
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.9;
}
.photo-card--1::after { background: radial-gradient(circle at 30% 20%, var(--blue), var(--black) 75%); }
.photo-card--2::after { background: radial-gradient(circle at 70% 30%, var(--blue-dark), var(--black) 75%); }
.photo-card--3::after { background: linear-gradient(135deg, var(--black), var(--blue) 120%); }
.photo-card--4::after { background: radial-gradient(circle at 50% 15%, var(--blue), var(--black-soft) 80%); }
.photo-card--5::after { background: linear-gradient(135deg, var(--blue-dark), var(--black) 110%); }
.photo-card--6::after { background: radial-gradient(circle at 25% 25%, var(--blue), var(--black) 80%); }
.photo-card--7::after { background: linear-gradient(160deg, var(--black), var(--blue-dark) 130%); }
.photo-card--8::after { background: radial-gradient(circle at 75% 20%, var(--blue), var(--black-soft) 80%); }

.gallery--photos {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.photo-tile {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--black-soft);
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.photo-tile:hover img { transform: scale(1.06); }

.video-wrap {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: #000;
}
.video-wrap video {
  width: 100%;
  display: block;
  max-height: 80vh;
}

.coach-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 48px;
  align-items: center;
}
.coach-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(11,13,18,0.16);
}
.coach-content .pill { margin-bottom: 14px; }
.coach-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.coach-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 8px;
}
.coach-stat {
  display: flex;
  flex-direction: column;
}
.coach-stat strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
}
.coach-stat span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 6px;
}

.coach-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.coach-badge img {
  height: 84px;
  width: auto;
  flex-shrink: 0;
}
.coach-badge p { margin: 0; }
.coach-badge strong {
  display: block;
  font-size: 1.05rem;
  color: var(--blue-dark);
}
.coach-badge span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-top: 2px;
}

@media (max-width: 800px) {
  .coach-grid { grid-template-columns: 1fr; }
  .coach-media { max-width: 360px; margin: 0 auto; }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.video-grid .video-wrap {
  max-width: none;
  margin: 0;
}

.gallery-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-text);
  margin: 0 0 56px;
}
.gallery-note--dark { color: rgba(255,255,255,0.45); }

/* ---------- Brand contact blocks ---------- */
.brand-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
}
.brand-contact--aventuras {
  background: var(--gray-light);
  border: 1px solid var(--border);
}
.brand-contact--vanstruck {
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.brand-contact h3 { margin-bottom: 4px; font-size: 1.15rem; }
.brand-contact--aventuras p, .brand-contact--vanstruck p { margin: 0; }
.brand-contact--vanstruck h3 { color: var(--white); }

.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.contact-list a {
  font-weight: 700;
  font-size: 0.92rem;
  transition: color .2s;
}
.brand-contact--aventuras a:hover { color: var(--blue); }
.brand-contact--vanstruck a { color: var(--white); }
.brand-contact--vanstruck a:hover { color: var(--blue); }

.placeholder-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  border: 1px dashed rgba(255,255,255,0.3);
  padding: 6px 12px;
  border-radius: 8px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--blue);
  padding: 72px 0;
}
.final-cta-inner {
  text-align: center;
  max-width: 700px;
}
.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 28px;
}
.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform .2s, background .2s, color .2s;
}
.btn--blue {
  background: var(--black);
  color: var(--white);
}
.btn--blue:hover { transform: translateY(-2px); background: var(--black-soft); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover { transform: translateY(-2px); background: var(--white); color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { margin: 2px 0 0; font-size: 0.85rem; }
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a { font-size: 0.88rem; font-weight: 600; }
.footer-nav a:hover { color: var(--blue); }
.footer-copy { font-size: 0.8rem; margin: 0; width: 100%; text-align: center; }

@media (min-width: 640px) {
  .footer-copy { width: auto; text-align: right; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }

  .split { grid-template-columns: 1fr; }
  .split-panel { min-height: 380px; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .brand-section { padding: 64px 0; }
  .brand-contact { flex-direction: column; align-items: flex-start; }
}
