/* =============================================================
   MOROCCO TRIP — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion  10. RTL
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #faf6ee;
  --bg-2:      #f1e6d3;
  --paper:     #ffffff;
  --ink:       #1c2438;
  --ink-soft:  #2b3350;
  --ink-mute:  #6b6f80;
  --accent:    #c1552c;
  --accent-dark: #9c4322;
  --navy:      #161f37;
  --navy-2:    #202c4d;
  --cream:     #f6ede1;
  --gold:      #c9a227;
  --gold-soft: #e3c976;
  --line:      rgba(28, 36, 56, 0.12);

  --display: "Cormorant Garamond", serif;
  --sans: "Manrope", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-card: 0 1px 2px rgba(28,36,56,.06), 0 24px 48px -24px rgba(28,36,56,.28);
  --shadow-card-hover: 0 1px 2px rgba(28,36,56,.06), 0 34px 64px -22px rgba(193,85,44,.32);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); font-family: var(--display); font-weight: 500; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.section-kicker {
  font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 34ch;
  margin-bottom: 1.4rem;
}
.section-title em { color: var(--accent); font-style: italic; }
.center { text-align: center; margin-inline: auto; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography helpers
   ============================================================= */
em { font-style: italic; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.9rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(193,85,44,.55);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(193,85,44,.65); }
.btn-primary:disabled { opacity: .6; pointer-events: none; }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.4px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.3rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Brand lockup (official logo) */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 54px; width: auto; flex-shrink: 0; }
.brand-logo-footer { height: 70px; }

/* Stat blocks */
.about-stats { display: flex; gap: clamp(1.6rem, 4vw, 3rem); margin-top: 2.4rem; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--display); font-size: 2.4rem; color: var(--ink); font-weight: 600; }
.stat span { display: block; font-size: .8rem; color: var(--ink-mute); margin-top: .2rem; }

/* Switchers (language / currency) */
.header-right { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.switcher { position: relative; }
.switcher-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .7rem; border-radius: 999px; background: var(--paper);
  box-shadow: var(--shadow-card); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--ink-soft);
}
.switcher-btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.switcher.is-open .switcher-btn svg { transform: rotate(180deg); }
.switcher-menu {
  position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 150px; background: var(--paper); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover); padding: .4rem; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  z-index: 50;
}
.switcher.is-open .switcher-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.switcher-menu button {
  display: block; width: 100%; text-align: left; padding: .55rem .7rem;
  border-radius: 8px; font-size: .86rem; color: var(--ink-soft);
}
.switcher-menu button:hover { background: var(--bg-2); }
.switcher-menu button.is-active { color: var(--accent); font-weight: 700; }

/* Cart button */
.cart-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.cart-badge.is-visible { opacity: 1; transform: scale(1); }

/* Account button */
.account-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.account-btn:hover { transform: translateY(-1px); }
.account-icon { width: 18px; height: 18px; }
.account-initial {
  width: 100%; height: 100%; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Header / Nav --- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), padding-block .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(250, 246, 238, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(28,36,56,.3);
  padding-block: .75rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: var(--paper); box-shadow: var(--shadow-card);
}
.nav-toggle span { width: 18px; height: 1.6px; background: var(--ink); margin-inline: auto; transition: transform .35s var(--ease-out), opacity .35s var(--ease-out); }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem); }
.nav-links a:not(.btn) {
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: .2rem;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.4px;
  background: var(--accent); transition: right .35s var(--ease-out);
}
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-links-static { position: static; width: auto; transform: none; background: none; box-shadow: none; padding: 0; flex-direction: row; }

