.hero-home {
  position: relative;
}

.hero-gallery,
.hero-gallery .carousel-inner,
.hero-gallery .carousel-item {
  height: 720px;
}

.hero-gallery__image {
  width: 100%;
  height: 720px;
  object-fit: cover;
  object-position: center bottom;
}

.hero-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(108, 164, 219, 0.62), rgba(8, 31, 58, 0.48));
  z-index: 1;
}

.hero-gallery__control {
  z-index: 3;
  width: 6%;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 1.75rem;
  gap: 1rem;
}

#div_dominios {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.domains-carousel {
  width: 100%;
  min-height: 460px;
}

.domains-carousel .carousel-inner,
.domains-carousel .carousel-item {
  height: auto;
}

.domains-carousel .carousel-item {
  padding-top: 0.25rem;
}

.domain-carousel-breakpoint {
  display: none;
}

.domain-carousel-breakpoint--3 {
  display: block;
}

.domain-indicators {
  display: flex;
  justify-content: center;
  position: static;
  margin: 1.1rem 0 0;
  z-index: 4;
}

.domain-indicators-host {
  min-height: 24px;
}

.domain-carousel__control {
  position: static;
  align-self: center;
  flex: 0 0 6%;
  opacity: 1;
}

.domain-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: start;
  padding-inline: 5.25rem;
}

.domain-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}

.domain-card-grid--1 {
  grid-template-columns: 1fr;
  max-width: 240px;
  margin-inline: auto;
}

.domain-card {
  position: relative;
  width: 280px;
  height: 200px;
  margin-top: 10rem;
  padding: 3.15rem 1rem 1.1rem;
  background: rgba(35, 55, 109, 0.95);
  border-radius: 0.55rem;
  color: #fff;
  box-shadow: 0 16px 26px rgba(9, 21, 42, 0.16);
}

.domain-card--active {
  opacity: 1;
  transform: scale(1);
}

.domain-card__icon {
  position: absolute;
  top: -2.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: transparent;
  padding: 0.5rem;
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(6, 19, 43, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.domain-card__icon img {
  width: 100px;
  height: 200px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}

.domain-card h3 {
  height: 40px;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.domain-card strong {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-search {
  width: min(100%, 720px);
  max-width: 720px;
  margin: 1rem auto 0;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 0.2rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 42, 86, 0.12);
}

.hero-search .form-control,
.hero-search .btn {
  border: 0;
  border-radius: 0;
}

.hero-search .form-control {
  min-height: 38px;
  padding-inline: 1rem;
  width: 100%;
  color: #5c6680;
}

.hero-search .btn {
  min-width: 108px;
  padding-inline: 1.2rem;
  color: var(--onei-blue);
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.hero-search .btn:hover,
.hero-search .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(13, 88, 166, 0.28);
  filter: brightness(1.06);
  background: var(--onei-blue);
  color: #fff
}

.hero-search .btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px rgba(13, 88, 166, 0.22);
  background: var(--onei-blue);
  color: #fff
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  opacity: 1;
}

.carousel-indicators .active {
  background: #fff;
}

.contenedordominio {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(240px, 1fr));
  gap: 5rem;
  justify-content: center;
  justify-items: center;
  align-items: stretch;
}

@media (max-width: 991px) {
  .domain-carousel-breakpoint--3 {
    display: none;
  }

  .domain-carousel-breakpoint--2 {
    display: block;
  }

  .hero-gallery,
  .hero-gallery .carousel-inner,
  .hero-gallery .carousel-item,
  .hero-gallery__image {
    height: 660px;
  }

  .hero-content {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    gap: 0.5rem;
  }

  .domain-card-grid {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .domain-card {
    width: min(100%, 230px);
    min-height: 145px;
  }

  .hero-search {
    margin-top: 1.5rem;
    max-width: 340px;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
    gap: 0.6rem;
  }

  .hero-search .form-control,
  .hero-search .btn {
    border-radius: 0.6rem;
  }

  .domains-carousel {
    min-height: 360px;
  }
}

@media (max-width: 575px) {
  .domain-carousel-breakpoint--2 {
    display: none;
  }

  .domain-carousel-breakpoint--1 {
    display: block;
  }

  .hero-gallery,
  .hero-gallery .carousel-inner,
  .hero-gallery .carousel-item,
  .hero-gallery__image {
    height: 600px;
  }

  .hero-content {
    padding-top: 1.6rem;
  }

  .domain-carousel__control {
    width: 42px;
    flex-basis: 42px;
  }

  .domain-card {
    width: min(100%, 208px);
    min-height: 132px;
    padding: 2.8rem 0.85rem 0.9rem;
  }

  .domain-card h3 {
    font-size: 1.2rem;
  }

  .domain-card strong {
    margin-top: 1.55rem;
    font-size: 1.45rem;
  }
  
  .domains-carousel {
    min-height: 360px;
  }
}
