:root {
  --bg: #f7f3e8;
  --surface: #fffdf7;
  --ink: #1f3770;
  --ink-soft: #344c83;
  --gold: #c8a135;
  --gold-soft: #e3c879;
  --line: #d5c395;
  --shadow: 0 24px 50px rgba(31, 55, 112, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(200, 161, 53, 0.2), transparent 35%),
    radial-gradient(circle at 75% 10%, rgba(31, 55, 112, 0.17), transparent 42%),
    linear-gradient(180deg, #fbf8ef, #f3ebd8);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.4;
  animation: float 13s ease-in-out infinite;
}

.blob-a {
  width: 210px;
  height: 210px;
  background: rgba(200, 161, 53, 0.35);
  top: 9%;
  right: 4%;
}

.blob-b {
  width: 280px;
  height: 280px;
  background: rgba(31, 55, 112, 0.2);
  bottom: 8%;
  left: -70px;
  animation-delay: -4s;
}

.blob-c {
  width: 160px;
  height: 160px;
  background: rgba(200, 161, 53, 0.25);
  bottom: 26%;
  right: 20%;
  animation-delay: -7s;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(251, 248, 239, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 55, 112, 0.12);
}

.brand img {
  width: min(230px, 45vw);
  display: block;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--ink-soft);
  border-bottom-color: var(--gold);
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 34px 0 92px;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  line-height: 1.65;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero {
  padding: clamp(28px, 6vw, 54px);
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(255, 253, 247, 0.98), rgba(247, 238, 219, 0.8));
  box-shadow: var(--shadow);
  border: 1px solid rgba(200, 161, 53, 0.22);
}

.hero-copy {
  width: min(690px, 95%);
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #1f3770, #2d4a8f);
  box-shadow: 0 10px 24px rgba(31, 55, 112, 0.3);
}

.btn-outline {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.7);
}

.btn-lg {
  padding: 15px 26px;
}

.joy-track {
  margin-top: 26px;
  height: 22px;
  position: relative;
}

.joy-track span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  animation: run 3.8s linear infinite;
}

.joy-track span:nth-child(2) {
  animation-delay: -1.2s;
  background: #1f3770;
}

.joy-track span:nth-child(3) {
  animation-delay: -2.4s;
}

.how, .testimonials, .final-cta, .explorar-head, .filters, .cards-grid, .destination-hero, .destination-body, .destination-gallery {
  margin-top: clamp(34px, 6vw, 62px);
}

.trip-builder {
  margin-top: clamp(34px, 6vw, 62px);
  padding: clamp(20px, 4vw, 34px);
  border-radius: 24px;
  border: 1px solid rgba(31, 55, 112, 0.15);
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(247, 238, 219, 0.82));
  box-shadow: 0 16px 34px rgba(31, 55, 112, 0.1);
}

.trip-builder-head p {
  margin-top: 0;
}

.trip-builder-head p:last-child {
  color: var(--ink-soft);
  width: min(780px, 100%);
}

