* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root { color-scheme: dark; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #1a1208 0%, #0d0803 100%);
  color: #f0e6d3;
  min-height: 100vh;
  padding: 0 12px 40px;
}
.hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px 12px;
  position: sticky; top: 0;
  background: linear-gradient(180deg, #1a1208 0%, rgba(26,18,8,0.85) 100%);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  font-size: 26px; color: #f5c76c;
  background: radial-gradient(circle, rgba(245,199,108,0.2), transparent);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.titles .titulo {
  font-size: 14px; letter-spacing: 0.12em; font-weight: bold; color: #d4b673;
}
.titles .sub {
  font-size: 10px; color: #8a7a5c; margin-top: 2px;
}
.btn-search {
  background: rgba(212,182,115,0.1); border: 1px solid rgba(212,182,115,0.25);
  color: #d4b673; width: 40px; height: 40px; border-radius: 12px;
  font-size: 16px; cursor: pointer;
}
.hero {
  padding: 18px 6px 22px;
  border-bottom: 1px solid rgba(74,58,37,0.4);
  margin-bottom: 18px;
}
.hero-stats {
  display: flex; justify-content: space-around;
  font-size: 11px; color: #b39d78;
}
.hero-stats b { color: #f0e6d3; font-size: 20px; display: block; margin-bottom: 2px; }
.hero-stats span { text-transform: uppercase; letter-spacing: 0.08em; }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: linear-gradient(180deg, #241a10 0%, #1a1108 100%);
  border: 1px solid #3a2c1c;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.card:active { transform: scale(0.98); }
.card:hover {
  border-color: #806033;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.cover {
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  background: #100a05;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info { padding: 14px 14px 12px; }
.tit { font-size: 17px; font-weight: bold; color: #f0e6d3; margin-bottom: 4px; }
.sub2 {
  font-size: 12px; color: #a08466; line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  font-size: 10px; padding: 3px 8px; border-radius: 10px;
  background: #3a2c1c; color: #c7a86a;
}
.chip.nicho { background: #5a2210; color: #ffbea1; }
.pie { display: flex; justify-content: space-between; align-items: center; }
.precio { font-size: 22px; font-weight: bold; color: #f5c76c; }
.btn-leer {
  color: #f5c76c; font-weight: bold; font-size: 13px;
  border-bottom: 1px solid rgba(245,199,108,0.4);
  padding-bottom: 2px;
}
.fab-install {
  position: fixed; bottom: 20px; right: 20px;
  background: #b91c1c; color: white;
  padding: 12px 18px; border-radius: 40px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  cursor: pointer; font-size: 14px;
}
.fab-install b { font-weight: bold; }

.section-hdr {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 4px 10px;
  border-bottom: 1px solid rgba(74,58,37,0.3);
  margin-bottom: 14px;
  margin-top: 12px;
}
.section-hdr h2 {
  font-size: 15px; color: #d4b673; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: bold;
}
.section-hdr span { font-size: 12px; color: #8a7a5c; }

.cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5a3a20, #241a10);
  color: #f5c76c;
  font-size: 48px; font-weight: bold;
  letter-spacing: 0.05em;
}

.btn-del {
  background: rgba(191,28,28,0.15); color: #ff9999;
  border: 1px solid rgba(191,28,28,0.4);
  padding: 6px 10px; border-radius: 6px;
  font-size: 14px; cursor: pointer;
}
.btn-del:hover { background: rgba(191,28,28,0.35); }

.dropzone {
  position: fixed; inset: 0;
  background: rgba(22,17,12,0.92);
  color: #f5c76c;
  font-size: 24px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  border: 4px dashed #f5c76c;
  backdrop-filter: blur(4px);
}

