  body {
  font-family: 'Roboto Condensed', sans-serif;
}

header a:hover {
  color: #ff4444 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hover-fondo-sup:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  transition: background 0.3s ease;
}

/* Carousel caption style */
.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 1rem;
  max-width: 80%;
  left: 10%;
  right: 10%;
  bottom: 20px;
}

/* Estilo de tarjeta moderna más clara */
.content-card {
  background-color: #1d1d1d; /* un poco más claro que bg-dark */
  border: 1px solid #3a3a3a;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.content-card:hover {
  background-color: rgba(50, 54, 58, 0.95);
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.25);
  cursor: pointer;
}

.content-card img {
  height: auto;
  border-radius: 0.25rem;
  object-fit: cover;
  flex-shrink: 0;
}

.content-card .content-text {
  color: #eee;
  font-size: 1rem;
  line-height: 1.5;
}

.content-card h5 {
  margin: 0 0 0.5rem;
  color: #ff4444;
  font-weight: bold;
}

/* Enlaces en contenido */
.txt-blanco a {
  color: #ff4444;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.txt-blanco a:hover {
  color: #ff6666;
  text-decoration: underline;
}

/* Carousel controls bigger and more visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 2px black);
  width: 50px;
  height: 50px;
}

/* Scrollbar para textos */
.scrollable-text {
  max-height: 6.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff4444 #222;
}

/* Navbar hover mejorado */
.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.navbar-nav .nav-link {
  padding: 0.6rem 1rem;
  transition: color 0.3s ease, background 0.3s ease;
}

/* Responsive navbar ajustes */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-nav .nav-link {
    padding-left: 0;
  }

  form[role="search"] {
    margin-top: 1rem;
  }
}

/* Fondos decorativos */
.fondo-rsfm {
  background-image: url(../img/fondo_rsfm_emision_online.png);
  height: 100px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px #fff solid;
}

.fondo-libro-rsfm {
  background-image: url(../img/rsfm_libro.png);
  height: auto;
  background-position: right;
  background-repeat: no-repeat;
}

.a { text-decoration: none; }

.link-pie {
  transition: color 0.3s ease;
}

.link-pie:hover {
  color: maroon !important;
}

#caja_buscar::placeholder {
  color: #ccc !important;
  opacity: 1;
}
.bg-dark-light {
  background-color: rgba(var(--bs-dark-rgb), 0.85) !important;
}
.fondo-cajas { background-color: #1d1d1d; }

.object-fit-cover {
  object-fit: cover;
}
