/* ===== HOME ===== */

html:has(.page-home) {
  scroll-behavior: smooth;
}

.page-home {
  background: #f6f4ef;
  color: #243047;
}

.page-home .navbar-glass {
  background: rgba(255, 255, 255, 0.72) !important;
}

.page-home .navbar-nav .nav-link-login,
.page-home .navbar-nav .nav-link.active {
  background: #ff6347;
  color: #fff !important;
}

.home-hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: stretch;
  color: #fff;
  overflow: hidden;
}

.home-hero-media,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(12, 22, 44, 0.78) 0%,
      rgba(12, 22, 44, 0.42) 46%,
      rgba(12, 22, 44, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(12, 22, 44, 0.22) 0%,
      transparent 40%,
      rgba(12, 22, 44, 0.5) 100%
    );
}

#ferias {
  scroll-margin-top: 7rem;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  min-height: 74vh;
  padding: 10.75rem 0 5.5rem;
}

.home-hero-copy {
  width: min(100%, 46rem);
  max-width: none;
}

.home-kicker,
.home-title,
.home-lead {
  text-shadow: 0 2px 18px rgba(8, 16, 32, 0.55);
}

.home-kicker {
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ed4e4;
}

.home-title,
.home-section-title,
.home-feria-featured h3,
.home-feria-card h3,
.home-steps h3 {
  font-family: "Ubuntu", sans-serif;
}

h1.home-title {
  display: grid;
  gap: 0.18em;
  width: 100%;
  margin: 0 0 1.35rem;
  font-size: clamp(2.15rem, 3.6vw, 3.2rem) !important;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-title-line {
  display: block;
}

.home-title em {
  font-style: normal;
  color: #50b0c4;
}

.home-lead {
  margin: 0 0 2.1rem;
  max-width: 40rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: #fff;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* .home-btn:hover {
  transform: translateY(-1px);
} */

.home-btn-primary {
  color: #fff;
  background: #ff6347;
  box-shadow: 0 12px 24px rgba(255, 99, 71, 0.28);
}

.home-btn-primary:hover {
  color: #fff;
  background: #e5533a;
}

.home-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(12, 22, 44, 0.35);
}

.home-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.home-btn-light {
  color: #2e4a8a;
  background: #fff;
}

.home-btn-light:hover {
  color: #2e4a8a;
  background: #eef4f8;
}

.home-btn-outline {
  color: #3e59a1;
  border-color: rgba(62, 89, 161, 0.28);
  background: #fff;
}

.home-btn-outline:hover {
  color: #fff;
  background: #3e59a1;
  border-color: #3e59a1;
}

.home-benefits {
  padding: 0 0 1rem;
  margin-top: -2.75rem;
  position: relative;
  z-index: 2;
}

.home-hero-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  overflow: hidden;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 14px 36px rgba(62, 89, 161, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.home-hero-panel li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 0;
  padding: 0.9rem 1.15rem;
  text-align: left;
  background: transparent;
  border: none;
  box-shadow: none;
  border-right: 1px solid rgba(62, 89, 161, 0.12);
}

.home-hero-panel li:last-child {
  border-right: none;
}

.home-benefit-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  border-radius: 0.7rem;
  background: linear-gradient(
    160deg,
    rgba(80, 176, 196, 0.22),
    rgba(62, 89, 161, 0.12)
  );
  color: #3e59a1;
  line-height: 0;
}

.home-benefit-icon i {
  display: block;
  font-size: 0.88rem;
  line-height: 1;
}

.home-benefit-copy {
  min-width: 0;
}

.home-benefit-copy strong {
  display: block;
  margin: 0 0 0.15rem;
  color: #2e4a8a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-benefit-copy span {
  display: block;
  color: #5b6578;
  font-size: 0.78rem;
  line-height: 1.35;
}

.home-section {
  padding: 2.25rem 0;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.home-section-head.is-centered {
  justify-content: center;
  text-align: center;
}

.home-section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  color: #2e4a8a;
  letter-spacing: -0.03em;
}

.home-section-copy {
  margin: 0;
  color: #5b6578;
  font-size: 1.02rem;
}

.home-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #3e59a1;
  text-decoration: none;
  white-space: nowrap;
}

.home-link-more:hover {
  color: #2e4a8a;
}

.home-ferias-section {
  position: relative;
  color: #243047;
  background: transparent;
  padding-top: 1.5rem;
}

.home-ferias-section .home-section-title,
.home-feria-featured h3,
.home-feria-card h3 {
  color: #2e4a8a;
}

.home-ferias-section .home-section-copy,
.home-ferias-section time,
.home-feria-featured p,
.home-feria-card p,
.home-ferias-section .home-empty p {
  color: #5b6578;
}

.home-ferias-section .home-kicker,
.home-steps-section .home-kicker {
  margin-bottom: 0.65rem;
  color: #50b0c4;
  text-shadow: none;
}

.home-ferias-section .home-section-head {
  align-items: center;
}

.home-ferias-stage {
  display: grid;
  gap: 1.1rem;
}

