:root {
  --color-1: #6C2D6A;
  --color-2: #5B225A;
  --color-3: #4B1749;
  --color-4: #3A0B39;
  --color-5: #290028;
}

/* NAVBAR */
.custom-navbar {
  background: linear-gradient(90deg, var(--color-1) 0%, var(--color-2) 25%, var(--color-3) 50%, var(--color-4) 75%, var(--color-5) 100%);
  border-radius: 1.5rem;
  margin: 2rem 0.5rem;
  box-shadow: 0 8px 32px 0 rgba(44, 0, 44, 0.2);
  transition: box-shadow .3s;
}

.custom-navbar:hover {
  box-shadow: 0 12px 48px 0 rgba(44, 0, 44, 0.35);
}

.nav-link {
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1.2rem !important;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Color al pasar el mouse o activo: negro */
.nav-link.active,
.nav-link:hover {
  color: #000 !important;
  background: #fff1;
  border-radius: 2rem;
}

.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #fff;
  transition: width 0.3s;
  margin-top: 2px;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
  background: var(--color-2);
}

/* ICONO CASA */
.nav-link .fa-house {
  font-size: 1.1em;
  vertical-align: middle;
  margin-right: 0.3em;
  transition: color 0.2s;
}

/* Cambia el icono casa a negro en hover */
.nav-link:hover .fa-house,
.nav-link.active .fa-house {
  color: #000;
}

/* SOCIAL ICONS */
.social-link {
  color: #fff;
  font-size: 1.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transition: background 0.3s, color 0.2s, transform 0.2s;
}

