@import '../variables.css';
@import '../common.css';

/* ===== SECCIÓN TESTIMONIOS ADNX10 - DISEÑO IDÉNTICO TRUSTPILOT ===== */

/* Trustpilot testimonial user images */
.trustpilot-user-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.unique-testimonials-adnx10 {
  margin: 0 auto;
  position: relative;
  max-width: 1200px;
}

.unique-testimonials-adnx10 .container {
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

/* Título principal */
.unique-testimonials-title {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-xxl);
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-primary);
  text-shadow: var(--text-glow);
  text-align: center;
}

/* Widget de Trustpilot idéntico */
.trustpilot-widget {
  background: radial-gradient(1400px 900px at 100% 0%, rgba(140, 70, 255, .10) 0%, rgba(10, 10, 16, .0) 50%),
    rgba(20, 20, 30, .55);
  border-radius: 28px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  backdrop-filter: blur(6px) saturate(120%)
}

/* Header superior gris */
.trustpilot-header-top {
  background: #0000003b;
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Contenido principal del widget */
.trustpilot-content {
  padding: 30px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Lado izquierdo - Rating */
.trustpilot-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.excellent-rating {
  font-size: 36px;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Estrellas principales grandes */
.main-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.main-stars .star {
  width: 24px;
  height: 24px;
  background: #00B67A;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.reviews-count {
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.trustpilot-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.trustpilot-logo::before {
  content: '';
  width: 20px;
  height: 20px;
  background: #00B67A;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Lado derecho - Testimonios */
.unique-testimonials-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
  flex: 1 1 0%;
  box-sizing: border-box;
}

.unique-testimonials-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  margin-bottom: 0;
}

/* Testimonial cards idénticas */
.unique-testimonial-card {
  background: #fff;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.unique-testimonial-card:hover {
  box-shadow: var(--box-glow);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Header del testimonio */
.unique-testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

/* Estrellas del testimonio */
.unique-testimonial-stars {
  display: flex;
  gap: 2px;
}

.unique-testimonial-stars .star {
  width: 16px;
  height: 16px;
  background: #00B67A;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Badge verificado */
.verified-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6C6C85;
  font-weight: 500;
}

.verified-icon {
  width: 14px;
  height: 14px;
  background: #6C6C85;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
}

/* Contenido del testimonio */
.unique-testimonial-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.unique-testimonial-text {
  font-size: 14px;
  color: #000;
  line-height: 1.4;
  margin-bottom: 16px;
}

.unique-testimonial-author {
  font-size: 12px;
  color: #616161;
  font-weight: 500;
  margin-bottom: 4px;
}

.unique-testimonial-date {
  font-size: 12px;
  color: #616161;
}

/* Navegación idéntica */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #000000ad;
  border: 1px solid #ffffff61;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  z-index: 10;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.nav-button:hover {
  background: var(--color-primary);
  color: var(--bg-main);
  border-color: var(--color-primary);
  box-shadow: var(--box-glow);
}

.nav-prev {
  transform: translateX(-25px);
}

.nav-next {
  right: 0;
}

/* Footer del widget idéntico */
.trustpilot-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  font-style: italic;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== RESPONSIVE IDÉNTICO ===== */
@media (max-width: 1024px) {
  .trustpilot-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .trustpilot-left {
    align-items: center;
  }

  .unique-testimonials-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .unique-testimonials-container {
    grid-template-columns: 1fr;
  }

  .nav-button {
    display: none;
  }

  .unique-testimonials-title {
    font-size: 2rem;
  }

  .excellent-rating {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .unique-testimonials-adnx10 {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-xl) var(--spacing-md);
  }

  .trustpilot-content {
    padding: 20px;
  }

  .unique-testimonials-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
}

/* ===== ANIMACIONES SUAVES ===== */
@keyframes slideInTestimonial {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.unique-testimonial-card.slide-in {
  animation: slideInTestimonial 0.5s ease;
}

/*--------------------------------------------------------------*/

/* ====================== */
/*  TU CSS ORIGINAL       */
/*  (se mantiene igual)   */
/* ====================== */

/* Header Cuentas - ADN Broker (tipografía tipo FAQs) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;800&display=swap');

/* CONTENEDOR */
.header-cuentas {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  text-align: center;
  position: relative;
  min-height: 60vh;
  margin-top: -50px;

  /* NUEVO: panel oscuro semi-transparente */
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  height: auto;
  max-width: 1200px;
  margin: 0 auto 0 auto;
}

/* Contenedor de texto */
.header-cuentas .contenedor-texto {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  margin: 0 auto;
}

/* TIPOGRAFÍA (estilo de la captura) */
.header-cuentas h1 {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 10px 0;
}

.header-cuentas p {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
  margin: 0 auto;
}

/* ======= Blindaje anti-“línea” entre h1 y p ======= */
.header-cuentas hr {
  display: none !important;
  height: 0 !important;
  border: 0 !important;
}

.header-cuentas .contenedor-texto::before,
.header-cuentas .contenedor-texto::after,
.header-cuentas h1::before,
.header-cuentas h1::after,
.header-cuentas p::before,
.header-cuentas p::after {
  content: none !important;
  display: none !important;
}

.header-cuentas h1+* {
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.header-cuentas h1+p::before,
.header-cuentas h1+p::after {
  content: none !important;
  display: none !important;
}

.header-cuentas h1,
.header-cuentas p {
  border: 0 !important;
  outline: 0 !important;
  text-decoration: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header-cuentas {
    padding: 60px 20px;
    min-height: calc(100svh - var(--header-height, 80px));
  }

  .header-cuentas .contenedor-texto {
    padding: 20px 10px;
  }

  .header-cuentas h1 {
    font-size: clamp(2rem, 7vw, 2.4rem);
    margin-bottom: 8px;
  }

  .header-cuentas p {
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .header-cuentas h1 {
    font-size: 1.9rem;
  }

  .header-cuentas p {
    font-size: 0.95rem;
  }
}

/* ===================================================================== */
/*                          BLOQUE AISLADO: FAQ                          */
/*   Todo dentro de .faq-scope para NO afectar otros módulos del sitio   */
/* ===================================================================== */

.faq-scope {
  width: 100%;
}

/* Layout: 2 columnas (aside + panel combinado) */
.faq-scope .faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  /* aside | panel */
  gap: clamp(12px, 2vw, 18px);
  align-items: stretch;
}

/* ASIDE */
.faq-scope .faq-aside {
  position: relative;
  padding-right: clamp(16px, 2.2vw, 24px);
}

.faq-scope .faq-item {
  position: relative;
}

.faq-scope .faq-link {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, .68);
  font-weight: 700;
  letter-spacing: .3px;
  font-size: clamp(14px, 1.6vw, 16px);
  padding: 6px 10px 6px 20px;
  transition: color .25s ease, transform .12s ease;
}

.faq-scope .faq-item:hover .faq-link {
  color: #fff;
  transform: translateX(2px);
}

.faq-scope .faq-item.is-active .faq-link {
  color: #fff;
}

.faq-scope .faq-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  border-radius: 8px;
  background: transparent;
  transition: all .25s ease;
}

.faq-scope .faq-item.is-active .faq-indicator {
  background: linear-gradient(180deg, #c266ff, #8b3dff);
  height: 26px;
}

/* PANEL COMBINADO (un solo cuadro) */
.faq-scope .faq-combined {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(520px, 640px);
  /* izquierda ? | derecha preguntas */
  gap: 0;
  /* sin separación interna */
  background:
    linear-gradient(180deg, rgb(7, 0, 43), rgb(4, 0, 20)),
    linear-gradient(180deg, #261d47, #0d1220 65%, #0b11197c 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  /* bordes rectos como pediste */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  min-height: 360px;
  overflow: hidden;
}



/* Lado izquierdo (reemplaza el antiguo .faq-center) */
.faq-scope .faq-left {
  position: relative;
  background: linear-gradient(180deg, rgb(10, 2, 49), rgb(5, 0, 26));
  /* morado translúcido */
}

.faq-scope .faq-left-inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: clamp(16px, 2vw, 24px);
}

.faq-scope .faq-left-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0) 35%);
  /* sombreado suave */
  pointer-events: none;
}

.faq-scope .faq-questionmark {
  font-weight: 800;
  font-size: clamp(120px, 14vw, 200px);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
}

/* Icono INLINE (SVG) que inyectaremos por JS */
.faq-scope .faq-inline-icon {
  display: none;
  width: clamp(72px, 12vw, 140px);
}

.faq-scope .faq-inline-icon.is-visible {
  display: block;
}

/* Asegura que el SVG se adapte al contenedor */
.faq-scope .faq-inline-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

/* (opcional) Si hay icono, ocultar el “?” solo con CSS */
.faq-scope .faq-inline-icon.is-visible+.faq-questionmark {
  display: none;
}



/* Lado derecho (reemplaza el antiguo .faq-card) */
.faq-scope .faq-right {
  padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.6vw, 32px);
  background: transparent;
  /* continuidad del panel */
}

