.soluciones-section {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.soluciones-section .container {
  max-width: 100%;
  padding-right: 100px;
}

.section-header h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.btn-filter {
  padding: 8px 20px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 4px;
}

.btn-filter.active, 
.btn-filter:hover {
  background: #9bcf35;
  color: #fff !important;
  border-color: #9bcf35;
}

.solutions-carousel {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  flex-wrap: nowrap;
  margin-left: auto;
  width: max-content;
  max-width: 100%;
  padding-bottom: 15px;
}

.solutions-carousel::-webkit-scrollbar {
  height: 8px;
}

.solutions-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.solutions-carousel::-webkit-scrollbar-thumb {
  background: #9bcf35;
}

.solution-card {
  position: relative;
  width: 273.35px;
  height: 419.433px;
  overflow: hidden;
  transition: transform 0.5s ease, filter 0.5s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  flex-shrink: 0;
}

.solution-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(1, 13, 32, 0.9);
  transition: opacity 0.4s ease;
  z-index: 1;
}

.solution-card:hover::before {
  opacity: 0;
}

.solution-card:hover {
  transform: scale(1.2);
  z-index: 2;
}

.overlay {
  position: absolute !important;
  bottom: 20px !important;
  left: 20px !important;
  width: calc(100% - 40px) !important;
  height: 119px !important;
  background-color: rgba(155,207,53,0.95) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease !important;
  z-index: 2 !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-end !important;
  box-sizing: border-box !important;
  padding: 20px !important;
  border-radius: 4px !important;
}

.solution-card:hover .overlay {
  opacity: 1 !important;
  visibility: visible !important;
}

.btn-overlay {
  color: #fff !important;
  font-weight: bold !important;
  text-decoration: none !important;;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;;
  border: none !important;
  font-size: 1rem !important;
}

.solution-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff !important;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.solution-card:hover .solution-title {
  opacity: 0;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--color-white);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
  }

  .main-nav ul li {
    width: 100%;
    text-align: center;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px;
    font-size: 18px;
  }
}


@media (max-width: 480px) {
  .solution-card {
    width: 85vw;
    height: 50vh;
  }
  
  .btn-overlay {
    font-size: 0.9rem;
  }
}
@media (max-width: 820px) {
  .soluciones-section {
    padding: 40px 0;
  }

  .soluciones-section .container {
    padding: 0 15px;
  }

  .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .btn-filter {
    font-size: 0.9rem;
    padding: 6px 15px;
    flex-shrink: 0;
  }

  .solutions-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    margin: 0;
    width: 100%;
    gap: 15px;
  }

  .solution-card {
    width: 280px;
    height: 380px;
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-right: 0;
  }

  .solution-card:hover {
    transform: none;
    z-index: auto;
  }

  .solution-card::before {
    opacity: 0.5;
  }

  .overlay {
    opacity: 1;
    visibility: visible;
    background-color: rgba(155,207,53,0.8);
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: auto;
    padding: 15px;
  }

  .solution-title {
    opacity: 0;
  }
}
@media (max-width: 1024px) {
  .soluciones-section {
    padding: 40px 0;
  }

  .soluciones-section .container {
    padding: 0 15px;
  }

  .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .btn-filter {
    font-size: 0.9rem;
    padding: 6px 15px;
    flex-shrink: 0;
  }

  .solutions-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    margin: 0;
    width: 100%;
    gap: 15px;
  }

  .solution-card {
    width: 280px;
    height: 380px;
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-right: 0;
  }

  .solution-card:hover {
    transform: none;
    z-index: auto;
  }

  .solution-card::before {
    opacity: 0.5;
  }

  .overlay {
    opacity: 1;
    visibility: visible;
    background-color: rgba(155,207,53,0.8);
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: auto;
    padding: 15px;
  }

  .solution-title {
    opacity: 0;
  }
}
@media (max-width: 853px) {
  .soluciones-section {
    padding: 40px 0;
  }

  .soluciones-section .container {
    padding: 0 15px;
  }

  .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .btn-filter {
    font-size: 0.9rem;
    padding: 6px 15px;
    flex-shrink: 0;
  }

  .solutions-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    margin: 0;
    width: 100%;
    gap: 15px;
  }

  .solution-card {
    width: 280px;
    height: 380px;
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-right: 0;
  }

  .solution-card:hover {
    transform: none;
    z-index: auto;
  }

  .solution-card::before {
    opacity: 0.5;
  }

  .overlay {
    opacity: 1;
    visibility: visible;
    background-color: rgba(155,207,53,0.8);
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: auto;
    padding: 15px;
  }

  .solution-title {
    opacity: 0;
  }
}

/* Deshabilita hover en dispositivos táctiles */
@media (hover: none) {
  .solution-card:hover::before {
    opacity: 0.5;
  }
  
  .solution-card .overlay {
    transition: none;
  }
}

.solutions-carousel::-webkit-scrollbar {
  height: 4px;
}

.solutions-carousel {
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) and (hover: none) and (orientation: landscape) {
  .solutions-carousel {
    gap: 30px;
    padding-bottom: 25px;
  }
  
  .solution-card {
    width: 40vw;
    height: 60vh;
    max-height: 600px;
  }
  
  .overlay {
    padding: 25px;
  }
  
  .btn-overlay {
    font-size: 1.1rem;
  }
}