/* Values */
#values {
  position: relative;
  padding-block: 0 3.6875rem;
}

.values-container {
  margin-inline: auto;
  padding: 2rem;
  gap: 1rem;
  background-color: var(--white);
  color: var(--secundario);
  border-radius: 2rem;
  box-shadow: 0px 0px 15px rgb(0, 0, 0, 0.05);
}

.values-item {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  border-right: 1px solid var(--primario);
}

.splide__list > .splide__slide:nth-child(4) .values-item {
  border-right: none;
}

.values-item img {
  width: 5rem;
}

.values-item span {
  width: 10rem;
  font-size: 1.125rem;
  font-weight: 500;
}

@media (max-width: 992px) {
  .values-container {
    border: 1px solid var(--cuarto);
  }

  .values-item {
    flex-direction: column;
    padding-block: 2rem;
    text-align: center;
    border-right: none;
  }

  .values-item img {
    width: 7.5rem;
  }
}

/* Categories */
#index-services {
  position: relative;
}

.index-services-container {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-areas:
    "one one two"
    "three four five";
  height: 100%;
  gap: 1rem;
}

.index-services-container > .index-services-item:nth-child(1) {
  grid-area: one;
  aspect-ratio: 16 / 9;
}

.index-services-container > .index-services-item:nth-child(2) {
  grid-area: two;
  height: auto;
}

.index-services-container > .index-services-item:nth-child(3) {
  grid-area: three;
}

.index-services-container > .index-services-item:nth-child(4) {
  grid-area: four;
}

.index-services-container > .index-services-item:nth-child(5) {
  grid-area: five;
}

.index-services-container > .index-services-item:nth-child(1) img,
.index-services-container > .index-services-item:nth-child(2) img,
.index-services-container > .index-services-item:nth-child(3) img,
.index-services-container > .index-services-item:nth-child(4) img,
.index-services-container > .index-services-item:nth-child(5) img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

.index-services-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  color: var(--white);
}

.index-services-item::before {
  position: absolute;
  inset: 0;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(34, 77, 77, 0.45),
    rgba(34, 77, 77, 0.25)
  );
  border-radius: 1rem;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.index-services-item::after {
  position: absolute;
  inset: 0;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(34, 77, 77, 0.45),
    rgba(67, 154, 154, 0.9)
  );
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

.index-services-item:hover::after {
  opacity: 1;
}

.index-services-item-desc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  z-index: 10;
}

.index-services-item-desc a {
  text-decoration: none;
}

.index-services-item-desc h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.index-services-item-desc span {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 992px) {
  .index-services-container {
    grid-template-areas:
      "one"
      "two"
      "three"
      "four"
      "five";
  }

  .index-services-container > .index-services-item:nth-child(1),
  .index-services-container > .index-services-item:nth-child(2),
  .index-services-container > .index-services-item:nth-child(3),
  .index-services-container > .index-services-item:nth-child(4),
  .index-services-container > .index-services-item:nth-child(5) {
    aspect-ratio: 1 / 1;
  }
}

/* Sala de ventas */
.sala-ventas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sala-ventas-item {
  display: flex;
  column-gap: 0.5rem;
}

.sala-ventas-img {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: center;
}

.sala-ventas-img img {
  width: 80%;
  height: auto;
  border-radius: 1rem;
  max-width: 100%;
}

.sala-ventas-img img:nth-child(1) {
  grid-column: 1 / span 7;
  grid-row: 1;
  align-self: end;
}

