/* © 2026 Koizumi Electronics — Páginas secundarias entregadas. */

.faq-page {
  width: 100%;
  height: var(--app-viewport-height, 100vh);
  min-height: 0;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow: hidden;
}

.faq-app {
  width: min(1180px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1.4vmin, 14px);
  overflow: hidden;
}

.faq-topbar {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-back {
  color: var(--kz-accent-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.faq-back:hover,
.faq-back:focus-visible {
  text-decoration: underline;
  outline: none;
}

.faq-state {
  color: rgba(230, 248, 252, 0.72);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid rgba(216, 252, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)), rgba(10, 42, 52, 0.66);
  box-shadow: 0 26px 80px rgba(0, 10, 16, 0.30);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.faq-hero {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: center;
  gap: clamp(10px, 1.8vmin, 18px);
  padding: clamp(18px, 3.5vmin, 38px);
  overflow: hidden;
  border-right: 1px solid rgba(216, 252, 255, 0.12);
}

.faq-kicker {
  color: var(--kz-accent-blue);
  font-size: clamp(0.625rem, 0.95vmin, 0.76rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-hero h1 {
  max-width: 12ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 10, 16, 0.36);
}

.faq-hero > p:not(.faq-kicker) {
  max-width: 56ch;
  color: rgba(230, 248, 252, 0.76);
  font-size: clamp(0.76rem, 1.35vmin, 0.92rem);
  line-height: 1.5;
}

.faq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.faq-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(216, 252, 255, 0.14);
  border-radius: 8px;
  color: rgba(246, 253, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.68rem;
  font-weight: 850;
}

.faq-card-zone {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: clamp(15px, 2.5vmin, 26px);
  background: rgba(255, 255, 255, 0.026);
}

.faq-card-zone h2 {
  color: #fff;
  font-size: clamp(1.05rem, 2.2vmin, 1.65rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.faq-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.faq-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: center;
  gap: 5px;
  padding: clamp(9px, 1.4vmin, 13px);
  border: 1px solid rgba(216, 252, 255, 0.13);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.faq-card:hover,
.faq-card:focus-visible {
  border-color: rgba(151, 235, 240, 0.46);
  background: rgba(180, 244, 248, 0.10);
  box-shadow: 0 16px 34px rgba(0, 10, 16, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.faq-card span {
  color: var(--kz-accent-blue);
  font-size: 0.625rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.faq-card strong {
  color: #fff;
  font-size: clamp(0.75rem, 1.15vmin, 0.9rem);
  line-height: 1.08;
  font-weight: 950;
}

.faq-card small {
  color: rgba(230, 248, 252, 0.72);
  font-size: clamp(0.625rem, 0.95vmin, 0.74rem);
  line-height: 1.28;
}

.faq-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: rgba(2, 12, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-modal-card {
  width: min(720px, 100%);
  max-height: calc(100dvh - 20px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(216, 252, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)), rgba(9, 38, 48, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.faq-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: clamp(13px, 2.1vmin, 19px);
  border-bottom: 1px solid rgba(216, 252, 255, 0.12);
}

.faq-modal-header h2 {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(1.05rem, 3.2vmin, 1.55rem);
  line-height: 1.04;
}

.faq-modal-header p {
  color: var(--kz-accent-blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.faq-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 252, 255, 0.14);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 1.375rem;
}

.faq-modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: clamp(13px, 2.1vmin, 19px);
  overflow: hidden;
}

.faq-answer {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(216, 252, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.faq-answer strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.18;
}

.faq-answer p {
  color: rgba(230, 248, 252, 0.78);
  font-size: 0.68rem;
  line-height: 1.3;
}

.faq-modal-note {
  grid-column: 1 / -1;
  color: rgba(230, 248, 252, 0.62);
  font-size: 0.66rem;
  line-height: 1.3;
}

.faq-modal-note a {
  color: var(--kz-accent-blue);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 880px) {
  .faq-panel { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .faq-hero { align-content: start; gap: 7px; padding: 13px; border-right: 0; border-bottom: 1px solid rgba(216, 252, 255, 0.12); }
  .faq-hero h1 { max-width: none; font-size: clamp(1.8rem, 8vw, 2.7rem); line-height: 0.88; }
  .faq-hero > p:not(.faq-kicker) { overflow: hidden; font-size: 0.72rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .faq-tags span { min-height: 22px; font-size: 0.625rem; padding-inline: 7px; }
  .faq-card-zone { padding: 11px; gap: 7px; }
  .faq-card-zone h2 { font-size: 1rem; }
  .faq-card { padding: 7px 9px; border-radius: 12px; }
  .faq-card span { font-size: 0.625rem; }
  .faq-card strong { font-size: 0.7rem; }
  .faq-card small { font-size: 0.625rem; }
  .faq-state { display: none; }
  .faq-modal-body { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .faq-page { padding: 8px; }
  .faq-app { gap: 6px; }
  .faq-topbar { min-height: 22px; }
  .faq-back { font-size: 0.7rem; }
  .faq-panel { border-radius: 17px; }
  .faq-hero { padding: 9px; }
  .faq-hero h1 { font-size: 1.7rem; }
  .faq-tags { gap: 4px; }
  .faq-tags span { min-height: 19px; font-size: 0.625rem; }
  .faq-card-zone { padding: 8px; gap: 6px; }
  .faq-card-zone h2 { font-size: 0.88rem; }
  .faq-grid { gap: 5px; }
  .faq-card { padding: 6px; border-radius: 10px; }
  .faq-card span { font-size: 0.625rem; }
  .faq-card strong { font-size: 0.68rem; line-height: 1.12; }
  .faq-card small { display: none; }
  .faq-modal-card { border-radius: 17px; }
  .faq-modal-header { padding: 11px; }
  .faq-modal-body { padding: 10px; gap: 6px; }
  .faq-answer { padding: 8px; border-radius: 11px; }
  .faq-answer strong { font-size: 0.7rem; }
  .faq-answer p { font-size: 0.625rem; }
}

@media (max-height: 650px) {
  .faq-hero { gap: 5px; padding: 9px 12px; }
  .faq-tags span { min-height: 19px; }
  .faq-card-zone { gap: 5px; padding: 8px 10px; }
  .faq-card { padding: 6px 8px; }
  .faq-card small { display: none; }
  .faq-answer p { font-size: 0.625rem; }
}