/* --- Cart drawer --- */
.cart-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(22,31,55,.45); opacity: 0; transition: opacity .4s var(--ease-out); }
.cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 420px);
  background: var(--bg); box-shadow: -20px 0 60px rgba(28,36,56,.25);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .5s var(--ease-out);
}
.cart-drawer.is-open { pointer-events: auto; }
.cart-drawer.is-open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer.is-open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 1.6rem 1.2rem; border-bottom: 1px solid var(--line); }
.cart-drawer-close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); box-shadow: var(--shadow-card); }
.cart-drawer-close svg { width: 15px; height: 15px; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { color: var(--ink-mute); font-size: .95rem; padding-block: 2rem; text-align: center; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: .8rem; align-items: center; }
.cart-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cart-item-body strong { font-size: .92rem; color: var(--ink); font-family: var(--sans); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-meta { font-size: .76rem; color: var(--ink-mute); }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; }
.cart-item-qty button { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.cart-item-qty span { font-size: .82rem; font-weight: 600; min-width: 1ch; text-align: center; }
.cart-item-remove { margin-left: .4rem; color: var(--ink-mute); }
.cart-item-remove svg { width: 13px; height: 13px; }
.cart-item-remove:hover { color: var(--accent); }
.cart-item-total { font-size: .9rem; white-space: nowrap; }
.cart-drawer-foot { padding: 1.2rem 1.6rem 1.6rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; color: var(--ink); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  padding-block-end: clamp(3rem, 8vw, 5.5rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroKenBurns 22s var(--ease-soft) infinite alternate;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,31,55,.42) 0%, rgba(22,31,55,.18) 35%, rgba(22,31,55,.55) 78%, rgba(22,31,55,.86) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; color: var(--cream); }
.hero-kicker {
  font-weight: 700; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  color: var(--cream); max-width: 16ch; margin-bottom: 1.3rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-title em { color: var(--gold-soft); font-style: italic; }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.22rem); max-width: 46ch; color: rgba(246,237,225,.88); margin-bottom: 2.1rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-ctas .btn-ghost { color: var(--cream); border-color: rgba(246,237,225,.4); }
.hero-ctas .btn-ghost:hover { border-color: var(--cream); background: rgba(246,237,225,.08); }

.hero-trust { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .85rem; color: rgba(246,237,225,.78); }
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-soft); flex-shrink: 0; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.4px solid rgba(246,237,225,.55); border-radius: 999px;
}
.scroll-cue span {
  display: block; width: 3px; height: 7px; border-radius: 2px; background: var(--gold-soft);
  margin: 6px auto 0; animation: scrollCue 2s var(--ease-soft) infinite;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden; background: var(--navy); padding-block: 1.1rem;
  border-block: 1px solid rgba(246,237,225,.08);
}
.marquee-track {
  display: flex; width: max-content; gap: .9rem;
  animation: marqueeScroll 34s linear infinite;
}
.marquee-track span {
  font-family: var(--display); font-style: italic; font-size: 1.15rem;
  color: rgba(246,237,225,.75); white-space: nowrap;
}
.marquee-track span:nth-child(odd) { color: var(--gold-soft); font-style: normal; font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: .82fr 1fr; gap: clamp(2.4rem, 6vw, 5.5rem); align-items: center; }
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-card); }
.about-figure-badge {
  position: absolute; left: -1.2rem; bottom: -1.2rem;
  background: var(--paper); border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; line-height: 1.2;
}
.about-figure-badge strong { font-family: var(--display); font-size: 1.5rem; color: var(--accent); }
.about-figure-badge span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.about-text p { margin-bottom: 1.1rem; max-width: 54ch; color: var(--ink-mute); }

/* --- Advantages --- */
.advantages { background: var(--bg-2); }
.advantages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem;
}
.advantage-card {
  background: var(--paper); border-radius: var(--radius-md); padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.advantage-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.3rem;
  background: linear-gradient(145deg, rgba(193,85,44,.12), rgba(201,162,39,.14));
  color: var(--accent);
}
.advantage-icon svg { width: 24px; height: 24px; }
.advantage-card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.advantage-card p { color: var(--ink-mute); font-size: .95rem; }