.wizard-progress {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wizard-step {
  border: 1px solid rgba(31, 55, 112, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  padding: 10px;
  display: grid;
  gap: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.wizard-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(31, 55, 112, 0.14);
  color: var(--ink);
}

.wizard-step strong {
  font-size: 0.88rem;
}

.wizard-step.is-active {
  border-color: rgba(31, 55, 112, 0.42);
  background: rgba(255, 255, 255, 0.88);
}

.wizard-step.is-current {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 55, 112, 0.08);
}

.wizard-step.is-current span {
  background: linear-gradient(120deg, #1f3770, #2d4a8f);
  color: #fff;
}

.trip-builder-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.wizard-panel {
  display: none;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(31, 55, 112, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.wizard-panel.is-active {
  display: grid;
  animation: wizardStepIn 0.28s ease;
}

.trip-builder-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: var(--ink);
}

.trip-builder-form select,
.trip-builder-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(31, 55, 112, 0.24);
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trip-builder-form select:hover,
.trip-builder-form textarea:hover {
  border-color: rgba(31, 55, 112, 0.45);
}

.trip-builder-form select:focus-visible,
.trip-builder-form textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 55, 112, 0.14);
}

.trip-builder-form textarea {
  resize: vertical;
  min-height: 96px;
}

.builder-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.builder-destination-block {
  border-radius: 14px;
  border: 1px solid rgba(31, 55, 112, 0.14);
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.builder-label {
  margin: 0;
  font-weight: 700;
}

.builder-chip-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-chip {
  border-radius: 999px;
  border: 1px solid rgba(31, 55, 112, 0.2);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.builder-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 55, 112, 0.5);
}

.builder-chip.is-selected {
  background: linear-gradient(120deg, #1f3770, #2d4a8f);
  color: #fff;
  border-color: rgba(31, 55, 112, 0.95);
}

.builder-helper {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: rgba(31, 55, 112, 0.74);
}

.builder-helper.is-warning {
  color: #8d3a26;
  font-weight: 700;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.wizard-actions .btn {
  min-width: 132px;
}

.wizard-actions .btn.btn-primary {
  margin-left: auto;
}

.trip-preview {
  border-radius: 18px;
  border: 1px solid rgba(31, 55, 112, 0.14);
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.trip-preview h3 {
  margin: 0;
}

.trip-preview-text {
  margin: 0;
  white-space: pre-line;
  border-radius: 12px;
  border: 1px solid rgba(31, 55, 112, 0.12);
  background: rgba(247, 238, 219, 0.58);
  padding: 12px;
  min-height: 220px;
}

#builder-whatsapp {
  width: 100%;
}

.trip-preview-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  border: 1px solid rgba(31, 55, 112, 0.1);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  padding: 22px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.section-head a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quotes-long {
  grid-template-columns: 1fr;
}

blockquote {
  margin: 0;
  border: 1px solid rgba(31, 55, 112, 0.14);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 20px;
}

blockquote p {
  margin-top: 0;
  margin-bottom: 12px;
}

blockquote p:last-child {
  margin-bottom: 0;
}

cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.final-cta {
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(200, 161, 53, 0.45);
  background: linear-gradient(120deg, rgba(255, 253, 247, 0.92), rgba(242, 230, 196, 0.72));
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(16px, 3vw, 22px);
  border-radius: 20px;
  border: 1px solid rgba(31, 55, 112, 0.16);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(247, 238, 219, 0.8));
  box-shadow: 0 12px 26px rgba(31, 55, 112, 0.08);
}

.filters label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.filters select {
  appearance: none;
  border-radius: 12px;
  border: 1px solid rgba(31, 55, 112, 0.24);
  padding: 12px 42px 12px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(247, 238, 219, 0.95));
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters select:hover {
  border-color: rgba(31, 55, 112, 0.45);
}

.filters select:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 55, 112, 0.16);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cards-state {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(31, 55, 112, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
}

.cards-state.is-hidden {
  display: none;
}

.trip-card {
  border: 1px solid rgba(31, 55, 112, 0.16);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(31, 55, 112, 0.1);
  transition: transform 0.28s ease;
}

.trip-card:hover {
  transform: translateY(-4px);
}

.trip-card.hidden {
  display: none;
}

.card-image {
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.image-arraial {
  background-image: linear-gradient(120deg, rgba(30, 94, 152, 0.2), rgba(11, 193, 214, 0.6)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=70");
}

.image-buenos {
  background-image: linear-gradient(120deg, rgba(31, 55, 112, 0.22), rgba(208, 165, 61, 0.35)),
    url("https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1?auto=format&fit=crop&w=1200&q=70");
}

.image-chapada {
  background-image: linear-gradient(120deg, rgba(9, 69, 61, 0.34), rgba(200, 161, 53, 0.32)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=70");
}

.image-sp {
  background-image: linear-gradient(120deg, rgba(24, 32, 52, 0.4), rgba(200, 161, 53, 0.28)),
    url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=1200&q=70");
}

.card-content {
  padding: 18px;
}

.card-content h2 {
  margin-bottom: 8px;
}

.card-content a {
  color: var(--ink);
  text-decoration: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.tags span {
  border: 1px solid rgba(31, 55, 112, 0.17);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.8);
}

.btn.btn-card {
  width: 100%;
  background: linear-gradient(120deg, #1f3770, #304f93);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 55, 112, 0.3);
}

.card-content a.btn-card,
.card-content a.btn-card:visited {
  color: #fff;
}

.btn.btn-card:hover {
  background: linear-gradient(120deg, #1a3061, #294583);
}

.btn.btn-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 55, 112, 0.18), 0 10px 22px rgba(31, 55, 112, 0.3);
}

.page-explorar .explorar-head p,
.page-explorar .filters label,
.page-explorar .card-content p {
  color: var(--ink-soft);
}

.page-explorar .filters select {
  color: var(--ink);
  font-weight: 600;
}

.page-explorar .trip-card {
  background: rgba(255, 255, 255, 0.94);
}

.page-explorar .card-content h2 a {
  color: var(--ink);
}

.page-explorar .tags span {
  color: var(--ink-soft);
  border-color: rgba(31, 55, 112, 0.2);
  background: #f8f6ef;
}

.page-explorar .btn-card,
.page-explorar .btn-card:visited {
  color: #fff;
  background: linear-gradient(120deg, #27457f, #1f3770);
  box-shadow: 0 10px 20px rgba(31, 55, 112, 0.2);
}

.page-explorar .btn-card:hover,
.page-explorar .btn-card:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, #305291, #23417b);
}

.destination-hero,
.destination-body,
.destination-gallery {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  border: 1px solid rgba(31, 55, 112, 0.14);
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(247, 238, 219, 0.8));
  box-shadow: 0 18px 36px rgba(31, 55, 112, 0.1);
}

.destination-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.destination-copy-card {
  border-radius: 18px;
  border: 1px solid rgba(31, 55, 112, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
}

.destination-copy-card h2 {
  margin-bottom: 10px;
}

.destination-copy-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.destination-copy-card-wide {
  margin-top: 16px;
}

.destination-body ul {
  margin: 0 0 22px;
  padding-left: 20px;
  line-height: 1.8;
}

.destination-media {
  min-height: 280px;
  margin: 16px 0 20px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 34px rgba(31, 55, 112, 0.14);
}

.destination-body li {
  margin-bottom: 4px;
}

.destination-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.destination-gallery-card {
  margin: 0;
  grid-column: span 4;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(31, 55, 112, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(31, 55, 112, 0.08);
}

.destination-gallery-card:nth-child(1) {
  grid-column: span 7;
}

.destination-gallery-card:nth-child(2) {
  grid-column: span 5;
}

.destination-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 340px;
  object-fit: cover;
}

.destination-gallery-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px 14px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.destination-gallery-caption {
  font-weight: 700;
  color: var(--ink);
}

.destination-gallery-credit {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 161, 53, 0.72);
}

.destination-gallery-credit:hover,
.destination-gallery-credit:focus-visible {
  color: var(--ink);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(140deg, #21c967, #0f9e4a);
  box-shadow: 0 10px 28px rgba(15, 158, 74, 0.36);
  animation: pulse 2.1s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes run {
  from { left: 0; }
  to { left: calc(100% - 12px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes wizardStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .steps, .quotes, .cards-grid, .filters, .destination-copy-grid {
    grid-template-columns: 1fr;
  }

  .destination-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .destination-gallery-card,
  .destination-gallery-card:nth-child(1),
  .destination-gallery-card:nth-child(2) {
    grid-column: span 1;
  }

  .wizard-progress,
  .builder-inline {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero {
    border-radius: 20px;
    padding: 20px;
  }

  .destination-hero,
  .destination-body,
  .destination-gallery,
  .destination-copy-card {
    border-radius: 18px;
  }

  .destination-gallery-grid {
    grid-template-columns: 1fr;
  }

  .destination-gallery-card,
  .destination-gallery-card:nth-child(1),
  .destination-gallery-card:nth-child(2) {
    grid-column: span 1;
  }

  .destination-gallery-card img {
    min-height: 200px;
  }

  .wizard-actions {
    flex-direction: column;
  }

  .wizard-actions .btn,
  .wizard-actions .btn.btn-primary {
    width: 100%;
    margin-left: 0;
  }

  .whatsapp-float {
    right: 12px;
    left: 12px;
    text-align: center;
  }
}
