/* =======================================================
   components.css · Theme toggle, FAQ, secciones complementarias
   ======================================================= */

/* ===== Theme toggle (botón sol/luna neomorfo) ===== */
.theme-toggle {
  position: relative;
  width: 64px; height: 32px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunk);
  box-shadow: var(--nm-sunk-sm);
  cursor: pointer;
  transition: box-shadow var(--dur-base) var(--ease-out), var(--theme-transition);
  flex-shrink: 0;
}
.theme-toggle .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--nm-raised-sm);
  display: flex; align-items: center; justify-content: center;
  transition:
    transform var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  color: var(--color-accent);
}
.theme-toggle .knob svg { width: 14px; height: 14px; }
.theme-toggle .knob .icon-sun  { display: block; }
.theme-toggle .knob .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .knob {
  transform: translateX(32px);
  background: var(--color-surface-raised);
}
:root[data-theme="dark"] .theme-toggle .knob .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .knob .icon-moon { display: block; }

.theme-toggle:hover .knob { box-shadow: var(--nm-raised); }

/* ===== FAQ neomorfo ===== */
.faq-list {
  display: flex; flex-direction: column;
  gap: var(--space-3);
  max-width: 820px;
  margin-inline: auto;
}
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--nm-raised-sm);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out), var(--theme-transition);
}
.faq-item.is-open { box-shadow: var(--nm-sunk-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-weight: var(--fw-semi);
  color: var(--color-text-strong);
  text-align: left;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--nm-raised-sm);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--color-accent);
  border-radius: 1px;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after  { width: 2px; height: 12px; }
.faq-item.is-open .plus { background: var(--grad-accent); box-shadow: var(--nm-pressed); }
.faq-item.is-open .plus::before, .faq-item.is-open .plus::after { background: #fff; }
.faq-item.is-open .plus::after { transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-in-out);
}
.faq-a > div {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: 1.7;
}

/* ===== Carrusel de testimonios ===== */
.testi-carousel {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--nm-raised);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 48px);
  transition: var(--theme-transition);
  overflow: hidden;
}

.testi-track {
  position: relative;
  min-height: 220px;
}

.testi-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  pointer-events: none;
}
.testi-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.testi-slide.is-leaving {
  transform: translateX(-24px);
}

.testi-slide .badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunk);
  box-shadow: var(--nm-sunk-sm);
  color: var(--color-accent);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}

.testi-slide blockquote {
  position: relative;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  padding-left: clamp(28px, 3vw, 36px);
}
.testi-slide blockquote::before {
  content: "\201C";
  position: absolute;
  left: -4px; top: -18px;
  font-family: Georgia, serif;
  font-size: clamp(56px, 6vw, 72px);
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.32;
  font-weight: 700;
}

.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-author .av {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 14px;
  box-shadow: var(--nm-raised-sm);
  flex-shrink: 0;
}
.testi-author .info { line-height: 1.3; }
.testi-author .info .n { font-weight: var(--fw-semi); color: var(--color-text-strong); }
.testi-author .info .r { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* Controles */
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.testi-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.testi-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-surface-sunk);
  box-shadow: var(--nm-sunk-sm);
  cursor: pointer;
  border: 0;
  padding: 0;
  transition:
    width var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.testi-dot.is-active {
  width: 28px;
  background: var(--grad-accent);
  border-radius: 6px;
  box-shadow: var(--nm-raised-sm), var(--glow-accent);
}

.testi-arrows { display: flex; gap: 10px; }
.testi-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--nm-raised-sm);
  color: var(--color-text-strong);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 0;
  transition:
    box-shadow var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.testi-arrow:hover { box-shadow: var(--nm-raised); color: var(--color-accent); }
.testi-arrow:active { box-shadow: var(--nm-pressed); }

/* ===== Stat strip (debajo del bento) ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--bento-gap);
  margin-top: calc(var(--bento-gap) * 1.5);
}
.stat-strip .pill {
  background: var(--color-surface);
  box-shadow: var(--nm-raised-sm);
  border-radius: var(--radius-pill);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-sm);
  transition: var(--theme-transition), box-shadow var(--dur-fast) var(--ease-out);
}
.stat-strip .pill:hover { box-shadow: var(--nm-raised); }
.stat-strip .pill .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-surface-sunk);
  box-shadow: var(--nm-sunk-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.stat-strip .pill .info .t { font-weight: var(--fw-semi); color: var(--color-text-strong); }
.stat-strip .pill .info .s { font-size: 11px; color: var(--color-text-muted); }