/* --- Tours --- */
.tours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.tour-card {
  position: relative;
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
}
.tour-card-link { position: absolute; inset: 0; z-index: 1; }
.tour-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }
.tour-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.tour-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tour-card:hover .tour-media img { transform: scale(1.08); }
.tour-flag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; padding: .4rem .75rem; border-radius: 999px;
}
.tour-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(22,31,55,.78); backdrop-filter: blur(6px);
  color: var(--cream); font-size: .78rem; padding: .5rem .85rem; border-radius: 999px;
}
.tour-badge strong { color: var(--gold-soft); }
.tour-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.tour-meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .76rem; color: var(--ink-mute); margin-bottom: .6rem; }
.tour-rating { color: var(--accent); font-weight: 600; white-space: nowrap; }
.tour-rating em { font-style: normal; color: var(--ink-mute); font-weight: 400; }
.tour-body h3 { font-size: 1.4rem; margin-bottom: .55rem; }
.tour-body p { font-size: .92rem; color: var(--ink-mute); margin-bottom: 1.3rem; flex: 1; }
.tour-book-btn { align-self: flex-start; }
.tour-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tour-details-link {
  position: relative; z-index: 2; font-size: .84rem; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.tour-details-link:hover { color: var(--accent-dark); }
.tour-book-btn { position: relative; z-index: 2; }

/* --- Gallery --- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px;
  gap: 1rem; margin-top: 3rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  grid-column: span 1; grid-row: span 1;
}
.gallery-item.span-2 { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.1rem 1.1rem .9rem;
  background: linear-gradient(0deg, rgba(22,31,55,.82) 0%, transparent 100%);
  color: var(--cream); font-size: .84rem; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }

/* --- Reviews carousel --- */
.reviews-carousel { position: relative; margin-top: 3rem; }
.reviews-track {
  display: flex; gap: 1.4rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  padding-block: .5rem 2.5rem; scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 auto; width: min(340px, 82vw); scroll-snap-align: start;
  background: var(--paper); border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 1rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.review-head { display: flex; align-items: center; gap: .8rem; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-who { display: flex; flex-direction: column; min-width: 0; }
.review-who strong { font-size: .95rem; color: var(--ink); font-family: var(--sans); font-weight: 700; }
.review-who span { font-size: .78rem; color: var(--ink-mute); }
.review-stars { font-size: .85rem; letter-spacing: .1em; color: var(--line); }
.review-stars .is-full { color: var(--gold); }
.review-card p { font-size: .92rem; color: var(--ink-mute); flex: 1; }
.reviews-nav { display: flex; justify-content: center; gap: .8rem; }
.reviews-arrow {
  width: 42px; height: 42px; border-radius: 50%; background: var(--paper);
  box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: transform .3s var(--ease-out), background .3s;
}
.reviews-arrow:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.reviews-arrow svg { width: 17px; height: 17px; }

/* --- FAQ --- */
.faq-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
  background: var(--paper); border-radius: var(--radius-md); padding: 1.4rem 1.7rem;
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1.4px solid var(--line); position: relative; transition: transform .4s var(--ease-out), background .3s;
}
.faq-chevron::before, .faq-chevron::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.faq-chevron::before { width: 8px; height: 1.4px; transform: translate(-50%,-50%); }
.faq-chevron::after { width: 1.4px; height: 8px; transform: translate(-50%,-50%); }
.faq-item[open] .faq-chevron { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-chevron::before, .faq-item[open] .faq-chevron::after { background: #fff; }
.faq-item[open] .faq-chevron::after { transform: translate(-50%,-50%) rotate(90deg) scaleY(0); }
.faq-item p { margin-top: 1rem; color: var(--ink-mute); font-size: .95rem; max-width: 62ch; }

/* --- Contact --- */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(2.4rem, 6vw, 5rem); align-items: start; }
.contact-lead { color: var(--ink-mute); max-width: 42ch; margin-bottom: 2rem; }
.info-list { display: flex; flex-direction: column; gap: 1.1rem; }
.info-list li { display: flex; align-items: flex-start; gap: .9rem; font-size: .95rem; }
.info-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.info-icon svg { width: 18px; height: 18px; }
.info-list a:hover { color: var(--accent); }

.contact-form { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { font-size: .8rem; font-weight: 600; color: var(--ink-mute); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1.4px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; background: var(--bg); transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(193,85,44,.12);
}
.form-field input:disabled { opacity: .55; cursor: not-allowed; }
.form-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-mute); min-height: 1.2em; }
.form-note.is-success { color: #3a6b45; font-weight: 600; }

/* --- Checkout page --- */
.checkout-section { padding-block-start: clamp(7rem, 12vw, 9rem); }
.checkout-empty { text-align: center; max-width: 46ch; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 3rem; align-items: start; }
.checkout-col-form h2 { font-size: 1.5rem; margin-block: 0 1.2rem; }
.checkout-col-form h2 + .payment-methods { margin-top: 0; }
.checkout-form h2:not(:first-child) { margin-top: 2rem; }
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.payment-option {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.1rem .6rem; border-radius: var(--radius-sm); border: 1.4px solid var(--line);
  background: var(--paper); cursor: pointer; text-align: center; font-size: .82rem; font-weight: 600;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-option svg { width: 22px; height: 22px; color: var(--ink-mute); }
.payment-option.is-active { border-color: var(--accent); background: rgba(193,85,44,.06); }
.payment-option.is-active svg { color: var(--accent); }
.payment-card-fields { background: var(--bg-2); border-radius: var(--radius-sm); padding: 1.2rem; margin-bottom: .6rem; }
.payment-note { font-size: .82rem; color: var(--ink-mute); margin-bottom: 1.4rem; }

.checkout-col-summary { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-card); position: sticky; top: 100px; }
.checkout-col-summary h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.checkout-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.4rem; }
.checkout-item { display: grid; grid-template-columns: 54px 1fr auto; gap: .8rem; align-items: center; }
.checkout-item img { width: 54px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; }
.checkout-item-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.checkout-item-body strong { font-size: .88rem; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-item-body span { font-size: .74rem; color: var(--ink-mute); }
.checkout-totals { border-top: 1px solid var(--line); padding-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.checkout-total-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-mute); }
.checkout-total-row-final { font-size: 1.2rem; font-weight: 700; color: var(--ink); font-family: var(--display); }

.checkout-confirmation { max-width: 480px; margin: 3rem auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.confirmation-icon {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(58,107,69,.12); color: #3a6b45;
  display: flex; align-items: center; justify-content: center; margin-bottom: .5rem;
}
.confirmation-icon svg { width: 30px; height: 30px; }
.confirmation-ref { font-size: .95rem; color: var(--ink-mute); }
.confirmation-ref strong { color: var(--ink); font-family: var(--sans); }

.checkout-buyer-note { font-size: .84rem; color: var(--ink-mute); margin-bottom: 1.4rem; max-width: 52ch; }
.checkout-payment-note { font-size: .82rem; color: var(--ink-mute); margin: .4rem 0 1rem; }
.checkout-form-error { color: #b3372c; font-size: .85rem; min-height: 1.1em; margin-bottom: .6rem; }

.checkout-processing { max-width: 420px; margin: 4rem auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.checkout-spinner {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent);
  animation: checkoutSpin .8s linear infinite;
}
@keyframes checkoutSpin { to { transform: rotate(360deg); } }

.confirmation-refs { display: flex; flex-direction: column; gap: .6rem; width: 100%; margin: .4rem 0; }
.confirmation-refs .confirmation-ref {
  display: flex; justify-content: space-between; gap: 1rem; background: var(--paper); border-radius: var(--radius-sm);
  padding: .8rem 1rem; box-shadow: var(--shadow-card); text-align: left;
}
.checkout-confirmation .btn { margin-top: .3rem; }

/* --- Footer --- */
.site-footer { background: var(--navy); color: rgba(246,237,225,.82); padding-block-start: clamp(3.5rem, 7vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(246,237,225,.12); }
.footer-brand p { margin-block: 1.1rem; max-width: 32ch; font-size: .92rem; color: rgba(246,237,225,.65); }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(246,237,225,.22); display: flex; align-items: center; justify-content: center; color: rgba(246,237,225,.85); transition: background .3s, transform .3s var(--ease-out); }
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-nav { display: flex; flex-direction: column; gap: .75rem; font-size: .92rem; }
.footer-nav span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .3rem; }
.footer-nav a { color: rgba(246,237,225,.75); }
.footer-nav a:hover { color: var(--cream); }

.footer-legal span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); display: block; margin-bottom: .6rem; }
.footer-legal p { font-size: .84rem; color: rgba(246,237,225,.65); margin-bottom: .8rem; line-height: 1.6; }

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-block: 1.6rem; font-size: .8rem; color: rgba(246,237,225,.55); }
.footer-credits a { text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--gold-soft); }

