/*
Theme Name: ViaPasajes — Astra Child
Theme URI: https://viapasajes.com/
Author: ViaPasajes
Description: Portada, encabezado y pie personalizados de ViaPasajes. Conserva las plantillas de Astra en rutas, terminales, ciudades y páginas internas.
Template: astra
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: viapasajes-astra-child
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

.vp-site {
  --vp-navy: #082d46;
  --vp-navy-2: #0d3a57;
  --vp-blue: #0b6680;
  --vp-coral: #ff5c5c;
  --vp-coral-dark: #e9484e;
  --vp-sky: #eaf6f8;
  --vp-cream: #f7f8f5;
  --vp-ink: #153247;
  --vp-muted: #667c8c;
  --vp-line: #dce6e9;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--vp-ink);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.vp-site,
.vp-site * {
  box-sizing: border-box;
}

.vp-site h1,
.vp-site h2,
.vp-site h3,
.vp-site p {
  margin: 0;
}

.vp-site h1,
.vp-site h2 {
  color: var(--vp-navy);
  font-family: "Manrope", sans-serif;
}

.vp-site a {
  color: inherit;
  text-decoration: none;
}

.vp-site button,
.vp-site input {
  font: inherit;
}

.vp-site button {
  cursor: pointer;
}

.vp-site img {
  max-width: 100%;
}

.vp-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Keep Astra's content rendering, but remove its container only around the custom home. */
body.home .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home .site-content {
  padding: 0;
}

/* Global header */
.vp-announcement {
  height: 34px;
  background: var(--vp-navy);
  color: #dcecf1;
  font-size: 11px;
}

.vp-announcement .vp-container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.vp-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(11, 58, 87, 0.08);
  background: #fff;
}

.vp-nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 28px;
}

.vp-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  flex: none;
}

.vp-brand .vp-custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 183px;
  max-height: 64px;
  object-fit: contain;
}

.vp-brand--light {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
}

.vp-nav-links {
  margin-left: auto;
}

.vp-nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vp-nav-list a {
  color: #335267;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.vp-nav-list a:hover,
.vp-nav-list a:focus {
  color: var(--vp-coral);
}

.vp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-currency,
.vp-my-trip {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--vp-ink);
  font-size: 13px;
  font-weight: 600;
}

.vp-my-trip {
  border: 1px solid var(--vp-line);
}

.vp-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.vp-menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--vp-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.vp-menu-button.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.vp-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.vp-menu-button.is-open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* Home hero */
.vp-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--vp-navy);
}

.vp-hero-image,
.vp-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vp-hero-image {
  object-fit: cover;
  object-position: center;
}

.vp-hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 35, 54, 0.88), rgba(3, 35, 54, 0.58) 45%, rgba(3, 35, 54, 0.12) 80%),
    linear-gradient(0deg, rgba(3, 35, 54, 0.3), transparent 55%);
}

.vp-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: center;
  padding-block: 64px;
}

.vp-hero-copy {
  max-width: 650px;
  color: #fff;
}

.vp-eyebrow {
  margin-bottom: 12px !important;
  color: var(--vp-coral-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.vp-eyebrow--light {
  color: #9de0e8;
}

.vp-hero h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(48px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -3.5px;
}

.vp-hero-copy > p:last-child {
  max-width: 560px;
  color: #e4eff2;
  font-size: 19px;
  line-height: 1.5;
}

.vp-search {
  width: 100%;
  margin-top: 42px;
}

.vp-search-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 13px;
  color: #fff;
  font-size: 14px;
}

.vp-search-title > span {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
}

.vp-site .contenedor-widget-p10 {
  position: relative;
  z-index: 1;
  width: 100% !important;
}

/* Benefits */
.vp-trust-strip {
  border-bottom: 1px solid var(--vp-line);
}

.vp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 25px;
}

.vp-trust-grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid var(--vp-line);
}

.vp-trust-grid > div:first-child {
  padding-left: 0;
}

.vp-trust-grid > div:last-child {
  border: 0;
}

.vp-trust-grid > div > b {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--vp-sky);
  color: var(--vp-blue);
}

.vp-trust-grid strong,
.vp-trust-grid small {
  display: block;
}

.vp-trust-grid strong {
  margin-bottom: 3px;
  color: var(--vp-navy);
  font-size: 13px;
}

