/* ==========================================================================
   Beatriz bisutería — hoja de estilos
   Paleta dorada, tipografía serif elegante + sans limpia.
   ========================================================================== */

:root {
  --gold-1: #e7c873;
  --gold-2: #c9a24b;
  --gold-3: #a67c2e;
  --gold-grad: linear-gradient(135deg, #efd68c 0%, #c9a24b 55%, #a67c2e 100%);
  --ink: #2a241c;
  --ink-soft: #6f665a;
  --cream: #fbf7f0;
  --cream-2: #f2eadc;
  --line: #e6dcc9;
  --white: #ffffff;
  --dark: #1b1710;
  --dark-2: #2a241b;
  --wa: #25d366;
  --wa-dark: #1da851;
  --shadow-sm: 0 4px 14px rgba(80, 60, 20, 0.08);
  --shadow-md: 0 14px 40px rgba(80, 60, 20, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------- Botones -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .8em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }

.btn-gold {
  background: var(--gold-grad);
  color: #3a2c0c;
  box-shadow: 0 8px 22px rgba(166, 124, 46, .28);
}
.btn-gold:hover { box-shadow: 0 12px 28px rgba(166, 124, 46, .4); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold-2);
}
.btn-outline:hover { background: var(--gold-2); color: #fff; }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .3);
}
.btn-whatsapp:hover { background: var(--wa-dark); box-shadow: 0 12px 30px rgba(37, 211, 102, .42); }

.btn-block { width: 100%; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }

/* -------- Encabezado / navegación -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #3a2c0c;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; }
.brand-tag { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-3); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a { font-size: .98rem; letter-spacing: .02em; position: relative; padding: 4px 0; }
.site-nav > a:not(.btn):not(.nav-ig)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-grad); transition: width .25s ease;
}
.site-nav > a:not(.btn):not(.nav-ig):hover::after,
.site-nav > a.active::after { width: 100%; }
.nav-ig { color: var(--ink-soft); display: inline-flex; }
.nav-ig:hover { color: var(--gold-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Hero -------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(231, 200, 115, .35), transparent 55%),
    linear-gradient(180deg, #fdf9f2, #f5ecdb);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 84px 0 88px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .74rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-3); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 600; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 40ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.hero-badge svg { color: var(--gold-3); flex: none; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-ring {
  width: min(420px, 90%); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-grad);
  display: grid; place-items: center;
  box-shadow: 0 30px 70px rgba(166, 124, 46, .35);
  position: relative;
}
.hero-ring::after {
  content: ''; position: absolute; inset: 18px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .55);
}
.hero-ring .hero-emoji { font-size: clamp(5rem, 12vw, 9rem); filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }

/* -------- Secciones -------- */
.section { padding: 74px 0; }
.section-tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-3);
  display: block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.section-alt { background: linear-gradient(180deg, #fff, #fbf6ee); }

.divider-jewel { text-align: center; color: var(--gold-2); font-size: 1.3rem; letter-spacing: .6em; margin: 0 0 8px; }

/* -------- Grilla de productos -------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-1); }
.product-card-media { position: relative; display: block; aspect-ratio: 1; background: var(--cream-2); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .4em .8em; border-radius: 999px; font-weight: 500;
}
.badge-featured { left: 12px; background: var(--gold-grad); color: #3a2c0c; }
.badge-out { right: 12px; background: rgba(0,0,0,.7); color: #fff; }
.product-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 6px; }
.product-name { font-size: 1.28rem; line-height: 1.2; margin: 0 0 8px; }
.product-name a:hover { color: var(--gold-3); }
.product-price { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.product-card-actions { margin-top: auto; display: flex; gap: 8px; }
.product-card-actions .btn { flex: 1; }

/* -------- Filtros del catálogo -------- */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 34px;
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: .88rem; color: var(--ink-soft); transition: .2s;
}
.chip:hover { border-color: var(--gold-2); color: var(--ink); }
.chip.active { background: var(--gold-grad); color: #3a2c0c; border-color: transparent; font-weight: 500; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  border: 1px solid var(--line); border-radius: 999px; padding: .6em 1.1em;
  font-family: inherit; font-size: .9rem; min-width: 210px; background: #fff; color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--gold-2); }
.result-count { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }

/* -------- Detalle de producto -------- */
.product-detail { padding: 48px 0 70px; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--gold-3); }
.breadcrumb span { color: var(--gold-3); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }

.gallery-main {
  border-radius: var(--radius); overflow: hidden; background: var(--cream-2);
  border: 1px solid var(--line); aspect-ratio: 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumb {
  width: 76px; height: 76px; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--cream-2);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--gold-2); }