/* --- Página de tour individual --- */
.breadcrumb { display: flex; align-items: center; gap: .5rem; padding-block: 1.6rem .4rem; font-size: .82rem; color: var(--ink-mute); }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .5; }
.breadcrumb span:last-child { color: var(--ink-soft); font-weight: 500; }

.tour-not-found { text-align: center; padding-block: 6rem; }
.tour-not-found p { max-width: 46ch; margin: 1rem auto 1.8rem; color: var(--ink-mute); }

.tour-hero { padding-block: 1.4rem 2rem; }
.tour-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: center; }
.tour-hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-card); }
.tour-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-hero-badge {
  position: absolute; top: 1.2rem; left: 1.2rem;
  background: var(--gold); color: var(--navy); font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; padding: .45rem .85rem; border-radius: 999px;
}
.tour-hero-info .section-kicker { margin-bottom: .5rem; }
.tour-hero-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .8rem; }
.tour-hero-rating { display: flex; align-items: center; gap: .4rem; color: var(--accent); font-size: .95rem; margin-bottom: 1.2rem; }
.tour-hero-rating span:not(.is-full) { color: var(--line); }
.tour-hero-rating span.is-full { color: var(--gold); }
.tour-hero-rating strong { color: var(--ink); margin-left: .2rem; }
.tour-hero-rating > span:last-child { color: var(--ink-mute); font-weight: 400; }
.tour-hero-price-row { display: flex; align-items: baseline; gap: .5rem; font-size: .95rem; color: var(--ink-mute); margin-bottom: 1.6rem; }
.tour-hero-price-row strong { font-family: var(--display); font-size: 2rem; color: var(--ink); }
.tour-hero-actions { display: flex; flex-direction: column; gap: .8rem; max-width: 320px; }

.tour-content-grid { display: grid; grid-template-columns: 1fr .55fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 1rem; }
.tour-content-main .section-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); text-align: left; margin-top: 2.6rem; margin-bottom: 1.2rem; }
.tour-content-main .section-title:first-child { margin-top: 0; }
.tour-description p { margin-bottom: 1rem; color: var(--ink-soft); }

.tour-includes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.4rem; }
.tour-includes-grid h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.tour-includes-list li, .tour-excludes-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; color: var(--ink-soft); margin-bottom: .7rem; }
.tour-includes-list svg { flex: none; width: 18px; height: 18px; margin-top: .1rem; color: var(--accent); }
.tour-excludes-list svg { flex: none; width: 18px; height: 18px; margin-top: .1rem; color: var(--ink-mute); }

