.hero-carousel .hero-indicators {
  display: none;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 425px;
  color: white;
  margin-bottom: 0 !important;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
  padding: 42.5px 0 17px 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide[data-color="blue"] {
  background: linear-gradient(135deg, #9dc4ff 50%, #5a6aff 100%);
}

.hero-slide[data-color="red"] {
  background: linear-gradient(135deg, #ff6b6b 50%, #ff8e53 100%);
}

.hero-slide[data-color="green"] {
  background: linear-gradient(135deg, #4ECDC4 50%, #44A08D 100%);
}

.hero-slide .hero-container {
  max-width: 1190px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 clamp(17px, 5.1vw, 76.5px);
  animation: fadeInUp 0.8s ease 0.3s both;
  min-height: 382.5px;
}

.hero-slide .hero-content {
  flex: 1;
  max-width: 510px;
  padding: 0 17px;
  z-index: 2;
}

.hero-slide .hero-content h1 {
  font-size: 2.295rem;
  line-height: 1.1;
  margin-bottom: 17px;
  font-weight: 800;
}

.hero-slide .hero-content p {
  font-size: 0.9775rem;
  line-height: 1.55;
  margin-bottom: 21.25px;
  opacity: 0.95;
  max-width: 90%;
}

.hero-slide .hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-slide .hero-image img {
  max-width: 85%;
  max-height: 297.5px;
  border-radius: 10.2px;
  box-shadow: 0 17px 34px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  object-fit: contain;
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 42.5px;
  height: 42.5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.105rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(5px);
  z-index: 100;
}

.hero-prev {
  left: 30.6px;
}

.hero-next {
  right: 30.6px;
}

.hero-prev:hover, .hero-next:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: white;
  transform: translateY(-50%) scale(1.12);
  backdrop-filter: blur(8px);
}

.hero-prev:active, .hero-next:active {
  transform: translateY(-50%) scale(0.97);
}

.input-button-group {
  display: flex;
  max-width: 357px;
  margin: 21.25px 0 25.5px 0;
  background: white;
  border-radius: 42.5px;
  overflow: hidden;
  box-shadow: 0 5.1px 17px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
  min-height: 44.2px;
}

.input-button-group:focus-within {
  box-shadow: 0 8.5px 25.5px rgba(0, 0, 0, 0.25);
  transform: translateY(-2.55px);
}

#idruta-input {
  flex: 1;
  min-width: 0;
  padding: 11.9px 18.7px;
  font-size: 0.9775rem;
  font-family: inherit;
  background: transparent;
  border: none;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

#idruta-input::placeholder {
  color: #666;
  font-weight: 400;
  opacity: 0.8;
}

.hero-slide[data-color="green"] #idruta-input {
  color: #2d5a51;
  font-weight: 500;
}

.hero-slide[data-color="green"] #idruta-input::placeholder {
  color: #448176;
}

.hero-slide[data-color="green"] #idruta-input:focus {
  background: transparent;
}

.input-button-group .btn-rutas {
  padding: 11.9px 23.8px !important;
  border-radius: 0 42.5px 42.5px 0 !important;
  border: none !important;
  background: linear-gradient(135deg, #44A08D 0%, #3A8A7F 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 0.9775rem !important;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: auto;
  margin: 0 !important;
  min-height: 44.2px;
}

.input-button-group .btn-rutas:hover {
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%) !important;
  box-shadow: inset 0 0 25.5px rgba(255, 255, 255, 0.25);
}

.hero-slide .hero-content .btn-primary {
  padding: 11.9px 27.2px !important;
  font-size: 0.9775rem !important;
  font-weight: 700 !important;
  border-radius: 42.5px !important;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  min-height: 44.2px;
  line-height: 1;
  border: none;
  background: #0d6efd !important;
  color: white !important;
}

.hero-slide .hero-content .btn-primary:hover {
  background: #3d8bfd !important;
  transform: translateY(-1.7px);
  box-shadow: 0 5.1px 12.75px rgba(0, 0, 0, 0.2);
}

.hero-indicators-container {
  display: none !important;
}

