/* Homepage-only redesign. The shared header intentionally remains untouched. */
.home-page main {
  overflow: hidden;
  background: #f5f8fa;
}

.home-page .hero {
  min-height: min(820px, calc(100svh - 86px));
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 440px);
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
  padding: clamp(118px, 13vh, 150px) clamp(28px, 6vw, 88px) clamp(58px, 8vh, 86px);
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(39, 77, 96, 0.94) 0%, rgba(50, 101, 126, 0.88) 58%, rgba(72, 150, 188, 0.78) 100%),
    url("assets/hero-asesoria-profesional.webp") center / cover no-repeat;
}

.home-page .hero::after {
  width: 360px;
  height: 360px;
  right: -170px;
  top: 80px;
  border-width: 28px;
  opacity: 0.52;
}

.home-page .hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0;
  color: var(--white);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-page .hero .eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: #a8d8ed;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-page .hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 6.2vw, 5.65rem);
  line-height: 0.98;
}

.home-page .hero-copy {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
  line-height: 1.7;
}

.home-page .hero-actions {
  margin-top: 30px;
}

.home-page .hero-card {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 3vw, 36px);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(29, 57, 71, 0.24);
  overflow: hidden;
}

.home-page .hero-card::before {
  height: 6px;
  margin: calc(clamp(26px, 3vw, 36px) * -1) calc(clamp(26px, 3vw, 36px) * -1) 24px;
}

.home-page .hero-card-badge {
  display: inline-flex;
  margin-bottom: 24px;
}

.home-page .hero-card .hero-card-kicker {
  margin-bottom: 8px;
}