.tour-itinerary { display: flex; flex-direction: column; gap: 0; margin-top: 1.4rem; }
.tour-itinerary-step { display: flex; gap: 1rem; position: relative; padding-bottom: 1.6rem; }
.tour-itinerary-step:last-child { padding-bottom: 0; }
.tour-itinerary-dot { flex: none; width: 12px; height: 12px; margin-top: .3rem; border-radius: 50%; background: var(--accent); position: relative; }
.tour-itinerary-step:not(:last-child) .tour-itinerary-dot::after {
  content: ""; position: absolute; top: 14px; left: 50%; width: 1px; height: calc(100% + 1.6rem - 14px);
  background: var(--line); transform: translateX(-50%);
}
.tour-itinerary-step strong { display: block; margin-bottom: .3rem; color: var(--ink); }
.tour-itinerary-step p { font-size: .92rem; color: var(--ink-mute); }

.tour-detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.4rem; }
.tour-detail-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-md); }

.tour-content-side { position: sticky; top: 100px; }
.tour-side-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 1.8rem; }
.tour-side-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.tour-side-facts { margin-bottom: 1.4rem; }
.tour-side-facts li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; padding-block: .55rem; border-bottom: 1px solid var(--line); }
.tour-side-facts li:first-child { border-top: 1px solid var(--line); }
.tour-side-facts span { color: var(--ink-mute); }
.tour-side-card .btn { margin-top: .7rem; }
.tour-side-card .btn:first-of-type { margin-top: 0; }

.tour-contact-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
  background: var(--navy); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem);
}
.tour-contact-cta-inner h2 { color: var(--cream); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .5rem; }
.tour-contact-cta-inner p { color: rgba(246,237,225,.72); }

/* =============================================================
   7. Effects / Keyframes
   ============================================================= */
@keyframes heroKenBurns {
  0%   { transform: scale(1.02) translate(0,0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}
@keyframes scrollCue {
  0%   { opacity: 1; transform: translateY(0); }
  70%  { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(0); }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Tilt-ready cards (JS adds inline transform via CSS var) */
.advantage-card, .tour-card {
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(var(--liftY, 0px));
}

/* =============================================================
   8. Responsive (mobile-first overrides above are desktop-leaning,
      so we scale DOWN for smaller viewports)
   ============================================================= */
@media (max-width: 1279px) {
  .tours-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-col-summary { position: static; }
  .tour-content-grid { grid-template-columns: 1fr; }
  .tour-content-side { position: static; max-width: 420px; }
}

@media (max-width: 959px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 420px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }
  .tour-hero-grid { grid-template-columns: 1fr; }
  .tour-hero-actions { max-width: none; }
}

@media (max-width: 719px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 6.5rem 2rem 2rem; gap: 1.6rem;
    transform: translateX(100%); transition: transform .5s var(--ease-out);
    box-shadow: -20px 0 60px rgba(28,36,56,.18);
    z-index: 150;
  }
  .nav-links a:not(.btn) { font-size: 1.1rem; }
  .nav-toggle-input:checked ~ .nav-links { transform: translateX(0); }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
  .nav-links-static { position: static; width: auto; transform: none; box-shadow: none; padding: 0; flex-direction: row; }

  .advantages-grid { grid-template-columns: 1fr; }
  .tours-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tour-includes-grid { grid-template-columns: 1fr; }
  .tour-detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .tour-contact-cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .about-stats { gap: 1.6rem 2.2rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .payment-methods { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .header-right { gap: .5rem; }
  .header-tools { gap: .3rem; }
  .switcher-btn { padding: .45rem .5rem; font-size: .7rem; }
  .switcher-btn svg { width: 11px; height: 11px; }
  .cart-btn { width: 34px; height: 34px; }
  .cart-btn svg { width: 15px; height: 15px; }
  .nav-toggle { width: 36px; height: 36px; }
  .brand-logo { height: 42px; }
  .container { padding-inline: 1rem; }
}

@media (max-width: 539px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.span-2 { grid-column: span 1; }
  .review-card { width: 86vw; }
  .cart-drawer-panel { width: 100vw; }
}

/* =============================================================
   9. Reduced-motion — only INTRUSIVE effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .marquee-track { animation-duration: 70s; }
  .scroll-cue span { animation: none; }
}

/* =============================================================
   Chat widget (asistente de soporte)
   ============================================================= */
.chat-widget { position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 300; }

.chat-fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(193,85,44,.55), 0 4px 12px rgba(28,36,56,.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), box-shadow .35s var(--ease-out);
}
.chat-fab:hover { transform: scale(1.06); background: var(--accent-dark); }
.chat-fab-icon { position: absolute; width: 25px; height: 25px; transition: opacity .3s var(--ease-out), transform .35s var(--ease-out); }
.chat-fab-icon-close { opacity: 0; transform: rotate(-40deg) scale(.6); }
.chat-widget.is-open .chat-fab-icon-open { opacity: 0; transform: rotate(40deg) scale(.6); }
.chat-widget.is-open .chat-fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }

.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 1rem);
  width: min(384px, 92vw); max-height: min(600px, 72vh);
  background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card-hover), 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(18px) scale(.95); transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.chat-widget.is-open .chat-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-head {
  background: var(--navy); color: var(--cream); padding: 1.1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.chat-head-info { display: flex; align-items: center; gap: .7rem; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(246,237,225,.12);
  display: flex; align-items: center; justify-content: center; color: var(--gold-soft); flex-shrink: 0;
}
.chat-avatar svg { width: 19px; height: 19px; }
.chat-head-text strong { display: block; font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.chat-status { display: flex; align-items: center; gap: .35rem; font-size: .7rem; color: rgba(246,237,225,.68); margin-top: .15rem; }
.chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #5fbf77; }
.chat-close { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(246,237,225,.85); flex-shrink: 0; }
.chat-close:hover { background: rgba(246,237,225,.14); }
.chat-close svg { width: 14px; height: 14px; }

.chat-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; background: var(--bg); }
.chat-msg { max-width: 86%; padding: .75rem 1rem; border-radius: 16px; font-size: .87rem; line-height: 1.5; }
.chat-msg p { margin: 0; }
.chat-msg-bot { align-self: flex-start; background: var(--paper); color: var(--ink-soft); border-bottom-left-radius: 4px; box-shadow: var(--shadow-card); }
.chat-msg-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-typing { display: flex; gap: 4px; padding: .95rem 1.1rem; align-items: center; }
.chat-msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: chatTyping 1.2s ease-in-out infinite; }
.chat-msg-typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg-typing span:nth-child(3) { animation-delay: .3s; }

