:root {
  --faq-bg: #ececec;
  --faq-card: #ffffff;
  --faq-text: #1b1a1a;
  --faq-muted: #666666;
  --faq-line: #e8e8e8;
  --faq-grad: linear-gradient(90deg, #ff0f3a 2.47%, #3c34c1 98.44%);
  --faq-container: 1180px;
}

body.klivo-faq-page {
  background: var(--faq-bg);
  color: var(--faq-text);
  font-family: 'Outfit', Arial, sans-serif;
}

body.klivo-faq-page * {
  box-sizing: border-box;
}

.klivo-faq-page .header {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 80px), 1200px);
  transform: translateX(-50%);
  z-index: 999;
}

/* HERO */

.faq-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #07111f;
}

.faq-hero__video,
.faq-hero__overlay {
  position: absolute;
  inset: 0;
}

.faq-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-hero__overlay {
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.28) 0%, rgba(8, 14, 24, 0.58) 100%),
    radial-gradient(circle at 12% 18%, rgba(0, 226, 186, 0.24), transparent 24%),
    radial-gradient(circle at 50% 10%, rgba(111, 72, 255, 0.18), transparent 18%),
    radial-gradient(circle at 80% 32%, rgba(36, 96, 255, 0.16), transparent 22%);
}

.faq-container,
.faq-hero__inner {
  width: min(calc(100% - 80px), var(--faq-container));
  margin: 0 auto;
}

.faq-hero__inner {
  position: relative;
  z-index: 2;
  padding: 172px 0 92px;
}

.faq-hero__content {
  max-width: 760px;
  color: #fff;
}

.faq-hero__content h1 {
  margin: 0 0 18px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.faq-hero__content p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
}

/* BREADCRUMB */

.faq-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #efefef;
}

.faq-breadcrumb .faq-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  color: #7a7a7a;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
}

/* INTRO */

.faq-intro,
.faq-stats {
  background: #fff;
}

.faq-intro {
  padding: 56px 0 44px;
}

.faq-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.faq-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #f14967;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.faq-copy h2,
.faq-features__box h2,
.faq-stats__copy h2 {
  margin: 0 0 18px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #1b1a1a;
}

.faq-copy p,
.faq-stats__copy p {
  color: var(--faq-muted);
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 30px;
}

.faq-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  margin-top: 24px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  color: #1f1f1f;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.faq-list-wrap {
  border-left: 1px solid var(--faq-line);
  padding-left: 26px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--faq-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
}

.faq-question span:first-child {
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 28px;
  color: #1b1a1a;
}

.faq-icon {
  position: relative;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: #1f1f1f;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: #fff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: .25s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-answer p {
  padding: 0 18px 18px;
  color: #5b5b5b;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 29px;
}

.faq-item.active .faq-answer {
  max-height: 260px;
}

.faq-item.active .faq-icon::after {
  opacity: 0;
}

/* BLACK FEATURES SECTION */

.faq-features {
  padding: 50px 30px 50px;
  background: #fff;
}

.faq-features .faq-container {
  width: 100%;
  padding: 30px 10px;
}

.faq-features__box {
  width: 100%;
  padding: 120px 10% 126px;
  border-radius: 30px;
  background: #121214;
  color: #fff;
}

.faq-features__box h2 {
  max-width: 900px;
  color: #fff;
  text-align: center;
  margin: 0 auto 50px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.faq-features__grid {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.faq-feature {
  min-height: 184px;
  padding: 24px 22px 22px;
  border: 0;
}

/* SOLO LÍNEAS INTERIORES EN DESKTOP (3 columnas) */
.faq-feature:not(:nth-child(3n)) {
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.faq-feature:nth-child(-n+3) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.faq-feature h3 {
  margin: 0 0 12px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.faq-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.faq-features__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.faq-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.faq-action-btn--primary {
  background: #fff;
  color: #141414;
}

.faq-action-btn--secondary {
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: transparent;
}

/* STATS */

.faq-stats {
  padding: 30px 0 92px;
}

.faq-stats__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 36px;
  align-items: start;
}

.faq-stats__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--faq-line);
  border-left: 1px solid var(--faq-line);
}

.faq-stat-card {
  min-height: 220px;
  padding: 26px 22px;
  border-right: 1px solid var(--faq-line);
  border-bottom: 1px solid var(--faq-line);
  background: #fff;
}

.faq-stat-card__label {
  display: inline-block;
  margin-bottom: 18px;
  color: #f14967;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.faq-stat-card strong {
  display: block;
  margin-bottom: 14px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: clamp(32px, 4vw, 31px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #1b1a1a;
}

.faq-stat-card p {
  color: var(--faq-muted);
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .klivo-faq-page .header,
  .faq-container,
  .faq-hero__inner {
    width: min(calc(100% - 40px), var(--faq-container));
  }

  .faq-top-grid,
  .faq-stats__grid {
    grid-template-columns: 1fr;
  }

  .faq-list-wrap {
    border-left: 0;
    padding-left: 0;
  }

  .faq-features .faq-container {
    width: min(calc(100% - 24px), 1280px);
  }

  .faq-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-feature {
    border: 0;
  }

  /* SOLO LÍNEAS INTERIORES EN TABLET (2 columnas) */
  .faq-feature:not(:nth-child(2n)) {
    border-right: 1px solid rgba(255, 255, 255, 0.10);
  }

  .faq-feature:nth-child(-n+4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
}

@media (max-width: 767px) {
  .klivo-faq-page .header,
  .faq-container,
  .faq-hero__inner {
    width: min(calc(100% - 24px), var(--faq-container));
  }

  .faq-hero {
    min-height: 420px;
  }

  .faq-hero__inner {
    padding: 132px 0 68px;
  }

  .faq-hero__content h1 {
    font-size: 46px;
  }

  .faq-hero__content p {
    font-size: 16px;
    line-height: 27px;
  }

  .faq-intro {
    padding: 34px 0 26px;
  }

  .faq-copy h2,
  .faq-features__box h2,
  .faq-stats__copy h2 {
    font-size: 40px;
    line-height: 1;
  }

  .faq-copy p,
  .faq-stats__copy p {
    font-size: 16px;
    line-height: 28px;
  }

  .faq-question {
    padding: 18px 16px;
  }

  .faq-question span:first-child {
    font-size: 16px;
    line-height: 26px;
  }

  .faq-answer p {
    padding: 0 16px 16px;
    font-size: 15px;
    line-height: 27px;
  }

  .faq-features {
    padding: 0 0 20px;
  }

  .faq-features .faq-container {
    width: 100%;
  }

  .faq-features__box {
    padding: 28px 14px 18px;
    border-radius: 22px;
  }

  .faq-features__grid,
  .faq-stats__cards {
    grid-template-columns: 1fr;
  }

  .faq-feature {
    min-height: auto;
    padding: 20px 16px;
    border: 0;
  }

  /* SOLO LÍNEAS INTERIORES EN MÓVIL (1 columna) */
  .faq-feature:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .faq-feature h3 {
    font-size: 17px;
  }

  .faq-feature p {
    font-size: 13px;
    line-height: 1.7;
  }

  .faq-features__actions {
    flex-direction: column;
  }

  .faq-action-btn {
    width: 100%;
    max-width: 240px;
  }

  .faq-stats {
    padding: 18px 0 72px;
  }

  .faq-stat-card {
    min-height: auto;
    padding: 22px 18px;
  }
}