/* ══════════════════════════════════════════════
   GHETTY MOTOR-HOME — style.css
   Color palette inspired by Puerto Rico:
   - Deep ocean:   #0A2342
   - Tropical sea: #00B4D8
   - Gold sun:     #F4A261
   - PR Red:       #C1121F
   - Sand:         #FFF8F0
══════════════════════════════════════════════ */

:root {
  --ocean:     #0A2342;
  --ocean-mid: #1B4F72;
  --sea:       #00B4D8;
  --sea-light: #90E0EF;
  --gold:      #F4A261;
  --gold-deep: #E76F51;
  --pr-red:    #C1121F;
  --sand:      #FFF8F0;
  --white:     #FFFFFF;
  --gray-100:  #F5F5F5;
  --gray-400:  #9CA3AF;
  --gray-700:  #374151;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow:    0 8px 32px rgba(10,35,66,0.15);
  --shadow-lg: 0 20px 60px rgba(10,35,66,0.25);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--sand);
  color: var(--ocean);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--sea); border-radius: 3px; }

/* ── NAV ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,35,66,0.0);
  backdrop-filter: blur(0px);
  transition: background var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(10,35,66,0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo { border-radius: 10px; object-fit: contain; }
.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex: 1;
  white-space: nowrap;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.btn-nav {
  background: var(--gold) !important;
  color: var(--ocean) !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
}
.btn-nav:hover { background: var(--gold-deep) !important; }

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 4px;
  gap: 2px;
  backdrop-filter: blur(8px);
  margin-left: 8px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 50px;
  color: rgba(255,255,255,0.65);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.lang-btn--active {
  background: rgba(255,255,255,0.18) !important;
  color: var(--white) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.flag-icon { font-size: 1.1rem; line-height: 1; }
.lang-code { font-size: 0.78rem; }

/* Transition overlay for language change */
body.lang-transition * {
  transition: opacity 0.2s ease !important;
  opacity: 0.6;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  list-style: none;
  background: rgba(10,35,66,0.97);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  display: block;
  transition: background var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,35,66,0.82) 0%,
    rgba(10,35,66,0.55) 50%,
    rgba(0,0,0,0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
  animation: heroFadeUp 1s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  background: rgba(0,180,216,0.25);
  border: 1px solid rgba(0,180,216,0.5);
  color: var(--sea-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ocean);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(244,162,97,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(244,162,97,0.5);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
  gap: 8px;
}
.stat { text-align: center; padding: 0 24px; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-dark {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%);
}
.section-cta { padding: 80px 0; background: var(--gray-100); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block;
  background: rgba(0,180,216,0.12);
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,180,216,0.25);
}
.section-tag.light {
  background: rgba(255,255,255,0.12);
  color: var(--sea-light);
  border-color: rgba(255,255,255,0.2);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--ocean);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-sub {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 56px;
}
.section-sub.light { color: rgba(255,255,255,0.7); }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,180,216,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--ocean); margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: var(--gray-700); line-height: 1.65; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card--best {
  background: rgba(244,162,97,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(244,162,97,0.2);
}
.best-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ocean);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-emoji { font-size: 3rem; margin-bottom: 12px; }
.pricing-name { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.pricing-duration {
  display: inline-block;
  background: rgba(0,180,216,0.2);
  color: var(--sea-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.pricing-options { margin-bottom: 24px; }
.price-option {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.price-option.featured { border-color: rgba(0,180,216,0.3); background: rgba(0,180,216,0.1); }
.price-label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.price-label small { font-size: 0.75rem; }
.price-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.price-amount sup { font-size: 1.2rem; vertical-align: super; }
.price-amount.group { color: var(--gold); }
.price-divider {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  margin: 8px 0;
}
.pricing-includes { list-style: none; margin-bottom: 28px; }
.pricing-includes li { color: rgba(255,255,255,0.8); font-size: 0.95rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pricing-includes li:last-child { border-bottom: none; }
.btn-price {
  display: block;
  text-align: center;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition), transform var(--transition);
}
.btn-price:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-price--best {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ocean);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(244,162,97,0.4);
}
.btn-price--best:hover { box-shadow: 0 12px 32px rgba(244,162,97,0.5); }
.pricing-note {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin-top: 40px;
}

/* ── INSTAGRAM CAROUSEL ── */
.ig-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.ig-carousel {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 4px 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ig-carousel::-webkit-scrollbar { display: none; }
.ig-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 320px;
  color: var(--gray-400);
  font-size: 0.95rem;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(0,180,216,0.2);
  border-top-color: var(--sea);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Individual IG post card */
.ig-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,180,216,0.1);
  container-type: scroll-state;
  container-name: igItem;
  display: block;
}
.ig-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Scroll-state highlight for snapped card */
@supports (container-type: scroll-state) {
  @media (prefers-reduced-motion: no-preference) {
    @container igItem scroll-state(snapped: x) {
      .ig-card-img-wrap::after { opacity: 0; }
    }
  }
}

/* JS IntersectionObserver fallback: .is-snapped */
.ig-card.is-snapped {
  box-shadow: 0 0 0 3px var(--sea), var(--shadow-lg);
}

.ig-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
}
.ig-card-img-wrap img, .ig-card-img-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ig-card:hover .ig-card-img-wrap img,
.ig-card:hover .ig-card-img-wrap video { transform: scale(1.06); }
.ig-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,35,66,0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}
.ig-card:hover .ig-card-overlay { opacity: 1; }
.ig-card-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.ig-card-body { padding: 16px; }
.ig-card-caption {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-card-date { font-size: 0.78rem; color: var(--gray-400); margin-top: 8px; }
.ig-type-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* Placeholder cards (before API setup) */
.ig-placeholder {
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,180,216,0.1);
}
.ig-placeholder-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--sea-light), var(--sea), var(--ocean-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.ig-placeholder-body { padding: 16px; }
.ig-placeholder-title { font-weight: 700; font-size: 0.9rem; color: var(--ocean); margin-bottom: 6px; }
.ig-placeholder-text { font-size: 0.85rem; color: var(--gray-400); }

/* Carousel nav buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0,180,216,0.3);
  background: var(--white);
  color: var(--ocean);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.carousel-btn:hover { background: var(--sea); color: var(--white); border-color: var(--sea); }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,180,216,0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--sea);
  width: 24px;
  border-radius: 4px;
}

/* Progress bar */
.carousel-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(0,180,216,0.15);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}
.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sea), var(--gold));
  border-radius: 2px;
  transition: width linear;
}

