.tile[hidden] { display: none !important; }

.new-traveler-welcome {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(3, 152, 158, .25);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(96deg, rgba(4, 58, 62, .94), rgba(3, 152, 158, .78)),
    url("recuerdo-viajeros-1.jpg") center 42% / cover no-repeat;
  box-shadow: 0 18px 46px rgba(18, 57, 58, .16);
}

.new-traveler-welcome::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(244, 201, 107, .2));
  pointer-events: none;
}

.new-traveler-welcome h3 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: 0;
}

.new-traveler-welcome p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.6;
}

.nuevo-viajero-mode .locked-tile::after {
  content: "Completa tu bienvenida en Hola Viajero";
}

.nuevo-viajero-mode .locked-tile.completed-past-tile::after {
  content: "Ya pasaste por aqu\00ed";
}

.tile.locked-tile.completed-past-tile::after {
  content: "Ya pasaste por aqu\00ed" !important;
}

.tile.completed-past-tile {
  filter: grayscale(1);
  opacity: .56;
  cursor: not-allowed;
}

.tile.demo-total-unlocked {
  filter: none !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

.tile.demo-total-unlocked::after {
  content: none !important;
}

.demo-login-message > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .9rem;
}

.demo-survey-panel {
  margin-top: 20px;
}

.hola-page {
  min-height: 100vh;
  padding: 0;
  color: #14383b;
  background: transparent;
}

.hola-topbar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hola-brand { display: none; }

.hola-brand img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(7, 52, 56, .16);
}

.hola-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0;
}

.hola-brand span { color: #657b7d; font-size: 13px; }
.hola-actions {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
  background: rgba(7, 52, 56, .58);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
}

.hola-actions .btn {
  min-height: 38px;
  padding: 9px 14px;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .92);
}

.hola-actions .btn.dark {
  color: #fff;
  background: rgba(7, 52, 56, .92);
}

.hola-content {
  width: 100%;
  margin: 0;
}

.survey-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: #073438;
  color: #fff;
  box-shadow: 0 24px 70px rgba(7, 52, 56, .18);
}

.survey-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 76px);
}

.survey-kicker,
.treasure-kicker {
  color: #f4c96b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.survey-hero h2,
.treasure-hero h2 {
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.survey-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  line-height: 1.65;
}

.survey-hero-photo {
  min-height: 320px;
  background:
    linear-gradient(90deg, #073438 0, transparent 28%),
    url("recuerdo-grupo.jpg") center / cover no-repeat;
}

.survey-form {
  margin: 20px 0 0;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid #d7e4e3;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 60px rgba(18, 57, 58, .1);
}

.survey-form-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.survey-form-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0;
}

.survey-form-head p { margin: 6px 0 0; color: #657b7d; }
.survey-counter { color: #03989e; font-weight: 900; white-space: nowrap; }

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

.survey-field {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e6e5;
  border-radius: 8px;
  background: #f9fbfa;
}

.survey-field.long { grid-column: 1 / -1; }
.survey-field label {
  display: block;
  margin-bottom: 9px;
  color: #16474a;
  font-weight: 800;
  line-height: 1.35;
}

.survey-field input,
.survey-field select,
.survey-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #bfd2d0;
  border-radius: 6px;
  background: #fff;
  color: #14383b;
  font: inherit;
}

.survey-field textarea { min-height: 112px; resize: vertical; }
.survey-field input:focus,
.survey-field select:focus,
.survey-field textarea:focus { outline: 3px solid rgba(3, 152, 158, .16); border-color: #03989e; }

.survey-footer {
  position: sticky;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(3, 152, 158, .24);
  border-radius: 8px;
  background: rgba(247, 251, 250, .95);
  box-shadow: 0 14px 38px rgba(7, 52, 56, .13);
  backdrop-filter: blur(12px);
}

.survey-message { color: #49686a; font-size: 14px; }
.survey-message.error { color: #a33a32; font-weight: 800; }

.treasure-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: end;
  padding: clamp(30px, 6vw, 72px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 52, 56, .93), rgba(7, 52, 56, .25)),
    url("recuerdo-viajeros-2.jpg") center 44% / cover no-repeat;
  box-shadow: 0 24px 70px rgba(7, 52, 56, .2);
}

.treasure-hero > div { max-width: 790px; }
.treasure-hero p { max-width: 650px; margin: 0; font-size: 18px; line-height: 1.55; }

.memory-cabinet {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #38200f;
  box-shadow: none;
  isolation: isolate;
}

.memory-cabinet-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
}

.memory-cabinet-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-grid {
  position: absolute;
  inset: 25.2% 20.8% 5.8%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  column-gap: 5.5%;
  row-gap: 0;
}

.memory-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: end center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50% 50% 16% 16%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform .22s ease, border-color .22s ease, filter .22s ease;
}

.memory-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .28));
}