.chat-form { display: flex; gap: .6rem; padding: .9rem 1rem; border-top: 1px solid var(--line); background: var(--paper); flex-shrink: 0; }
.chat-form input {
  flex: 1; border: 1.4px solid var(--line); border-radius: 999px;
  padding: .65rem 1.1rem; background: var(--bg); font-size: .87rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(193,85,44,.12); }
.chat-send { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .3s var(--ease-out), transform .3s var(--ease-out); }
.chat-send:hover { background: var(--accent-dark); transform: scale(1.05); }
.chat-send svg { width: 16px; height: 16px; margin-left: -1px; }
.chat-form.is-sending .chat-send { opacity: .55; pointer-events: none; }

.chat-disclaimer { font-size: .67rem; color: var(--ink-mute); text-align: center; padding: .55rem 1rem .85rem; background: var(--paper); flex-shrink: 0; }

@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 539px) {
  .chat-widget { right: 1rem; bottom: 1rem; }
  .chat-fab { width: 54px; height: 54px; }
  .chat-panel { width: calc(100vw - 2rem); max-height: 68vh; }
}

/* =============================================================
   Auth modal (acceso / registro)
   ============================================================= */
.auth-modal { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.auth-modal-backdrop {
  position: absolute; inset: 0; background: rgba(22,31,55,.55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s var(--ease-out);
}
.auth-modal-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.96);
  width: min(420px, 92vw); max-height: 90vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -20px rgba(22,31,55,.45);
  padding: 2.4rem 2rem 2rem; opacity: 0;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.auth-modal.is-open { pointer-events: auto; }
.auth-modal.is-open .auth-modal-backdrop { opacity: 1; }
.auth-modal.is-open .auth-modal-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.auth-modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--ink-mute);
}
.auth-modal-close:hover { background: var(--line); color: var(--ink); }
.auth-modal-close svg { width: 14px; height: 14px; }

.auth-modal-brand { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.auth-modal-logo { height: 56px; width: auto; }

.auth-tabs { display: flex; gap: .4rem; background: var(--bg-2); border-radius: 999px; padding: .3rem; margin-bottom: 1.4rem; }
.auth-tab {
  flex: 1; padding: .6rem 1rem; border-radius: 999px; font-size: .87rem; font-weight: 600;
  color: var(--ink-mute); transition: background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.auth-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-card); }

.auth-google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .7rem;
  padding: .85rem 1rem; border-radius: 999px; border: 1.4px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 1.2rem;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.auth-google-btn:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-card); }