.home-ferias-stage.has-more {
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.9fr);
  align-items: stretch;
}

.home-ferias {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-feria-featured,
.home-feria-card,
.home-ferias-section .home-empty {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow:
    0 14px 36px rgba(62, 89, 161, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.home-feria-featured {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 100%;
  padding: 1.65rem 1.7rem 1.55rem 1.85rem;
}

.home-feria-featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 4px;
  border-radius: 999px;
  background: #50b0c4;
}

.home-feria-date {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 6.1rem;
  min-height: 6.1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1.2rem;
  text-align: center;
  background: linear-gradient(160deg, #3e59a1, #2e4a8a);
  box-shadow: 0 10px 22px rgba(62, 89, 161, 0.22);
}

.home-feria-date span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7ed4e4;
}

.home-feria-date strong {
  font-family: "Ubuntu", sans-serif;
  font-size: 2.35rem;
  line-height: 1;
  color: #fff;
}

.home-feria-featured-copy,
.home-feria-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.home-feria-card {
  padding: 1.2rem 1.25rem 1.15rem;
}

.home-feria-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.home-feria-badge {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-feria-badge.is-open {
  color: #1f6f7a;
  background: rgba(80, 176, 196, 0.16);
}

.home-feria-badge.is-live {
  color: #fff;
  background: #ff6347;
}

.home-feria-badge.is-soon {
  color: #2e4a8a;
  background: rgba(62, 89, 161, 0.1);
}

.home-feria-featured h3,
.home-feria-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.home-feria-featured h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.home-feria-featured p,
.home-feria-card p {
  margin: 0;
}

.home-feria-featured p i,
.home-feria-card p i {
  margin-right: 0.35rem;
  color: #50b0c4;
}

.home-feria-cupos {
  font-weight: 600;
  color: #2e4a8a !important;
}

.home-feria-featured .home-btn {
  margin-top: 0.55rem;
  width: fit-content;
}

.home-feria-card > a {
  margin-top: auto;
  padding-top: 0.55rem;
  font-weight: 700;
  color: #ff6347;
  text-decoration: none;
}

.home-feria-card > a:hover {
  color: #e5533a;
}

.home-empty {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding: 2rem;
}

.home-empty-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: rgba(80, 176, 196, 0.16);
  color: #3e59a1;
}

.home-empty p {
  margin: 0;
  max-width: 38rem;
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.home-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.45rem 1.7rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 14px 36px rgba(62, 89, 161, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.home-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 4px;
  border-radius: 999px;
  background: #50b0c4;
}

.home-step-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.home-step-num {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  border-radius: 999px;
  background: #50b0c4;
  color: #fff;
  font-weight: 700;
}

.home-step-icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  border-radius: 0.7rem;
  background: linear-gradient(
    160deg,
    rgba(80, 176, 196, 0.22),
    rgba(62, 89, 161, 0.12)
  );
  color: #3e59a1;
}

.home-step-icon i {
  font-size: 0.88rem;
}

.home-steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: #2e4a8a;
}

.home-steps p {
  margin: 0 0 1.1rem;
  color: #5b6578;
  line-height: 1.6;
  flex: 1;
}

.home-steps .home-btn {
  margin-top: auto;
  align-self: flex-start;
  min-height: 2.7rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

.home-steps-section {
  padding-bottom: 2.75rem;
}

.home-btn:focus-visible,
.home-link-more:focus-visible,
.home-feria-card > a:focus-visible {
  outline: 3px solid #50b0c4;
  outline-offset: 3px;
}

@media (max-width: 992px) {
  .home-hero,
  .home-hero-inner {
    min-height: 68vh;
  }

  .home-hero-panel,
  .home-steps {
    grid-template-columns: 1fr 1fr;
  }

  .home-ferias-stage.has-more {
    grid-template-columns: 1fr;
  }

  .home-hero-panel li {
    border-right: none;
  }

  .home-hero-panel li:nth-child(odd) {
    border-right: 1px solid rgba(62, 89, 161, 0.12);
  }

  .home-hero-panel li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(62, 89, 161, 0.12);
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-section-head.is-centered {
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .home-hero,
  .home-hero-inner {
    min-height: 62vh;
  }

  .home-hero-inner {
    padding: 9.25rem 0 4.5rem;
  }

  .home-benefits {
    margin-top: -1.5rem;
  }

  .home-hero-panel,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-ferias-section .home-btn {
    width: 100%;
  }

  .home-feria-featured .home-btn {
    width: 100%;
    justify-content: center;
  }

  .home-hero-panel li,
  .home-hero-panel li:nth-child(odd),
  .home-hero-panel li:nth-child(-n + 2) {
    border-right: none;
    border-bottom: 1px solid rgba(62, 89, 161, 0.12);
  }

  .home-hero-panel li:last-child {
    border-bottom: none;
  }

  .home-feria-featured {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .home-hero-actions .home-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-btn {
    transition: none;
  }

  .home-btn:hover {
    transform: none;
  }
}
