@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Raleway:wght@400;500;600;700;800;900&display=swap");

:root {
  --color-primary: #007b8a;
  --color-primary-dark: #003a5d;
  --color-accent: #007b8a;
  --color-ink: #102d3d;
  --color-muted: #65747b;
  --color-line: #e8eef0;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --shadow: 0 20px 55px rgba(0, 58, 93, 0.10);
  --radius: 8px;
  --container: 1280px;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-weight: 400;
}
body.lightbox-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
p { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,58,93,0.10);
}

.site-header .container { min-height: 78px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-script {
  display: grid;
  gap: 0;
  color: inherit;
  font-family: var(--font-display);
  line-height: 1.02;
  text-transform: none;
  letter-spacing: 0;
}

.brand-script span {
  font-size: 22px;
  font-weight: 800;
}

.brand-script em {
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 138px;
  max-width: 42vw;
  padding: 16px 0;
}

.brand-logo img {
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  color: var(--color-muted);
  font-weight: 700;
}

.nav a:hover, .nav a.active { color: var(--color-primary); }

.menu-toggle { display: none; }

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: inherit;
  font-size: 13px;
}

.language-toggle button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  opacity: .58;
}

.language-toggle button.active { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover { transform: translateY(-2px); background: var(--color-primary-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-outline:hover { color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-whatsapp { background: #1f9f55; }
.btn-mail { background: var(--color-primary-dark); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  color: #fff;
  background: #003a5d url("../assets/img/hero-hacienda.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,25,40,.78), rgba(0,58,93,.44) 45%, rgba(0,123,138,.12)), linear-gradient(0deg, rgba(0,25,40,.78), rgba(0,58,93,0) 58%);
}

.hero .container {
  position: relative;
  padding-top: 118px;
  padding-bottom: clamp(42px, 7dvh, 84px);
  transform: translateY(clamp(24px, 7dvh, 86px));
}
.eyebrow { margin: 0 0 12px; color: var(--color-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; font-size: 13px; }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 98px);
  line-height: .92;
  letter-spacing: 0;
}
.hero h1 em {
  color: #c8edf1;
  font-style: italic;
  font-weight: 400;
}
.hero p { max-width: 610px; margin: 22px 0 30px; font-size: 15px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.home-page .site-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border: 0;
  color: #fff;
  backdrop-filter: none;
}
.home-page .site-header .container {
  min-height: 92px;
  width: min(1180px, calc(100% - 40px));
}
.home-page .brand-logo {
  width: 130px;
}
.home-page .brand-logo img {
  max-height: none;
}
.home-page .nav { color: rgba(255,255,255,.9); }
.home-page .nav a:hover,
.home-page .nav a.active { color: #fff; }
.home-page .language-toggle { border-color: rgba(255,255,255,.32); }
.home-page .menu-toggle {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
  color: #fff;
}

.booking-strip {
  position: relative;
  margin-top: 68px;
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr auto;
  gap: 12px;
  box-shadow: var(--shadow);
}

.field label, .form-grid label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 800;
}

.field input, .field select, .form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 11px 13px;
  background: #fff;
  color: var(--color-ink);
}

section { padding: 86px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head-centered { display: block; text-align: center; }
.section-head-centered .btn { margin-top: 18px; }
.section-head h2, .page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.02;
}
.section-head p { max-width: 560px; margin: 10px 0 0; color: var(--color-muted); }
.section-head-centered p { margin-left: auto; margin-right: auto; }

.tour-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.home-tours .tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1110px; margin: 0 auto; }
.tour-card { display: block; background: #fff; border: 1px solid var(--color-line); border-radius: 18px; overflow: hidden; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tour-card:hover { transform: translateY(-4px); border-color: #dbe8ec; box-shadow: 0 20px 45px rgba(0,58,93,.08); }
.tour-image-link { position: relative; display: block; overflow: hidden; }
.tour-card img { width: 100%; height: 230px; object-fit: cover; transition: transform .35s ease; }
.tour-card:hover img { transform: scale(1.04); }
.tour-search-icon {
  position: absolute;
  display: grid;
  place-items: center;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--color-ink);
  box-shadow: 0 10px 25px rgba(0,0,0,.16);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}
.tour-card-body { padding: 20px 20px 18px; }
.pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #f5fafb; color: var(--color-primary-dark); font-size: 12px; font-weight: 800; }
.tour-card h3 { margin: 0 0 12px; min-height: 48px; font-size: 18px; line-height: 1.32; font-weight: 600; }
.tour-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--color-ink); font-size: 14px; }
.tour-summary { min-height: 56px; margin: 14px 0 16px; color: var(--color-muted); font-size: 15px; font-weight: 400; }
.tour-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--color-line); }
.tour-rating { color: #007b8a; font-weight: 800; white-space: nowrap; }
.tour-rating em { color: var(--color-ink); font-style: normal; font-weight: 500; }
.tour-price { margin: 0; color: var(--color-muted); white-space: nowrap; }
.tour-price strong { color: var(--color-ink); font-size: 23px; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.feature-band { background: #fff; border-block: 1px solid var(--color-line); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--color-line); }
.benefit-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 900; }
.benefit h3 { margin: 18px 0 8px; }
.benefit p { margin: 0; color: var(--color-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split img { border-radius: var(--radius); min-height: 430px; object-fit: cover; box-shadow: var(--shadow); }
.check-list { padding: 0; margin: 22px 0; list-style: none; }
.check-list li { padding: 9px 0 9px 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: 900; }

.history-section {
  background: #fff;
  padding: 96px 0;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: 64px;
  align-items: center;
}

.history-image {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: visible;
}

.history-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  background: #f5fafb;
}

.history-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
}

.history-copy p {
  max-width: 650px;
  color: var(--color-muted);
  font-size: 18px;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.history-stats div {
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.history-stats strong {
  color: #007b8a;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.history-stats span {
  color: var(--color-muted);
  font-size: 14px;
}

.osuna-banner {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #003a5d url("../assets/img/agave_mrlionso.jpg") center/cover no-repeat;
}

.osuna-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 56, .78);
}

.osuna-banner .container {
  position: relative;
  max-width: 760px;
}

.osuna-pill {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 7px 18px;
  border: 1px solid rgba(200,237,241,.65);
  border-radius: 999px;
  color: #c8edf1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.osuna-banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
}

.osuna-banner p {
  max-width: 690px;
  margin: 24px auto 34px;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.75;
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  grid-template-rows: repeat(2, 260px);
  gap: 18px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-row: span 2; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; }
.quote strong { color: var(--color-primary-dark); }

.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 18px 20px; }
.faq summary { cursor: pointer; font-weight: 900; }
.faq p { color: var(--color-muted); margin-bottom: 0; }

.cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.cta p { color: rgba(255,255,255,.82); max-width: 650px; margin: 12px auto 26px; }

.page-hero {
  padding: 82px 0;
  background: linear-gradient(90deg, rgba(0,58,93,.92), rgba(0,123,138,.70)), url("../assets/img/hero-hacienda.jpg") center/cover;
  color: #fff;
}
.page-hero p { max-width: 620px; color: rgba(255,255,255,.86); }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.filters input, .filters select { min-height: 48px; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 10px 12px; background: #fff; }
.filters input { flex: 1 1 260px; }

[data-tour-detail] {
  padding: 30px 0 90px;
  background: #fff;
}
.trip-detail { padding-top: 0; }
.trip-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.trip-breadcrumb a:hover { color: var(--color-primary); }
.trip-title { margin-bottom: 22px; }
.trip-title h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}
.trip-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 14px;
}
.trip-stars { color: #007b8a; font-weight: 800; }
.trip-stars em { color: var(--color-ink); font-style: normal; font-weight: 500; }
.trip-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, .95fr);
  gap: 8px;
  margin-bottom: 34px;
}
.trip-gallery img {
  width: 100%;
  object-fit: cover;
  background: #f5fafb;
}
.trip-gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.trip-gallery-button img {
  height: 100%;
  transition: transform .25s ease, filter .25s ease;
}
.trip-gallery-button:hover img {
  transform: scale(1.025);
  filter: brightness(.96);
}
.trip-gallery-main { height: 450px; border-radius: 8px 0 0 8px; }
.trip-gallery-main img { border-radius: 8px 0 0 8px; }
.trip-gallery-side {
  position: relative;
  display: grid;
  gap: 8px;
}
.trip-gallery-side .trip-gallery-button { height: 221px; }
.trip-gallery-side .trip-gallery-button:first-child,
.trip-gallery-side .trip-gallery-button:first-child img { border-radius: 0 8px 0 0; }
.trip-gallery-side .trip-gallery-button:nth-child(2),
.trip-gallery-side .trip-gallery-button:nth-child(2) img { border-radius: 0 0 8px 0; }
.gallery-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.gallery-view-all,
.gallery-video-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.gallery-action-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}
.gallery-action-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.gallery-view-all .gallery-action-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trip-content-layout { grid-template-columns: minmax(0, 1fr) 390px; }
.trip-content { min-width: 0; }
.trip-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 26px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 14px;
}
.trip-facts div {
  display: grid;
  gap: 4px;
}
.trip-facts span {
  color: var(--color-muted);
  font-size: 13px;
}
.trip-facts strong { font-size: 14px; }
.trip-section {
  padding: 14px 0 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
}
.trip-section h2 {
  margin: 0 0 10px;
  font-size: 26px;
}
.trip-section h3 {
  margin: 12px 0 6px;
  font-size: 16px;
}
.trip-section p {
  max-width: 820px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.muted-list li::before { color: var(--color-muted); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 34px; align-items: start; }
.detail-cover { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-card, .booking-panel { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px; }
.booking-panel { position: sticky; top: 100px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.mini-stat { background: var(--color-bg); padding: 16px; border-radius: var(--radius); border: 1px solid var(--color-line); }
.mini-stat span { display: block; color: var(--color-muted); font-size: 13px; font-weight: 800; }
.mini-stat strong { font-size: 18px; }

.trip-booking-panel {
  border: 0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(0, 58, 93, .10);
}
.price-label {
  display: block;
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.trip-booking-price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.trip-booking-price span {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 600;
}
.trip-price-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
}
.trip-price-split div {
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
}
.trip-price-split span,
.trip-price-split small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
}
.trip-price-split strong {
  display: block;
  margin: 3px 0;
  font-size: 18px;
  color: var(--color-ink);
}
.trip-price-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.trip-price-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--color-line);
}
.trip-price-list span,
.trip-price-list small {
  color: var(--color-muted);
  font-size: 12px;
}
.trip-price-list strong {
  font-size: 15px;
}
.trip-price-list small {
  grid-column: 1 / -1;
}
.trip-booking-panel hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 22px 0;
}
.trip-booking-panel h2 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.trip-booking-form {
  display: grid;
  gap: 12px;
}
.trip-booking-form label {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.trip-booking-form input,
.trip-booking-form select,
.trip-booking-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--color-ink);
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
}
.booking-label {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 7px;
}
.booking-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.booking-date-field { position: relative; }
.date-trigger {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  color: var(--color-muted);
  text-align: left;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}
