:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3ff;
  --text: #132238;
  --muted: #4b6078;
  --primary: #2d6bff;
  --primary-dark: #1848ba;
  --ring: #9cb8ff;
  --shadow: 0 10px 30px rgba(16, 38, 73, 0.12);
  --radius-l: 22px;
  --radius-m: 16px;
  --radius-s: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 78vh;
  color: #f8fbff;
  display: grid;
  align-content: end;
  background-image: linear-gradient(120deg, rgba(12, 25, 45, 0.75), rgba(38, 67, 113, 0.4)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/La%20Palma%20-%20Volcan%20de%20Teneguia%20-%204.jpg");
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(101, 196, 255, 0.28), transparent 60%);
}

.hero__content {
  position: relative;
  padding: 5rem 0 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0.85rem 0;
  font-size: clamp(1.95rem, 4.5vw, 3.65rem);
  max-width: 16ch;
}

.hero__lead {
  margin: 0;
  max-width: 60ch;
  color: rgba(239, 246, 255, 0.94);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primary {
  color: #fff;
  background: linear-gradient(145deg, var(--primary), #4686ff);
  box-shadow: 0 8px 18px rgba(45, 107, 255, 0.32);
}

.btn--primary:hover {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
}

.btn--ghost {
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.top-nav {
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  padding: 0.52rem;
  backdrop-filter: blur(8px);
  background: rgba(10, 21, 41, 0.8);
}

.top-nav a {
  color: #e8f1ff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.13);
}

.section {
  padding: 4.4rem 0;
}

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

.section__header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.section__header p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.offer-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.offer-card {
  background: var(--surface);
  border: 1px solid #d9e6ff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.offer-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
}

.filters {
  margin: 1.25rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  padding: 0.45rem 0.88rem;
  border-radius: 999px;
  border: 1px solid #c5d4f9;
  background: #f6f9ff;
  color: #2f4f7f;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-active {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.route-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.25rem;
}

.route-sidebar {
  position: sticky;
  top: 0.9rem;
  height: fit-content;
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 0.8rem;
}

.route-sidebar ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.route-button {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: var(--radius-s);
  padding: 0.62rem 0.68rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  background: #f7faff;
  color: #20406f;
  cursor: pointer;
}

.route-button:hover {
  background: #edf4ff;
}

.route-button.is-active {
  background: #dce9ff;
  box-shadow: inset 0 0 0 1px #b8ceff;
}

.route-button__index {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1c4db4;
  font-size: 0.8rem;
  font-weight: 800;
}

.route-button__title {
  font-weight: 600;
  font-size: 0.91rem;
}

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

.stop-card {
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #e3ebff;
  display: flex;
  flex-direction: column;
}

.stop-card.is-hidden {
  display: none;
}

.stop-card__media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9e5ff;
}

.stop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stop-card__body {
  padding: 1rem;
  display: grid;
  gap: 0.62rem;
}

.stop-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stop-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.stop-card__tag {
  font-size: 0.74rem;
  background: #ecf3ff;
  color: #1d4eac;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.meta span {
  font-size: 0.8rem;
  color: #446282;
  background: #f3f8ff;
  padding: 0.21rem 0.48rem;
  border-radius: 999px;
}

.stop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.stop-card__tip {
  border-left: 3px solid #9ec2ff;
  padding-left: 0.55rem;
  color: #2f5487;
  font-weight: 500;
}

.stop-card__attractions {
  background: #f7faff;
  border: 1px solid #d8e5ff;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.stop-card__attractions-title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2e4f80;
}

.stop-card__attractions ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.25rem;
}

.stop-card__attractions li {
  color: #355a8d;
  font-size: 0.88rem;
}

.credit {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: #6d819d;
}

.credit a {
  color: #315fad;
}

.map-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.map-preview {
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  border: 1px solid #dee9ff;
  padding: 0.95rem;
  max-width: 980px;
  margin-inline: auto;
}

.map-frame {
  border-radius: 12px;
  overflow: hidden;
  min-height: 430px;
  background: #d3e5ff;
}

.map-frame iframe {
  width: 100%;
  height: 430px;
  border: none;
  display: block;
}

.map-caption {
  margin: 0.65rem 0 0;
  color: #4d6484;
  font-size: 0.88rem;
}

.tips-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.tips-grid article {
  background: var(--surface);
  border: 1px solid #dce9ff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 0.95rem;
}

.tips-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.tips-grid p {
  margin: 0;
  color: var(--muted);
}

.sources-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.sources-list a {
  color: #1f4ca7;
}

.footer {
  padding: 1.3rem 0 2.2rem;
  text-align: center;
  color: #617794;
}

@media (max-width: 1050px) {
  .route-layout,
  .map-grid {
    grid-template-columns: 1fr;
  }

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

  .route-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .hero {
    min-height: 72vh;
  }

  .section {
    padding: 3.15rem 0;
  }

  .stops-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-inline: 0.7rem;
    gap: 0.45rem;
    flex-wrap: nowrap;
  }

  .top-nav::-webkit-scrollbar {
    height: 8px;
  }

  .top-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
  }
}