/* Listas / filas / botón + */
.faq-scope .faq-list {
  display: none;
}

.faq-scope .faq-list.is-visible {
  display: block;
}

.faq-scope .faq-row {
  --padY: 18px;
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: var(--padY) 0;
  color: #fff;
  position: relative;
  text-align: left;
}

/* Línea bajo TODAS las preguntas del panel FAQ */
.faq-scope .faq-row {
  position: relative;
  /* necesario para posicionar el ::after */
  border-bottom: 0;
  /* evita líneas duplicadas si había border */
  box-shadow: none;
  /* evita “líneas” hechas con sombras */
}

.faq-scope .faq-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgb(187, 183, 183);
  /* tu color */
  pointer-events: none;
}


.faq-scope .faq-q {
  font-weight: 700;
  letter-spacing: .2px;
  font-size: clamp(15px, 1.7vw, 17px);
}

.faq-scope .faq-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #a44bff, #8b3dff);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 16px rgba(100, 40, 180, .25);
  /* glow más oscuro */
  transition: transform .16s ease, box-shadow .22s ease, filter .2s ease;
}

.faq-scope .faq-row:hover .faq-plus {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(100, 40, 180, .35);
  filter: saturate(1.06);
}

/* Responsive */
@media (max-width: 900px) {
  .faq-scope .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-scope .faq-aside::after {
    display: none;
  }

  .faq-scope .faq-combined {
    grid-template-columns: 1fr;
  }

  .faq-scope .faq-combined::before {
    display: none;
  }

  .faq-scope .faq-left {
    order: 2;
    min-height: 140px;
  }

  .faq-scope .faq-right {
    order: 1;
  }

  .faq-scope .faq-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .faq-scope .faq-indicator {
    display: none;
  }

}

/* ----- Respuesta colapsable para cada .faq-row (no altera tu diseño) ----- */
.faq-scope .faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 220ms ease;
  will-change: max-height;
  /* hereda el fondo del panel; sin bordes para no introducir “líneas” nuevas */
}

.faq-scope .faq-answer.is-open {
  /* max-height se maneja vía JS (scrollHeight) para una animación suave */
}

.faq-scope .faq-answer__inner {
  padding: 14px 0 6px 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  font-size: clamp(14px, 1.5vw, 16px);
  font-family: 'Avenir', sans-serif;
  text-align: left;
  font-weight: 200;
}

/* Forzar negrita en strong dentro de comentarios */
#unique-testimonials-adnx10-section strong,
.header-cuentas strong,
.faq-scope strong {
  font-weight: bold !important;
}

p {
  font-family: 'Poppins', sans-serif !important;
}

/* Modo carrusel simple para testimonios en móviles < 460px */
@media (max-width: 460px) {
  .unique-testimonials-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    min-height: 260px;
    max-width: 100vw;
    gap: 0;
    position: relative;
  }
  .unique-testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    display: block;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .unique-testimonial-card.is-active {
    display: flex;
  }
}