/* ─────────────────────────────────────────
   ESTILOS PROPIOS DE calculadora.html
   (extraídos de <style> inline; valores distintos a
   index.css para clases con el mismo nombre)
───────────────────────────────────────── */

/* Orbes */
.orb-1 {
  width: 500px; height: 500px; top: -130px; left: -150px;
  background: radial-gradient(circle, rgba(110,126,40,0.20) 0%, transparent 70%);
  animation: drift1 15s ease-in-out infinite alternate;
}
.orb-2 {
  width: 440px; height: 440px; bottom: -80px; right: -120px;
  background: radial-gradient(circle, rgba(110,126,40,0.15) 0%, transparent 70%);
  animation: drift2 20s ease-in-out infinite alternate;
}

/* Glass */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(110,126,40,0.18);
}

/* Fade up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.31s; } .d4 { animation-delay: 0.44s; }

/* Selector de distancia */
.dist-btn {
  flex: 1; padding: 10px 4px; border-radius: 12px;
  border: 1px solid rgba(110,126,40,0.2);
  background: rgba(255,255,255,0.02);
  color: #9ca3af; font-weight: 600; font-size: 0.8rem;
  cursor: pointer; transition: all 0.18s ease; text-align: center;
  backdrop-filter: blur(10px);
}
.dist-btn:hover { border-color: rgba(110,126,40,0.5); color: white; }
.dist-btn.active {
  background: rgba(110,126,40,0.18);
  border-color: rgba(110,126,40,0.5);
  color: white;
  box-shadow: 0 0 16px rgba(110,126,40,0.25);
}

/* Inputs de tiempo */
.time-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(110,126,40,0.22);
  border-radius: 12px;
  color: white; font-weight: 700; font-size: 1.4rem;
  text-align: center; width: 100%; padding: 12px 4px;
  outline: none; transition: border-color 0.18s;
  -moz-appearance: textfield;
}
.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.time-input:focus { border-color: rgba(110,126,40,0.6); }
.time-input::placeholder { color: #374151; font-weight: 400; font-size: 1rem; }

/* Botón calcular */
.btn-cta {
  background: linear-gradient(90deg, #516020, #6e7e28, #9eb234, #6e7e28, #516020);
  background-size: 300% auto;
  animation: btn-shimmer 5s linear infinite;
  border: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(110,126,40,0.4);
  border-radius: 16px; cursor: pointer;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(110,126,40,0.55), 0 10px 32px rgba(110,126,40,0.3); }
.btn-cta:active { transform: scale(0.97); }

/* Tabla de resultados */
.result-row {
  display: grid; grid-template-columns: 1fr 1.2fr 1.2fr;
  align-items: center; padding: 12px 16px;
  border-bottom: 1px solid rgba(110,126,40,0.1);
  transition: background 0.2s;
}
.result-row:last-child { border-bottom: none; }
.result-row.highlight {
  background: rgba(110,126,40,0.1);
  border-radius: 10px;
  border-bottom: none;
}
.result-row.highlight + .result-row { border-top: 1px solid rgba(110,126,40,0.1); }

/* Botón volver */
.btn-back {
  color: #6b7280; font-size: 0.85rem; font-weight: 500;
  transition: color 0.18s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-back:hover { color: #6e7e28; }

/* Resultado oculto inicialmente */
#results { display: none; }
#results.visible { display: block; }

/* Error */
#error-msg { display: none; color: #f87171; font-size: 0.8rem; text-align: center; margin-top: 8px; }
#error-msg.visible { display: block; }

/* Acordeón — movido a styles.css (compartido con index.html) */
