:root {
  --bg: #FD5653;
  --card: ghostwhite;
  --muted: #404040;
  --accent: #0ea5e9;
  --ok: #70AD47;
  --warn: #f59e0b;
  --err: #ef4444;
  --cursiva-inicio: "Fleur De Leah", cursive;
  --otra-fuente:"Red Hat Text", sans-serif;
  --fuente-parrafo:"Poiret One", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, whitesmoke, white 60%, #f2f2f2);
  color: whitesmoke;
}

main {
  padding: 18px;
}

.wrap {
  max-width: 1100px;
  margin: auto;
  padding: 16px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--bg);
  border-radius: 16px;
  padding: 14px;
}

.card-gallery {
  background: var(--card);
  border: 1px solid var(--bg);
  border-radius: 2px;
  padding: 10px;
}

h1 {
  font-family: var(--cursiva-inicio);
  font-size: 3.5rem;
  margin: .2rem 0;
  text-shadow: 5px 5px 2px #808080;
}

h2 {
  font-family: var(--fuente-parrafo);
  font-size: 1.5rem;
  margin: .2rem 0;
  color: var(--bg);
}

.tag {
  padding: .25rem .6rem;
  border: 1px dashed whitesmoke;
  border-radius: 2px;
  color: whitesmoke;
  font-family: var(--fuente-parrafo);
  font-size: 0.8rem;
}

.pill {
  font-family: var(--fuente-parrafo);
  font-size: 1rem;
  font-weight: 500;
  background: var(--bg);
  border: solid 1px whitesmoke;
  color: var(--muted);
  padding: 5px 15px;
  border-radius: 1px;
}

.muted {
  color: var(--muted);
  font-family: var(--otra-fuente);
  font-size: 0.8rem;
}

.muted-desc {
  color: var(--muted);
  font-family: var(--fuente-parrafo);
  font-size: 0.75rem;
  font-weight: 600;
}

button,
.btn {
  appearance: none;
  cursor: pointer;
  background: linear-gradient(180deg, salmon, var(--bg));
  color: whitesmoke;
  border: none;
  border-radius: 2px;
  padding: 10px 14px;
  font-family: var(--fuente-parrafo);
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow: 0 6px 14px rgba(233, 233, 233, .2);
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.ghost {
  background: var(--ok);
  padding: 10px 20px;
}

input[type="file"] {
  display: none;
}

label.file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--muted);
  border: none;
  border-radius: 1px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--fuente-parrafo);
}

.progress {
  height: 8px;
  background: var(--bg);
  border: 1px solid whitesmoke;
  border-radius: 999px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--muted), lightgray);
}

.qr {
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px dashed var(--bg);
  border-radius: 16px;
  padding: 12px;
}

img.thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px 1px 14px 1px;
  border: 1px solid var(--muted);
  background: #0a1426;
}

header {
  position: sticky;
  top: 0;
  background: var(--bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #1f2a44;
  z-index: 20;
}

.footer {
  opacity: .7;
  font-family: var(--fuente-parrafo);
  color: var(--bg);
  font-size: 1rem;
  text-align: center;
  margin-top: 18px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 100%;
  }
}