/* ═══════════════════════════════════════
   QuizForge — style.css
   Paleta: azul claro + blanco
═══════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg: #f0f6ff;
  --bg2: #e4effe;
  --surface: #ffffff;
  --surface2: #f7faff;
  --border: #d0e3fa;
  --border2: #b8d4f7;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-mid: #60a5fa;
  --accent-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #64748b;
  --muted2: #94a3b8;
  --correct: #16a34a;
  --correct-bg: #f0fdf4;
  --correct-bdr: #86efac;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-bdr: #fca5a5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow:
    0 1px 3px rgba(37, 99, 235, 0.08), 0 4px 16px rgba(37, 99, 235, 0.06);
  --shadow-md: 0 4px 24px rgba(37, 99, 235, 0.12);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.6;
}

/* ════════════════════════
   NAV
════════════════════════ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ════════════════════════
   BOTONES GLOBALES
════════════════════════ */
.btn-ghost {
  background: none;
  border: 1.5px solid var(--border2);
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--border2);
  color: var(--muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ════════════════════════
   HERO
════════════════════════ */
.hero {
  text-align: center;
  padding: 5.5rem 1rem 3.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-light);
  border: 1.5px solid var(--border2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.35);
  }
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ════════════════════════
   MAIN CARD
════════════════════════ */
.main-card {
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ════════════════════════
   TABS de modo
════════════════════════ */
.mode-tabs {
  display: flex;
  background: var(--surface2);
  border-bottom: 1.5px solid var(--border);
}

.mode-tab {
  flex: 1;
  padding: 1rem 0.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
}
.mode-tab svg {
  width: 15px;
  height: 15px;
}
.mode-tab:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}
.mode-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface);
}

/* ════════════════════════
   INPUT AREA
════════════════════════ */
.input-area {
  padding: 1.75rem;
}

.input-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  display: block;
}

textarea {
  width: 100%;
  min-height: 190px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.75;
  padding: 1rem 1.1rem;
  resize: vertical;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
  outline: none;
}
textarea:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--surface);
}
textarea::placeholder {
  color: var(--muted2);
}

/* Upload */
.upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.85rem;
}

.upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px dashed var(--border2);
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.upload-btn svg {
  width: 14px;
  height: 14px;
}
.upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

#file-input {
  display: none;
}

.file-name {
  font-size: 0.8rem;
  color: var(--muted2);
  font-style: italic;
}

/* ════════════════════════
   OPTIONS ROW
════════════════════════ */
.options-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.75rem;
  border-top: 1.5px solid var(--border);
  background: var(--surface2);
  flex-wrap: wrap;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s;
}
select:focus {
  border-color: var(--accent-mid);
}

.spacer {
  flex: 1;
}

.btn-generate {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}
.btn-generate svg {
  width: 15px;
  height: 15px;
}
.btn-generate:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}
.btn-generate:disabled {
  background: var(--border2);
  color: var(--muted2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ════════════════════════
   LOADING
════════════════════════ */
#loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1.5rem;
  border-top: 1.5px solid var(--border);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.loading-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ════════════════════════
   QUIZ ZONE
════════════════════════ */
#quiz-zone {
  display: none;
  border-top: 1.5px solid var(--border);
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-bottom: 1.5px solid var(--border);
  background: var(--surface2);
}

.quiz-progress-text {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.quiz-progress-text strong {
  color: var(--accent);
}

.progress-bar-wrap {
  flex: 1;
  max-width: 180px;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  margin: 0 1rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-mid), var(--accent));
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

.btn-reset {
  background: none;
  border: 1.5px solid var(--border2);
  color: var(--muted);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: all 0.18s;
}
.btn-reset:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.questions-list {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.question-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.05);
  animation: fadeUp 0.3s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.q-number {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.q-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-btn {
  text-align: left;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.16s;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.option-btn:hover:not(:disabled) {
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--accent-light);
}
.option-btn:disabled {
  cursor: default;
}
.option-btn.correct {
  border-color: var(--correct-bdr);
  background: var(--correct-bg);
  color: var(--correct);
  font-weight: 500;
}
.option-btn.wrong {
  border-color: var(--danger-bdr);
  background: var(--danger-bg);
  color: var(--danger);
}

.option-key {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted2);
}

/* ── FLASHCARD ── */
.flashcard {
  perspective: 1200px;
  height: 170px;
  cursor: pointer;
}
.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.flashcard-front {
  background: var(--surface2);
  border: 1.5px solid var(--border);
}
.flashcard-back {
  background: var(--accent-light);
  border: 1.5px solid var(--accent-mid);
  transform: rotateY(180deg);
}
.flashcard-back .q-text {
  color: var(--accent-dark);
  margin: 0;
}
.flashcard-hint {
  font-size: 0.72rem;
  color: var(--muted2);
  margin-top: 0.6rem;
}
.flashcard-back .flashcard-hint {
  color: var(--accent);
}

/* ════════════════════════
   RESULTS ZONE
════════════════════════ */
#results-zone {
  display: none;
  border-top: 1.5px solid var(--border);
  padding: 3rem 1.75rem;
  text-align: center;
  background: var(--surface);
}

