/* Landing · Testimonios · carrusel tarjeta (estructura referencia · colores Kinlig) */

.testi-landing {

  position: relative;

  overflow: hidden;

  padding: clamp(28px, 4vw, 44px) 0;

  isolation: isolate;

}



.testi-landing__glow {

  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(80px);

  z-index: 0;

}

.testi-landing__glow--a {

  width: min(520px, 70vw);

  height: min(520px, 70vw);

  top: 5%;

  left: -10%;

  background: radial-gradient(circle, rgba(145, 41, 48, 0.4) 0%, transparent 68%);

}

.testi-landing__glow--b {

  width: min(440px, 55vw);

  height: min(440px, 55vw);

  right: -6%;

  bottom: 0;

  background: radial-gradient(circle, rgba(232, 74, 98, 0.25) 0%, transparent 70%);

}



.testi-landing .wrap-wide {

  position: relative;

  z-index: 1;

  max-width: 1280px;

  padding-left: clamp(28px, 4vw, 48px);

  padding-right: clamp(28px, 4vw, 48px);

}

.testi-landing .section-intro {

  margin-bottom: clamp(24px, 3.5vw, 36px);

}



/* Carrusel */

.testi-carousel {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: clamp(12px, 2.5vw, 28px);

  max-width: 1040px;

  margin: 0 auto;

  padding: 12px 0 8px;

}



.testi-carousel__center {

  flex: 1;

  min-width: 0;

  max-width: 860px;

}



.testi-carousel__nav {

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 55px;

  height: 55px;

  padding: 0;

  border: 2px solid rgba(145, 41, 48, 0.65);

  border-radius: 12px;

  background: rgba(10, 10, 10, 0.85);

  color: var(--brand-light, #b83640);

  cursor: pointer;

  transition:

    border-color 0.25s ease,

    color 0.25s ease,

    background 0.25s ease,

    box-shadow 0.25s ease;

}

.testi-carousel__nav:hover {

  border-color: var(--wine-neon, #e84a62);

  color: #fff;

  background: rgba(78, 25, 36, 0.55);

  box-shadow: 0 0 24px rgba(145, 41, 48, 0.45);

}



/* Stack + capas */

.testi-card-stack {

  position: relative;

  padding: 72px 10px 28px;

}

.testi-card-stack__layer {

  position: absolute;

  left: 50%;

  transform: translateX(-50%);

  width: calc(100% - 24px);

  height: 100%;

  border-radius: 18px;

  background: linear-gradient(145deg, rgba(52, 14, 28, 0.5), rgba(30, 8, 16, 0.65));

  border: 1px solid rgba(255, 255, 255, 0.04);

  pointer-events: none;

}

.testi-card-stack__layer--1 {

  bottom: -10px;

  z-index: 0;

  opacity: 0.55;

}

.testi-card-stack__layer--2 {

  bottom: -18px;

  z-index: -1;

  width: calc(100% - 40px);

  opacity: 0.35;

}

.testi-card-viewport {

  position: relative;

  z-index: 2;

  min-height: 322px;

}



/* Tarjeta activa */

.testi-card {

  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  padding: 84px 32px 32px;

  border-radius: 23px;

  background: linear-gradient(

    155deg,

    #6b1a32 0%,

    #4e1924 38%,

    #3a121c 72%,

    #2a0c14 100%

  );

  border: none;

  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition: opacity 0.4s ease, visibility 0.4s ease;

}

.testi-card.is-active {

  position: relative;

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

}

.testi-card.is-active::before,

.testi-card.is-active::after {

  position: absolute;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(3rem, 8vw, 4.5rem);

  line-height: 1;

  color: rgba(255, 255, 255, 0.1);

  pointer-events: none;

}

.testi-card.is-active::before {

  content: "\201C";

  top: 72px;

  left: 18px;

}

.testi-card.is-active::after {

  content: "\201D";

  bottom: 88px;

  right: 20px;

}



.testi-card__avatar {

  position: absolute;

  top: 0;

  left: 50%;

  transform: translate(-50%, -50%);

  width: 136px;

  height: 136px;

  padding: 3px;

  border-radius: 50%;

  background: linear-gradient(135deg, rgba(145, 41, 48, 0.85), rgba(58, 18, 28, 0.9));

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);

}

.testi-card__avatar img {

  width: 100%;

  height: 100%;

  border-radius: 50%;

  object-fit: cover;

  object-position: center 22%;

  display: block;

  border: 3px solid #0a0a0a;

}



.testi-card__place {

  margin: 0.65rem 0 1rem;

  font-size: clamp(17px, 2.2vw, 20px);

  font-weight: 600;

  letter-spacing: 0.04em;

  color: rgba(255, 200, 210, 0.88);

  -webkit-font-smoothing: antialiased;

}



.testi-card__quote {

  position: relative;

  z-index: 1;

  margin: 0;

  padding: 0 8px;

  max-width: 38em;

  border: none;

  font-size: clamp(16px, 2.1vw, 19px);

  font-weight: 500;

  font-style: italic;

  line-height: 1.55;

  color: rgba(255, 255, 255, 0.92);

  -webkit-font-smoothing: antialiased;

}

.testi-card__stars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 1rem 0 0.75rem;
}
.testi-card__star {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5c542' d='M12 2l2.9 6.26 6.74.58-5.1 4.42 1.55 6.58L12 16.9l-6.09 3.84 1.55-6.58-5.1-4.42 6.74-.58L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.testi-card__links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 36rem;
  margin-top: 0.15rem;
}
.testi-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.testi-card__link--kinlig {
  min-height: 40px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.22);
}
.testi-card__link--kinlig:hover {
  background: rgba(0, 0, 0, 0.36);
}
.testi-card__link-url {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}
.testi-card__link--kinlig:hover .testi-card__link-url {
  color: #fff;
}



/* Paginación */

.testi-carousel__dots {
  display: none !important;
}

.testi-carousel__dot {

  width: 10px;

  height: 10px;

  padding: 0;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.35);

  cursor: pointer;

  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;

}

.testi-carousel__dot.is-active {

  background: transparent;

  border: 2px solid rgba(255, 255, 255, 0.9);

  transform: scale(1.15);

  box-shadow: 0 0 12px rgba(232, 74, 98, 0.5);

}

.testi-carousel__dot:not(.is-active):hover {

  background: rgba(255, 255, 255, 0.6);

}



@media (max-width: 640px) {

  .testi-carousel {

    flex-wrap: wrap;

    gap: 16px;

  }

  .testi-carousel__nav {

    order: 2;

    width: 44px;

    height: 44px;

  }

  .testi-carousel__nav--prev { order: 2; }

  .testi-carousel__nav--next { order: 3; }

  .testi-carousel__center {

    order: 1;

    flex: 1 1 100%;

    max-width: none;

  }

  .testi-card {

    padding: 76px 20px 24px;

  }

  .testi-card-viewport {

    min-height: 300px;

  }

  .testi-card__link {
    font-size: 12px;
    min-height: 34px;
    padding: 7px 14px;
  }

}



@media (prefers-reduced-motion: reduce) {

  .testi-card {

    transition-duration: 0.01ms;

  }

}


