/* =============================================
   ITF México — Proveedores Ferroviarios
   css/style.css
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --base-color: #1B5FA8;
  --dark-bg: #0B1929;
  --dark-bg-2: #0D2140;
  --dark-card-left: #0e2137;
  --dark-card-right: #132845;
  --light-bg: #F4F7FB;
  --text-dark: #1a2e44;
}

/* ===== BASE ===== */
body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===== UTILITIES ===== */
.fs-15 { font-size: 15px; }
.fs-13 { font-size: 13px; }
.fs-label { font-size: 12px; }
.ls-wide { letter-spacing: 0.09em; }
.ls-wider { letter-spacing: 0.16em; }
.fw-800 { font-weight: 800; }
.fw-black { font-weight: 900; }
.text-dark-muted { color: rgba(26, 46, 68, 0.55); }
.text-base-color { color: var(--base-color) !important; }
.bg-dark-bg { background-color: var(--dark-bg); }
.icon-extra-medium { font-size: 1.1rem; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.label-line {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: var(--dark-bg);
  border-color: var(--dark-bg);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #162840;
  border-color: #162840;
  color: #fff;
}
.btn-extra-large {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.25s ease;
}
.btn-extra-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===== NAVBAR ===== */
.navbar {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  z-index: 1030;
}
.navbar-scrolled {
  background-color: rgba(11, 25, 41, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}
.logo-nav-desktop {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.nav-dimmed {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 14px;
  padding-left: 0.55rem !important;
  padding-right: 0.55rem !important;
}
.nav-dimmed:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}
.navbar-nav .nav-link {
  font-size: 15px;
  padding-left: 0.6rem !important;
  padding-right: 0.6rem !important;
}
.btn-nav-cta {
  background-color: var(--dark-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 50px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-nav-cta:hover {
  background-color: #1e3a5f;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  padding-top: 90px;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
}
.hero-image-right {
  width: 62%;
  z-index: 0;
}
.hero-gradient {
  background: linear-gradient(
    90deg,
    var(--dark-bg) 30%,
    rgba(11, 25, 41, 0.94) 48%,
    rgba(11, 25, 41, 0.65) 65%,
    rgba(11, 25, 41, 0.15) 100%
  );
  z-index: 1;
}
.hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero-subheading {
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ===== INDUSTRIA ===== */
.section-industria {
  background-color: #fff;
  min-height: 520px;
}
.industria-image-right {
  width: 62%;
  z-index: 0;
}
.industria-gradient {
  width: 68%;
  background: linear-gradient(
    90deg,
    #fff 52%,
    rgba(255, 255, 255, 0.88) 68%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}
.industria-tag {
  border-left: 3px solid var(--base-color);
  padding-left: 0.75rem;
}

/* ===== PROCESO ===== */
.section-proceso {
  background-color: var(--light-bg);
  position: relative;
}
.proceso-bg {
  opacity: 0.35;
  z-index: 0;
}
.proceso-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.proceso-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.proceso-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: rgba(27, 95, 168, 0.09);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SECTORES ===== */
.sector-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dde6f0;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background-color: #fff;
}
.sector-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.sector-card-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  display: block;
}
.sector-card-body {
  border-top: 1px solid #dde6f0;
  min-height: 52px;
}
.sectores-bottom-bar {
  background-color: var(--dark-bg);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-top: 1rem;
}

/* ===== EXPERIENCIA ===== */
.section-experiencia {
  background-color: var(--dark-bg);
}
.experiencia-bg {
  opacity: 0.45;
  z-index: 0;
}
.experiencia-overlay {
  background: linear-gradient(
    135deg,
    rgba(11, 25, 41, 0.96) 40%,
    rgba(11, 25, 41, 0.72) 100%
  );
  z-index: 1;
}
.exp-card {
  border-radius: 14px;
  transition: transform 0.3s ease;
}
.exp-card:hover {
  transform: translateY(-3px);
}
.exp-card-left {
  background-color: #ffffff;
  border: 1px solid #e0e8f0;
}
.exp-card-right {
  background-color: rgba(20, 42, 80, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.exp-arrow-divider {
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== FORMULARIO ===== */
.section-formulario {
  background-color: var(--dark-bg);
}
.formulario-bg {
  opacity: 0.4;
  z-index: 0;
}
.formulario-overlay {
  background: linear-gradient(
    90deg,
    rgba(11, 25, 41, 0.97) 45%,
    rgba(11, 25, 41, 0.78) 100%
  );
  z-index: 1;
}
.form-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.28);
}
.form-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: rgba(27, 95, 168, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-control,
.form-select {
  font-size: 15px;
  border-color: #cdd9e8;
  border-radius: 8px;
  padding: 0.62rem 0.85rem;
  color: var(--text-dark);
}
.form-control::placeholder {
  color: rgba(26, 46, 68, 0.38);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--base-color);
  box-shadow: 0 0 0 3px rgba(27, 95, 168, 0.12);
}
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

/* ===== WHATSAPP BUTTON ===== */
.btn-whatsapp {
  background-color: #25D366;
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-whatsapp:hover {
  background-color: #1ebe5a;
  color: #fff;
}

/* ===== FOOTER ===== */
.footer-section {
  background-color: #081522;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-logo {
  height: 46px;
  width: 46px;
  object-fit: cover;
}
.footer-divider {
  width: 1px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  display: block;
}
.footer-nerea-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nerea-link:hover {
  color: var(--base-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero-image-right {
    width: 100%;
    opacity: 0.28;
  }
  .hero-gradient {
    background: linear-gradient(
      180deg,
      rgba(11, 25, 41, 0.96) 55%,
      rgba(11, 25, 41, 0.55) 100%
    );
  }
  .industria-image-right {
    width: 100%;
    opacity: 0.12;
  }
  .industria-gradient {
    width: 100%;
    background: rgba(255, 255, 255, 0.93);
  }
  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .footer-divider {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .hero-heading {
    font-size: 2.1rem;
  }
  .sector-card-img {
    height: 115px;
  }
}

@media (max-width: 575.98px) {
  .hero-heading {
    font-size: 1.9rem;
  }
  .display-5 {
    font-size: 1.75rem !important;
  }
  .btn-extra-large {
    padding: 11px 20px;
    font-size: 14px;
  }
  .sectores-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