.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.07);
}

.score-number {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.score-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.result-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.result-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.stats-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-pill strong {
  color: var(--text);
  font-weight: 600;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════
   FEATURES
════════════════════════ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto 5rem;
  padding: 0 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--accent);
}
.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ════════════════════════
   FOOTER
════════════════════════ */
footer {
  border-top: 1.5px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--surface);
}

.footer-logo {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.footer-text {
  font-size: 0.78rem;
  color: var(--muted2);
}

/* ════════════════════════
   TOAST
════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s;
  z-index: 999;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--accent);
}
.toast.error {
  border-color: rgba(220, 38, 38, 0.4);
  color: var(--danger);
}

/* ════════════════════════
   SECCIONES NUEVAS
════════════════════════ */

/* Section headers */
.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  text-align: center;
}
.section-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* NAV scroll effect */
#navbar {
  transition: box-shadow 0.3s;
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(37, 99, 235, 0.1);
}

/* HERO CTAs */
.hero-ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-hero-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* STATS HERO */
.stats-section {
  max-width: 780px;
  margin: 0 auto 1rem;
  padding: 0 1.25rem 2rem;
  border-bottom: 1.5px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat-card-hero {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.stat-card-hero:hover {
  transform: translateY(-2px);
}
.stat-hero-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}
.stat-hero-label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* DEMO SECTION */
.demo-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
}
.main-card {
  margin-top: 0;
}

/* FEATURES */
.features-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* REVEAL animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TESTIMONIOS */
.testimonios-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.testimonio-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.testimonio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}
.testimonio-text {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonio-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.author-role {
  font-size: 0.78rem;
  color: var(--muted2);
}

/* FAQ */
.faq-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  border-bottom: 1.5px solid var(--border);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:has(.faq-q.open) {
  border-color: var(--accent-mid);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background 0.15s;
}
.faq-q:hover {
  background: var(--surface2);
}
.faq-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted2);
  transition: transform 0.25s;
}
.faq-q.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-q.open {
  color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 1.25rem;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.faq-a.open {
  max-height: 200px;
  padding: 0 1.25rem 1rem;
}

/* CTA FINAL */
.cta-final {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
  text-align: center;
  border-bottom: 1.5px solid var(--border);
}
.cta-final h2 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.cta-final p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* FOOTER */
footer {
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  padding: 3rem 2.5rem 1.5rem;
  max-width: 100%;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}
.footer-desc {
  font-size: 0.82rem;
  color: var(--muted2);
  line-height: 1.65;
  max-width: 260px;
}
.footer-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.footer-link {
  display: block;
  font-size: 0.82rem;
  color: var(--muted2);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}
.footer-link:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted2);
}
.footer-powered {
  font-size: 0.78rem;
  color: var(--muted2);
}

/* Responsive */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 1rem 1.25rem;
  }
  .nav-links .btn-ghost {
    display: none;
  }
}

/* ════════════════════════
   BOTÓN DE IDIOMA
════════════════════════ */
.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.03em;
}
.btn-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}
.lang-flag {
  font-size: 0.9rem;
}
