/* =====================================================
   ViajeroSoyTours WebApp v1.1 - limpieza automática
   Oculta header, menú, título y footer del tema cuando
   la página usa el shortcode [viajerosoytours_app].
===================================================== */
body.vst-clean-template,
body:has(.vst-app-clean) {
  margin: 0 !important;
  padding: 0 !important;
  background: #f5fbfb !important;
  overflow-x: hidden !important;
}

body.vst-clean-template :where(.wp-site-blocks > header, header.wp-block-template-part, .site-header, .wp-block-navigation, .wp-block-site-title, .wp-block-site-logo),
body:has(.vst-app-clean) :where(.wp-site-blocks > header, header.wp-block-template-part, .site-header, .wp-block-navigation, .wp-block-site-title, .wp-block-site-logo) {
  display: none !important;
}

body.vst-clean-template :where(.wp-block-post-title, .entry-title, h1.entry-title, .page-title),
body:has(.vst-app-clean) :where(.wp-block-post-title, .entry-title, h1.entry-title, .page-title) {
  display: none !important;
}

body.vst-clean-template :where(.wp-site-blocks > footer, footer.wp-block-template-part, .site-footer, footer:not(.vst-footer)),
body:has(.vst-app-clean) :where(.wp-site-blocks > footer, footer.wp-block-template-part, .site-footer, footer:not(.vst-footer)) {
  display: none !important;
}

body.vst-clean-template :where(main, .wp-site-blocks, .wp-block-post-content, .entry-content, .is-layout-constrained, .is-layout-flow),
body:has(.vst-app-clean) :where(main, .wp-site-blocks, .wp-block-post-content, .entry-content, .is-layout-constrained, .is-layout-flow) {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.vst-clean-template .vst-app,
body:has(.vst-app-clean) .vst-app {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

body.vst-clean-template :where(.wp-block-post-content > p:empty, .entry-content > p:empty),
body:has(.vst-app-clean) :where(.wp-block-post-content > p:empty, .entry-content > p:empty) {
  display: none !important;
}

:root {
  --vst-primary: #00A7A7;
  --vst-accent: #0B2B4C;
  --vst-bg: #f6fbfb;
  --vst-card: #ffffff;
  --vst-text: #102238;
  --vst-muted: #64748b;
  --vst-line: rgba(15, 23, 42, .1);
  --vst-shadow: 0 18px 50px rgba(11, 43, 76, .13);
  --vst-radius: 22px;
}

.vst-app,
.vst-app * {
  box-sizing: border-box;
}

.vst-app {
  width: min(1220px, 100%);
  margin: 0 auto;
  color: var(--vst-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fff 0%, var(--vst-bg) 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--vst-shadow);
}

.vst-app a {
  color: inherit;
  text-decoration: none;
}

.vst-topbar {
  min-height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--vst-line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.vst-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--vst-accent);
}

.vst-logo span:last-child::first-letter {
  color: var(--vst-primary);
}

.vst-logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(0,167,167,.12);
  color: var(--vst-primary);
}

.vst-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.vst-nav a:hover,
.vst-section-head a:hover {
  color: var(--vst-primary);
}

.vst-login,
.vst-search button,
.vst-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vst-primary), #027c8c);
  color: white !important;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,167,167,.22);
}

.vst-app button:focus-visible,
.vst-app a:focus-visible,
.vst-app input:focus-visible,
.vst-app select:focus-visible {
  outline: 3px solid rgba(0,167,167,.32);
  outline-offset: 2px;
}

.vst-search .vst-reset {
  background: #ffffff;
  color: var(--vst-accent) !important;
  border: 1px solid rgba(11,43,76,.14);
  box-shadow: none;
}

.vst-search .vst-reset:hover {
  border-color: rgba(0,167,167,.38);
  color: var(--vst-primary) !important;
}