.home-page .hero-card h2 {
  max-width: 360px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.home-page .hero-card .hero-card-intro {
  margin-top: 14px;
  line-height: 1.6;
}

.home-page .hero-card-links {
  grid-template-columns: 1fr;
  margin: 22px 0 20px;
  padding: 0;
}

.home-page .hero-card-links a,
.home-page .hero-card-links a:first-child,
.home-page .hero-card-links a:last-child {
  position: relative;
  gap: 2px;
  padding: 12px 30px 12px 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.home-page .hero-card-links a:last-child {
  border-bottom: 0;
}

.home-page .hero-card-links a::after {
  content: "›";
  position: absolute;
  right: 4px;
  top: 50%;
  color: var(--sky);
  font-size: 1.7rem;
  transform: translateY(-50%);
}

.home-page .hero-card-links strong {
  font-size: 0.95rem;
}

.home-page .hero-card-links small {
  font-size: 0.76rem;
}

.home-page .hero-card-button {
  margin-top: 0;
}

.home-page .section {
  width: min(1120px, calc(100% - 44px));
  padding: 70px 0;
}

.home-page .intro {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  padding-top: 62px;
  padding-bottom: 62px;
}

.home-page .intro h2,
.home-page .section-heading h2,
.home-page .contact-panel h2 {
  letter-spacing: 0;
  line-height: 1.1;
}

.home-page .promotions {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 0.9fr);
  gap: clamp(38px, 7vw, 82px);
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
}

.home-page .promotions .section-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.home-page .promotions .section-heading h2 {
  max-width: 420px;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

.home-page .slider {
  width: min(100%, 420px);
  justify-self: end;
  border: 1px solid var(--line);
  background: #eaf2f5;
  box-shadow: 0 20px 48px rgba(39, 77, 96, 0.14);
}

.home-page .slides {
  height: clamp(460px, 47vw, 560px);
  aspect-ratio: auto;
}

.home-page .slide {
  padding: 16px;
  background: #eaf2f5;
}

.home-page .slide::before {
  display: none;
}

.home-page .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: none;
}

.home-page .slider-dots {
  padding: 13px 16px;
}

.home-page .services {
  width: 100%;
  padding: 74px max(22px, calc((100% - 1120px) / 2));
  background: var(--white);
}

.home-page .service-grid {
  gap: 16px;
}

.home-page .service-card {
  min-height: 225px;
  padding: 26px;
  border-color: rgba(72, 150, 188, 0.72);
  box-shadow: 0 10px 28px rgba(39, 77, 96, 0.06);
}

.home-page .service-card:hover,
.home-page .service-card:focus-visible {
  box-shadow: 0 18px 38px rgba(39, 77, 96, 0.12);
}

.home-page .contact {
  gap: clamp(28px, 5vw, 58px);
}

.home-page .contact-panel,
.home-page .contact-details {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .home-page .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 122px;
  }

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

  .home-page .hero-card {
    width: min(100%, 620px);
  }

  .home-page .promotions {
    grid-template-columns: minmax(220px, 0.62fr) minmax(320px, 0.82fr);
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .home-page .hero {
    gap: 36px;
    padding: 108px 22px 54px;
  }

  .home-page .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .home-page .section {
    width: min(100% - 32px, 620px);
    padding: 54px 0;
  }

  .home-page .intro,
  .home-page .promotions {
    grid-template-columns: 1fr;
  }

  .home-page .promotions .section-heading {
    gap: 18px;
  }

  .home-page .slider {
    width: min(100%, 390px);
    justify-self: center;
  }

  .home-page .slides {
    height: min(520px, 132vw);
    aspect-ratio: auto;
  }

  .home-page .services {
    width: 100%;
    padding: 56px 16px;
  }
}

@media (max-width: 520px) {
  .home-page .hero-card {
    padding: 24px;
  }

  .home-page .hero-card::before {
    margin: -24px -24px 20px;
  }

  .home-page .hero-actions {
    align-items: stretch;
  }
}
/* Promociones por área */
.home-page .home-promo-showcase.promotions {
  display: block;
  width: 100%;
  padding: clamp(44px, 6vw, 72px) clamp(22px, 5vw, 72px);
  background: #f1f7f9;
}
.home-page .home-promo-showcase .excursion-showcase-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.home-page .home-promo-frame {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.home-page .home-promo-frame .excursion-promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-page .home-promo-copy {
  min-height: 380px;
  align-content: center;
}
.home-page .home-promo-copy h2 {
  max-width: 13ch;
  margin: 12px 0 18px;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.08;
  color: #274d60;
}
.home-page .home-promo-copy > p:not(.section-kicker) {
  max-width: 54ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.65;
}
.home-page .home-promo-link {
  justify-self: start;
  margin-bottom: 24px;
}
.home-page .home-promo-tags { gap: 10px; }
.home-page .home-promo-tags button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #b9d2de;
  border-radius: 999px;
  background: #fff;
  color: #274d60;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.home-page .home-promo-tags button:hover,
.home-page .home-promo-tags button:focus-visible,
.home-page .home-promo-tags button.is-active {
  border-color: #274d60;
  background: #274d60;
  color: #fff;
}
@media (max-width: 980px) {
  .home-page .home-promo-showcase .excursion-showcase-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .home-page .home-promo-copy { min-height: 0; }
  .home-page .home-promo-copy h2 { max-width: 18ch; }
}
@media (max-width: 620px) {
  .home-page .home-promo-showcase.promotions { padding: 36px 16px 44px; }
  .home-page .home-promo-copy h2 { font-size: 2rem; }
  .home-page .home-promo-tags button { flex: 1 1 calc(50% - 10px); }
}
/* Ajuste compacto del carrusel principal */
.home-page .home-promo-showcase.promotions {
  scroll-margin-top: 112px;
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(34px, 4vw, 52px);
}
.home-page .home-promo-showcase .excursion-showcase-inner {
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
  gap: clamp(32px, 4.5vw, 60px);
}
.home-page .home-promo-copy {
  min-height: 0;
  gap: 10px;
}
.home-page .home-promo-copy h2 {
  max-width: 18ch;
  margin: 4px 0 10px;
  font-size: clamp(1.9rem, 2.7vw, 2.85rem);
  line-height: 1.12;
}
.home-page .home-promo-copy > p:not(.section-kicker) {
  margin-bottom: 12px;
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  line-height: 1.55;
}
.home-page .home-promo-link {
  min-height: 44px;
  margin-bottom: 8px;
  padding: 10px 18px;
  font-size: .94rem;
}
.home-page .home-promo-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}
.home-page .home-promo-tags button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  font-size: .82rem;
  white-space: nowrap;
}
.home-page .home-promo-showcase .excursion-slider-controls {
  margin-top: 12px;
}
.home-page .home-promo-showcase .excursion-control-button {
  min-width: 88px;
  border-color: #b9d2de;
  color: #274d60;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 750;
}
.home-page .home-promo-showcase .excursion-dot {
  transition: width 180ms ease, background-color 180ms ease;
}
@media (max-width: 980px) {
  .home-page .home-promo-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-page .home-promo-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .home-promo-showcase .excursion-slider-controls {
    grid-template-columns: auto 1fr auto;
  }
  .home-page .home-promo-showcase .excursion-control-button {
    min-width: 0;
  }
}
/* Botón único de contacto centrado */
.home-page .contact-actions {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.home-page .contact-actions .button {
  width: fit-content;
  max-width: 100%;
}
@media (max-width: 620px) {
  .home-page .contact-actions {
  margin-top: 24px;
    align-items: center;
  }
  .home-page .contact-actions .button {
    width: min(100%, 340px);
  }
}
/* Public mobile homepage QA fixes. */
@media (max-width: 980px) {
  .home-page .home-promo-showcase .excursion-showcase-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-page .hero {
    min-height: auto;
    gap: 28px;
    padding: 44px 20px 50px;
  }

  .home-page .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
    line-height: 1.05;
  }

  .home-page .hero-copy {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .home-page .hero-actions {
    gap: 10px;
  }

  .home-page .home-promo-showcase.promotions {
    padding: 34px 16px 42px;
    scroll-margin-top: 22px;
  }

  .home-page .home-promo-showcase .excursion-showcase-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-page .home-promo-frame {
    width: 100%;
    max-height: 560px;
    aspect-ratio: 4 / 5;
  }

  .home-page .home-promo-frame .excursion-promo-slide img {
    object-fit: contain;
  }

  .home-page .home-promo-copy h2 {
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .home-page .home-promo-link {
    width: 100%;
    margin-bottom: 10px;
  }

  .home-page .home-promo-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-promo-tags button {
    min-height: 42px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .home-page .home-promo-frame {
    aspect-ratio: 3 / 4;
  }
}
/* Real promotional artwork sizing. */
.home-page .home-promo-frame {
  width: min(520px, 100%);
  justify-self: center;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  background: #eaf4f8;
}

.home-page .home-promo-frame .excursion-promo-slide img {
  object-fit: contain;
}

@media (min-width: 981px) {
  .home-page .home-promo-showcase .excursion-showcase-inner {
    grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1fr);
  }
}

/* Consolidated mobile homepage */
@media (max-width: 760px) {
  .home-page main {
    width: 100%;
    overflow-x: clip;
  }

  .home-page .hero {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 38px 16px 44px;
    background-position: 58% center;
  }

  .home-page .hero-content,
  .home-page .hero-card {
    width: 100%;
    min-width: 0;
  }

  .home-page .hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 12vw, 3.25rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .home-page .hero-copy {
    max-width: 100%;
    margin-top: 16px;
    line-height: 1.55;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 22px;
  }

  .home-page .hero-card {
    padding: 22px 20px;
  }

  .home-page .hero-card::before {
    margin: -22px -20px 20px;
  }

  .home-page .section {
    width: calc(100% - 28px);
    padding: 44px 0;
  }

  .home-page .intro,
  .home-page .services,
  .home-page .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-promo-showcase.promotions {
    width: 100%;
    padding: 36px 14px 42px;
  }

  .home-page .home-promo-showcase .excursion-showcase-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .home-page .home-promo-frame {
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .home-page .home-promo-copy {
    width: 100%;
    gap: 8px;
  }

  .home-page .home-promo-copy h2 {
    max-width: 100%;
    margin-block: 4px 8px;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.12;
  }

  .home-page .home-promo-copy > p:not(.section-kicker) {
    margin-bottom: 10px;
    font-size: .96rem;
    line-height: 1.55;
  }

  .home-page .home-promo-link {
    width: 100%;
    margin-bottom: 8px;
  }

  .home-page .home-promo-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .home-page .home-promo-tags button {
    min-height: 42px;
    padding: 7px 8px;
    font-size: .76rem;
    white-space: normal;
  }

  .home-page .contact-actions {
    margin-top: 24px;
  }
}

@media (max-width: 390px) {
  .home-page .hero h1 {
    font-size: 2.2rem;
  }

  .home-page .home-promo-tags {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Practical mobile promotion layout */
.home-promo-count {
  display: none;
}

@media (max-width: 760px) {
  .home-page .home-promo-showcase.promotions {
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .home-page .home-promo-showcase .excursion-showcase-inner {
    gap: 18px;
  }

  .home-page .home-promo-frame {
    width: 100%;
    height: min(82vw, 340px) !important;
    max-height: 340px;
    aspect-ratio: auto !important;
    background: #eaf4f8;
  }

  .home-page .home-promo-frame .excursion-promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-page .home-promo-showcase .excursion-slider-controls {
    grid-template-columns: auto minmax(52px, 1fr) auto;
    margin-top: 8px;
  }

  .home-page .home-promo-showcase .excursion-slider-dots {
    min-height: 40px;
    align-items: center;
  }

  .home-page .home-promo-showcase .excursion-dot {
    display: none;
  }

  .home-page .home-promo-count {
    display: block;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 750;
  }

  .home-page .home-promo-copy {
    gap: 7px;
  }

  .home-page .home-promo-copy h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.05rem);
    line-height: 1.13;
  }

  .home-page .home-promo-copy > p:not(.section-kicker) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    margin-bottom: 8px;
    font-size: .93rem;
    line-height: 1.5;
  }

  .home-page .home-promo-link {
    min-height: 44px;
    padding: 9px 14px;
    font-size: .86rem;
  }

  .home-page .home-promo-tags,
  .home-page .home-promo-tags:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .home-page .home-promo-tags button {
    min-height: 40px;
    font-size: .74rem;
  }
}

@media (max-width: 390px) {
  .home-page .home-promo-tags,
  .home-page .home-promo-tags:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Chrome mobile header and hero guard */
@media (max-width: 760px) {
  .home-page .site-header {
    position: sticky !important;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 10px 12px;
    padding: 10px 14px 12px;
  }

  .home-page .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .home-page .header-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center;
    width: auto !important;
    min-width: 112px;
    margin: 0;
  }

  .home-page .nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0;
  }

  .home-page #inicio {
    position: relative;
    margin-top: 0 !important;
    padding-top: 38px;
    scroll-margin-top: 180px;
  }

  .home-page #inicio h1 {
    margin-top: 0;
  }
}

