/* ==== ESTILOS DEL NUEVO BLOG ==== */

/* Override Bootstrap container width para igualar el ancho de las otras vistas */
.blog-nuevo > .container,
.blog-post-page > .container {
  max-width: 1600px;
  padding-left: 4rem;
  padding-right: 4rem;
}

.blog-nuevo {
  background-color: #ffffff;
  padding-top: 100px;
  font-family: 'Poppins', sans-serif;
}

.blog-header-row {
  margin-top: 50px;
}

.blog-main-title {
  font-size: 5rem;
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 2rem;
}

.blog-entry-row {
  margin-bottom: 6rem;
}

.blog-entry-title {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 2rem;
}

.blog-entry-desc {
  font-size: .8rem;
  font-weight: 200;
  color: #000;
  margin-bottom: 3rem;
  max-width: 80%;
}

.blog-main-img {
  height: 600px;
  object-fit: cover;
}

/* ==== PAGINACION ==== */
.blog-pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.blog-pagination-wrap .pagination {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.blog-pagination-wrap .page-item .page-link {
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #000;
  font-size: 0.9rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.blog-pagination-wrap .page-item .page-link:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.blog-pagination-wrap .page-item.active .page-link {
  background: #000;
  border-color: #000;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.blog-pagination-wrap .page-item.disabled .page-link {
  color: #a3a3a3;
  border-color: #ececec;
  background: #f8f8f8;
}

/* ==== GRID INFERIOR ==== */
.blog-grid-section {
  border-top: 1px solid #eee;
  padding-top: 4rem;
}

.grid-item {
  margin-bottom: 3rem;
}

.grid-img-link {
  display: block;
  margin-bottom: 1.5rem;
}

.grid-item img {
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-img-link:hover img {
  transform: scale(1.02);
}

.grid-text-content {
  padding-right: 1rem;
}

.grid-date {
  font-size: 0.8rem;
  color: #000;
  display: block;
  margin-bottom: 0.5rem;
}

.grid-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 1rem;
}

.grid-desc {
  font-size: .8rem;
  font-weight: 200;
  color: #333;
  margin-bottom: 1.5rem;
}

/* ============================================== */
/* ==== BLOG POST PAGE (blog-post.html) ========= */
/* ============================================== */

.blog-post-page {
  background-color: #ffffff;
  padding-top: 120px;
  font-family: 'Poppins', sans-serif;
  color: #000;
}

/* Secciones separadas por línea gris fina */
.bp-section {
  padding-top: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e0e0e0;
}

.bp-section:last-child {
  border-bottom: none;
}

/* Títulos grandes */
.bp-title-lg {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.2rem;
}

/* Párrafos — alineados con el estándar global: .8rem / 200 */
.bp-text {
  font-size: .8rem;
  font-weight: 200;
  line-height: 1.6;
  color: #222;
  text-align: justify;
}

.bp-card-title {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

/* ---- IMÁGENES ---- */

.bp-img-landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.bp-img-landscape-full {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
  display: block;
}

/* Portrait - 9:16 como en el mockup */
.bp-img-portrait {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.bp-img-portrait-tall {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* Portrait pequeño para galería de 3 */
.bp-img-portrait-sm {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

/* Separación entre columnas */
.blog-post-page .row {
  --bs-gutter-x: 30px;
}

/* Botones dentro de blog post */
.blog-post-page .btn-woorx {
  margin-top: 1.5rem;
}

/* ---- RESPONSIVO ---- */
@media (max-width: 1400px) {
  .blog-nuevo > .container,
  .blog-post-page > .container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (max-width: 991px) {
  .blog-nuevo > .container,
  .blog-post-page > .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .bp-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .bp-title-lg {
    font-size: 2rem;
  }

  .bp-img-portrait,
  .bp-img-portrait-tall {
    max-height: 350px;
  }

  .bp-img-portrait-sm {
    max-height: 280px;
  }

  .bp-img-landscape-full {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .blog-nuevo > .container,
  .blog-post-page > .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .blog-nuevo {
    padding-top: 80px;
  }

  .blog-main-title {
    font-size: 3rem;
  }

  .blog-entry-row {
    margin-bottom: 4rem;
  }

  .blog-entry-row .blog-text-col {
    margin-bottom: 2rem;
  }

  .blog-entry-title {
    font-size: 2rem;
  }

  .blog-entry-desc {
    max-width: 100%;
  }

  .blog-main-img {
    height: auto;
    max-height: 400px;
  }

  .blog-post-page {
    padding-top: 80px;
  }

  .bp-section {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .bp-title-lg {
    font-size: 1.6rem;
  }

  .bp-img-portrait,
  .bp-img-portrait-tall,
  .bp-img-portrait-sm {
    max-height: 300px;
  }

  .bp-img-landscape {
    aspect-ratio: 4 / 3;
  }

  .grid-item {
    margin-bottom: 2rem;
  }

  .blog-pagination-wrap .pagination {
    gap: 0.35rem;
  }

  .blog-pagination-wrap .page-item .page-link {
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

/* ---- EFECTOS HOVER Y FORMULARIO ---- */

/* Efecto hover sutil para todas las imágenes del blog */
.bp-img-portrait, .bp-img-landscape, .bp-img-portrait-sm {
  transition: opacity 0.3s ease-in-out, filter 0.3s ease-in-out;
}
.bp-img-portrait:hover, .bp-img-landscape:hover, .bp-img-portrait-sm:hover {
  opacity: 0.95;
  filter: brightness(0.9);
}

/* Estilos de inputs (Formulario de Contacto) */
.bp-contact-form {
  margin-top: 1.5rem;
}
.bp-contact-form .form-control, .bp-contact-form textarea, .bp-contact-form .form-select {
  width: 70%;
  display: inline-block;
  border: none;
  border-bottom: 1px solid #c3c3c3;
  border-radius: 0;
  line-height: 1rem;
  font-size: .8rem;
  padding: .375rem .75rem;
  background-color: transparent;
  transition: border-color 0.3s ease-in-out;
}
.bp-contact-form .form-label {
  font-weight: 200;
  font-size: .8rem;
  width: 28%;
  display: inline-block;
  color: #000;
}
.bp-contact-form .form-control:focus, .bp-contact-form textarea:focus, .bp-contact-form .form-select:focus {
  box-shadow: none;
  border-bottom: 2px solid #000;
  outline: none;
}