.vst-hero {
  min-height: 420px;
  padding: 58px 48px 28px;
  background: linear-gradient(90deg, rgba(7,24,48,.88), rgba(0,167,167,.22)), radial-gradient(circle at 85% 10%, rgba(255,255,255,.2), transparent 28%), linear-gradient(135deg, #06365d 0%, #0f9fa4 58%, #e1f7ed 100%);
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 30px;
}

.vst-hero-content {
  max-width: 720px;
}

.vst-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 800;
  letter-spacing: .02em;
}

.vst-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .92;
  letter-spacing: -.07em;
}

.vst-hero h2 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -.05em;
}

.vst-hero h2::first-letter,
.vst-hero h2 strong {
  color: #84f3e4;
}

.vst-hero p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}

.vst-search {
  display: grid;
  grid-template-columns: 1.35fr 1fr .85fr .85fr .8fr auto auto;
  gap: 0;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(2,12,27,.22);
}

.vst-search label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  border-right: 1px solid var(--vst-line);
  color: var(--vst-text);
}

.vst-search span {
  font-size: 12px;
  font-weight: 900;
}

.vst-search input,
.vst-search select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #475569;
  min-height: 24px;
  font: inherit;
  font-size: 13px;
}

.vst-search button {
  margin: 10px;
  min-width: 118px;
}

.vst-quick-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -14px;
}

.vst-quick-zones button {
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.16);
  color: white;
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.vst-quick-zones button:hover {
  background: rgba(255,255,255,.28);
}

.vst-section {
  padding: 34px 42px 8px;
}

.vst-section-head {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.vst-section-head h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.04em;
  color: var(--vst-accent);
}

.vst-section-head p {
  margin: 5px 0 0;
  color: var(--vst-muted);
}

.vst-section-head a {
  color: var(--vst-primary);
  font-weight: 900;
  white-space: nowrap;
}

.vst-category-grid,
.vst-listing-grid,
.vst-destination-grid,
.vst-sponsors,
.vst-benefits {
  display: grid;
  gap: 18px;
}

.vst-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vst-category-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
  text-align: left;
  padding: 18px;
  min-height: 92px;
  border: 1px solid var(--vst-line);
  border-radius: 18px;
  background: white;
  color: var(--vst-text);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.vst-category-card:hover,
.vst-category-card.is-active,
.vst-destination:hover,
.vst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(11,43,76,.1);
  border-color: rgba(0,167,167,.28);
}

.vst-category-card span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0,167,167,.1);
  font-size: 22px;
}

.vst-category-card strong,
.vst-destination strong {
  font-size: 16px;
  color: var(--vst-accent);
}

.vst-category-card small,
.vst-destination span {
  color: var(--vst-muted);
}

.vst-listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vst-card {
  background: var(--vst-card);
  border: 1px solid var(--vst-line);
  border-radius: var(--vst-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.vst-card[hidden] {
  display: none !important;
}

.vst-card-image {
  min-height: 190px;
  display: block;
  position: relative;
  background: linear-gradient(135deg, rgba(11,43,76,.95), rgba(0,167,167,.74)), radial-gradient(circle at 20% 20%, rgba(255,255,255,.38), transparent 30%);
  background-size: cover;
  background-position: center;
}

.vst-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--vst-accent);
  font-size: 12px;
  font-weight: 900;
}

.vst-card-body {
  padding: 18px;
}

.vst-card-meta,
.vst-card-info,
.vst-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vst-card-meta {
  color: var(--vst-primary);
  font-size: 12px;
  font-weight: 900;
}

.vst-card h4 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--vst-accent);
}

.vst-card p {
  margin: 0;
  color: var(--vst-muted);
  font-size: 14px;
  line-height: 1.45;
  min-height: 42px;
}