.memory-item span {
  position: absolute;
  left: 50%;
  bottom: 2%;
  box-sizing: border-box;
  width: 88%;
  padding: 6px 5px;
  border: 1px solid rgba(244, 201, 107, .42);
  border-radius: 4px;
  background: rgba(10, 10, 9, .88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
  color: #fff8e9;
  font-size: clamp(10px, .86vw, 14px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  transform: translateX(-50%);
}

.memory-item:hover,
.memory-item:focus-visible {
  border-color: rgba(244, 201, 107, .48);
  filter: brightness(1.12);
  outline: none;
  transform: translateY(-5px) scale(1.025);
}

.resource-panel {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid #cadbd9;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 52, 56, .16);
}

.resource-panel[hidden] { display: none; }
.resource-image { min-height: 410px; background: var(--resource-image) center / cover no-repeat; }
.resource-copy { padding: clamp(24px, 5vw, 58px); }
.resource-copy h3 {
  margin: 8px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}
.resource-copy p { color: #526d6f; font-size: 17px; line-height: 1.65; }
.resource-copy audio { width: 100%; margin: 16px 0; }
.resource-price { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.resource-price span { padding: 9px 12px; border-radius: 6px; color: #073438; background: #eef6f4; font-weight: 900; }

.resource-panel-music,
.resource-panel-media,
.resource-panel-reading {
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr);
}

.resource-panel-book {
  grid-template-columns: minmax(290px, .62fr) minmax(0, 1.38fr);
}

.resource-panel-book .resource-image {
  min-height: 650px;
  background-color: #e9f4f3;
  background-size: contain;
  background-repeat: no-repeat;
}

.embed-frame,
.document-frame {
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid #c9dddb;
  border-radius: 8px;
  background: #eef6f4;
}

.embed-frame iframe,
.document-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.spotify-frame iframe { height: 352px; }
.video-frame { aspect-ratio: 16 / 9; }
.video-frame iframe { height: 100%; }
.document-frame iframe { min-height: 680px; }
.book-prologue { scroll-margin-top: 20px; }

.resource-toolbar,
.book-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}

.copy-link-button.copied {
  color: #fff;
  border-color: #2b9c68;
  background: #2b9c68;
}

.playlist-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 12px;
  border-bottom: 1px solid #d7e4e3;
}

.playlist-heading h4,
.book-purchase h4 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.playlist-heading > span { color: #657b7d; font-weight: 800; white-space: nowrap; }

.playlist-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #d7e4e3;
}

.playlist-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 4px;
  border-top: 1px solid #e4edec;
}

.playlist-list li:first-child { border-top: 0; }
.playlist-list strong,
.playlist-list small { display: block; }
.playlist-list strong { color: #14383b; line-height: 1.25; }
.playlist-list small { margin-top: 3px; color: #6b8082; }
.playlist-list time { color: #718486; font-size: 13px; }
.track-number { color: #03989e; font-weight: 900; text-align: center; }

.resource-cta {
  min-width: 150px;
  min-height: 54px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
}

.book-actions > span { color: #657b7d; font-size: 14px; }

.book-purchase {
  margin: 28px 0 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(3, 152, 158, .25);
  border-radius: 8px;
  background: #f3f8f7;
}

.book-purchase > div { margin-bottom: 18px; }
.book-purchase p { margin: 8px 0 0; }
.book-payment-button { width: 100%; }
.book-payment-button img { max-height: 72px; }

.hola-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: #527173;
  font-size: 18px;
}

@media (max-width: 900px) {
  .survey-hero { grid-template-columns: 1fr; }
  .survey-hero-photo { min-height: 220px; background-image: linear-gradient(0deg, #073438 0, transparent 34%), url("recuerdo-grupo.jpg"); }
  .survey-grid { grid-template-columns: 1fr; }
  .survey-field.long { grid-column: auto; }
  .resource-panel,
  .resource-panel-music,
  .resource-panel-media,
  .resource-panel-reading,
  .resource-panel-book { grid-template-columns: 1fr; }
  .resource-image { min-height: 280px; }
  .resource-panel-book .resource-image { min-height: 540px; }
}

@media (max-width: 700px) {
  .hola-page { padding: 0; }
  .hola-topbar { top: 8px; right: 8px; align-items: flex-start; }
  .hola-brand span { display: none; }
  .hola-brand img { width: 48px; height: 48px; }
  .hola-actions { padding: 4px; }
  .hola-actions .btn { min-height: 34px; padding: 7px 9px; font-size: 11px; }
  .new-traveler-welcome p, .survey-hero p, .treasure-hero p { font-size: 15px; }
  .memory-cabinet {
    min-height: 100svh;
    aspect-ratio: 2 / 3;
    margin: 0;
    border-radius: 0;
  }
  .memory-cabinet-background img { object-fit: fill; }
  .memory-grid {
    inset: 19.8% 11.5% 5.4%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    column-gap: 7%;
    row-gap: 0;
  }
  .memory-item { border-width: 1px; }
  .memory-item span {
    bottom: 1%;
    width: 96%;
    min-height: 34px;
    display: grid;
    place-items: center;
    padding: 5px 3px;
    font-size: clamp(9px, 2.55vw, 11px);
  }
  .survey-footer { align-items: stretch; flex-direction: column; }
  .resource-copy { padding: 22px 16px; }
  .resource-panel-book .resource-image { min-height: 470px; }
  .document-frame iframe { min-height: 520px; }
  .resource-toolbar .btn,
  .book-actions .btn { flex: 1 1 150px; }
  .playlist-heading { align-items: flex-start; flex-direction: column; }
  .playlist-list li { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .memory-item { transition: none; }
}

.resource-panel-consultation {
  --resource-accent: #d2774b;
  --resource-accent-soft: #fff1e7;
}

.consultation-validity {
  margin: 22px 0;
  padding: 20px 22px;
  border-left: 5px solid #26956c;
  border-radius: 5px;
  background: #eef9f3;
}

.consultation-validity.expired {
  border-left-color: #c96848;
  background: #fff2eb;
}

.consultation-validity span {
  display: block;
  color: #61787b;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.consultation-validity strong {
  display: block;
  margin-top: 5px;
  color: #154c51;
  font: 700 1.32rem/1.2 Georgia, serif;
}

.consultation-validity p { margin: 8px 0 0; }
.consultation-series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.consultation-series > div { padding: 14px; border: 1px solid #c9ddda; border-radius: 5px; background: rgba(255,255,255,.84); }
.consultation-series dt { color: #718487; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.consultation-series dd { margin: 5px 0 0; color: #143f44; font-weight: 800; }
.traveler-contact-status { margin: 12px 0 0; color: #5d7478; font-size: .86rem; }
.traveler-contact-status.success { padding: 12px; border-left: 4px solid #2d986e; color: #1d684d; background: #ecf8f1; }
.traveler-contact-status.error { padding: 12px; border-left: 4px solid #c75745; color: #8f3026; background: #fff0ed; }

@media (max-width: 650px) {
  .consultation-series { grid-template-columns: 1fr; }
}
