/* Joyería Rojas Esquivel — paleta del logo: marfil, dorado y negro */
:root {
  --ivory: #f6eee4;
  --ivory-2: #efe3d4;
  --paper: #fbf7f1;
  --gold: #b88a3e;
  --gold-2: #d8b672;
  --gold-3: #8f6a2a;
  --ink: #17140f;
  --ink-2: #3a332a;
  --muted: #7a6d5d;
  --line: rgba(184, 138, 62, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px;
  --shadow: 0 18px 50px -24px rgba(60, 40, 10, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: .01em; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.sm { padding: 9px 16px; font-size: 12px; }
.btn-dark { background: var(--ink); color: var(--ivory); box-shadow: 0 10px 26px -12px rgba(0,0,0,.6); }
.btn-dark:hover { background: #000; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #fff; box-shadow: 0 10px 26px -12px rgba(143,106,42,.8); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #188647; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(60,40,10,.45); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .32em; color: var(--gold); margin-bottom: 4px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) { text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.nav > a:not(.btn):hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav-wa { padding: 10px 18px; font-size: 12px; }
.burger { display: none; padding: 8px; border-radius: 10px; }

/* Portada */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 75% 40%, #fff8ec 0%, var(--ivory) 45%, var(--ivory-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); opacity: .7; pointer-events: none; }
.sparkles { position: absolute; inset: 0; pointer-events: none; background-image:
  radial-gradient(2px 2px at 12% 22%, rgba(216,182,114,.9), transparent 60%), radial-gradient(1.5px 1.5px at 30% 78%, rgba(216,182,114,.8), transparent 60%),
  radial-gradient(2px 2px at 58% 14%, rgba(216,182,114,.8), transparent 60%), radial-gradient(1.5px 1.5px at 86% 70%, rgba(216,182,114,.9), transparent 60%),
  radial-gradient(2.5px 2.5px at 92% 18%, rgba(255,255,255,.95), transparent 60%), radial-gradient(2px 2px at 44% 52%, rgba(255,255,255,.9), transparent 60%);
  animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: calc(100vh - 74px); min-height: calc(100svh - 74px); padding: 50px 0 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 6.6vw, 86px); font-weight: 600; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 520px; margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo { position: relative; justify-self: center; width: min(480px, 100%); aspect-ratio: 1; }
.hero-logo img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 40px 90px -40px rgba(90,60,15,.55), 0 0 0 1px rgba(184,138,62,.25); }
.ring { position: absolute; inset: -18px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 20%, rgba(216,182,114,.9) 30%, transparent 40% 70%, rgba(184,138,62,.7) 80%, transparent 90%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Encabezados de sección */
section { padding: 96px 0; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2, .about-text h2 { font-size: clamp(36px, 4.6vw, 56px); }
.ornament { display: block; width: 150px; height: 14px; margin: 16px auto 0; background:
  linear-gradient(var(--gold), var(--gold)) left center / 58px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) right center / 58px 1px no-repeat,
  radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) center / 14px 14px no-repeat; }
.ornament.left { margin: 16px 0 24px; }

/* Destacados */
.featured { padding: 70px 0 30px; background: var(--paper); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.feat { scroll-snap-align: start; text-align: left; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.feat img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform .6s; }
.feat:hover img { transform: scale(1.06); }
.feat span { display: block; padding: 12px 16px; font-family: var(--serif); font-size: 19px; font-weight: 600; }

/* Catálogo */
.catalog { background: linear-gradient(var(--paper), var(--ivory) 70%); }
.tools { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 36px; }
.search { display: flex; align-items: center; gap: 10px; width: min(460px, 100%); padding: 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); box-shadow: 0 8px 26px -20px rgba(60,40,10,.4); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; color: var(--ink); min-width: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.6); font-size: 13px; font-weight: 500; letter-spacing: .06em; transition: all .25s; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(60,40,10,.45); }
.card[hidden] { display: none; }
.card-img { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, #fbf5ec, #f1e6d6); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-img img { transform: scale(1.07); }
.noimg { display: grid; place-items: center; height: 100%; color: var(--gold); opacity: .55; }
.tag { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(23,20,15,.82); color: var(--gold-2); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 22px; flex: 1; }
.cat { margin: 0; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.card h3 { font-size: 23px; }
.card h3 button { text-align: left; }
.price { margin: 0 0 8px; font-weight: 600; color: var(--ink-2); }
.card .btn-wa { margin-top: auto; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.soon { text-align: center; max-width: 560px; margin: 0 auto; padding: 50px 34px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 24px; color: var(--gold); }
.soon h3 { color: var(--ink); font-size: 32px; margin: 14px 0 10px; }
.soon p { color: var(--ink-2); margin: 0 0 24px; }

/* Nosotros */
.about { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -200px; border-radius: 50%; border: 1px solid rgba(216,182,114,.18); box-shadow: 0 0 0 60px rgba(216,182,114,.04), 0 0 0 140px rgba(216,182,114,.03); }
.about-in { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-img img { width: min(420px, 100%); height: auto; aspect-ratio: 1; object-fit: cover; margin-inline: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgba(216,182,114,.35), 0 0 0 14px rgba(216,182,114,.06), 0 40px 80px -30px #000; }
.about-text p { color: #d9cfc1; font-size: 16.5px; }
.about .eyebrow { color: var(--gold-2); }

/* Contacto */
.contact { background: var(--ivory); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.ccard { padding: 28px 24px; text-align: center; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.ccard a, .ccard p { margin: 0; font-weight: 500; text-decoration: none; word-break: break-word; }
.ccard a:hover { color: var(--gold-3); }
.cic { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; }
.clabel { margin: 0 0 4px !important; color: var(--muted); font-size: 11px !important; font-weight: 600 !important; letter-spacing: .22em; text-transform: uppercase; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 500; transition: all .25s; }
.social a:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.map { margin-top: 36px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Pie */
.foot { background: #0f0d0a; color: #bfb3a2; padding: 56px 0 30px; text-align: center; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(216,182,114,.35); }
.foot-name { margin: 6px 0 0; font-family: var(--serif); font-size: 26px; color: var(--ivory); letter-spacing: .08em; text-transform: uppercase; }
.foot-social { display: flex; gap: 12px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(216,182,114,.35); color: var(--gold-2); transition: all .25s; }
.foot-social a:hover { background: var(--gold); color: #fff; }
.copy { margin: 14px 0 0; font-size: 12.5px; letter-spacing: .04em; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 14px 30px -10px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.45); } 50% { box-shadow: 0 14px 30px -10px rgba(37,211,102,.7), 0 0 0 14px rgba(37,211,102,0); } }

/* Ficha de producto */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(15,12,8,.7); backdrop-filter: blur(4px); animation: fade .25s; }
.modal-box { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: 22px; box-shadow: 0 40px 100px -30px #000; animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.m-gallery { background: linear-gradient(135deg, #fbf5ec, #f1e6d6); padding: 18px; }
.m-main { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.m-main img { width: 100%; height: 100%; object-fit: contain; }
.m-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.m-thumbs button { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.m-thumbs button.on { border-color: var(--gold); opacity: 1; }
.m-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.m-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 44px 34px 34px; }
.m-info h3 { font-size: 36px; }
.m-info .price { font-size: 19px; }
.m-mat { margin: 0; font-size: 14px; color: var(--muted); }
.m-mat:empty { display: none; }
.m-desc { color: var(--ink-2); white-space: pre-line; margin-bottom: 14px; }

/* Aparición al hacer scroll */
/* Solo se ocultan si el JavaScript cargó: sin él, todo se ve igual */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ring, .sparkles, .wa-float { animation: none; } html { scroll-behavior: auto; } }

/* Tabletas */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; min-height: 0; padding: 40px 0 70px; gap: 34px; }
  .hero-text { order: 2; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-logo { width: min(360px, 82%); }
  .about-in { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .ornament.left { margin: 16px auto 24px; }
  .modal-box { grid-template-columns: 1fr; }
  .m-info { padding: 24px 24px 30px; }
}
/* Celulares */
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: fixed; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(60,40,10,.4); transform: translateY(-120%); transition: transform .35s; }
  .nav.open { transform: none; }
  .nav > a:not(.btn) { width: 100%; padding: 15px 0; border-bottom: 1px solid rgba(184,138,62,.15); text-align: center; }
  .nav-wa { margin-top: 16px; width: 100%; padding: 14px; }
  .brand span { font-size: 17px; }
  section { padding: 70px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 12px 16px; }
  .card h3 { font-size: 18px; }
  .cat { font-size: 9.5px; letter-spacing: .16em; }
  .price { font-size: 13.5px; }
  .card .btn-wa { width: 100%; padding: 9px 8px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; padding-bottom: 6px; scrollbar-width: none; }
  .chip { flex: 0 0 auto; }
  .modal { padding: 0; align-items: end; }
  .modal-box { max-height: 94vh; border-radius: 22px 22px 0 0; }
  .m-info h3 { font-size: 30px; }
  .m-info .btn-wa { width: 100%; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
