/* ==========================================================================
   Novedades Section - Based on galapagos theme styles
   ========================================================================== */

/* ---------- Section (cabecera wrapper) ---------- */

.nov-section {
  padding-top: 90px;
  padding-bottom: 40px;
  background-color: #ffffff;
}
@media screen and (max-width: 768px) {
  .nov-section {
    padding-top: 40px;
    padding-bottom: 20px;
  }
}

/* ---------- Section head (from cabecera) ---------- */

.nov-section-head {
  margin-bottom: 2.5rem;
}

.nov-overline {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: 3px;
  font-weight: 500;
  text-align: left;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.nov-heading {
  font-family: 'Epilogue', sans-serif;
  font-size: 4.4rem;
  line-height: 1.1;
  text-align: left;
  padding-bottom: 0.75rem;
  word-break: break-word;
}
@media screen and (max-width: 768px) {
  .nov-heading {
    font-size: calc(2.19rem + (4.4 - 2.19) * ((100vw - 20rem) / (48 - 20)));
    line-height: calc(1.3 * (2.19rem + (4.4 - 2.19) * ((100vw - 20rem) / (48 - 20))));
  }
}

/* ---------- Listado wrapper ---------- */

.nov-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Each item (alternating layout) ---------- */

.nov-item {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}
.nov-item:first-child {
  padding-top: 0;
}
.nov-item:last-child {
  border-bottom: none;
}

.nov-text {
  padding: 2rem 1.5rem;
}
@media screen and (max-width: 991px) {
  .nov-text {
    padding: 1.5rem 0;
  }
}

/* ---------- Date ---------- */

.nov-date {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ff4f26;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

/* ---------- Title ---------- */

.nov-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.8rem;
  line-height: 1.3;
  font-weight: 700;
  color: #121212;
  margin-bottom: 0.75rem;
}
.nov-title a {
  color: #121212;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nov-title a:hover {
  color: #ff4f26;
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  .nov-title {
    font-size: 1.4rem;
  }
}

/* ---------- Subtitle ---------- */

.nov-subtitle {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
  color: #555;
  margin-bottom: 1rem;
}

/* ---------- Description ---------- */

.nov-description {
  font-family: 'Epilogue', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #454545;
  margin-bottom: 1.5rem;
}
.nov-description p {
  color: #454545;
  font-family: 'Epilogue', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 400;
}

/* ---------- Author ---------- */

.nov-author {
  display: block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #707070;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ---------- Item link wrapper ---------- */

.nov-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.nov-item-link:hover {
  text-decoration: none;
  color: inherit;
}
.nov-item-link:hover .nov-title {
  color: #ff4f26;
}
.nov-item-link:hover .nov-readmore {
  color: #f5ac3c;
  text-decoration: underline;
}

/* ---------- "Leer más" text ---------- */

.nov-readmore {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff4f26;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

/* ---------- Image ---------- */

.nov-card-wrap {
  border-radius: 4px;
  overflow: hidden;
}

.nov-image-wrap {
  overflow: hidden;
  height: 400px;
  transition: all 0.3s;
}
.nov-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.nov-card-wrap:hover img {
  transform: scale(1.08);
}
.nov-card-wrap:hover .nov-image-wrap {
  transform: scale(0.97);
}

@media screen and (max-width: 991px) {
  .nov-image-wrap {
    height: 300px;
  }
}
@media screen and (max-width: 576px) {
  .nov-image-wrap {
    height: 220px;
  }
}

/* ---------- "Ver más" button (bottom of listado) ---------- */

.nov-more-wrapper {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.nov-more-wrapper a {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #ff4f26;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.nov-more-wrapper a:hover {
  background-color: #f5ac3c;
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

/* ==========================================================================
   Novedades ALL - Grid page (secondary)
   ========================================================================== */

.nov-all-section {
  padding-top: 90px;
  padding-bottom: 60px;
  background-color: #ffffff;
}
@media screen and (max-width: 768px) {
  .nov-all-section {
    padding-top: 40px;
    padding-bottom: 30px;
  }
}

.nov-all-head {
  margin-bottom: 2.5rem;
}

.nov-all-heading {
  font-family: 'Epilogue', sans-serif;
  font-size: 2.6rem;
  line-height: 1.2;
  color: #121212;
}
@media screen and (max-width: 768px) {
  .nov-all-heading {
    font-size: calc(1.6rem + (2.6 - 1.6) * ((100vw - 20rem) / (48 - 20)));
  }
}

/* ---------- Grid card ---------- */

.nov-all-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.nov-all-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nov-all-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.nov-all-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.nov-all-image-wrap {
  overflow: hidden;
  height: 220px;
}
.nov-all-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.nov-all-card:hover .nov-all-image-wrap img {
  transform: scale(1.08);
}

.nov-all-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nov-all-date {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ff4f26;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.nov-all-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
  color: #121212;
  margin-bottom: 0.5rem;
}
.nov-all-title a {
  color: #121212;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nov-all-title a:hover {
  color: #ff4f26;
}

.nov-all-subtitle {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.nov-all-desc {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #707070;
  margin-bottom: 0.75rem;
  flex: 1;
}
.nov-all-desc p {
  margin-bottom: 0.5rem;
}

.nov-all-author {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #999;
  font-style: italic;
}

.nov-all-readmore {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff4f26;
  margin-top: auto;
  padding-top: 0.5rem;
  transition: color 0.3s ease;
}
.nov-all-card-link:hover .nov-all-readmore {
  color: #f5ac3c;
  text-decoration: underline;
}
