.Servicios_title {
  padding-inline: var(--px-fluid);
  height: 30vh;
  display: flex;
  background-color: var(--c-bg21);
}
.Servicios_title > h1 {
  color: var(--c-bg11);
  font-size: 4rem;
  margin-top: auto;
  text-align: center;
}

.Servicios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

section {
  background: linear-gradient(180deg, var(--c-bg21) 0%, var(--c-bg22) 100%);
  padding: 64px var(--px-fluid) 0 var(--px-fluid);
  margin-bottom: 0px;
  content-visibility: auto;
}

/* 1er card */
.Servicios > li > a:nth-of-type(1) > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Disposicion_de_aguas_residuales.jpeg");
}

/* 2do card */
.Servicios > li:nth-of-type(2) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Pozos_Trampas_Grasa.jpg");
}
/* 3er card  */
.Servicios > li:nth-of-type(3) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Lavado_tanques.jpg");
}
/* 4ta card  */
.Servicios > li:nth-of-type(4) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Compostaje.jpg");
}
/* 5ta card  */
.Servicios > li:nth-of-type(5) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/redes.png");
}
/* 6ta card  */
.Servicios > li:nth-of-type(6) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Deshidratacion_De_Lodos.jpg");
}
/* 7ma card  */
.Servicios > li:nth-of-type(7) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Transporte_Especializado.jpg");
}
/* 8va card  */
.Servicios > li:nth-of-type(8) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Manejo_de_Residuos_Peligrosos.jpg");
}
/* 9na card  */
.Servicios > li:nth-of-type(9) > a > .Servicios__Item {
  --bg-img: url("/Inicio/Recursos_Inicio/Imagenes/Servicios/Servicios_Complementarios.png");
}
/* ====== Servicios Card (CSS completo) ====== */
:root {
  --arrow-size: clamp(22px, 2.6vw, 34px);
  --arrow-thickness: 7px;
  --accent-green: var(--c-ppl2);
  --border-base: var(--c-ppl2);
  --text-on-dark: #e9f0e2;
}

/* ============ CARD BASE ============ */
.Servicios__Item {
  /* layout */
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px;

  /* visual */
  border-radius: 12px;
  border: 4px solid var(--border-base);

  /* motion */
  transition: border 0.35s ease, transform 0.35s ease, filter 0.35s ease;

  /* performance */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.Servicios__Item:hover {
  border: 8px solid var(--accent-green);
  transform: translateY(-3px);
  filter: saturate(1) contrast(1.05);
}

.Servicios__Item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--bg-img) center / cover no-repeat;
  z-index: 0;
  pointer-events: none;

  transform: scale(1);
  transform-origin: center;
  transition: transform 0.6s ease;
}
.Servicios__Item:hover::before {
  transform: scale(1.06);
}

.Servicios__Item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  transition: background 0.35s ease;
}

.Servicios__Item:hover::after {
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.Servicios__Item > * {
  position: relative;
  z-index: 1;
}

/* ============ HEADER (flecha + título) ============ */
.Servicios__Item--Title {
  display: flex;
  align-items: center;
  gap: 0;
}

.Servicios__Item--Title h2 {
  margin: 0;
  text-align: left;
  color: var(--c-bg11);
  font-weight: 800;
  line-height: 1.1;
  transform: translateX(0);
  transition: color 0.35s ease, transform 0.35s ease;
}

.Servicios__Item .arrow {
  position: relative;
  width: 0;
  height: var(--arrow-size, 34px);
  color: var(--accent-green);
  opacity: 0;
  transform: translateX(-6px);
  transition: width 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
  flex: 0 0 auto;
}
.Servicios__Item .arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--arrow-size, 34px) * 0.72);
  height: calc(var(--arrow-size, 34px) * 0.72);
  border-right: var(--arrow-thickness, 7px) solid currentColor;
  border-bottom: var(--arrow-thickness, 7px) solid currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.Servicios__Item:hover .arrow {
  width: var(--arrow-size, 34px);
  opacity: 1;
  transform: translateX(0);
}
.Servicios__Item:hover .Servicios__Item--Title {
  gap: 12px;
}
.Servicios__Item:hover .Servicios__Item--Title h2 {
  transform: translateX(8px);
  color: var(--accent-green);
}

.Servicios__Item .Servicios__Item--Descripcion,
.Servicios__Item .Servicios__Item--Items {
  color: var(--c-bg11);
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: max-height 0.55s ease, opacity 0.35s ease, transform 0.35s ease,
    visibility 0.35s ease;
  will-change: max-height, opacity, transform;
}

.Servicios__Item:hover .Servicios__Item--Descripcion {
  max-height: 160px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.05s;
  color: var(--text-on-dark);
}
.Servicios__Item:hover .Servicios__Item--Items {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.12s;
  color: var(--text-on-dark);
}

/* Lista */
.Servicios__Item--Items {
  display: grid;
  gap: 8px;
  padding-left: 0;
  margin: 0;
}
.Servicios__Item--Items li {
  list-style: none;
  display: flex;
  gap: 10px;
}
.Servicios__Item--Items li::before {
  content: "•";
  font-weight: 900;
  color: var(--c-bg11);
  transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
  .Servicios__Item,
  .Servicios__Item * {
    transition: none !important;
  }
}

@media (min-width: 1025px) and (max-width: 1450px) {
  .Servicios_title,
  section {
    padding-inline: var(--lap-px);
  }
}
@media (max-width: 1024px) {
  .Servicios_title,
  section {
    padding-inline: var(--tab-px);
  }

  .Servicios {
    display: flex;
    flex-direction: column;
  }
  .Servicios__Item {
    padding: 40px 24px;
    min-height: 200px;
  }
  .Servicios__Item.is-active {
    border: 8px solid var(--accent-green);
    transform: translateY(-3px);
    filter: saturate(1) contrast(1.05);
  }
  .Servicios__Item.is-active::before {
    transform: scale(1.06);
  }
  .Servicios__Item.is-active::after {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 100%
      ),
      linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  }
  .Servicios__Item.is-active .arrow {
    width: var(--arrow-size, 34px);
    opacity: 1;
    transform: translateX(0);
  }
  .Servicios__Item.is-active .Servicios__Item--Title {
    gap: 12px;
  }
  .Servicios__Item.is-active .Servicios__Item--Title h2 {
    transform: translateX(8px);
    color: var(--accent-green);
  }
  .Servicios__Item.is-active .Servicios__Item--Descripcion {
    max-height: 160px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    color: var(--text-on-dark);
  }
  .Servicios__Item.is-active .Servicios__Item--Items {
    max-height: 420px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    color: var(--text-on-dark);
  }
}
@media (max-width: 600px) {
  .Servicios_title,
  section {
    padding-inline: 24px;
  }
  .Servicios_title {
    height: 35vh;
  }
  .Servicios_title > h1 {
    font-size: 35px;
  }
}

@media (max-width: 1024px) {
}