.ig-cta { text-align: center; }
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(131,58,180,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(131,58,180,0.45);
}

/* ── CTA SECTION ── */
.cta-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-bg-img {
  position: absolute; inset: 0;
}
.cta-bg-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,35,66,0.88) 0%, rgba(10,35,66,0.65) 100%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 24px;
  max-width: 620px;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
}
.btn-reserve-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 20px 44px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(131,58,180,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-reserve-big:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(131,58,180,0.5);
}

/* ── FAQ ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
  border-color: var(--sea);
  box-shadow: 0 4px 16px rgba(0,180,216,0.12);
}
.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ocean);
  cursor: pointer;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B4D8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--transition);
}
.faq-item[open] .faq-q::after {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 24px 20px;
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .faq-q { padding: 16px 18px; font-size: 0.95rem; }
  .faq-a { padding: 0 18px 16px; }
}

/* ── FOOTER ── */
.footer {
  background: var(--ocean);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 10px; object-fit: contain; }
.footer-name { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.footer-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.footer-bottom { text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .hero-stats { gap: 4px; padding: 16px; }
  .stat { padding: 0 12px; }
  .stat-divider { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .ig-card { flex: 0 0 240px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .lang-code { display: none; }
  .lang-btn { padding: 6px 9px; }
}
@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 300px; justify-content: center; }
}

/* ══════════════════════════════════════════════
   NUEVAS SECCIONES — Motor-Home, Reservas, Historia
══════════════════════════════════════════════ */

.section-alt { background: var(--white); }

/* ── MOTOR-HOME GALLERY ── */
.mh-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.mh-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mh-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mh-photo--wide { grid-column: span 6; aspect-ratio: 21 / 9; }
.mh-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mh-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 18px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(transparent, rgba(10,35,66,0.85));
}
/* Placeholder elegante mientras no exista la foto en /assets */
.mh-photo--missing { cursor: default; }
.mh-photo--missing img { display: none; }
.mh-photo--missing::before {
  content: attr(data-emoji);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.85;
}
.mh-photo--missing figcaption { background: linear-gradient(transparent, rgba(10,35,66,0.95)); }

.mh-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}
.mh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid rgba(10,35,66,0.1);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: rgba(10,35,66,0.94);
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption { color: var(--white); font-weight: 600; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* ── BOOKING ── */
.booking-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}
.booking-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(10,35,66,0.06);
}

