:root {
  --black: #050505;
  --ink: #121212;
  --white: #ffffff;
  --muted: #77736a;
  --gold: #d8a400;
  --gold-2: #ffe071;
  --gold-dark: #9a7100;
  --line: rgba(212, 175, 55, 0.28);
  --soft: #f7f4ed;
  --danger: #a83232;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #070707;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
.admin-header {
  position: static;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.3;
}

.top-nav,
.admin-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav a,
.admin-header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
}

.top-nav a:hover,
.admin-header nav a:hover,
.nav-action {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.bio-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: 0 14px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(11, 8, 2, 0.82)),
    #090806;
}

.bio-menu-screen {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 28px;
  padding: clamp(26px, 5vh, 58px) 0 34px;
}

.bio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("../img/fondo-joyeria.jpeg");
  background-size: cover;
  background-position: center 72%;
  background-repeat: no-repeat;
  opacity: 0.24;
}

.bio-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 216, 40, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.84));
}

.bio-hero {
  width: min(100%, 520px);
  margin: 0 auto;
  text-align: center;
}

.bio-hero img {
  width: clamp(108px, 16vw, 150px);
  height: clamp(108px, 16vw, 150px);
  margin: 0 auto 16px;
  object-fit: contain;
  background: #000;
  border: 2px solid rgba(212, 175, 55, 0.8);
  border-radius: 50%;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
}

.bio-hero h1,
.module-header h1,
.section-heading h2,
.category-section h3 {
  margin: 0;
  color: #ffe061;
  background: linear-gradient(115deg, #fff27a 0%, #ffd526 18%, #b98200 44%, #ffea70 66%, #c18a00 82%, #8d6500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 3px rgba(255, 218, 34, 0.34)) drop-shadow(0 5px 10px rgba(90, 58, 0, 0.46));
}

.bio-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(255, 216, 40, 0.28),
    0 4px 10px rgba(115, 79, 0, 0.44);
}

.bio-hero p {
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.5;
}

.bio-hero small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.45;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-gold {
  color: #090806;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 52%, #b58d24);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.22);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.button-light {
  color: var(--black);
  background: var(--white);
  border-color: rgba(0, 0, 0, 0.08);
}

.category-band {
  padding: 0;
  background: transparent;
  border: 0;
}

