/* Component styles for Bosques de Molco */

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.nav-scrolled {
  background: oklch(from var(--bg) l c h / 0.85);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-main { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; }
.nav-brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; font-weight: 600; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; color: var(--ink-2); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--ink); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle, .theme-toggle {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 3px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s;
}
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--ink-2); }
.lang-toggle .active { color: var(--ink); }
.lang-sep { opacity: 0.4; }
.theme-toggle { padding: 7px; }

.nav-cta {
  font-size: 13px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--wood-deep); }

@media (max-width: 960px) {
  .nav-links { display: none; }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-layer {
  position: absolute; inset: -5%;
  will-change: transform;
  transition: transform 0.3s ease-out;
}
.hero-photo {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.3s ease-out;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    oklch(from var(--bg) l c h / 0.55) 0%,
    oklch(from var(--bg) l c h / 0.25) 35%,
    oklch(from var(--bg) l c h / 0.45) 70%,
    oklch(from var(--bg) l c h / 0.85) 100%);
}
[data-theme="dark"] .hero-photo-overlay {
  background: linear-gradient(180deg,
    oklch(from var(--bg) l c h / 0.7) 0%,
    oklch(from var(--bg) l c h / 0.4) 40%,
    oklch(from var(--bg) l c h / 0.7) 75%,
    oklch(from var(--bg) l c h / 0.92) 100%);
}
.hero[data-season="otono"] .hero-sky { background: linear-gradient(180deg, oklch(0.82 0.04 55) 0%, oklch(0.72 0.08 45) 60%, oklch(0.48 0.10 35) 100%); }
.hero[data-season="invierno"] .hero-sky { background: linear-gradient(180deg, oklch(0.85 0.015 240) 0%, oklch(0.70 0.025 230) 50%, oklch(0.50 0.030 225) 100%); }
.hero[data-season="primavera"] .hero-sky { background: linear-gradient(180deg, oklch(0.88 0.02 95) 0%, oklch(0.78 0.04 120) 50%, oklch(0.60 0.06 135) 100%); }
.hero[data-season="verano"] .hero-sky { background: linear-gradient(180deg, oklch(0.90 0.03 95) 0%, oklch(0.78 0.06 80) 60%, oklch(0.55 0.08 55) 100%); }

.hero-mountains, .hero-forest { display: flex; align-items: flex-end; }
.hero-mountains svg { width: 105%; height: 55%; margin-top: auto; }
.hero-forest svg { width: 108%; height: 38%; margin-top: auto; }

.hero-fog {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, oklch(0.96 0.012 85 / 0.35), transparent 50%),
    radial-gradient(ellipse at 85% 60%, oklch(0.96 0.012 85 / 0.25), transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  margin-bottom: 40px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero-title {
  font-size: clamp(60px, 10.5vw, 168px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 60px;
}
.hero-title em {
  font-style: normal;
  color: var(--copper);
  display: inline-block;
  padding-left: 0;
}

.hero-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: end;
}
.hero-lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 520px; margin-bottom: 28px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--wood-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--wood-deep); color: #fff; padding: 12px 18px; font-size: 13px; }
.btn-dark:hover { background: var(--ink); }
.btn-airbnb { background: var(--ember); color: #fff; }
.btn-airbnb:hover { background: var(--copper); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; padding: 16px; }

.hero-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-key { color: var(--ink-3); font-size: 10px; }
.meta-val { font-size: 14px; color: var(--ink); font-family: var(--mono); }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  z-index: 3;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--ink-3), transparent);
  position: relative;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: 0; left: -1px;
  width: 3px; height: 12px; background: var(--copper);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 100% { top: 32px; opacity: 0; } }

@media (max-width: 720px) {
  .hero-title { font-size: 56px; }
  .hero-footer { grid-template-columns: 1fr; gap: 30px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* === WEATHER === */
.weather-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0;
}
.weather-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.weather-now { display: flex; align-items: center; gap: 14px; }
.weather-temp { font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.weather-info { display: flex; flex-direction: column; }
.weather-cond { font-size: 14px; color: var(--ink-2); }
.weather-sep { width: 1px; align-self: stretch; background: var(--line); }
.weather-days { display: flex; gap: 28px; }
.weather-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.weather-day-label { color: var(--ink-3); font-size: 10px; }
.weather-day-temps { display: flex; gap: 8px; font-size: 14px; }
.weather-high { color: var(--ink); font-weight: 500; }
.weather-low { color: var(--ink-3); }
.weather-source { margin-left: auto; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.6 0.15 140); animation: pulse 2s infinite; }

/* === SECTIONS BASE === */
.section {
  padding: 120px 0;
  position: relative;
}
.section-header { margin-bottom: 70px; max-width: 900px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--copper); }
.section-title { font-size: clamp(44px, 7vw, 100px); line-height: 0.95; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px; }
.section-lead { font-size: 18px; color: var(--ink-2); max-width: 640px; line-height: 1.5; }

