/* ============================================================
   styles.css COMPLETO para Moxkix/USE2026
   Reemplaza el fichero entero del repo.
   Incluye el CSS original + fix de scroll en móvil + tarjetas
   para la consulta multi-código.
   ============================================================ */

html, body {
  height: auto;
  min-height: 100vh;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;          /* antes: center → recortaba el top en móvil */
  background-color: #f0f0f0;
  margin: 0;
  padding: 16px 0;
  overflow-y: auto;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 80%;
  max-width: 400px;
  box-sizing: border-box;
  margin: 0 auto;
}

.logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

#form {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 10px;
  text-align: center;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

button:hover {
  background-color: #0056b3;
}

#result {
  font-weight: bold;
  margin-top: 10px;
  min-height: 20px;
}

/* Móvil estrecho */
@media (max-width: 480px) {
  body { padding: 10px 0; }
  .container {
    width: 92%;
    padding: 14px;
  }
  .logo {
    max-width: 70%;
    margin-bottom: 12px;
  }
  h1 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 14px;
  }
}

/* ============================================================
   Tarjetas y avisos para la consulta multi-código (?codigos=)
   ============================================================ */
#result .card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 8px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-align: left;
}

#result .card .codigo {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 6px;
  font-family: ui-monospace, Consolas, monospace;
}

#result .card .linea {
  margin: 4px 0;
}

#result .card .et {
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

#result .card strong {
  color: #1e293b;
}

#result .aviso {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #78350f;
}