@media (max-width: 1200px) {
  .hero-carousel .hero-indicators {
    display: none;
  }

  .hero-slide .hero-container {
    padding: 0 59.5px;
    min-height: 357px;
  }
  
  .hero-prev, .hero-next {
    width: 40.8px;
    height: 40.8px;
    font-size: 1.02rem;
  }
  
  .hero-prev {
    left: 25.5px;
  }
  
  .hero-next {
    right: 25.5px;
  }
  
  .hero-slide .hero-content h1 {
    font-size: 1.955rem;
  }
  
  .hero-slide .hero-content p {
    font-size: 0.935rem;
    line-height: 1.5;
  }
  
  .hero-slide .hero-image img {
    max-width: 80%;
    max-height: 255px;
  }
  
  .input-button-group {
    max-width: 323px;
    min-height: 40.8px;
  }
  
  #idruta-input {
    padding: 11.05px 17px;
    font-size: 0.935rem;
  }
  
  .input-button-group .btn-rutas {
    padding: 11.05px 21.25px !important;
    font-size: 0.935rem !important;
    min-height: 40.8px;
  }
  
  .hero-slide .hero-content .btn-primary {
    padding: 11.05px 25.5px !important;
    font-size: 0.935rem !important;
    min-height: 40.8px;
  }
}

@media (max-width: 992px) {
  .hero-carousel .hero-indicators {
    display: none;
  }

  .hero-slide .hero-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 0 42.5px;
    gap: 25.5px;
    min-height: 340px;
  }
  
  .hero-slide .hero-content {
    margin-bottom: 0;
    padding: 0;
    max-width: 100%;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-slide .hero-content p {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-slide .hero-image {
    display: flex !important;
    order: 2;
    width: 100%;
    max-width: 425px;
    margin: 0 auto;
  }
  
  .hero-slide .hero-image img {
    max-width: 70%;
    max-height: 212.5px;
  }
  
  .input-button-group {
    max-width: 323px;
    margin: 21.25px auto !important;
    display: flex;
    flex-direction: row !important;
    border-radius: 42.5px;
    background: white;
    min-height: 40.8px;
  }
  
  #idruta-input {
    border-radius: 42.5px 0 0 42.5px !important;
    border: none !important;
    padding: 11.05px 17px;
    background: transparent !important;
    font-size: 0.935rem;
  }
  
  .input-button-group .btn-rutas {
    border-radius: 0 42.5px 42.5px 0 !important;
    border: none !important;
    padding: 11.05px 21.25px !important;
    font-size: 0.935rem !important;
    min-height: 40.8px;
  }
  
  .hero-slide .hero-content .btn-primary {
    padding: 11.05px 25.5px !important;
    font-size: 0.935rem !important;
    min-height: 40.8px;
  }
  
  .hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) !important;
    width: 38.25px;
    height: 38.25px;
    font-size: 1.02rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
  }
  
  .hero-prev {
    left: 21.25px !important;
  }
  
  .hero-next {
    right: 21.25px !important;
  }
  
  .hero-prev:hover, .hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-50%) scale(1.1) !important;
  }
  
  .hero-slide .hero-content h1 {
    font-size: 1.87rem;
    line-height: 1.15;
    margin-bottom: 12.75px;
  }
  
  .hero-slide .hero-content p {
    font-size: 0.935rem;
    line-height: 1.45;
    margin-bottom: 17px;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .hero-carousel .hero-indicators {
    display: none;
  }

  .hero-prev,
  .hero-next {
    font-size: 5.1px;
    width: 17px;
    height: 17px;
    display: flex !important;
  }
  
  .hero-carousel {
    min-height: auto !important;
    padding-bottom: 17px;
    margin-bottom: 0 !important;
  }
  
  .hero-slide {
    padding: 34px 0 !important;
  }
  
  .hero-slide .hero-container {
    padding: 0 25.5px;
    gap: 21.25px;
    min-height: auto;
  }
  
  .hero-slide .hero-image {
    display: none !important;
  }
  
  .hero-slide .hero-content h1 {
    font-size: 1.615rem;
    line-height: 1.1;
    margin-bottom: 10.2px;
  }
  
  .hero-slide .hero-content p {
    font-size: 0.8925rem;
    margin-bottom: 17px;
    max-width: 95%;
    line-height: 1.5;
  }
  
  .hero-slide .hero-content .btn-primary {
    padding: 11.9px 23.8px !important;
    font-size: 0.8925rem !important;
    min-height: 40.8px;
    width: 100%;
    max-width: 238px;
    margin: 0 auto;
    display: block;
  }
  
  .input-button-group {
    max-width: 100%;
    margin: 17px auto !important;
    display: flex;
    flex-direction: row !important;
    border-radius: 42.5px;
    background: white;
    min-height: 40.8px;
    width: 100%;
  }
  
  #idruta-input {
    border-radius: 42.5px 0 0 42.5px !important;
    border: none !important;
    padding: 12.75px 15.3px !important;
    background: white !important;
    font-size: 0.8925rem;
    min-height: 40.8px !important;
  }
  
  .input-button-group .btn-rutas {
    border-radius: 0 42.5px 42.5px 0 !important;
    border: none !important;
    padding: 12.75px 15.3px !important;
    font-size: 0.8925rem !important;
    font-weight: 700 !important;
    min-height: 40.8px !important;
  }
}

