body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

html {
  height: 100%;
}

.section-dark {
  font-family: "Gill Sans MT", "Gill Sans", "Calibri", "Trebuchet MS", sans-serif;
  font-size: 1.5rem;  /* Tamaño más grande: 24px */
  line-height: 1.6;
  background: linear-gradient(180deg, #212529, #343a40);
  color: white;
}

.logo-principal {
  width: 50%;
  max-width: 300px;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.icono-mv {
  height: 80px;
  transition: transform 0.3s ease;
}

.icono-mv:hover {
  transform: scale(1.1);
}

.border-danger {
  border-color: #d72638 !important;
}

footer {
  margin-top: auto;
  background: linear-gradient(180deg, #212529, #111);
}

.glow-logo {
  animation: glow 2s infinite ease-in-out;
}

.nav-link.active.glow-link {
  color: #fff;
  font-weight: bold;
  animation: glowText 1.5s infinite alternate;
}

@keyframes glowText {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #d72638, 0 0 15px #d72638;
  }
  to {
    text-shadow: 0 0 10px #fff, 0 0 20px #d72638, 0 0 30px #d72638;
  }
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 5px #ff4040) drop-shadow(0 0 10px rgb(255, 33, 33));
  }
  50% {
    filter: drop-shadow(0 0 20px rgb(255, 99, 99)) drop-shadow(0 0 40px rgb(221, 5, 5));
  }
  100% {
    filter: drop-shadow(0 0 5px #ff3d3d) drop-shadow(0 0 10px rgb(173, 3, 3));
  }
}

.footer-custom {
  margin-top: auto;
  background: linear-gradient(180deg, #212529, #111);
}

.footer-custom a:hover {
  color: #d72638;
}

.card img {
  transition: transform 0.3s ease;
}

main {
  flex: 1; 
}

.card img:hover {
  transform: scale(1.05);
}

.card {
  border-radius: 12px;
  overflow: hidden;
}

.card-body {
  padding: 2rem;
}

.card .ratio {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
}

.card h3 {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

/* Ajustar altura del carrusel */
#carouselMain .carousel-item img {
  height: 400px;       /* Ajusta este valor a la altura que quieras */
  object-fit: cover;   /* Recorta la imagen sin deformarla */
}


.img-fixed-height {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.card-mv-horizontal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-mv-horizontal img {
  width: 100px;
  height: auto;
}

@media (max-width: 768px) {
  .card-mv-horizontal {
    flex-direction: column;
    text-align: center;
  }

  .card-mv-horizontal img {
    margin-bottom: 1rem;
  }
}
.card-mv-horizontal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-mv-horizontal img {
  width: 100px;
  height: auto;
}

@media (max-width: 768px) {
  .card-mv-horizontal {
    flex-direction: column;
    text-align: center;
  }

  .card-mv-horizontal img {
    margin-bottom: 1rem;
  }
}

.separador-titulo {
  background-color: #000; /* negro */
  color: #fff; /* blanco */
  text-align: center;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0.8rem 0;
  margin-bottom: 1rem;
  border-radius: 4px;
  user-select: none;
}

.curso-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}
.curso-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card-title {
  font-weight: 600;
}
.card-text {
  font-size: 0.95rem;
}
.servicio-bloque p {
  font-size: 1.05rem;
  font-family: "Gill Sans MT", sans-serif;
  color: #333;
}

.servicio-bloque h4 {
  font-weight: 700;
  font-size: 1.4rem;
  color: #d72638;
}

.separador-titulo {
  background-color: #000;
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 0.8rem;
  margin: 2rem 0 1.5rem;
  border-radius: 4px;
}

/* Navbar personalizada */
.navbar {
  background: linear-gradient(90deg, #111, #1c1c1c, #111); /* degradado elegante */
  padding: 0.8rem 1.2rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}

.navbar:hover {
  background: linear-gradient(90deg, #0d0d0d, #222, #0d0d0d);
}

/* Logo */
.navbar-brand img {
  filter: drop-shadow(0 0 6px rgba(255, 40, 40, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.navbar-brand img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 40, 40, 0.9));
}

/* Navbar personalizada */
.navbar {
  background: linear-gradient(90deg, #111, #1c1c1c, #111); /* degradado elegante */
  padding: 0.8rem 1.2rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

/* Logo */
.navbar-brand img {
  filter: drop-shadow(0 0 6px rgba(255, 40, 40, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.navbar-brand img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 40, 40, 0.9));
}

/* Links tipo botón */
.navbar-nav .nav-link {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin: 0 6px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover efecto botón */
.navbar-nav .nav-link:hover {
  color: #fff;
  background-color: #d72638;   /* rojo corporativo */
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(215, 38, 56, 0.4);
}

/* Activo */
.navbar-nav .nav-link.active {
  color: #fff !important;
  background-color: #d72638;
  border-color: #fff;
  font-weight: 700;
}

/* Botón hamburguesa */
.navbar-toggler {
  border: none;
  outline: none;
}
.navbar-toggler-icon {
  filter: invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.7));
  transition: transform 0.3s ease;
}
.navbar-toggler:focus .navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon {
  transform: scale(1.1);
}

.servicio-fila {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 280px;
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio-overlay {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 700px;
  transition: background 0.3s ease;
}

.servicio-overlay:hover {
  background: rgba(215, 38, 56, 0.8); /* rojo elegante */
}

.servicio-overlay h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.servicio-overlay p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.icono-servicio {
  font-size: 2rem;
  background: #fff;
  color: #d72638;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}


/* Pills con miniaturas */
.galeria-pills .nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #111;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .4rem .9rem;
  font-weight: 600;
  transition: all .25s ease;
}
.galeria-pills .nav-link:hover {
  transform: translateY(-2px);
  border-color: #fff;
}
.galeria-pills .nav-link.active {
  background: #d72638;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(215,38,56,.35);
}
.pill-thumb {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Hero con imagen grande */
.galeria-hero {
  position: relative;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
}
.galeria-hero .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
  transition: transform .5s ease, filter .5s ease;
}
.galeria-hero:hover .hero-img {
  transform: scale(1.03);
  filter: brightness(.8);
}
.galeria-hero .hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,.0));
  color: #fff;
}
.galeria-hero h4 {
  font-weight: 800;
  letter-spacing: .2px;
}
@media (max-width: 576px) {
  .pill-thumb { width: 36px; height: 36px; }
  .galeria-hero { height: 280px; }
}