.vp-trust-grid small {
  color: var(--vp-muted);
  font-size: 11px;
}

/* Shared home sections */
.vp-section {
  padding: 82px 0;
}

.vp-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.vp-section-heading h2,
.vp-story-copy h2,
.vp-help-intro h2,
.vp-newsletter h2 {
  color: var(--vp-navy);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.vp-section-heading > div > p:last-child {
  margin-top: 8px;
  color: var(--vp-muted);
  font-size: 14px;
}

.vp-section-heading > a,
.vp-help-intro > a {
  flex: none;
  color: var(--vp-blue);
  font-size: 13px;
  font-weight: 700;
}

/* Routes */
.vp-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vp-route-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--vp-line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vp-route-card:hover {
  transform: translateY(-3px);
  border-color: #9bcbd2;
  box-shadow: 0 12px 30px rgba(8, 45, 70, 0.09);
}

.vp-route-main {
  position: relative;
  padding: 24px 24px 18px;
}

.vp-route-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border-radius: 100px;
  background: #fff0ee;
  color: var(--vp-coral-dark);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.vp-route-place {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vp-ink);
  font-size: 15px;
  font-weight: 700;
}

.vp-route-place i {
  width: 11px;
  height: 11px;
  border: 3px solid var(--vp-blue);
  border-radius: 50%;
  background: #fff;
}

.vp-route-place:last-child i {
  border-color: var(--vp-coral);
}

.vp-route-line {
  display: block;
  width: 1px;
  height: 21px;
  margin: 2px 0 2px 5px;
  border-left: 1px dashed #adc1c9;
}

.vp-route-bottom {
  display: flex;
  align-items: center;
  padding: 14px 18px 14px 24px;
  border-top: 1px solid var(--vp-line);
  background: #fafcfc;
}

.vp-route-bottom > span {
  margin-right: 5px;
  color: var(--vp-muted);
  font-size: 10px;
}

.vp-route-bottom > strong {
  color: var(--vp-navy);
  font-size: 16px;
}

.vp-route-bottom > b {
  display: grid;
  width: 29px;
  height: 29px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--vp-sky);
  color: var(--vp-blue);
  font-size: 20px;
}

.vp-price-note {
  margin-top: 15px !important;
  color: #84949f;
  font-size: 10px;
  text-align: right;
}

/* Companies */
.vp-companies {
  background: var(--vp-cream);
}

.vp-section-heading--center {
  justify-content: center;
  text-align: center;
}

.vp-company-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.vp-company {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--vp-line);
  border-radius: 12px;
  background: #fff;
  color: #516875;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.vp-company span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  background: var(--vp-sky);
  color: var(--vp-blue);
  font-size: 9px;
}

/* Story */
.vp-story-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 76px;
}

.vp-story-image {
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 22px;
}

.vp-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-story-image > span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #fff;
  color: var(--vp-navy);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(8, 45, 70, 0.14);
}

.vp-story-copy > p:not(.vp-eyebrow) {
  margin: 20px 0;
  color: var(--vp-muted);
  font-size: 15px;
  line-height: 1.75;
}

.vp-story-copy ul {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.vp-story-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3e596a;
  font-size: 13px;
  font-weight: 600;
}

.vp-story-copy li b {
  color: var(--vp-blue);
}

.vp-primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 9px;
  background: var(--vp-coral);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
}

.vp-primary-button:hover {
  background: var(--vp-coral-dark);
}

/* FAQ */
.vp-help {
  background: var(--vp-sky);
}

.vp-help-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 90px;
}

.vp-help-intro > p:not(.vp-eyebrow) {
  margin: 16px 0 24px;
  color: var(--vp-muted);
  font-size: 14px;
  line-height: 1.6;
}

.vp-faq {
  border-bottom: 1px solid #cbdde1;
}

.vp-faq:first-child {
  border-top: 1px solid #cbdde1;
}

.vp-faq button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vp-navy);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.vp-faq button span {
  color: var(--vp-coral);
  font-size: 24px;
  font-weight: 400;
}

.vp-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.vp-faq-answer p {
  overflow: hidden;
  color: var(--vp-muted);
  font-size: 13px;
  line-height: 1.65;
}

