/* TOP BAR */
.topbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #2c2c2c;
  height: 5rem;
}

.topbar__rrss ul {
  display: flex;
  margin: 0;
}

.topbar__rrss ul li {
  list-style-type: none;
  margin-left: 2rem;
}

.fa__icon,
.info__text {
  color: #f3f3f3;
}

.topbar__rrss .fa__icon {
  transition: transform .2s;
}

.topbar__rrss .fa__icon:hover {
  transform: scale(1.2);
}

.topbar__contact {
  display: flex;
}

.contact__info {
  display: flex;
  align-items: center;
  color: #00466d;
}

@media (max-width: 991px) {
  .topbar {
    display: none;
  }
}

/******************* FOOTER *********************/
.footer {
  background-color: #f8f9fa;
  border-top: none;
  margin-top: 60px;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

/* Texto */
.footer__text {
  margin: 0;
  font-size: 14px;
  color: #bbb;
}

/* Links */
.footer a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.footer a:hover {
  color: #007bff;
}

@media (max-width: 768px) {
  .footer__container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/*************** SIDEBAR ******************/

.sidebar {
  position: sticky;
  top: 30px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.sidebar .widget {
  margin-bottom: 25px;
}

.sidebar ul {
  padding-left: 0;
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar a {
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  color: #007bff;
}

/****************** Cards ******************/
.blog-card {
  border-radius: 12px;
}

/* Imagen */
.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 50%;
  /* controla la altura (más bajo = más elegante) */
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Título */
.blog-title {
  transition: color 0.2s ease;
}

.blog-title:hover {
  color: #007bff;
  text-decoration: none;
}

/* Texto */
.card-text {
  line-height: 1.6;
}

/* SINGLE */
.content p {
    margin-bottom: 1.5rem;
}

.content img {
    max-width: 100%;
    height: auto;
}

.content h2, .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-category a {
  color: white;
}