.auth-divider { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { font-size: .74rem; color: var(--ink-mute); white-space: nowrap; }

.auth-form .form-field { margin-bottom: 1rem; }
.auth-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-hint { font-size: .72rem; color: var(--ink-mute); margin-top: .3rem; display: block; }
.auth-error { color: #b3372c; font-size: .82rem; min-height: 1.1em; margin-bottom: .6rem; }
.auth-legal { font-size: .72rem; color: var(--ink-mute); text-align: center; margin-top: 1.2rem; line-height: 1.5; }

@media (max-width: 539px) {
  .auth-modal-panel { padding: 2rem 1.4rem 1.6rem; }
  .auth-form .form-row { grid-template-columns: 1fr; }
}

/* =============================================================
   Calendario de disponibilidad / widget de reserva
   ============================================================= */
.booking-modal { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.booking-modal-backdrop {
  position: absolute; inset: 0; background: rgba(22,31,55,.55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s var(--ease-out);
}
.booking-modal-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.96);
  width: min(480px, 92vw); max-height: 90vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -20px rgba(22,31,55,.45);
  padding: 2.4rem 2rem 2rem; opacity: 0;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.booking-modal.is-open { pointer-events: auto; }
.booking-modal.is-open .booking-modal-backdrop { opacity: 1; }
.booking-modal.is-open .booking-modal-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.booking-modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-2); display: flex; align-items: center; justify-content: center; color: var(--ink-mute); z-index: 2;
}
.booking-modal-close:hover { background: var(--line); color: var(--ink); }
.booking-modal-close svg { width: 14px; height: 14px; }

.booking-step h3 { font-size: 1.4rem; margin-bottom: .3rem; padding-right: 2rem; }
.booking-duration-note { font-size: .85rem; color: var(--ink-mute); margin-bottom: 1.4rem; }

.booking-calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.booking-calendar-nav button {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); color: var(--ink);
}
.booking-calendar-nav button:hover { background: var(--line); }
.booking-calendar-nav button svg { width: 15px; height: 15px; }
.booking-calendar-nav strong { font-family: var(--display); font-size: 1.1rem; text-transform: capitalize; }

.booking-calendar-weekdays, .booking-calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem;
}
.booking-calendar-weekdays { margin-bottom: .4rem; }
.booking-calendar-weekdays span { text-align: center; font-size: .72rem; color: var(--ink-mute); font-weight: 600; }

.booking-day {
  aspect-ratio: 1/1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; font-size: .82rem; background: var(--bg-2); color: var(--ink-mute);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.booking-day.is-blank { background: transparent; }
.booking-day.is-open { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(28,36,56,.08); cursor: pointer; }
.booking-day.is-open:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.booking-day.is-open .booking-day-remaining { font-size: .62rem; color: var(--accent); }
.booking-day.is-open:hover .booking-day-remaining { color: #fff; }
.booking-day.is-full, .booking-day.is-blocked, .booking-day.is-unavailable, .booking-day.is-past {
  background: transparent; color: var(--line); text-decoration: line-through; cursor: not-allowed;
}
.booking-day-num { font-weight: 600; }
.booking-calendar-loading, .booking-calendar-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-mute); font-size: .85rem; padding: 1.4rem 0; }

.booking-calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; font-size: .76rem; color: var(--ink-mute); }
.booking-calendar-legend span { display: flex; align-items: center; gap: .4rem; }
.booking-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.booking-legend-dot.is-open { background: var(--accent); }
.booking-legend-dot.is-full { background: var(--ink-mute); }
.booking-legend-dot.is-blocked { background: var(--line); }

.booking-back {
  display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-mute);
  margin-bottom: 1rem; padding-right: 2rem;
}
.booking-back:hover { color: var(--accent); }
.booking-selected-date { font-size: .88rem; color: var(--ink-mute); margin-bottom: 1.4rem; text-transform: capitalize; }

.booking-counter-row { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.booking-stepper { display: flex; align-items: center; gap: .9rem; }
.booking-stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 1.4px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ink);
}
.booking-stepper button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.booking-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.booking-stepper span { min-width: 1.4rem; text-align: center; font-weight: 600; }

.booking-remaining-note { font-size: .78rem; color: var(--ink-mute); margin: .8rem 0 1.2rem; }

.booking-travelers-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.booking-traveler-row strong { display: block; font-size: .82rem; margin-bottom: .5rem; color: var(--ink); }
.booking-traveler-row .form-field { margin-bottom: 0; }
.booking-traveler-row .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.booking-error { color: #b3372c; font-size: .82rem; min-height: 1.1em; margin-bottom: .4rem; }

.booking-price-summary {
  display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: .88rem;
}
.booking-price-summary strong { font-family: var(--display); font-size: 1.15rem; }

.booking-step .btn { margin-top: .6rem; }
.booking-step .btn:first-of-type { margin-top: .4rem; }

@media (max-width: 539px) {
  .booking-modal-panel { padding: 2rem 1.2rem 1.6rem; }
  .booking-traveler-row .form-row { grid-template-columns: 1fr; }
}

html[dir="rtl"] .booking-modal-close { right: auto; left: 1.2rem; }
html[dir="rtl"] .booking-back { flex-direction: row-reverse; }

/* =============================================================
   Mi cuenta
   ============================================================= */
.account-section { padding-block-start: clamp(7rem, 12vw, 9rem); }
.account-grid { display: grid; grid-template-columns: 1fr .55fr; gap: clamp(1.6rem, 4vw, 3rem); margin-top: 2.5rem; align-items: start; }
.account-main { display: flex; flex-direction: column; gap: 1.4rem; }
.account-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-card); }
.account-card h2 { font-size: 1.32rem; margin-bottom: 1.1rem; }
.account-member-since { font-size: .82rem; color: var(--ink-mute); margin-top: -.6rem; margin-bottom: 1.2rem; }
.account-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.account-form .form-field { margin-bottom: 1rem; }
.account-form select { border: 1.4px solid var(--line); border-radius: var(--radius-sm); padding: .75rem 1rem; background: var(--bg); width: 100%; }
.account-empty { color: var(--ink-mute); font-size: .92rem; }

