/* Componentes */

.imagen-encimada {
  margin-top: -180px; /* sube la imagen sobre el bloque superior */
  position: relative; /* mantiene el flujo normal */
  z-index: 2;
  text-align: center;
}

.imagen-encimada img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


.c-list {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: auto;
}

.c-list__item {
  position: relative;
  display: grid;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  transition: background 0.3s ease;
  border-bottom: 1px solid #DBDBDD;
}
.c-list__item:last-child{
  border-bottom: none;
}

.c-hover-layer {
  position: absolute;
  inset: 0;
  background: var(--gray-layer);
  clip-path: inset(100% 0 0 0); /* Oculta completamente */
  z-index: 1;
  transition: clip-path 1s cubic-bezier(.16,1,.32,1);
  pointer-events: none;
}
[data-fx="target"] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.16,1,.32,1);
}
/* Hover: revelar desde abajo hacia arriba */
[data-hover="base"]:hover [data-fx="target"] {
  clip-path: inset(0 0 0% 0);
}

.c-list__img {
  height: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  transition: clip-path 0.5s ease;
  clip-path: circle(0% at 50% 50%);
  z-index: 0;
}

[data-hover="base"]:hover .c-list__img[data-fx="cimg"] {
  clip-path: circle(70%);
}

.c-list__content {
  padding: 2rem;
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.c-list__title {
  font-size: 32px;
  font-weight: 500;
  transition: transform 1s cubic-bezier(.16,1,.32,1);
}

[data-hover="base"]:hover .c-list__title[data-hover="lt"] {
  transform: translate3d(1vw, 0, 0);
}

.c-list__line {
  width: 40px;
  height: 2px;
  background: var(--white);
  transition: transform .6s cubic-bezier(.16,1,.32,1), border .6s cubic-bezier(.16,1,.32,1);
}

[data-hover="base"]:hover .c-list__line[data-fx="hover-wline"] {
  transform: scale3d(1, 2, 1);
  border-color: var(--green);
}

.c-list__icon {
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 1s cubic-bezier(.16,1,.32,1);
}
.c-list__icon svg:nth-child(2) {
  position: absolute;
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.8s cubic-bezier(.175,.885,.32,1.275), opacity 0.8s cubic-bezier(.19,1,.22,1);
}
.c-list__icon svg:nth-child(1) {
  transition: transform 0.8s cubic-bezier(.175,.885,.32,1.275), opacity 0.8s cubic-bezier(.19,1,.22,1);
}

[data-hover="base"]:hover .c-list__icon[data-hover="rt"] svg:nth-child(1) {
  transform: translate3d(50%, -50%, 0);
  opacity: 0;
}
[data-hover="base"]:hover .c-list__icon[data-hover="rt"] svg:nth-child(2) {
  transform: translate3d(0%, 0%, 0);
  opacity: 1;
}
.c-list__item:hover{
  text-decoration: none;
}