.category-list {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.category-list a {
  min-height: clamp(58px, 8vh, 86px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #111;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 3px solid rgba(212, 175, 55, 0.72);
  outline-offset: -8px;
  border-radius: 0;
  font-weight: 800;
  font-size: clamp(1.02rem, 2.2vw, 1.34rem);
  text-align: center;
  box-shadow: none;
}

.category-list a.is-active,
.category-list a:hover {
  color: var(--black);
  background: linear-gradient(135deg, #fff 0%, #f9f6ed 100%);
  border-color: var(--gold-2);
}

.featured-strip {
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 0 clamp(18px, 4vw, 0px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.featured-strip article {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.featured-strip img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
}

.featured-strip span,
.product-info small {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-strip strong,
.featured-strip small {
  display: block;
}

.featured-strip strong {
  margin-top: 4px;
}

.featured-strip small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.catalog-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 0 70px;
}

.module-header {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 28px 0 8px;
  text-align: center;
}

.module-header img {
  width: 108px;
  height: 108px;
  margin: 14px auto 16px;
  object-fit: contain;
  background: #000;
  border: 2px solid rgba(212, 175, 55, 0.8);
  border-radius: 50%;
}

.module-header h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1;
  font-weight: 900;
  text-shadow:
    0 0 6px rgba(255, 216, 40, 0.28),
    0 4px 10px rgba(115, 79, 0, 0.44);
}

.module-header p {
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.back-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #111;
  background: var(--gold);
  border-radius: 6px;
  font-weight: 900;
}

.module-catalog {
  position: relative;
  z-index: 1;
  padding-top: 30px;
}

.section-heading {
  display: block;
  margin-bottom: 18px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1;
}

.section-heading p {
  max-width: 430px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-section {
  scroll-margin-top: 18px;
  margin-top: 28px;
}

.category-section h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  text-align: center;
}

.category-empty {
  margin: 0;
  padding: 18px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  border-color: rgba(243, 213, 114, 0.9);
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.18);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #111;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  color: var(--black);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.product-info {
  display: block;
  padding: 18px;
  color: var(--ink);
  background: #fff;
}

.product-info h3 {
  margin: 7px 0 8px;
  color: var(--ink) !important;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 900;
}

.product-info p {
  min-height: 44px;
  margin: 0;
  color: #5f5b52 !important;
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.product-meta strong {
  color: var(--ink) !important;
  font-size: 1.08rem;
}

.product-meta span {
  color: #5f5b52 !important;
  font-size: 0.84rem;
  font-weight: 700;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.thumbs button {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.whatsapp-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  color: #07120b;
  background: #25d366;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 900;
}

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 360px;
  padding: 42px;
  color: var(--white);
  background: linear-gradient(135deg, #0a0a0a, #211803);
  border-radius: 8px;
}

.empty-state img {
  width: 150px;
  margin-bottom: 12px;
}

.empty-state h3,
.empty-state p {
  margin: 6px 0;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.68);
}

.location-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 48px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, #0b0b0b, #302407);
}

.location-section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.location-section p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 10px;
  color: #ffffff;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer span,
.site-footer .footer-brand,
.site-footer .footer-contact {
  color: #ffffff;
  font-weight: 900;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.22),
    0 3px 10px rgba(0, 0, 0, 0.74);
}

.site-footer .footer-brand,
.site-footer .footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer .footer-brand img,
.site-footer .footer-contact img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.36));
}

.site-footer .footer-brand:hover,
.site-footer .footer-contact:hover {
  color: #ffffff;
}

.admin-body,
.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.16), transparent 32%),
    #080808;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-row span {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.admin-help {
  margin: 12px 0 0;
  color: #5f5b52;
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-card {
  width: min(440px, calc(100% - 32px));
  margin: 42px auto;
  padding: 30px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card img {
  width: 118px;
  margin: 0 auto 12px;
}

.auth-card h1 {
  margin: 0;
  text-align: center;
}

.auth-card p {
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  line-height: 1.5;
}

.auth-card a {
  display: block;
  margin-top: 18px;
  color: var(--gold-2);
  text-align: center;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.admin-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 0px) 70px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.admin-panel {
  padding: 22px;
  background: var(--soft);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
}

.admin-panel h1,
.admin-panel h2 {
  margin: 0 0 20px;
}

.compact-panel {
  position: sticky;
  top: 96px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 6px 0 18px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.notice {
  margin-bottom: 18px;
  padding: 13px 14px;
  color: #14210d;
  background: #e7f6dc;
  border: 1px solid #bedcad;
  border-radius: 6px;
  font-weight: 800;
}

.notice.error {
  color: #3b0808;
  background: #ffe4e4;
  border-color: #e8b3b3;
}

.admin-list {
  margin-top: 34px;
  color: var(--white);
}

.admin-list .section-heading p {
  color: rgba(255, 255, 255, 0.62);
}

.table-like {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.admin-row img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: #000;
  border-radius: 6px;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
}

.admin-row form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-row button,
.admin-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--black);
  background: var(--white);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.admin-action {
  background: var(--gold);
}

.admin-row button.danger {
  color: var(--white);
  background: var(--danger);
}

@media (max-width: 920px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .featured-strip,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .location-section {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .admin-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav,
  .admin-header nav {
    width: 100%;
    overflow-x: auto;
  }

  .featured-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .featured-strip {
    margin-top: 24px;
  }

  .product-info p {
    min-height: 0;
  }

  .admin-row {
    grid-template-columns: 64px 1fr;
  }

  .admin-row form {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 2px;
    padding-right: 2px;
  }
}