.date-trigger.has-value { color: var(--color-ink); }
.date-trigger:focus,
.date-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--color-primary);
}
.date-trigger.is-invalid { border-color: #007b8a; }
.booking-calendar {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 22px 34px rgba(0, 58, 93, .12);
}
.calendar-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 46px;
  background: #007b8a;
  color: #fff;
}
.calendar-head strong {
  text-align: center;
  font-size: 20px;
}
.calendar-head button {
  height: 46px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-weekdays {
  padding: 10px 12px 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.calendar-days {
  gap: 4px;
  padding: 8px 12px 14px;
}
.calendar-days button {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  cursor: pointer;
}
.calendar-days button.is-muted { color: #c8c8c8; }
.calendar-days button:disabled {
  color: #dfdfdf;
  cursor: not-allowed;
}
.calendar-days button.is-selected {
  border-color: #9aa4b2;
  box-shadow: 0 0 0 1px rgba(154, 164, 178, .25);
}
.schedule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.schedule-chip {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-muted);
  background: #fff;
  cursor: pointer;
}
.schedule-chip.is-active {
  border-color: rgba(0, 123, 138, .28);
  color: var(--color-primary);
  background: rgba(0, 123, 138, .06);
}
.booking-guests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.guest-counter > span {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.guest-counter small {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 12px;
}
.counter-control {
  display: grid;
  grid-template-columns: 34px minmax(44px, 1fr) 34px;
  gap: 8px;
  align-items: center;
}
.counter-control button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.counter-control input {
  min-height: 34px;
  padding: 4px 8px;
  text-align: center;
}
.booking-total-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #f7fbfc;
}
.booking-total-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-muted);
}
.booking-total-card strong {
  color: var(--color-muted);
  font-weight: 600;
}
.booking-total-card .total-row {
  border-top: 1px solid var(--color-line);
  padding-top: 14px;
  margin-top: 2px;
  align-items: center;
}
.booking-total-card .total-row span {
  color: var(--color-ink);
  font-weight: 800;
}
.booking-total-card .total-row strong {
  color: #007b8a;
  font-family: var(--font-body);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
}
.trip-booking-form .btn { width: 100%; }
.trip-booking-form .btn-mail { background: #007b8a; border-radius: 999px; }
.trip-booking-form .btn-whatsapp { background: #1fbd62; }
.booking-trust {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}
.booking-trust .check-list {
  margin: 8px 0 0;
}
.booking-trust .check-list li {
  padding-top: 4px;
  padding-bottom: 4px;
}
.booking-note {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  text-align: center;
}

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 8, .84);
}
.lightbox-dialog {
  position: relative;
  width: min(1060px, 100%);
  height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
}
.lightbox-dialog img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.lightbox-close {
  top: -12px;
  right: -12px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}