/* === CABINS === */
.cabins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
@media (max-width: 960px) { .cabins-grid { grid-template-columns: 1fr; } }

.cabin-card { display: flex; flex-direction: column; gap: 24px; }
.cabin-media { position: relative; }
.cabin-main-img { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; position: relative; }
/* cabin thumb images */
.cabin-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.cabin-thumbs .cabin-thumb { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; padding: 0; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.cabin-thumbs .cabin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cabin-thumbs .cabin-thumb:hover { opacity: 0.85; }
.cabin-thumbs .cabin-thumb.active { border-color: var(--copper); }
.cabin-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cabin-badge {
  position: absolute;
  top: 16px; left: 16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.cabin-superhost {
  position: absolute;
  top: 16px; right: 16px;
  background: oklch(0.98 0 0 / 0.95);
  color: oklch(0.25 0.15 25);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.cabin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.cabin-name { font-size: 46px; line-height: 1; margin-top: 8px; font-style: normal; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.cabin-rating { text-align: right; }
.rating-star { color: oklch(0.68 0.15 60); font-size: 16px; }
.rating-num { font-family: var(--serif); font-size: 24px; }
.rating-reviews { color: var(--ink-3); margin-top: 2px; }

.cabin-desc { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin-bottom: 24px; }
.cabin-specs { display: flex; gap: 20px; margin-bottom: 20px; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.spec { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.spec-icon { font-family: var(--mono); font-size: 14px; }

.cabin-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cabin-features li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.feature-bullet { color: var(--copper); font-family: var(--mono); }

.cabin-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cabin-price { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-family: var(--serif); font-size: 32px; }
.price-unit { color: var(--ink-3); font-size: 11px; }

/* Scroll layout */
.cabins-scroll-wrap { position: relative; }
.cabins-scroll {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 40px 30px;
  scrollbar-width: thin;
}
.cabins-scroll::-webkit-scrollbar { height: 6px; }
.cabins-scroll::-webkit-scrollbar-track { background: var(--line-soft); }
.cabins-scroll::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 3px; }
.cabins-scroll-item { flex: 0 0 640px; scroll-snap-align: start; }
.cabins-scroll-end {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.end-circle {
  width: 200px; height: 200px;
  border: 1px dashed var(--ink-3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-2);
}
.scroll-hint { margin-top: 20px; color: var(--ink-3); }

/* Mosaic layout */
.cabins-mosaic { display: flex; flex-direction: column; gap: 80px; }
.mosaic-item {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: stretch;
}
.mosaic-longon { grid-template-columns: 1fr 1.3fr; }
.mosaic-main { aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden; position: relative; grid-row: span 2; }
.mosaic-longon .mosaic-main { grid-column: 2; grid-row: 1 / span 2; }
.mosaic-num {
  position: absolute; top: 20px; left: 24px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 88px;
  color: oklch(0.98 0 0 / 0.92);
  line-height: 1;
}
.mosaic-small { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; }
.mosaic-info {
  grid-column: span 2;
  padding-top: 20px;
}
.mosaic-longon .mosaic-info { grid-column: 1 / span 2; }
.mosaic-name { font-size: 68px; font-style: normal; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); line-height: 1; margin-bottom: 16px; }
.mosaic-desc { font-size: 17px; color: var(--ink-2); max-width: 640px; line-height: 1.55; margin-bottom: 28px; }
.mosaic-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 24px; max-width: 520px; }
.mosaic-meta-item > div:last-child { font-family: var(--serif); font-weight: 700; font-size: 17px; margin-top: 4px; }

@media (max-width: 720px) {
  .mosaic-item, .mosaic-longon { grid-template-columns: 1fr; }
  .mosaic-longon .mosaic-main, .mosaic-longon .mosaic-info { grid-column: auto; }
  .mosaic-main { grid-row: auto; }
  .mosaic-name { font-size: 56px; }
  .mosaic-meta { grid-template-columns: repeat(2, 1fr); }
}