.social-link:hover {
  background: #fff;
  color: var(--color-2);
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 4px 16px 0 rgba(92,33,90,0.2);
}
.social-link.instagram:hover { color: #C13584; }
.social-link.facebook:hover { color: #3b5998; }
.social-link.tiktok:hover { color: #000; }

/* BOTÓN LOGIN */
.btn-login {
  background: #fff;
  color: var(--color-2);
  border-radius: 2rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(44,0,44,0.08);
  transition: background 0.3s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-login:hover {
  background: var(--color-1);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(92,33,90,0.15);
  transform: scale(1.05);
}

@media (max-width: 991.98px) {
  .custom-navbar {
    border-radius: 0.7rem;
    margin: 0.8rem 0.2rem;
  }
  .navbar-nav {
    background: rgba(44,0,44,0.10);
    border-radius: 0.5rem;
    padding: 0.6rem 0;
  }
}


.main-video-bg {
  width: 100vw;
  height: calc(100vh - 130px); /* ajusta si tu navbar es más alto o bajo */
  min-height: 500px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

.video-container {
  border-radius: 2.5rem;
  box-shadow: 0 8px 48px 0 rgba(44, 0, 44, 0.07);
  border: 7px solid #0c0c0c;
  background: #fff;
  overflow: hidden;
  max-width: 90vw;
  max-height: 78vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Opcional: Responsivo para pantallas pequeñas */
@media (max-width: 768px) {
  .main-video-bg {
    height: 55vh;
    min-height: 240px;
    padding: 0;
  }
  .video-container {
    border-radius: 1.2rem;
    border-width: 4px;
    max-width: 98vw;
    max-height: 38vh;
  }
}
/* BANNER PRINCIPAL */
/* QUE ES SM */

/* =============== SECCIÓN ¿QUÉ ES PROYECTO SM? + LOGIN =============== */
.explicacion-login-section {
  position: relative;
  background: #fff;
  min-height: 90vh;
  z-index: 1;
}
.explicacion-bg-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assents/img/fondos/seccioncomofunciona.png') center/cover no-repeat;
}

/* ----- CARD EXPLICACIÓN ----- */
.explicacion-card {
  border-radius: 2rem;
  background: #faf8fb;
  box-shadow: 0 4px 36px 0 rgba(44,0,44,0.09);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ----- METODOLOGÍA LISTA ----- */
.metodologia-list li {
  font-size: 1.07rem;
  line-height: 1.55;
  color: #5B225A;
}
.metodologia-list i {
  min-width: 28px;
  text-align: center;
}

/* =============== LOGIN CARD CON FONDO =============== */
.login-card {
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 2px 32px 0 rgba(80,40,150,0.09);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-bg-image {
  position: absolute;
  inset: 0;
  background: url('/assents/img/fondos/login.png') center/cover no-repeat;
  z-index: 0;
  opacity: 1; /* Sin opacidad, totalmente visible */
}
.login-card .card-body {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  border-radius: 2rem;
  padding: 2rem 1.5rem;
}
.gradient-text-login {
  background: linear-gradient(90deg, #7228a3, #e55dff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-login-gradient {
  background: linear-gradient(90deg, #7228a3, #e55dff 80%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-size: 1.15rem;
  box-shadow: 0 2px 12px 0 rgba(128,44,200,0.10);
  transition: background 0.22s, transform 0.18s;
}
.btn-login-gradient:hover {
  background: linear-gradient(90deg, #e55dff, #7228a3 80%);
  color: #fff;
  transform: scale(1.045);
}
.input-group-text {
  background: #f4ecfc;
  border: none;
  color: #7a3ca3;
  font-size: 1.15em;
}
.form-control:focus {
  border-color: #a443b3;
  box-shadow: 0 0 0 2px #d5b1ee44;
}
.hover-gradient:hover {
  color: #a443b3 !important;
  text-decoration: underline;
}

/* =============== LOGO + MISIÓN Y VISIÓN SECTION =============== */
.logo-mv-section {
  background: #fff;
  min-height: 50vh;
}
.logo-mv-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.mv-card {
  background: rgba(255,255,255,0.98);
  border-radius: 1.5rem;
  border: 2px solid #eee;
  box-shadow: 0 2px 32px 0 rgba(80,40,150,0.09);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.2rem 1.4rem;
}
.mv-title {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}
.gradient-text {
  background: linear-gradient(90deg, #a443b3, #63128c 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mv-text {
  font-size: 1.06rem;
  color: #383750;
  font-weight: 500;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 991px) {
  .explicacion-card,
  .login-card {
    min-height: 350px;
    margin-bottom: 1.5rem;
  }
  .login-card .card-body {
    padding: 1.2rem 0.6rem;
  }
  .logo-mv-img {
    max-width: 170px;
  }
}
@media (max-width: 767px) {
  .explicacion-card,
  .login-card {
    min-height: 280px;
  }
  .logo-mv-img {
    max-width: 120px;
    margin-bottom: 1.2rem;
  }
  .mv-card {
    padding: 1.4rem 0.7rem;
  }
}


/* ================== SECCIÓN 3 EJES PRINCIPALES DEL APRENDIZAJE ================== */

/* Fondo personalizado */
.ejes-aprendizaje-section {
  position: relative;
  min-height: 65vh;
  background: transparent;
  z-index: 1;
}
.ejes-bg-image {
  position: absolute;
  inset: 0;
  background: url('/assents/img/fondos/espacio.png') center/cover no-repeat;
  z-index: 0;
  opacity: 1; /* Fondo visible, ajusta si quieres menos intensidad */
}
.ejes-aprendizaje-section .container {
  position: relative;
  z-index: 2;
}

/* Título con gradiente */
.gradient-title-ejes {
  background: linear-gradient(90deg, #ffffff 10%, #ffffff 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card de los ejes */
.eje-card {
  background: rgba(255, 253, 253, 0.89);
  border: 2px solid #f8f3f3;
  border-radius: 1.5rem;
  box-shadow: 0 2px 20px 0 rgba(80,40,150,0.08);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
}
.eje-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(128,44,200,0.15);
  border-color: #a443b3;
  background: rgba(255,255,255,0.80);
}

/* Ícono arriba de cada eje */
.eje-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 0.3em;
}

/* Texto eje */
.eje-text {
  color: #383750;
  font-size: 1.07rem;
  font-weight: 500;
}

/* Responsive: Cards apiladas en móvil */
@media (max-width: 991px) {
  .eje-card { margin-bottom: 1.3rem; }
  .eje-icon { width: 56px; height: 56px; }
}
@media (max-width: 575px) {
  .gradient-title-ejes { font-size: 1.25rem; }
  .eje-card { border-radius: 1rem; padding: 1.1rem 0.5rem; }
}


/* ========== SECCIÓN: Conoce Nuestros Héroes ========== */

/* Fondo de la sección, cambia la ruta por tu imagen real */
.heroes-section {
  position: relative;
  min-height: 70vh;
  background: transparent;
  z-index: 1;
}
.heroes-bg-image {
  position: absolute;
  inset: 0;
  background: url('/assents/img/fondos/heroes-bg.png') center/cover no-repeat;
  z-index: 0;
  opacity: 1; /* Fondo visible */
}
.heroes-section .container {
  position: relative;
  z-index: 2;
}

/* Título */
.heroes-title {
  color: #6b3a8b;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px #0003;
  .heroes-title {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 900; /* Extra bold, puedes probar 700 también */
  /* ...resto de estilos... */
}

  font-size: 3rem;
}

/* Cards */
.hero-card {
  background: #fff;
  border: 2px solid #eee;
  border-radius: 1.3rem;
  box-shadow: 0 2px 18px 0 rgba(44,0,44,0.11);
  transition: transform 0.19s, box-shadow 0.21s;
  min-height: 100%;
  padding-bottom: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 36px 0 rgba(210,160,117,0.12);
  border-color: #6f3377;
}

.hero-img {
  max-width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.6em;
}

.hero-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Historia del héroe */
.hero-history {
  color: #2e2e2e;
  font-size: 1.02rem;
  font-weight: 500;
}

/* Badge de área */
.badge-area {
  font-size: 0.93em;
  font-weight: 600;
  margin-top: 0.7em;
  letter-spacing: 1px;
  box-shadow: 0 1px 7px 0 rgba(44,0,44,0.06);
}

/* Responsive */
@media (max-width: 991px) {
  .heroes-title { font-size: 2.1rem; }
  .hero-img { max-width: 100px; height: 100px; }
  .hero-card { margin-bottom: 1.2rem; }
}
@media (max-width: 575px) {
  .hero-card { border-radius: 0.9rem; padding: 0.7rem 0.2rem; }
  .hero-img { max-width: 75px; height: 75px; }
  .heroes-title { font-size: 1.2rem; }
}


/* ========== SECCIÓN HISTORIA Y AGRADECIMIENTO (PROFESIONAL) ========== */

/* Fondo de la sección, ajusta la ruta a tu imagen real */
.historia-creadores-section {
  position: relative;
  min-height: 80vh;
  background: transparent;
  z-index: 1;
  overflow: hidden;
}
.historia-bg-image {
  position: absolute;
  inset: 0;
  background: url('/assents/img/fondos/biblioteca.png') center/cover no-repeat;
  z-index: 0;
  opacity: 1;
}
.historia-creadores-section .container {
  position: relative;
  z-index: 2;
}

/* Título */
.historia-title {
  color: #ffd34d;
  text-shadow: 0 2px 14px #0007;
  letter-spacing: 1px;
}

/* Tarjetas de historia */
.historia-card {
  background: rgba(60,54,100,0.83);
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px 0 rgba(50,32,80,0.11);
  color: #fff;
  padding: 1.4rem 2rem 1.1rem 2rem;
  margin-bottom: 1.1rem;
  border-left: 6px solid #ffd34d;
  border-right: 6px solid #8d77e9;
  transition: box-shadow 0.2s, border 0.2s, transform 0.19s;
}
.historia-card:hover {
  box-shadow: 0 8px 28px 0 rgba(120,70,200,0.22);
  border-left: 6px solid #fff176;
  border-right: 6px solid #7b43ea;
  transform: translateY(-4px) scale(1.01);
}

.step-title {
  font-size: 1.18rem;
  color: #ffd34d;
  letter-spacing: 0.5px;
}
.step-icon {
  font-size: 1.3em;
}
.step-text {
  font-size: 1.05rem;
  color: #e5e5f7;
}

/* Tarjeta agradecimiento */
.agradecimiento-card {
  background: rgba(28,22,54,0.96);
  border-radius: 1.3rem;
  box-shadow: 0 4px 28px 0 rgba(120,70,200,0.09);
  margin-top: 2rem;
  color: #fff;
}
.agradecimiento-title {
  color: #ffd34d;
  text-shadow: 0 1px 6px #0007;
  font-size: 1.5rem;
}
.agradecimiento-text {
  font-size: 1.05rem;
  color: #f6f4fa;
}
.agradecimiento-destacado {
  color: #ffd34d;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 991px) {
  .historia-card { padding: 1.1rem 1rem; }
  .historia-title { font-size: 1.25rem; }
}
@media (max-width: 575px) {
  .historia-card,
  .agradecimiento-card { padding: 1.2rem 0.3rem !important; }
  .historia-title { font-size: 1rem; }
}


/* ==== FAQ ===== */
.faq-section {
  background: #fff;
}
.faq-title {
  color: #3a0b39;
  font-weight: bold;
  letter-spacing: 1px;
}
.accordion-item {
  border-radius: 1rem !important;
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: 0 3px 18px 0 #a7a7b210;
}
.accordion-button {
  font-weight: 600;
  font-size: 1.07rem;
  background: #f6f4fa;
  color: #50247a;
}
.accordion-button:not(.collapsed) {
  background: #e6dcf7;
  color: #7c298c;
  box-shadow: none;
}
.accordion-body {
  background: #fdfbff;
  color: #383750;
  font-size: 1.03rem;
}

/* ==== CONTACTO CON FONDO ==== */
.contact-section-fondo {
  min-height: 440px;
  position: relative;
  background: #faf8fb;
  z-index: 1;
}
.contact-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assents/img/fondos/ladrillos\ fondo.png') center/cover no-repeat;
  opacity: 0.18;  /* Cambia la opacidad si quieres más/menos visibilidad */
}
.contact-section-fondo .container {
  position: relative;
  z-index: 2;
}
.contact-title {
  color: #2a0b38;
  font-weight: bold;
  letter-spacing: 1px;
}
.contact-form {
  background: rgba(255,255,255,0.90);
  border-radius: 1.2rem;
  box-shadow: 0 2px 18px 0 #71417c1b;
  /* Puedes añadir un backdrop-filter si quieres desenfoque extra */
  /* backdrop-filter: blur(2px); */
}
.btn-gradient {
  background: linear-gradient(90deg, #a443b3, #e55dff 80%);
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-size: 1.07rem;
  box-shadow: 0 2px 12px 0 rgba(128,44,200,0.08);
  transition: background 0.22s, transform 0.18s;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #e55dff, #a443b3 80%);
  color: #fff;
  transform: scale(1.045);
}

/* ==== FOOTER ==== */
.footer-section {
  background: #3a0b39;
  color: #fff;
}
.footer-link {
  color: #ffd34d;
  font-weight: 500;
  text-decoration: none;
  margin: 0 0.2em;
  transition: color 0.18s;
}
.footer-link:hover {
  color: #fff176;
}
.footer-brand img {
  height: 38px;
  vertical-align: middle;
  margin-bottom: 0.1em;
}