/* Calendario */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title { font-weight: 700; font-size: 1.15rem; }
.cal-nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(10,35,66,0.15);
  background: var(--white);
  color: var(--ocean);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.cal-nav:hover:not(:disabled) { background: var(--sea); color: var(--white); border-color: var(--sea); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  padding-bottom: 6px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  background: var(--sand);
  color: var(--ocean);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cal-day:hover:not(:disabled) { background: var(--sea-light); transform: scale(1.06); }
.cal-day--today { outline: 2px solid var(--gold); outline-offset: -2px; }
.cal-day--past { background: transparent; color: var(--gray-400); cursor: default; }
.cal-day--booked {
  background: repeating-linear-gradient(45deg, #fde2e4, #fde2e4 4px, #fbc4c9 4px, #fbc4c9 8px);
  color: var(--pr-red);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal-day--selected { background: var(--sea); color: var(--white); }
.cal-day--inrange { background: var(--sea-light); }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-700);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-dot--free { background: var(--sand); border: 1px solid rgba(10,35,66,0.2); }
.legend-dot--booked { background: repeating-linear-gradient(45deg, #fde2e4, #fde2e4 3px, #fbc4c9 3px, #fbc4c9 6px); }
.legend-dot--selected { background: var(--sea); }
.cal-sync-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--sand);
  border-radius: 10px;
  padding: 10px 14px;
}
.cal-sync-time { color: var(--gray-400); }

/* Formulario */
.booking-card--form .form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking-card--form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.booking-card--form input,
.booking-card--form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(10,35,66,0.15);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ocean);
  transition: border-color 0.15s ease;
}
.booking-card--form input:focus,
.booking-card--form select:focus { outline: none; border-color: var(--sea); }
.date-display {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sand);
  border: 1.5px dashed rgba(10,35,66,0.2);
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 45px;
}
.booking-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ocean);
  color: var(--white);
  font-weight: 600;
  margin-top: 20px;
}
.booking-total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
}
.booking-hint {
  margin: 10px 2px 0;
  font-size: 0.85rem;
  color: var(--gray-700);
  min-height: 1.3em;
}
.booking-hint--error { color: var(--pr-red); font-weight: 700; }
.btn-book { width: 100%; justify-content: center; margin-top: 16px; border: none; cursor: pointer; font-size: 1rem; }
.booking-secure {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 10px;
}
.booking-alt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(10,35,66,0.08);
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.booking-alt a {
  color: var(--sea);
  font-weight: 700;
  text-decoration: none;
  margin-left: 10px;
}
.booking-alt a:hover { text-decoration: underline; }

/* ── MODAL DE CONFIRMACIÓN ── */
.bk-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5,20,50,0.75);
  backdrop-filter: blur(8px);
}
.bk-modal.open { display: flex; }
.bk-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}
.bk-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s;
}
.bk-modal-close:hover { background: #e5e7eb; color: #111; }

/* ─ RECEIPT (vista de pago exitoso) ─ */
.bk-receipt { padding: 0 0 32px; }
.bk-receipt-header {
  background: linear-gradient(135deg, #0a2342 0%, #1a5276 100%);
  padding: 36px 32px 28px;
  text-align: center;
  color: #fff;
}
.bk-receipt-logo {
  display: block;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  padding: 6px;
}
.bk-receipt-check-wrap { margin-bottom: 14px; }
.bk-receipt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(16,185,129,0.4);
  color: #fff;
}
.bk-receipt-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.bk-receipt-brand {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  letter-spacing: 0.02em;
}
.bk-receipt-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0 24px;
}
.bk-receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 4px 24px 0;
  display: block;
}
.bk-receipt-table tbody { display: table; width: 100%; padding: 0 24px; }
.bk-receipt-table tr { border-bottom: 1px solid #f3f4f6; }
.bk-receipt-table tr:last-child { border-bottom: none; }
.bk-rt-label {
  padding: 13px 0 13px 24px;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 42%;
}
.bk-rt-value {
  padding: 13px 24px 13px 0;
  font-size: 0.95rem;
  color: #111827;
  font-weight: 600;
  text-align: right;
}
.bk-receipt-id-label {
  margin: 8px 24px 2px;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bk-receipt-id {
  margin: 0 24px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #374151;
  word-break: break-all;
}
.bk-receipt-email-note {
  margin: 0 24px 16px;
  font-size: 0.85rem;
  color: #059669;
  font-weight: 500;
}
.bk-receipt-actions {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bk-receipt-close-link {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px;
  text-align: center;
  text-decoration: underline;
}
.bk-receipt-close-link:hover { color: #111; }

/* ─ INFO (fallback sin pago) ─ */
.bk-modal-info { padding: 40px 32px 32px; text-align: center; }
.bk-modal-emoji-wrap { margin-bottom: 14px; }
.bk-modal-emoji-wrap img { border-radius: 12px; }
.bk-modal-info h3 { font-size: 1.3rem; margin-bottom: 10px; color: #111; }
.bk-modal-info p { color: #4b5563; font-size: 0.95rem; }
.bk-summary {
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--sand);
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.bk-copy {
  background: var(--ocean) !important;
  color: var(--white) !important;
  border: none;
  cursor: pointer;
}

/* ── HISTORIA ── */
.story-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.story-photo { position: relative; }
.story-img { aspect-ratio: 3 / 4; cursor: default; }
.story-img:hover { transform: none; }
.story-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--gold);
  color: var(--ocean);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.story-content .section-title { text-align: left; }
.story-content .section-tag { margin-left: 0; }
.story-p {
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 16px;
}
.story-quote {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  background: rgba(255,255,255,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; }
  .story-layout { grid-template-columns: 1fr; gap: 56px; }
  .story-img { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .mh-gallery { grid-template-columns: 1fr; gap: 14px; }
  .mh-photo, .mh-photo--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .form-row { grid-template-columns: 1fr; }
  .booking-card { padding: 20px; }
}

/* ── PAGO INTEGRADO (Square card) ── */
#card-container {
  min-height: 48px;
  border-radius: 10px;
}
.card-error {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pr-red);
}
.btn-book:disabled { opacity: 0.6; cursor: wait; }
.bk-modal-card p a { color: var(--sea); font-weight: 700; }
