/**
 * Monitor de récords mundiales - Hoja de estilo principal
 * Estándares corporativos de fijate.com/tools
 */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colores tema claro */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-secondary: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-card: #131b2a;
  --bg-card-secondary: #1a2336;
  --border-color: #1e293b;
  --border-hover: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-light: rgba(56, 189, 248, 0.12);
  --accent: #fbbf24;
  --accent-light: rgba(251, 191, 36, 0.15);
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.15);
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
}

/* Reset y estructura base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-top: 0;
}

.text-mono {
  font-family: var(--font-mono);
}

/* Hero y bienvenida */
.hero-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-title-area {
  flex: 1 1 300px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--text-main);
  line-height: 1.25;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 680px;
}

.hero-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card-secondary);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-hero-action:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-hero-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-hero-primary:hover {
  background: var(--primary-hover);
}

/* Métricas KPIs superiores */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.kpi-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Navegación por pestañas */
.tabs-navigation {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tabs-navigation::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-bottom: -2px;
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-badge {
  background: var(--bg-card-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.tab-btn.active .tab-badge {
  background: var(--primary-light);
  color: var(--primary);
}

/* Vistas de pestañas */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Barra de filtros y búsqueda */
.filter-toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.search-input-wrapper {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.search-input-wrapper svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.75rem 0.5rem 2.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card-secondary);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
}

.category-select {
  min-height: 40px;
  padding: 0.5rem 2.2rem 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card-secondary);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* Rejilla de tarjetas de récords (Radar y Archivo) */
.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.record-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.record-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.record-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.record-category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: lowercase;
}

.cat-tecnologia { background: #e0f2fe; color: #0284c7; }
.cat-comida { background: #fef3c7; color: #d97706; }
.cat-deportes { background: #dcfce7; color: #16a34a; }
.cat-cuerpo { background: #f3e8ff; color: #9333ea; }
.cat-naturaleza { background: #ccfbf1; color: #0f766e; }
.cat-curiosidades { background: #ffedd5; color: #ea580c; }

[data-theme="dark"] .cat-tecnologia { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
[data-theme="dark"] .cat-comida { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
[data-theme="dark"] .cat-deportes { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
[data-theme="dark"] .cat-cuerpo { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
[data-theme="dark"] .cat-naturaleza { background: rgba(45, 212, 191, 0.15); color: #2dd4bf; }
[data-theme="dark"] .cat-curiosidades { background: rgba(251, 146, 60, 0.15); color: #fb923c; }

.record-date-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.record-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  color: var(--text-main);
}

.record-metric-highlight {
  background: var(--bg-card-secondary);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.5rem 0 0.75rem;
}

.record-metric-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.record-metric-holder {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.record-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 1rem;
  flex: 1 0 auto;
}

.record-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: auto;
}

.record-source-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.btn-record-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-record-link:hover {
  text-decoration: underline;
}

/* ========================================================
   ESTILOS DEL COMPARADOR INTERACTIVO «¿A CUÁNTO ESTÁS?»
   ======================================================== */
.comparator-workspace {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.comparator-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .comparator-grid-layout {
    grid-template-columns: 1fr;
  }
}

.comparator-form-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.challenge-selector-wrap label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.challenge-select {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 2.2rem 0.6rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-secondary);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.challenge-info-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.challenge-holder-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.challenge-record-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.challenge-fun-fact {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.user-input-block label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.user-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.user-input-field {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  min-height: 46px;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-secondary);
  color: var(--text-main);
  outline: none;
}

.user-input-field:focus {
  border-color: var(--primary);
}

.btn-calculate-match {
  min-height: 46px;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-calculate-match:hover {
  background: var(--primary-hover);
}

/* Caja de resultados del comparador */
.comparator-result-box {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.result-placeholder-state {
  text-align: center;
  color: var(--text-dim);
  padding: 2rem 1rem;
}

.result-active-state {
  display: none;
}

.result-percent-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.result-percent-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.result-progress-track {
  width: 100%;
  height: 14px;
  background: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.result-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

.result-verdict-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.verdict-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.verdict-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.verdict-ratio {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.social-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.social-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
}

.social-card-badge {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.canvas-preview-wrap {
  margin-top: 0.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0b0f17;
  max-width: 100%;
}

.canvas-preview-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}

.btn-download-card {
  margin-top: 1rem;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--success);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-download-card:hover {
  opacity: 0.9;
}

/* ========================================================
   ESTILOS DEL QUIZ «¿RÉCORD REAL O INVENTADO?»
   ======================================================== */
.quiz-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quiz-step-indicator {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-score-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.quiz-question-box {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.quiz-question-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--text-main);
}

.quiz-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-quiz-option {
  min-height: 52px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-quiz-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-quiz-option.correct {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.btn-quiz-option.wrong {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.quiz-feedback-box {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  line-height: 1.45;
}

.quiz-feedback-box.show {
  display: block;
}

.quiz-feedback-box.correct {
  background: var(--success-light);
  border: 1px solid var(--success);
  color: var(--text-main);
}

.quiz-feedback-box.wrong {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--danger);
  color: var(--text-main);
}

.btn-quiz-next {
  width: 100%;
  min-height: 46px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: none;
}

.btn-quiz-next.show {
  display: block;
}

.quiz-final-box {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.quiz-final-score-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
}

/* ========================================================
   MODALES ACCESIBLES (SORPRÉNDEME Y AVISOS)
   ======================================================== */
.accessible-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.accessible-modal-backdrop.active {
  display: flex;
}

.accessible-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
}

.btn-close-modal:hover {
  background: var(--bg-card-secondary);
  color: var(--text-main);
}

.modal-body-content {
  padding: 1.5rem;
}

.modal-footer-row {
  padding: 1rem 1.5rem;
  background: var(--bg-card-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Disclaimer legal formal */
.legal-disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-disclaimer-box strong {
  color: var(--text-main);
}

/* Responsive móvil */
@media (max-width: 768px) {
  .hero-header {
    flex-direction: column;
  }
  .hero-actions-bar {
    width: 100%;
  }
  .btn-hero-action {
    flex: 1 1 0%;
    justify-content: center;
  }
  .records-grid {
    grid-template-columns: 1fr;
  }
  .quiz-buttons-grid {
    grid-template-columns: 1fr;
  }
  .user-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-calculate-match {
    width: 100%;
  }
}