.detail-cat { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); }
.detail-title { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 12px; }
.detail-price { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 600; margin: 0 0 6px; }
.detail-avail { font-size: .9rem; margin-bottom: 22px; }
.detail-avail.in { color: var(--wa-dark); }
.detail-avail.out { color: #b23b3b; }
.detail-desc { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 26px; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 30px; }
.spec-item { background: #fff; padding: 14px 18px; }
.spec-item .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.spec-item .v { font-size: 1.05rem; }

/* Bloque de WhatsApp */
.wa-box {
  background: linear-gradient(135deg, #f0fbf4, #e6f7ec);
  border: 1px solid #cdeed8;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.wa-box h3 { font-size: 1.35rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.wa-box p { color: #3c6b4c; font-size: .96rem; margin-bottom: 16px; }
.wa-box .btn { }
.detail-secondary { display: flex; gap: 12px; flex-wrap: wrap; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .95rem; padding: .8em 0; }
.ig-link:hover { color: var(--gold-3); }

/* -------- CTA / franja dorada -------- */
.strip {
  background: var(--dark);
  color: #f3ead9;
  border-radius: 22px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% -10%, rgba(231,200,115,.22), transparent 60%);
}
.strip h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); position: relative; }
.strip p { color: #d8ccb5; position: relative; max-width: 52ch; margin: 0 auto 26px; }
.strip .btn { position: relative; }

/* -------- Categorías destacadas -------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.cat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: .22s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-1); }
.cat-tile .emoji { font-size: 2.2rem; }
.cat-tile .name { font-family: var(--font-serif); font-size: 1.25rem; margin-top: 8px; }

/* -------- Pie de página -------- */
.site-footer { background: var(--dark); color: #cabfa9; margin-top: 40px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 34px;
  padding: 56px 24px 34px;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { font-family: var(--font-serif); color: #fff; font-size: 1.4rem; margin: 0; }
.footer-tag { margin: 2px 0 0; font-size: .9rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--gold-1); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact a:hover { color: var(--gold-1); }
.footer-contact svg { color: var(--gold-1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 18px; font-size: .82rem; color: #8c8069; }
.footer-bottom p { margin: 0; }

/* -------- Contacto -------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--gold-3); flex: none; }
.contact-line .k { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-line .v { font-size: 1.1rem; }

/* -------- 404 -------- */
.notfound { text-align: center; padding: 110px 0; }
.notfound .big { font-family: var(--font-serif); font-size: 6rem; color: var(--gold-2); line-height: 1; }

/* -------- Utilidades -------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 60px 0; color: var(--ink-soft); }

/* ==========================================================================
   Panel de administración
   ========================================================================== */
.admin-body { background: #f4f1ec; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 120% at 50% 0%, #2a241b, #14110b); }
.login-card { background: #fff; border-radius: 20px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.login-card .brand-mark { margin: 0 auto 18px; }
.login-card h1 { text-align: center; font-size: 1.7rem; }
.login-card p.sub { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: -6px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8em 1em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201,162,75,.15); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-error { background: #fdeaea; color: #b23b3b; padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 18px; }

.admin-top { background: var(--dark); color: #fff; }
.admin-top-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.admin-top .brand-name { color: #fff; }
.admin-top .brand-tag { color: var(--gold-1); }
.admin-top-actions { display: flex; align-items: center; gap: 16px; }
.admin-user { font-size: .9rem; color: #cabfa9; }
.admin-main { padding: 40px 0 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { margin: 0; font-size: 2rem; }
.flash { background: #eaf7ee; color: #256b3c; border: 1px solid #cdeed8; padding: 12px 16px; border-radius: 10px; margin-bottom: 22px; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: #faf7f1; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--cream-2); }
.admin-actions-cell { display: flex; gap: 8px; }
.tag { font-size: .72rem; padding: .25em .7em; border-radius: 999px; background: var(--cream-2); color: var(--gold-3); }
.tag.on { background: #eaf7ee; color: #256b3c; }
.tag.off { background: #fdeaea; color: #b23b3b; }
.pill-btn { padding: .45em .9em; border-radius: 8px; font-size: .82rem; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pill-btn:hover { border-color: var(--gold-2); }
.pill-btn.danger { color: #b23b3b; border-color: #f0cccc; }
.pill-btn.danger:hover { background: #b23b3b; color: #fff; }

.admin-form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.admin-panel h2 { font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-row { display: flex; gap: 24px; align-items: center; margin: 6px 0 4px; }
.check-row label { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
.current-images { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.current-image { position: relative; width: 88px; }
.current-image img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.current-image button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: none; background: #b23b3b; color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.hint { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 0; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; z-index: 60; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 22px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -20px 0 50px rgba(0,0,0,.15);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav .btn, .site-nav .nav-wa { width: 100%; }
  .spec-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .strip { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; }
  .search-form input { flex: 1; min-width: 0; }
}
