/* ============================================
   NEXAVALLEY - Home CSS
   Home page production layer.
   Keep shared tokens, base buttons, and
   global components in nexavalley.css.
   Author: Jherson Martelo Medina
   ============================================ */

/* --- HOME PAGE SHELL --- */
body.nexavalley-site {
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.nexavalley-site .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

body.nexavalley-site:not(.partner-template) #content.site-content,
body.nexavalley-site:not(.partner-template) #content > .elementor {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip;
}

body.nexavalley-site:not(.partner-template) #content > .elementor {
  --widgets-spacing: 0;
  --widgets-spacing-row: 0;
  --widgets-spacing-column: 0;
}

body.nexavalley-site:not(.partner-template) #content > .elementor > .elementor-element,
body.nexavalley-site:not(.partner-template) #content > .elementor > .e-con,
body.nexavalley-site:not(.partner-template) #content > .elementor > .elementor-element > .e-con-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  --gap: 0;
  --row-gap: 0;
  --column-gap: 0;
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --container-default-padding-top: 0px;
  --container-default-padding-right: 0px;
  --container-default-padding-bottom: 0px;
  --container-default-padding-left: 0px;
}

body.nexavalley-site:not(.partner-template) #content .elementor-widget,
body.nexavalley-site:not(.partner-template) #content .elementor-widget-container {
  width: 100%;
  max-width: none;
  margin: 0 !important;
}

/* --- SHARED SECTION HEADER --- */
body.nexavalley-site .section-header {
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
}

body.nexavalley-site .section-tag {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

body.nexavalley-site .section-title {
  margin-bottom: 16px;
  color: var(--gray-900);
  font-family: var(--font-brand);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}

body.nexavalley-site .section-subtitle {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.7;
}

/* --- COURSES SECTION --- */
body.nexavalley-site:not(.partner-template) .cursos-section {
  padding: 88px 0 104px !important;
  background: var(--nv-color-surface-page-light) !important;
  position: relative;
}

body.nexavalley-site:not(.partner-template) .cursos-section .section-header {
  margin-bottom: 42px;
}

body.nexavalley-site:not(.partner-template) .cursos-section .section-title {
  color: var(--gray-900);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

body.nexavalley-site:not(.partner-template) .cursos-section .section-subtitle {
  max-width: 650px;
text-align: center;
  color: rgba(17, 24, 39, 0.68);
}

body.nexavalley-site:not(.partner-template) .cursos-grid {
  max-width: 1120px;
  margin: 0 auto;
  gap: 0.75rem;
}

body.nexavalley-site:not(.partner-template) .curso-card {
  min-height: 316px;
  border: 1px solid rgba(0, 48, 135, 0.1);
  border-radius: var(--nv-radius-card);
  box-shadow: 0 14px 38px rgba(0, 24, 48, 0.08);
}

body.nexavalley-site:not(.partner-template) .curso-body {
  min-width: 0;
}

body.nexavalley-site:not(.partner-template) .curso-img {
  height: 132px;
}

body.nexavalley-site:not(.partner-template) .curso-name {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

body.nexavalley-site:not(.partner-template) .curso-arrow {
  opacity: 1;
  transform: none;
  color: var(--blue-dark);
}

body.nexavalley-site:not(.partner-template) .section-title--light {
  color: var(--gray-900);
}

body.nexavalley-site:not(.partner-template) .section-subtitle--light {
  color: var(--gray-500);
}

/* --- TABLET RESPONSIVE - SECTIONS --- */
@media (max-width: 1024px) {body.nexavalley-site:not(.partner-template) .cursos-grid {
    grid-template-columns: 1fr !important;
    max-width: 640px;
  }

body.nexavalley-site:not(.partner-template) .curso-card {
    min-height: 0;
  }

body.nexavalley-site:not(.partner-template) .curso-name {
    overflow-wrap: anywhere;
  }

body.nexavalley-site:not(.partner-template) .curso-meta {
    flex-wrap: wrap;
  }
}

/* --- MOBILE RESPONSIVE - HOME SECTIONS --- */
@media (max-width: 767px) {body.nexavalley-site:not(.partner-template) .cursos-section {
    padding: 76px 0 92px !important;
  }

body.nexavalley-site:not(.partner-template) .cursos-section .section-subtitle {
    margin: 0;
  }

}

/* --- MOBILE RESPONSIVE - LAYOUT CONTINUED --- */
@media (max-width: 767px) {body.nexavalley-site:not(.partner-template) .cursos-section {
    padding: 64px 0 72px !important;
  }

body.nexavalley-site:not(.partner-template) .cursos-section .section-title {
    font-size: 30px;
  }

body.nexavalley-site:not(.partner-template) .cursos-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}
