/* [MJ] NEURALIX · bloque de testimonios estilo Gencyo, adaptado a la paleta.
   2026-11-02 · archivo nuevo; no modifica bundle.css ni el diseno existente.
   Paleta: #0D0D0D · #161616 · #151515 · #D9B872 · #FFFFFF. */

.mj-testimonials-section {
  --mj-gold: #D9B872;
  --mj-gold-soft: rgba(217, 184, 114, 0.28);
  --mj-dark: #0D0D0D;
  --mj-panel: #161616;
  --mj-panel-2: #151515;
  --mj-white: #FFFFFF;
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 8vw, 110px) 0;
  color: var(--mj-white);
  font-family: inherit;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 184, 114, 0.10), transparent 32%),
    radial-gradient(circle at 88% 92%, rgba(217, 184, 114, 0.06), transparent 34%),
    var(--mj-dark);
  border-top: 1px solid rgba(217, 184, 114, 0.12);
  border-bottom: 1px solid rgba(217, 184, 114, 0.12);
}

.mj-testimonials-section *,
.mj-testimonials-section *::before,
.mj-testimonials-section *::after { box-sizing: border-box; }

.mj-testi-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
}

.mj-testi-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 40px;
  background: linear-gradient(145deg, #0D0D0D 0%, #151515 58%, #0D0D0D 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.mj-testi-shell::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(217, 184, 114, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.mj-testi-shell::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -12%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(217, 184, 114, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.mj-testi-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.mj-testimonials-section .mj-testi-heading {
  flex: 1 1 420px;
  min-width: 0;
  margin: 0;
  text-align: left;
}

.mj-testimonials-section .mj-testi-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mj-white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mj-testi-subtitle svg { flex: 0 0 auto; color: var(--mj-gold); }

.mj-testimonials-section .mj-testi-title {
  margin: 0;
  color: var(--mj-white);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.mj-testi-title span {
  color: var(--mj-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.mj-testi-counter {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: nowrap;
  min-width: 260px;
  text-align: right;
}

.mj-testi-score {
  color: var(--mj-gold);
  font-size: clamp(54px, 6vw, 80px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.mj-testi-score-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.mj-testi-score-meta strong { color: var(--mj-white); font-weight: 600; }

.mj-testi-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 2.28fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.mj-testi-orbit-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.mj-testi-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(140px, 15vw, 190px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 184, 114, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(217, 184, 114, 0.16), transparent 60%), #0D0D0D;
}

.mj-testi-orbit::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(217, 184, 114, 0.30);
  border-radius: 50%;
}

.mj-testi-orbit::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(217, 184, 114, 0.10);
  border-radius: 50%;
}

.mj-testi-orbit-mark {
  position: relative;
  z-index: 1;
  transform: translateY(-6px);
  color: var(--mj-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(72px, 9vw, 110px);
  line-height: 1;
}

.mj-testi-orbit-caption {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.mj-testi-slider { position: relative; z-index: 2; min-width: 0; }
.mj-testi-viewport { position: relative; }

.mj-testi-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 12px;
  width: 42px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, #0D0D0D);
  opacity: 0.55;
}

.mj-testi-track {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}

.mj-testi-track::-webkit-scrollbar { display: none; }

.mj-testi-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 20px) / 2);
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  margin: 0;
  padding: clamp(22px, 2.4vw, 30px);
  overflow: hidden;
  justify-content: space-between;
  border: 1px solid rgba(217, 184, 114, 0.24);
  border-radius: 24px;
  background: linear-gradient(160deg, #161616 0%, #151515 100%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.mj-testi-card:hover { border-color: rgba(217, 184, 114, 0.50); transform: translateY(-2px); }
.mj-testi-card[data-active="true"] { border-color: rgba(217, 184, 114, 0.55); }

.mj-testi-card::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  right: 20px;
  color: rgba(217, 184, 114, 0.12);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 90px;
  line-height: 1;
  pointer-events: none;
}

.mj-testi-stars {
  position: relative;
  z-index: 1;
  color: var(--mj-gold);
  font-size: 16px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.mj-testi-quote {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 210px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mj-testi-quote p {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
}

@supports not (-webkit-line-clamp: 8) {
  .mj-testi-quote p { max-height: 210px; }
}

.mj-testi-person {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mj-testi-avatar {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--mj-gold);
  border-radius: 50%;
  background: #0D0D0D;
  box-shadow: 0 0 0 4px rgba(217, 184, 114, 0.08);
  color: var(--mj-gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mj-testi-person-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mj-testi-name { color: var(--mj-white); font-size: 16px; font-style: normal; font-weight: 600; }
.mj-testi-role { color: rgba(255, 255, 255, 0.58); font-size: 13px; line-height: 1.35; }

.mj-testi-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.mj-testi-dots { display: flex; align-items: center; gap: 8px; }

.mj-testi-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.mj-testi-dot[aria-current="true"] { width: 26px; background: var(--mj-gold); }
.mj-testi-arrows { display: flex; gap: 10px; }

.mj-testi-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 184, 114, 0.50);
  border-radius: 12px;
  background: #161616;
  color: var(--mj-gold);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mj-testi-arrow:hover { border-color: var(--mj-gold); background: var(--mj-gold); color: #151515; }
.mj-testi-arrow svg { width: 20px; height: 20px; }

.mj-testi-arrow:focus-visible,
.mj-testi-dot:focus-visible,
.mj-testi-track:focus-visible {
  outline: 2px solid var(--mj-gold) !important;
  outline-offset: 3px !important;
}

.mj-testi-summary {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid rgba(217, 184, 114, 0.18);
  border-radius: 24px;
  background: #0D0D0D;
}

.mj-testi-source { display: flex; align-items: center; gap: 14px; }

.mj-testi-source-mark {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 184, 114, 0.45);
  border-radius: 12px;
  color: var(--mj-gold);
  font-size: 18px;
  font-weight: 700;
}

.mj-testi-source-text { display: flex; flex-direction: column; gap: 2px; }
.mj-testi-source-text strong { color: var(--mj-white); font-size: 15px; font-weight: 600; }
.mj-testi-source-text span { color: rgba(255, 255, 255, 0.60); font-size: 13px; line-height: 1.5; }
.mj-testi-aggregate { color: rgba(255, 255, 255, 0.78); font-size: 13px; line-height: 1.5; }
.mj-testi-summary a { color: var(--mj-gold); text-decoration: underline; text-underline-offset: 3px; }

.mj-testi-footnote {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.6;
}

.mj-testi-noscript { margin: 12px 0 0; color: rgba(255, 255, 255, 0.60); font-size: 13px; }

.mj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .mj-testi-layout { grid-template-columns: 1fr; }
  .mj-testi-orbit-wrap { display: none; }
  .mj-testi-card { flex-basis: min(86%, 440px); min-height: 340px; }
}

@media (max-width: 600px) {
  .mj-testi-shell { border-radius: 28px; }
  .mj-testi-head { align-items: flex-start; }
  .mj-testi-counter { text-align: left; }
  .mj-testi-score { font-size: 56px; }
  .mj-testi-card { flex-basis: 100%; min-height: 330px; padding: 22px; }
  .mj-testi-summary { padding: 20px; }
  .mj-testi-score-meta span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mj-testi-track { scroll-behavior: auto; }
  .mj-testi-card,
  .mj-testi-dot,
  .mj-testi-arrow { transition: none; }
}