.vst-card-info {
  margin: 14px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.vst-card-info span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f1f7f8;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.vst-price small {
  display: block;
  color: var(--vst-muted);
  font-weight: 800;
  font-size: 11px;
}

.vst-price strong {
  font-size: 18px;
  color: var(--vst-accent);
}

.vst-reserve {
  min-height: 40px;
  font-size: 13px;
}

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

.vst-destination {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(11,43,76,.84), rgba(0,167,167,.58)), radial-gradient(circle at 20% 20%, rgba(255,255,255,.34), transparent 36%);
  color: white;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.vst-destination strong {
  color: white;
  font-size: 25px;
}

.vst-destination span {
  color: rgba(255,255,255,.84);
  font-weight: 800;
}

.vst-sponsors {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 42px;
}

.vst-sponsor {
  min-height: 86px;
  border: 1px solid var(--vst-line);
  border-radius: 18px;
  background: white;
  display: grid;
  place-items: center;
  padding: 14px;
  font-weight: 900;
  color: var(--vst-accent);
}

.vst-sponsor img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.vst-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  padding: 28px 42px;
  background: linear-gradient(135deg, var(--vst-accent), #06365d 45%, var(--vst-primary));
  color: white;
}

.vst-benefits div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vst-benefits strong {
  font-size: 16px;
}

.vst-benefits span {
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}

.vst-footer {
  padding: 26px 42px 38px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--vst-accent);
}

.vst-footer strong {
  color: var(--vst-primary);
  font-size: 20px;
  letter-spacing: -.02em;
}

.vst-empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed rgba(0,167,167,.38);
  border-radius: 18px;
  background: rgba(0,167,167,.08);
  color: var(--vst-accent);
  font-weight: 850;
}

.vst-no-results {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed rgba(0,167,167,.4);
  border-radius: 16px;
  background: rgba(0,167,167,.08);
  color: var(--vst-accent);
  font-weight: 800;
}

.vst-floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white !important;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(18,140,126,.28);
}

.vst-floating-whatsapp::before {
  content: "💬";
  margin-right: 8px;
}

.vst-mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  .vst-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vst-search button {
    grid-column: auto;
  }
  .vst-search button[type="submit"] {
    grid-column: 1 / -1;
  }
  .vst-search .vst-reset {
    grid-column: 1 / -1;
  }
  .vst-category-grid,
  .vst-listing-grid,
  .vst-benefits,
  .vst-sponsors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .vst-app {
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 76px;
  }

  .vst-topbar {
    min-height: 64px;
    padding: 0 16px;
  }

  .vst-logo {
    font-size: 19px;
  }

  .vst-logo-icon {
    width: 36px;
    height: 36px;
  }

  .vst-nav,
  .vst-login {
    display: none;
  }

  .vst-hero {
    min-height: auto;
    padding: 38px 18px 18px;
  }

  .vst-hero h1 {
    font-size: 40px;
  }

  .vst-hero h2 {
    font-size: 25px;
  }

  .vst-hero p {
    font-size: 15px;
  }

  .vst-search {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .vst-quick-zones {
    margin-top: 0;
  }

  .vst-quick-zones button {
    font-size: 12px;
    padding: 8px 10px;
  }

  .vst-search label {
    border-right: 0;
    border-bottom: 1px solid var(--vst-line);
  }

  .vst-section {
    padding: 28px 16px 4px;
  }

  .vst-section-head {
    align-items: flex-start;
  }

  .vst-category-grid,
  .vst-listing-grid,
  .vst-destination-grid,
  .vst-benefits,
  .vst-sponsors {
    grid-template-columns: 1fr;
  }

  .vst-sponsors {
    padding: 16px;
  }

  .vst-card-image {
    min-height: 210px;
  }

  .vst-benefits,
  .vst-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vst-footer {
    flex-direction: column;
  }

  .vst-floating-whatsapp {
    right: 12px;
    bottom: 82px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .vst-mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 999;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 40px rgba(2,12,27,.24);
    backdrop-filter: blur(12px);
  }

  .vst-mobile-nav a {
    padding: 9px 4px;
    text-align: center;
    color: var(--vst-accent);
    font-size: 12px;
    font-weight: 900;
    border-radius: 14px;
  }

  .vst-mobile-nav a:hover {
    background: rgba(0,167,167,.11);
    color: var(--vst-primary);
  }
}