.account-side-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; position: sticky; top: 100px; }
.account-avatar {
  width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700;
  font-family: var(--display); margin-bottom: .6rem;
}
.account-side-card strong { font-size: 1.05rem; color: var(--ink); }
.account-side-card .account-email { font-size: .84rem; color: var(--ink-mute); margin-bottom: 1.2rem; word-break: break-all; }

.booking-card { border: 1.4px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.booking-card:last-child { margin-bottom: 0; }
.booking-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.booking-card-head strong { font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.booking-status { font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-mute); }
.booking-status-confirmed { background: rgba(58,107,69,.12); color: #3a6b45; }
.booking-status-pending { background: rgba(201,162,39,.16); color: #8a6f1f; }
.booking-status-cancelled { background: rgba(179,55,44,.12); color: #b3372c; }
.booking-status-pending_payment { background: rgba(201,162,39,.16); color: #8a6f1f; }
.booking-status-completed { background: rgba(43,51,80,.1); color: var(--ink-soft); }
.booking-ref { font-size: .74rem; color: var(--ink-mute); font-weight: 600; white-space: nowrap; }
.booking-card-meta { font-size: .82rem; color: var(--ink-mute); margin-bottom: .6rem; }
.booking-travelers { list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .84rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: .2rem; }
.booking-items { list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .86rem; color: var(--ink-mute); display: flex; flex-direction: column; gap: .3rem; }
.booking-card-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.booking-payment { font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-mute); }
.booking-payment-paid { background: rgba(58,107,69,.12); color: #3a6b45; }
.booking-payment-pending { background: rgba(201,162,39,.16); color: #8a6f1f; }
.booking-payment-failed, .booking-payment-refunded { background: rgba(179,55,44,.12); color: #b3372c; }
.booking-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--ink-mute); gap: .8rem; }
.booking-card-foot strong { color: var(--ink); font-family: var(--sans); }
.booking-cancel-btn { font-size: .78rem; font-weight: 600; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.booking-cancel-btn:hover { color: #b3372c; }
.booking-cancel-btn:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 959px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-side-card { position: static; }
}
@media (max-width: 539px) {
  .account-form .form-row { grid-template-columns: 1fr; }
}

/* =============================================================
   10. RTL support (Arabic)
   ============================================================= */
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .nav-links a:not(.btn)::after { left: auto; right: 0; left: 100%; }
html[dir="rtl"] .nav-links a:not(.btn):hover::after { left: 0; }
html[dir="rtl"] .hero-trust,
html[dir="rtl"] .info-list li,
html[dir="rtl"] .cart-item,
html[dir="rtl"] .checkout-item,
html[dir="rtl"] .review-head { direction: rtl; }
html[dir="rtl"] .about-figure-badge { left: auto; right: -1.2rem; }
html[dir="rtl"] .tour-flag { left: auto; right: 1rem; }
html[dir="rtl"] .tour-badge { right: auto; left: 1rem; }
html[dir="rtl"] .tour-hero-badge { left: auto; right: 1.2rem; }
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .tour-side-facts li,
html[dir="rtl"] .tour-itinerary-step { direction: rtl; }
html[dir="rtl"] .cart-drawer-panel { right: auto; left: 0; box-shadow: 20px 0 60px rgba(28,36,56,.25); transform: translateX(-100%); }
html[dir="rtl"] .cart-drawer.is-open .cart-drawer-panel { transform: translateX(0); }
html[dir="rtl"] .nav-links { inset: 0 auto 0 0; transform: translateX(-100%); box-shadow: 20px 0 60px rgba(28,36,56,.18); }
html[dir="rtl"] .nav-toggle-input:checked ~ .nav-links { transform: translateX(0); }
html[dir="rtl"] .skip-link { left: auto; right: 1rem; }
html[dir="rtl"] .testimonial-card::before,
html[dir="rtl"] .tour-link span { transform: scaleX(-1); }
html[dir="rtl"] .faq-item summary { flex-direction: row-reverse; }
html[dir="rtl"] .marquee-track { direction: ltr; }
html[dir="rtl"] .chat-widget { right: auto; left: 1.6rem; }
html[dir="rtl"] .chat-panel { right: auto; left: 0; transform-origin: bottom left; }
html[dir="rtl"] .chat-msg-bot { align-self: flex-start; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
html[dir="rtl"] .chat-msg-user { align-self: flex-end; border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
html[dir="rtl"] .chat-send svg { margin-left: 0; margin-right: -1px; transform: scaleX(-1); }
@media (max-width: 539px) { html[dir="rtl"] .chat-widget { left: 1rem; right: auto; } }
html[dir="rtl"] .auth-modal-close { right: auto; left: 1.2rem; }