.lightbox-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 38px;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0 0 4px;
}
.lightbox-prev { left: -18px; padding-right: 3px; }
.lightbox-next { right: -18px; padding-left: 3px; }
.lightbox-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  padding-top: 14px;
}
.lightbox-footer span { color: rgba(255,255,255,.78); }
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 28px;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 25, 40, .86);
}
.video-modal-dialog {
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
}
.video-modal-dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
}
.video-modal-dialog iframe[hidden] { display: none; }
.video-file-fallback[hidden] { display: none; }
.video-file-fallback {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}
.video-file-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
}
.video-file-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45));
}
.video-file-fallback span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
.video-file-fallback span::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--color-primary);
}
.video-modal-youtube {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 26px; }

.site-footer {
  background: #003a5d;
  color: rgba(255,255,255,.78);
  padding: 54px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr .9fr; gap: 28px; }
.footer-grid-clean {
  grid-template-columns: minmax(280px, 1.05fr) .55fr minmax(300px, .95fr);
  align-items: start;
}
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.site-footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.78); }
.footer-about p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
}
.footer-contact {
  max-width: 360px;
}
.footer-location {
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  margin: 0 0 16px;
}
.footer-phones {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}
.footer-phones span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: .01em;
}
.footer-phones span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex: 0 0 auto;
}
.footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  margin: 0;
  background: rgba(255,255,255,.06);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-socials a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.footer-socials svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-socials a[aria-label="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}
.footer-socials a[aria-label="TikTok"] svg {
  fill: currentColor;
  stroke: none;
}
.footer-socials span {
  color: #fff;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  letter-spacing: .01em;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: 14px; }

.status {
  padding: 16px;
  border-radius: var(--radius);
  margin: 18px 0;
  font-weight: 800;
}
.status.success { background: #e9f8ef; color: #17623a; }
.status.error { background: #fff0ec; color: #9c2f1f; }

@media (max-width: 1180px) {
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; border: 1px solid var(--color-line); background: #fff; border-radius: var(--radius); align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; padding: 18px 20px; border-bottom: 1px solid var(--color-line); flex-direction: column; align-items: flex-start; }
  .nav.open { display: flex; }
  .home-page .nav.open { color: var(--color-ink); background: #fff; }
  .home-page .nav.open a,
  .home-page .nav.open a.active { color: var(--color-ink); }
  .home-page .nav.open .language-toggle { border-color: var(--color-line); }
  .booking-strip, .benefits, .split, .history-layout, .testimonials, .detail-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .history-layout { gap: 34px; }
  .history-image img, .history-image { min-height: 320px; height: auto; }
  .history-stats { grid-template-columns: 1fr; }
  .trip-gallery, .trip-content-layout { grid-template-columns: 1fr; }
  .trip-gallery-main, .trip-gallery-side .trip-gallery-button { height: 260px; border-radius: var(--radius); }
  .trip-gallery-main img, .trip-gallery-side .trip-gallery-button img { border-radius: var(--radius); }
  .trip-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery img { height: 220px; }
  .gallery img:first-child { grid-column: 1 / -1; height: 380px; }
  .booking-panel { position: static; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .home-page .brand-logo {
  width: 100px;
}
  .hero .container {
    padding-top: 112px;
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    transform: translateY(24px);
  }
  .hero h1 { font-size: 46px; }
  .history-section { padding: 68px 0; }
  .osuna-banner { min-height: 520px; }
  .hero-actions, .card-actions, .form-actions { flex-direction: column; }
  .btn { width: 100%; }
  section { padding: 64px 0; }
  .section-head { display: block; }
  .section-head-centered .btn { width: auto; }
  .tour-grid,
  .home-tours .tour-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 22px;
  }
  .tour-card img { height: 260px; }
  .tour-card h3 { min-height: 0; font-size: 22px; }
  .tour-summary { min-height: 0; font-size: 16px; }
  .trip-detail { padding-top: 24px; }
  .trip-title h1 { font-size: 34px; }
  .trip-facts, .booking-two, .booking-guests, .trip-price-split, .gallery, .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .booking-total-card .total-row strong { font-size: 22px; }
  .gallery { grid-template-rows: auto; }
  .gallery img, .gallery img:first-child, .detail-cover { height: 300px; }
  .lightbox { padding: 16px; }
  .lightbox-dialog { height: calc(100vh - 32px); }
  .lightbox-close { right: 0; top: 0; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
