/* ──────────────────────────────────────────────────────────────
   Magex — custom.css
   Sobreescrituras y ajustes que no cubre Tailwind por defecto.
   ────────────────────────────────────────────────────────────── */

/* Smooth scroll global con offset por la nav fija */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ajustes finos de tipografía */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

.font-serif {
  letter-spacing: -0.01em;
}

/* ──────────────────── Profile tabs ──────────────────── */

.profile-tab {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-tab:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.profile-tab.active {
  background: #6366F1;
  color: white;
  border-color: #6366F1;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.profile-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.profile-pane.active {
  display: block;
}

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

/* ──────────────────── FAQ ──────────────────── */

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary {
  list-style: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

/* ──────────────────── Selection color ──────────────────── */

::selection {
  background: #6366F1;
  color: white;
}

/* ──────────────────── Scrollbar custom (sutil) ──────────────────── */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ──────────────────── Animaciones suaves ──────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .profile-tab, a, button {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ──────────────────── Print ──────────────────── */

@media print {
  header, footer, .profile-tab, button {
    display: none !important;
  }
}