.sala-ventas-img img:nth-child(2) {
  position: relative;
  top: 5%;
  grid-column: 5 / span 8;
  grid-row: 1;
  align-self: start;
  margin-top: 2rem;
  box-shadow: 5px 5px 15px rgb(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .sala-ventas-img {
    grid-template-columns: 1fr;
  }
  .sala-ventas-img img:nth-child(1),
  .sala-ventas-img img:nth-child(2) {
    grid-column: auto;
    justify-self: center;
    align-self: center;
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.marcas {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  white-space: nowrap;
}

.marcas:hover .marcas-slide {
  animation-play-state: paused;
}

.marcas-slide {
  display: inline-block;
  animation: 50s slide infinite linear;
}

.marcas-slide img {
  margin: 0 40px;
}

/* Why us */
#why-us {
  position: relative;
  margin-bottom: 0rem;
}

#why-us-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: repeat(3, 1fr);
  margin-inline: auto;
  gap: 1rem;
}

.why-us-item {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  row-gap: 2rem;
  padding: 3rem 2rem 0 2rem;
  background-color: var(--white);
  border: 1px solid var(--terciario);
  border-radius: 2rem;
  box-shadow: 0 5px 5px rgba(106, 89, 47, 0.15);
  transition: 0.1s;
}

.why-us-item:hover {
  box-shadow: none;
  transform: translateY(5px);
}

.why-us-item-header {
  padding: 0.5rem 2rem;
  width: 40%;
  text-align: center;
}

.why-us-item-body {
  height: 15rem;
  text-align: center;
}

.why-us-item-body h3 {
  color: var(--primario);
  font-size: 1.5rem;
  font-weight: 600;
}

.why-us-item-body p {
  color: var(--dark);
  font-weight: 400;
}

@media (max-width: 992px) {
  .why-us-item:hover {
    transform: translateY(0px);
  }
}

/* Antes y Despues */
.antes-despues-container {
  min-height: 650px;
}

.twentytwenty-container {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 2rem;
  box-shadow: 0 0.5rem 1rem rgb(0, 0, 0, 0.15);
}

.twentytwenty-wrapper {
  height: 100%;
}

.twentytwenty-before-label:before {
  content: "Sin Vertical" !important;
}

.twentytwenty-after-label:before {
  content: "Con Vertical" !important;
}

@media (min-width: 1920px) {
  .antes-despues-container {
    min-height: 900px;
  }
}
@media (max-width: 992px) {
  .antes-despues-container {
    min-height: 400px;
  }
}

/* Pasos */
.pasos-list {
  counter-reset: paso;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pasos-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 2.5rem;
}

.pasos-item::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--primario);
  color: var(--white);
  border-radius: 50%;
}

.pasos-item span:first-child {
  color: var(--primario);
  font-size: 1.125rem;
  font-weight: 600;
}

.pasos-item span:last-child {
  color: var(--secundario);
}

#pasos img {
  max-width: 30rem;
  border-radius: 2rem;
}

/* Conerturas */
#coberturas {
  position: relative;
}

.section-coberturas .coberturas-wrap {
  padding: 3rem;
  border-radius: 2rem;
}

.coberturas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.coberturas-item {
  padding: 1.5rem;
  background-color: var(--white);
  color: var(--secundario);
  border: 1px solid var(--primario);
  border-radius: 1rem;
}

.coberturas-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.coberturas-head h3 {
  font-size: 1.5rem;
}

.coberturas-bullets {
  margin: 8px 0 12px;
  padding-left: 18px;
}

.coberturas-bullets li {
  margin: 6px 0;
  color: var(--fg);
}

.coberturas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 6px 10px;
  background: var(--primario);
  color: var(--white);
  font-size: 0.85rem;
  border-radius: 999px;
}

.coberturas-note {
  margin: 16px 0 8px;
  color: var(--secundario);
  font-size: 0.9rem;
}
.coberturas-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* Mapa */
#map {
  position: relative;
}

.map-grid {
  display: grid;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.map-grid iframe {
  border-radius: 2rem;
  box-shadow: 5px 5px 15px rgb(0, 0, 0, 0.15);
}

.map-info-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map-info-container .section-title {
  margin-bottom: 0;
}

.map-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.map-info-item {
  display: flex;
  gap: 0.5rem;
}

.map-info-item span,
.map-info-item a {
  color: var(--secundario);
  font-size: 1rem;
  text-decoration: none;
}

.map-info-item:hover a {
  text-decoration: underline;
}

.map-info-schedule {
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
}