@media (max-width: 390px) {
  .home-page .site-header {
    padding-inline: 10px;
  }

  .home-page .header-action {
    min-width: 104px;
  }
}
/* Desktop and tablet browser sizing; intentionally excludes mobile. */
@media (min-width: 761px) {
  html {
    scroll-padding-top: 88px !important;
  }

  .home-page #promociones,
  .home-page #servicios,
  .home-page #contacto {
    scroll-margin-top: 0 !important;
  }

  .home-page .section,
  .home-page .home-promo-showcase.promotions {
    width: min(1180px, calc(100% - 40px));
  }

  .home-page .home-promo-showcase.promotions {
    min-height: calc(100svh - 88px);
    padding: clamp(24px, 3.5vh, 40px) 0;
  }

  .home-page .home-promo-showcase .excursion-showcase-inner {
    grid-template-columns: minmax(280px, .88fr) minmax(320px, 1fr);
    gap: clamp(22px, 4vw, 58px);
    align-items: center;
  }

  .home-page .home-promo-frame {
    width: 100%;
    max-height: min(60svh, 600px);
  }

  .home-page .home-promo-showcase .excursion-showcase-copy {
    gap: clamp(10px, 1.5vh, 16px);
  }

  .home-page .home-promo-showcase .excursion-showcase-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.75rem);
    line-height: 1.08;
  }
}

