/* Novedades Slider Styles */

.novedades-slider-wrapper {
  padding: 60px 0;
  background: #ffffff;
}

.novedades-slider-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.slider-title {
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
  color: #2c5aa0;
  letter-spacing: -0.5px;
}

.slider-subtitle {
  text-align: center;
  color: black;
  margin-bottom: 10px;
  font-size: 14pt;
  font-weight: 400;
  line-height: 1.6;
}

.novedades-carousel {
  position: relative;
  margin: 40px auto;
  padding: 0;
  max-width: 1000px;
  overflow: visible;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  flex-shrink: 0;
}

.novedad-card-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.novedad-item {
  display: flex;
  flex-direction: column;
  height: 430px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

/* Desktop - 450px fijo */
@media (min-width: 1024px) {
  .novedad-item {
    height: 450px;
  }
}

/* Mobile - 430px */
@media (max-width: 480px) {
  .novedad-item {
    height: 430px;
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
  }
}

.novedades-slider-wrapper .views-field-field-image {
  width: calc(100% + 40px);
  height: 180px;
  overflow: hidden;
  margin: -20px -20px 15px -20px;
}

.novedades-slider-wrapper .views-field-field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 10px;
}

/* Mobile Image */
@media (max-width: 480px) {
  .novedades-slider-wrapper .views-field-field-image {
    width: calc(100% + 30px);
    height: 150px;
    margin: -15px -15px 12px -15px;
  }
  
  .novedades-slider-wrapper .views-field-field-image img {
    padding: 5px;
  }
}

.novedades-slider-wrapper .views-field-created {
  padding: 0 0 8px 0;
  font-size: 11px;
  color: black;
  font-weight: 500;
}

.novedades-slider-wrapper .views-field-title {
  padding: 0 0 8px 0;
  flex-grow: 1;
}

.novedades-slider-wrapper .views-field-title h4 {
  color: black;
  font-weight: 600;
}

.novedades-slider-wrapper .views-field-body {
  padding: 0 0 10px 0;
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  flex-grow: 1;
  max-height: 95px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: break-word;
}

.novedades-slider-wrapper .views-field-view-node {
  padding: 0;
  text-align: right;
}

.novedades-slider-wrapper .ver-mas-link {
  display: inline-block;
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.novedades-slider-wrapper .ver-mas-link:hover {
  color: #1a3f5a;
  text-decoration: underline;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.carousel-nav {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
 

/* Mobile Navigation */
@media (max-width: 480px) {
  .carousel-wrapper {
    gap: 10px;
  }
  
  .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 40px;
  }
} font-size: 80px;
  border: none;
  outline: none;
  background: none;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.carousel-nav:hover {
  color: #555;
}

/* Swiper Navigation Styles - Hide default Swiper buttons */
.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

/* Footer */
.novedades-footer {
  display: flex;
  justify-content: center;
  padding: 50px 0 0;
}

.btn-all-news {
  display: inline-block;
  padding: 14px 50px;
  background-color: #a81d3e;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-all-news:hover {
  background-color: #7a1629;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .slider-title {
    font-size: 28px;
  }

  .novedades-carousel {
    padding: 0 50px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .views-field-title h3 {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .slider-title {
    font-size: 24px;
  }

  .novedades-carousel {
    padding: 0 40px;
  }

  .novedades-slider-wrapper .views-field-field-image {
    height: 180px;
  }

  .views-field-title h3 {
    font-size: 15px;
    min-height: 48px;
  }

  .novedades-slider-wrapper .views-field-created {
    font-size: 11px;
    padding: 15px 15px 6px;
  }

  .novedades-slider-wrapper .views-field-title {
    padding: 0 15px;
  }

  .novedades-slider-wrapper .views-field-body {
    font-size: 12px;
    padding: 0 15px 12px;
  }

  .novedades-slider-wrapper .views-field-view-node {
    padding: 0 15px 15px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .novedades-slider-wrapper .ver-mas-link {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .novedades-slider-container {
    padding: 0 10px;
  }

  .slider-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .novedades-carousel {
    padding: 0 30px;
    margin: 20px 0;
  }

  .novedades-slider-wrapper .views-field-field-image {
    height: 150px;
  }

  .novedades-slider-wrapper .views-field-created {
    font-size: 11px;
    padding: 12px 12px 5px;
  }

  .novedades-slider-wrapper .views-field-title {
    padding: 0 12px;
  }

  .views-field-title h3 {
    font-size: 14px;
    min-height: 42px;
  }

  .novedades-slider-wrapper .views-field-body {
    font-size: 12px;
    padding: 0 12px 10px;
  }

  .novedades-slider-wrapper .views-field-view-node {
    padding: 0 12px 12px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
  }

  .btn-all-news {
    padding: 12px 40px;
    font-size: 13px;
  }
}

.novedad-item .views-field-body p {
  margin: 0;
}

.novedad-item .views-field-view-node {
  padding: 0px 0px 0px;
  margin: 45px 0 0 0;
}

.novedades-slider-wrapper .novedad-item .views-field-view-node a {
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.novedades-slider-wrapper .novedad-item .views-field-view-node a:hover {
  color: #802a2f;
}

/* Grid Styles for Block 2 and Page View */
.novedades-grid-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  justify-content: center;
}

.novedad-grid-item {
  display: flex;
  justify-content: flex-start;
  flex-basis: calc(33.333% - 20px);
  min-width: 0;
}

.novedad-grid-item .novedad-item {
  width: 100%;
  max-width: 300px;
  height: 430px;
}

@media (min-width: 1024px) {
  .novedad-grid-item .novedad-item {
    height: 450px;
  }
}

/* Block 2 - 3 items grid */
.novedades-block-grid .novedades-grid-wrapper {
  justify-content: center;
}

.novedades-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.novedades-block-title {
  font-size: 16px;
  font-weight: 700;
  color: black;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.novedades-back-link {
  font-size: 13px;
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.novedades-back-link:hover {
  color: #1a3f5a;
  text-decoration: underline;
}

.novedades-block-separator {
  border: none;
  border-top: 1px solid #d0d0d0;
  margin: 0 0 30px 0;
  padding: 0;
}

/* Page View - Full grid */
.novedades-page-grid .novedades-grid-wrapper {
  justify-content: center;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .novedad-grid-item {
    flex-basis: calc(50% - 15px);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .novedades-grid-wrapper {
    gap: 20px;
  }
  
  .novedad-grid-item {
    flex-basis: calc(50% - 10px);
  }
  
  .novedad-grid-item .novedad-item {
    height: 430px;
  }
}

@media (max-width: 480px) {
  .novedades-grid-wrapper {
    gap: 15px;
    justify-content: center;
  }
  
  .novedad-grid-item {
    flex-basis: 100%;
  }
  
  .novedad-grid-item .novedad-item {
    height: 430px;
    max-width: 100%;
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    margin: 0;
  }
}

