body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f9fb;
  color: #333;
}

.navbar {
  background-color: #034078 !important;
}

.cmo-navbar {
  border-radius: 0 !important;
  width: 100%;
}

.navbar-brand img,
.cmo-navbar-logo {
  height: 44px;
  width: auto;
  margin-right: 8px;
  display: inline-block;
}

.navbar-brand span {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  color: #e3f2fd !important;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

main.container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

h1 {
  color: #034078;
  font-weight: 600;
  margin-bottom: 1rem;
}

footer {
  background-color: #012a4a;
  padding: 30px 0;
  color: #e3f2fd;
  font-size: 0.9rem;
}

footer a {
  color: #e3f2fd;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-contact {
  text-align: center;
}

@media (max-width: 576px) {
  .navbar-brand span {
    font-size: 1rem;
  }
}

/* Imágenes dentro del cuerpo de EMRD */
.markdown-body img {
  max-width: 100%;
  height: auto;
}

/* Figuras con buen espaciado */
.markdown-body figure.figure {
  display: block;
  margin: 1rem auto;
}

/* Alineaciones útiles (puedes usarlas desde el editor con clases) */
.img-left { float: left; margin: 0.25rem 1rem 0.5rem 0; max-width: 50%; }
.img-right { float: right; margin: 0.25rem 0 0.5rem 1rem; max-width: 50%; }
@media (max-width: 768px) {
  .img-left, .img-right { float: none; margin: 0.5rem auto; max-width: 100%; display: block; }
}

/* Navbar clínica: borde recto, ancho completo y hover solo en la imagen del logo */
.cmo-navbar {
  border-radius: 0 !important;
  width: 100%;
}

.cmo-navbar .container,
.cmo-navbar .container-fluid {
  max-width: none;
}

.cmo-navbar-logo {
  height: 44px !important;
  width: auto !important;
  margin-right: 8px;
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.18s ease, filter 0.18s ease;
  will-change: transform;
}

.navbar-brand:hover .cmo-navbar-logo,
.navbar-brand:focus .cmo-navbar-logo {
  transform: rotate(-6deg) scale(1.06);
  filter: brightness(1.08);
}

.navbar-brand span {
  transform: none !important;
}