.vp-faq.is-open .vp-faq-answer {
  grid-template-rows: 1fr;
}

.vp-faq.is-open .vp-faq-answer p {
  padding-bottom: 20px;
}

.vp-faq.is-open button span {
  font-size: 0;
}

.vp-faq.is-open button span::after {
  content: "−";
  font-size: 24px;
}

/* Newsletter */
.vp-newsletter {
  padding: 52px 0;
  background: var(--vp-blue);
  color: #fff;
}

.vp-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.vp-newsletter h2 {
  color: #fff;
  font-size: 28px;
}

.vp-newsletter div > p:last-child {
  margin-top: 7px;
  color: #cce4e8;
  font-size: 13px;
}

.vp-newsletter-form {
  display: flex;
  width: min(440px, 100%);
  padding: 5px;
  border-radius: 11px;
  background: #fff;
}

.vp-newsletter-form input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--vp-ink);
  font-size: 13px;
}

.vp-newsletter-form button {
  height: 43px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--vp-coral);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.vp-newsletter-success {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  color: var(--vp-blue);
  font-size: 13px;
  font-weight: 700;
}

/* Global footer */
.vp-footer {
  padding: 62px 0 24px;
  background: var(--vp-navy);
  color: #b9cbd4;
}

.vp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 50px;
  padding-bottom: 50px;
}

.vp-footer-about,
.vp-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.vp-footer-about p {
  max-width: 260px;
  margin-top: 10px;
  line-height: 1.6;
}

.vp-footer-links strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 13px;
}

.vp-footer-links a,
.vp-footer-links span {
  color: #b9cbd4;
}

.vp-footer-links a:hover {
  color: #fff;
}

.vp-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #829ba8;
  font-size: 10px;
}

@media (max-width: 980px) {
  .vp-nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--vp-line);
    background: #fff;
    box-shadow: 0 16px 30px rgba(8, 45, 70, 0.1);
  }

  .vp-nav-links.is-open {
    display: block;
  }

  .vp-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .vp-nav-list a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--vp-line);
  }

  .vp-menu-button {
    display: block;
  }

  .vp-hero,
  .vp-hero-inner {
    min-height: 660px;
  }

  .vp-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .vp-trust-grid > div:nth-child(2) {
    border: 0;
  }

  .vp-route-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-company-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vp-story-grid,
  .vp-help-grid {
    gap: 45px;
  }

  .vp-footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .vp-footer-grid > div:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 700px) {
  .vp-container {
    width: min(100% - 32px, 1180px);
  }

  .vp-announcement {
    display: none;
  }

  .vp-nav {
    min-height: 68px;
  }

  .vp-brand .vp-custom-logo {
    max-width: 145px;
    max-height: 52px;
  }

  .vp-currency {
    display: none;
  }

  .vp-my-trip {
    width: 42px;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .vp-my-trip::before {
    content: "▣";
    font-size: 16px;
  }

  .vp-hero,
  .vp-hero-inner {
    min-height: 0;
  }

  .vp-hero-inner {
    padding-block: 58px 42px;
  }

  .vp-hero h1 {
    font-size: 49px;
    letter-spacing: -2.5px;
  }

  .vp-hero-copy > p:last-child {
    font-size: 16px;
  }

  .vp-search {
    margin-top: 32px;
  }

  .vp-trust-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 8px;
  }

  .vp-trust-grid > div,
  .vp-trust-grid > div:first-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--vp-line);
  }

  .vp-section {
    padding: 58px 0;
  }

  .vp-section-heading {
    display: block;
  }

  .vp-section-heading > a {
    display: inline-block;
    margin-top: 18px;
  }

  .vp-route-grid,
  .vp-story-grid,
  .vp-help-grid {
    grid-template-columns: 1fr;
  }

  .vp-route-grid {
    gap: 12px;
  }

  .vp-company-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vp-story-grid {
    gap: 38px;
  }

  .vp-story-image {
    height: 340px;
  }

  .vp-help-grid {
    gap: 34px;
  }

  .vp-newsletter-inner {
    display: block;
  }

  .vp-newsletter-form {
    margin-top: 24px;
  }

  .vp-newsletter-form button {
    padding-inline: 12px;
  }

  .vp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
  }

  .vp-footer-about,
  .vp-footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .vp-footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
