
/* 
==================================================
= Estilos presentes en el componente estándar    =
==================================================
 */


.bs-article {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
  .bs-article {
    padding-top: 10px;
  }
}

.article-wrapper {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.no-image {
  grid-template-columns: 1fr !important;
}

.article-image-container {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.article-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
  display: block;
  transition: transform 0.3s ease;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-date {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-transform: capitalize;
}

.article-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: var(--font-regular);
  line-height: 1.2;
  margin: 0;
  position: relative;
  display: inline-block;
  text-transform: capitalize;
}

.article-title::after {
  content: "";
  width: 100%;
  height: 3px;
  position: absolute;
  left: 0;
  bottom: -5px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.article-title:hover::after {
  transform: scaleX(1);
}

.article-body {
  line-height: 1.75;
  font-size: 1rem;
}

.article-footer {
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .article-wrapper {
    grid-template-columns: 1fr;
  }

  .article-content {
    grid-template-columns: 1fr;
  }

  .mobile-order-1 { order: 1; }
  .mobile-order-2 { order: 2; }
  .mobile-order-3 { order: 3; }
  .mobile-order-4 { order: 4; }

  .desktop-order-1 {
    display: none;
  }
}

@media (min-width: 768px) {
  .article-wrapper {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }

  .article-image-container {
    position: sticky;
    top: 8rem;
    max-height: 600px;
  }

  .article-image {
    max-height: 600px;
  }

  .mobile-order-2 {
    display: none;
  }

  .desktop-order-1 { order: 1; }
  .desktop-order-2 { order: 2; }
}

@media (min-width: 992px) {
  .article-content {
    padding: 2rem;
  }

  .article-image-container {
    max-width: 450px;
  }
}

.appear {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .article-image:hover {
    transform: scale(1.02);
  }
}

.no-image .article-image-container {
  display: none;
}