@media (max-width: 576px) {
  .hero-carousel .hero-content p {
    max-width: 221px;
  }

  .hero-carousel .hero-indicators {
    display: none;
  }

  .hero-slide .hero-container {
    padding: 0 17px;
    gap: 17px;
  }
  
  .hero-slide .hero-content h1 {
    font-size: 1.445rem;
    margin-bottom: 8.5px;
  }
  
  .hero-slide .hero-content p {
    font-size: 0.85rem;
    margin-bottom: 15.3px;
    line-height: 1.45;
  }
  
  .hero-slide .hero-content .btn-primary {
    padding: 11.05px 20.4px !important;
    font-size: 0.85rem !important;
    min-height: 39.1px;
    max-width: 221px;
  }
  
  .input-button-group {
    margin: 13.6px auto !important;
    min-height: 39.1px;
    max-width: 238px;
  }
  
  #idruta-input {
    padding: 11.9px 13.6px !important;
    font-size: 0.85rem;
    min-height: 39.1px !important;
  }
  
  .input-button-group .btn-rutas {
    padding: 11.9px 13.6px !important;
    font-size: 0.85rem !important;
    min-height: 39.1px !important;
  }
}

@media (max-width: 400px) {
  .hero-carousel .hero-indicators {
    display: none;
  }

  .hero-slide .hero-container {
    padding: 0 12.75px;
    gap: 15.3px;
  }
  
  .hero-slide .hero-content h1 {
    font-size: 1.275rem;
    margin-bottom: 6.8px;
  }
  
  .hero-slide .hero-content p {
    font-size: 0.8075rem;
    margin-bottom: 13.6px;
    line-height: 1.4;
  }
  
  .hero-slide .hero-content .btn-primary {
    padding: 10.2px 17px !important;
    font-size: 0.8075rem !important;
    min-height: 37.4px;
    max-width: 204px;
  }
  
  .input-button-group {
    margin: 11.9px auto !important;
    min-height: 37.4px;
  }
  
  #idruta-input {
    padding: 11.05px 12.75px !important;
    font-size: 0.8075rem;
    min-height: 37.4px !important;
  }
  
  .input-button-group .btn-rutas {
    padding: 11.05px 12.75px !important;
    font-size: 0.8075rem !important;
    min-height: 37.4px !important;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message {
  display: none;
  color: #059669;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.1);
  animation: slideDown 0.3s ease-out;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.error-message::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #10b981;
  border-radius: 2px;
}

.input-error {
  border-color: #10b981 !important;
  outline-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  transition: all 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
  }
}

.error-message::after {
  content: 'ⓘ';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #34d399;
  font-size: 16px;
  font-weight: bold;
}

.error-message:hover {
  background-color: #dcfce7;
  box-shadow: 0 4px 6px rgba(5, 150, 105, 0.15);
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .error-message {
    font-size: 13px;
    padding: 10px 14px;
    margin-top: 10px;
  }
  
  .error-message::after {
    right: 14px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .error-message {
    font-size: 12px;
    padding: 9px 12px;
  }
}