/* ============================================
   JZDS Calculadora Web — CSS estático (sin CDN)
   Generado a partir de las clases usadas en index.html
   ============================================ */

/* --- Fuentes locales (descargadas de Google Fonts) --- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/xMQ9uFFYT72X5wkB_18qmnndmSdSnh2BAfO5mnuyOo1lfiQwWa-xsaQ.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #0A0B0D;
  color: #E8E9EB;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* --- Layout utilitarios --- */
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.no-underline { text-decoration: none; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.h-full { height: 100%; }
.whitespace-nowrap { white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.hidden { display: none; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- Spacing --- */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-14 { padding-top: 3.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.ml-auto { margin-left: auto; }

/* --- Bordes / formas --- */
.border { border: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border-line { border-color: #1F2228; }
.border-line\/60 { border-color: rgba(31, 34, 40, 0.6); }
.border-teal2\/40 { border-color: rgba(45, 212, 191, 0.4); }

/* --- Colores de fondo --- */
.bg-ink { background-color: #0A0B0D; }
.bg-ink-soft { background-color: #121418; }
.bg-teal2 { background-color: #2DD4BF; }
.bg-teal2\/10 { background-color: rgba(45, 212, 191, 0.1); }
.bg-teal2\/15 { background-color: rgba(45, 212, 191, 0.15); }

/* --- Colores de texto --- */
.text-ink { color: #0A0B0D; }
.text-teal2 { color: #2DD4BF; }
.text-white { color: #E8E9EB; }
.text-\[\#8B909A\] { color: #8B909A; }
.text-\[\#9CA0A6\] { color: #9CA0A6; }
.text-\[\#E8E9EB\] { color: #E8E9EB; }
.text-\[\#5A5F69\] { color: #5A5F69; }

/* --- Tipografía --- */
.font-display { font-family: 'Sora', -apple-system, sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[14px\] { font-size: 14px; }
.text-\[15px\] { font-size: 15px; }
.leading-none { line-height: 1; }
.leading-\[1\.05\] { line-height: 1.05; }

/* --- Tamaños de elementos --- */
.w-1\.5 { width: 0.375rem; }
.w-7 { width: 1.75rem; }
.w-16 { width: 4rem; }
.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-7 { height: 1.75rem; }
.h-16 { height: 4rem; }

/* --- Hover / focus / transiciones --- */
.transition-colors { transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.hover\:text-teal2:hover { color: #2DD4BF; }
.hover\:underline:hover { text-decoration: underline; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-teal2\/60:focus { border-color: rgba(45, 212, 191, 0.6); }
.placeholder\:text-\[\#5A5F69\]::placeholder { color: #5A5F69; }

/* --- Componentes custom --- */
.btn-back-home {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #121418;
  border: 1px solid #1F2228;
  color: #9CA0A6;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-back-home:hover {
  color: #2DD4BF;
  border-color: rgba(45, 212, 191, 0.4);
  background: #171A20;
}
.btn-back-home:active { transform: scale(0.97); }

.btn {
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.opt {
  transition: all 140ms cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  background: #121418;
  border: 1px solid #1F2228;
  border-radius: 16px;
}
.opt:hover { border-color: rgba(45, 212, 191, 0.4); }
.opt.sel { border-color: #2DD4BF; background: rgba(45, 212, 191, 0.08); }
.card { background: #121418; border: 1px solid #1F2228; border-radius: 16px; }
.step { animation: stepIn 280ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.progress-bar { transition: width 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.tip { background: #0A0B0D; border: 1px solid #1F2228; border-left: 3px solid #2DD4BF; border-radius: 8px; }
input[type=range] { accent-color: #2DD4BF; }
input, select { background: #0A0B0D; }

@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