@media (min-width: 761px) and (max-height: 720px) {
  .home-page .home-promo-showcase.promotions {
    padding-block: 18px;
  }

  .home-page .home-promo-frame {
    max-height: calc(100svh - 205px);
  }

  .home-page .home-promo-tags {
    gap: 6px;
  }

  .home-page .home-promo-tags button {
    min-height: 36px;
    padding-block: 6px;
  }
}

/* Balanced desktop canvas: keep every homepage section aligned with the hero. */
@media (min-width: 981px) {
  .home-page .intro,
  .home-page .services,
  .home-page .contact {
    width: min(1400px, calc(100% - 64px));
    margin-inline: auto;
  }

  .home-page .intro {
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1fr);
    gap: clamp(52px, 7vw, 112px);
  }

  .home-page .home-promo-showcase.promotions {
    width: 100%;
    min-height: auto;
    padding: clamp(48px, 5vw, 76px) max(32px, calc((100% - 1400px) / 2));
  }

  .home-page .home-promo-showcase .excursion-showcase-inner {
    width: 100%;
    max-width: 1400px;
    grid-template-columns: minmax(440px, .92fr) minmax(440px, 1fr);
    gap: clamp(48px, 6vw, 96px);
  }

  .home-page .services {
    padding: clamp(64px, 6vw, 88px) 0;
  }

  .home-page .service-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-page .contact {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .home-page .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
