/* Estilos mínimos del esqueleto — la estética de Creatics se aplica después.
   HTML con clases claras para "vestir" más adelante. */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #222;
  background: #fafafa;
}
a { color: #1e88e5; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.site-header .brand { font-weight: 700; text-decoration: none; color: #222; }
.site-header nav { display: flex; gap: 1rem; align-items: center; }

.container { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }
.site-footer { text-align: center; color: #999; padding: 2rem 0; font-size: 0.85rem; }

/* Rejilla de recursos */
.categoria h2 { border-left: 6px solid var(--cat-color, #888); padding-left: 0.5rem; }
.categoria h2 a { color: inherit; text-decoration: none; }
h1[style] { border-left: 6px solid var(--cat-color, #888); padding-left: 0.5rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 4px solid var(--cat-color, #888);
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  text-align: center;
}
.card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.card-icon { width: 64px; height: 64px; object-fit: contain; }
.card-icon-placeholder { width: 64px; height: 64px; background: #eee; border-radius: 8px; }
.card-icon-emoji {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; line-height: 1;
}
.card-title { font-weight: 600; }

/* Clases */
.clase-list { padding-left: 1.2rem; }
.clase-list li { margin: 0.4rem 0; }
.codigo-form input { font-size: 1.2rem; padding: 0.3rem; width: 8em; }

/* Formularios y panel */
.error { color: #c62828; }
.ayuda { color: #666; font-size: 0.9rem; }
.login-box { max-width: 400px; }
.login-box label { display: block; margin: 0.8rem 0; }
.login-box input { width: 100%; padding: 0.4rem; }

.tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab { padding: 0.4rem 1rem; border: 1px solid #ccc; background: #fff; border-radius: 6px 6px 0 0; cursor: pointer; }
.tab.active { background: #1e88e5; color: #fff; border-color: #1e88e5; }

.form-inline { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.form-inline input, .form-inline select { padding: 0.35rem; }
#zip-form label { display: block; margin: 0.6rem 0; }

.tabla { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
.tabla th, .tabla td { border: 1px solid #e0e0e0; padding: 0.4rem 0.6rem; text-align: left; }
.tabla th { background: #f5f5f5; }
.celda-corta { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

button { cursor: pointer; }
button.peligro { color: #c62828; }
button.linklike { background: none; border: none; color: #1e88e5; text-decoration: underline; padding: 0; }
