/* =========================
   Tokens de marca PSP
   ========================= */
:root {
  --brand: #374550;
  --neutral: #757474;
  --surface-dark: #0c0e21;
  --surface: #1d2038;
  --ink: #f4f7fb;

  --grad-a: #5b6b7b;
  --grad-b: #2a3a48;
  --accent-grad: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}

/* Navbar */
.custom-navbar {
  padding: 0.5rem 2rem;
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-img {
  height: 90px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.main-content {
  padding-top: 80px;
}
@media (min-width: 992px) {
  .navbar-brand {
    position: static !important;
    transform: none !important;
    margin-right: 1rem;
  }
  .navbar-collapse {
    flex-grow: 0;
  }
  .nav-link {
    padding: 0 40px !important;
  }
}
@media (max-width: 991.98px) {
  .custom-navbar {
    padding: 0.5rem 1rem;
  }
  .logo-container {
    justify-content: flex-start !important;
  }
  .navbar-collapse {
    flex-grow: 1 !important;
  }
  .navbar-nav {
    text-align: center;
    margin-left: auto !important;
  }
  .logo-img {
    height: 50px;
    max-width: 150px;
  }
  .main-content {
    padding-top: 70px;
  }
}
@media (max-width: 576px) {
  .logo-img {
    height: 40px;
    max-width: 120px;
  }
  .main-content {
    padding-top: 60px;
  }
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100svh;
  height: 100dvh;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.5;
  z-index: 3;
}
.hero-content {
  position: relative;
  z-index: 4;
  color: var(--ink);
  text-align: center;
  width: 100%;
  max-width: 2000px;
  padding: 0 20px;
}
#heroCarousel {
  margin-bottom: 2rem;
  min-height: 150px;
  display: flex;
  align-items: center;
}
.carousel-inner {
  width: 100%;
  padding: 0 10%;
}

/* =========================
   Carrusel - Transición mejorada
   ========================= */
.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
  opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
  opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
  transform: translateX(0);
  transform: translate3d(0, 0, 0);
}

/* Transición más suave y prolongada */
.carousel-fade .carousel-item {
  transition: opacity 1.2s ease-in-out;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-buttons {
  margin-top: 2rem;
}
.hero-btn {
  background-color: #f6f7f8;
  color: #1f2937;
  padding: 12px 30px;
  border-radius: 10px;
  margin: 0 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}
.hero-btn:hover {
  background-color: var(--brand);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-btn {
    margin: 10px 0;
    width: 200px;
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

/* Estadísticas (Retos) */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0c0e21 0%, #1d2038 100%);
  color: #f4f7fb;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%233a3e6d" fill-opacity="0.2" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    center/cover no-repeat;
}
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #5b6b7b, #2a3a48);
  border-radius: 3px;
}
.section-subtitle {
  font-size: 1.2rem;
  color: #a0a7e0;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stats-container {
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(135deg, #5b6b7b, #2a3a48);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover::before {
  opacity: 0.2;
}

.stat-icon {
  font-size: 2.5rem;
  margin: 50px 0 20px;
  color: #fff;
  display: inline-block;
  padding: 25px 35px;
  border-radius: 10%;
  background: linear-gradient(135deg, #5b6b7b, #2a3a48);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

/* Porcentajes EN BLANCO (móvil-safe) */
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.stat-label {
  font-size: 1.1rem;
  color: #a0a7e0;
  font-weight: 600;
}
.problem-cards {
  font-size: 0.95rem;
  color: #d1d5f0;
  line-height: 1.5;
  text-align: justify;
  text-align-last: center;
  padding: 0 10% 10%;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stats-description {
  margin-top: 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border-left: 4px solid #374550;
}
.stats-description h3 {
  color: #fff;
  margin-bottom: 20px;
}
.stats-description p {
  color: #d1d5f0;
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2.3rem;
  }
  .stat-number {
    font-size: 3rem;
  }
}
@media (max-width: 767.98px) {
  .stats-section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .stat-card {
    margin-bottom: 20px;
  }
}

/* =========================
   Soluciones (parallax, igual)
   ========================= */
.soluciones-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.soluciones-parallax {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/soluciones.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  z-index: -2;
}
.soluciones-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 14, 33, 0.72) 0%,
    rgba(29, 32, 56, 0.45) 100%
  );
  z-index: -1;
}
.soluciones-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.soluciones-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  color: var(--ink);
}
.soluciones-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-grad);
  border-radius: 3px;
}
.soluciones-subtitle {
  font-size: 1.1rem;
  color: #c8cde9;
  margin-bottom: 40px;
  max-width: 700px;
  margin-inline: auto;
}
.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.solucion-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}
.solucion-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.solucion-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.solucion-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.solucion-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.solucion-icon i {
  color: #fff;
  opacity: 0.95;
}
.solucion-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.solucion-text {
  color: #e1e6fa;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: justify;
  padding: 10px 30px;
}
@media (max-width: 991.98px) {
  .soluciones-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .solucion-item {
    padding: 20px;
  }
  .solucion-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
  }
  .solucion-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
@media (max-width: 767.98px) {
  .soluciones-section {
    padding: 60px 0;
  }
  .soluciones-title {
    font-size: 2rem;
  }
  .solucion-item {
    padding: 20px 15px;
  }
  .solucion-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .solucion-title {
    font-size: 1.3rem;
  }
}
@media (max-width: 768px) {
  .soluciones-parallax,
  .soluciones-overlay {
    position: absolute;
    background-attachment: scroll;
  }
}
.soluciones-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--surface-dark) 0%,
    var(--surface) 100%
  );
  z-index: -3;
  display: none;
}
.soluciones-section.no-image::before {
  display: block;
}

/* =========================
   CTA (igual)
   ========================= */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--surface-dark) 0%,
    var(--surface) 100%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.cta-content {
  padding-right: 30px;
}
.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.cta-description {
  color: #a0a7e0;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.cta-features {
  margin-top: 30px;
}
.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.feature-item i {
  color: #2ecc71;
  margin-right: 12px;
  font-size: 1.2rem;
}
.feature-item span {
  color: #d1d5f0;
}
.cta-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-form .form-group {
  margin-bottom: 1.2rem;
}
.cta-form label {
  display: block;
  color: #a0a7e0;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.cta-form .form-control {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}
.cta-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(55, 69, 80, 0.25);
  color: #fff;
  outline: none;
}
.cta-form .form-control::placeholder {
  color: #8890b0;
  opacity: 0.7;
}
.cta-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a7e0' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12L8 12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}
.cta-submit-btn {
  background: var(--accent-grad);
  border: none;
  border-radius: 6px;
  padding: 12px 30px;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s ease;
  color: white;
  position: relative;
}
.cta-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.cta-form .form-control.is-invalid {
  border-color: #e74c3c;
}
.cta-form .form-control.is-valid {
  border-color: #2ecc71;
}
@media (max-width: 991.98px) {
  .cta-content {
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }
  .cta-title {
    font-size: 2rem;
  }
  .feature-item {
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  .cta-section {
    padding: 60px 0;
  }
  .cta-card {
    padding: 25px;
  }
  .cta-form {
    padding: 20px;
  }
  .cta-title {
    font-size: 1.8rem;
  }
}
