body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9fb;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

.contenedor-articulo {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding-bottom: 2rem;
}

.imagen-header {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-bottom: 4px solid #007bff;
}

.imagen-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.titulo-sobre-imagen {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 2.2rem;
  padding: 1rem 2rem;
  text-shadow: 0 1px 4px #000;
  font-weight: bold;
  border-radius: 6px;
}

.breadcrumb {
  padding: 1rem 2rem;
  font-size: 0.9rem;
  background: #f1f3f6;
  color: #666;
  border-bottom: 1px solid #ddd;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb strong {
  color: #000;
  font-weight: bold;
}

.contenido-principal {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  padding: 2rem;
}

.contenido-articulo {
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.8;
}

.sidebar-derecho {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  background: #f5f7fa;
  padding: 1.5rem;
  border-top: 1px solid #ddd;
  font-size: 1rem;
}

.sidebar-destacado {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #ccc;
  border-left: 4px solid #007bff;
  color: #333;
  border-radius: 4px;
}

.etiquetas {
  padding: 1rem 2rem;
  background: #f0f2f5;
  border-top: 1px solid #ccc;
  font-size: 0.95rem;
}

.etiquetas a.etiqueta {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

#boton-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 14px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background 0.3s ease;
}

#boton-top:hover {
  background-color: #0056b3;
}

footer {
  font-size: 0.85rem;
  color: #999;
  margin-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .contenido-principal {
    flex-direction: row-reverse;
  }

  .contenido-articulo {
    flex: 1 1 68%;
  }

  .sidebar-derecho {
    flex: 1 1 30%;
    border-left: none;
    border-right: 1px solid #ddd;
  }
}

@media (max-width: 767px) {
  .titulo-sobre-imagen {
    font-size: 1.6rem;
    padding: 0.6rem 1rem;
  }
}
