/* ============================================
   RINA JOYERÍA — Hoja de estilos
   Paleta: berenjena (morado profundo) + oro
   Tipografía: Cormorant Garamond (display) + Manrope (UI)
   ============================================ */

:root{
  --plum-950:#1c0f24;
  --plum-900:#2b1636;
  --plum-800:#3d1f4d;
  --plum-700:#552a6b;
  --plum-600:#6f3a89;
  --lilac-100:#f3ecf7;
  --lilac-050:#faf7fc;
  --gold-500:#c9a24b;
  --gold-400:#dab86a;
  --gold-300:#e9d6a3;
  --gold-600:#a9822f;
  --ivory:#fbf9f5;
  --ink:#241627;
  --ink-soft:#5b4d63;
  --line:#e4d9ec;
  --shadow-soft: 0 10px 30px rgba(43,22,54,0.10);
  --shadow-card: 0 6px 18px rgba(43,22,54,0.08);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --maxw: 1240px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block;}
a{color:inherit;}
button{font-family:inherit;}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

/* -------- reduced motion -------- */
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important;}
}

/* ================= HEADER ================= */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(251,249,245,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px;
  max-width:var(--maxw); margin:0 auto;
  gap:24px;
}
.logo{
  display:flex; align-items:baseline; gap:9px;
  text-decoration:none;
  flex-shrink:0;
}
.logo-mark{
  font-family:'Cormorant Garamond', serif;
  font-weight:700;
  font-size:32px;
  letter-spacing:-1px;
  color:var(--plum-900);
  background:linear-gradient(120deg, var(--gold-600), var(--gold-400) 45%, var(--gold-600));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.logo-sub{
  font-family:'Cormorant Garamond', serif;
  font-size:15px;
  letter-spacing:3.5px;
  color:var(--plum-700);
  text-transform:uppercase;
  font-weight:500;
}

.search-form{
  flex:1;
  max-width:420px;
  position:relative;
}
.search-form input{
  width:100%;
  padding:12px 44px 12px 18px;
  border-radius:999px;
  border:1.5px solid var(--line);
  background:#fff;
  font-size:14.5px;
  color:var(--ink);
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.search-form input:focus{
  border-color:var(--gold-500);
  box-shadow:0 0 0 4px rgba(201,162,75,0.14);
}
.search-form svg{
  position:absolute; right:16px; top:50%; transform:translateY(-50%);
  width:17px; height:17px; color:var(--plum-600);
  pointer-events:none;
}

.header-cta{
  display:flex; align-items:center; gap:10px;
  background:var(--plum-900);
  color:var(--gold-300);
  border:none;
  padding:11px 20px;
  border-radius:999px;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition:transform .18s ease, background .2s ease;
}
.header-cta:hover{ background:var(--plum-800); transform:translateY(-1px); }
.header-cta svg{width:16px;height:16px;}

@media (max-width: 760px){
  .header-inner{flex-wrap:wrap; padding:14px 18px; gap:12px;}
  .logo-sub{display:none;}
  .search-form{order:3; max-width:100%; flex-basis:100%;}
  .header-cta span{display:none;}
  .header-cta{padding:11px 13px;}
}

/* ================= HERO ================= */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(201,162,75,0.20), transparent 60%),
    linear-gradient(160deg, var(--plum-950) 0%, var(--plum-900) 45%, var(--plum-800) 100%);
  color:var(--lilac-050);
}
.hero-grain{
  position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size:3px 3px;
  pointer-events:none;
}
.hero-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:78px 28px 60px;
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  align-items:center;
  gap:56px;
  position:relative;
  z-index:2;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12.5px;
  letter-spacing:2.2px;
  color:var(--gold-300);
  font-weight:600;
  margin-bottom:22px;
  opacity:0;
  animation: fadeUp .8s ease .1s forwards;
}
.hero-eyebrow::before{
  content:'';
  width:26px; height:1px;
  background:var(--gold-400);
}
.hero-title{
  font-family:'Cormorant Garamond', serif;
  font-weight:600;
  font-size:clamp(38px, 5vw, 62px);
  line-height:1.06;
  margin:0 0 22px;
  color:#fff;
  opacity:0;
  animation: fadeUp .9s ease .22s forwards;
}
.hero-title em{
  font-style:italic;
  color:var(--gold-300);
}
.hero-desc{
  font-size:16.5px;
  line-height:1.7;
  color:#d8c9e1;
  max-width:440px;
  margin:0 0 34px;
  opacity:0;
  animation: fadeUp .9s ease .34s forwards;
}
.hero-actions{
  display:flex; gap:14px; flex-wrap:wrap;
  opacity:0;
  animation: fadeUp .9s ease .46s forwards;
}
.btn-gold{
  background:linear-gradient(120deg, var(--gold-600), var(--gold-400));
  color:var(--plum-950);
  border:none;
  padding:15px 30px;
  border-radius:999px;
  font-weight:700;
  font-size:14.5px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:9px;
  transition:transform .2s ease, box-shadow .25s ease;
  box-shadow:0 8px 22px rgba(201,162,75,0.28);
}
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(201,162,75,0.38); }
.btn-ghost{
  background:transparent;
  color:#f1e9f5;
  border:1.4px solid rgba(233,214,163,0.4);
  padding:15px 26px;
  border-radius:999px;
  font-weight:600;
  font-size:14.5px;
  cursor:pointer;
  text-decoration:none;
  transition:border-color .2s ease, background .2s ease;
}
.btn-ghost:hover{ border-color:var(--gold-400); background:rgba(255,255,255,0.05); }

.hero-stats{
  display:flex; gap:34px; margin-top:44px;
  opacity:0;
  animation: fadeUp .9s ease .58s forwards;
}
.hero-stat b{
  display:block;
  font-family:'Cormorant Garamond', serif;
  font-size:28px;
  color:var(--gold-300);
  font-weight:700;
}
.hero-stat span{ font-size:12.5px; color:#c6b6d0; letter-spacing:.3px; }

/* Hero visual */
.hero-visual{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  animation: fadeIn 1.1s ease .3s forwards;
}
.hero-frame{
  position:relative;
  width:100%;
  max-width:400px;
  aspect-ratio: 4/5;
  border-radius: 26px;
  overflow:hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(233,214,163,0.25);
}
.hero-frame img{
  width:100%; height:100%; object-fit:cover;
}
.hero-frame.no-img::after{
  content:'Reemplaza hero.jpg por la foto de la modelo';
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:30px;
  font-family:'Manrope', sans-serif;
  font-size:12.5px; color:rgba(255,255,255,0.55);
}
.hero-frame .frame-glow{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(28,15,36,0) 55%, rgba(28,15,36,0.55) 100%);
  pointer-events:none;
}
.hero-badge{
  position:absolute;
  bottom:22px; left:22px; right:22px;
  background:rgba(28,15,36,0.55);
  backdrop-filter:blur(6px);
  border:1px solid rgba(233,214,163,0.35);
  border-radius:16px;
  padding:14px 16px;
  display:flex; align-items:center; gap:12px;
}
.hero-badge .dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--gold-400);
  box-shadow:0 0 0 4px rgba(218,184,106,0.25);
  flex-shrink:0;
  animation: pulse 2.2s ease infinite;
}
.hero-badge span{ font-size:13px; color:#f3ecf7; line-height:1.4; }
.hero-badge strong{ color:var(--gold-300); font-weight:700;}

.sparkle{
  position:absolute;
  color:var(--gold-300);
  opacity:.85;
}
.sparkle.s1{ top:8%; left:-4%; width:34px; animation: twinkle 3.4s ease-in-out infinite; }
.sparkle.s2{ bottom:12%; right:-5%; width:26px; animation: twinkle 3.4s ease-in-out infinite 1.1s; }
.sparkle.s3{ top:46%; right:8%; width:16px; animation: twinkle 3.4s ease-in-out infinite 2s; }

@keyframes fadeUp{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);} }
@keyframes fadeIn{ from{opacity:0; transform:scale(.96);} to{opacity:1; transform:scale(1);} }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 4px rgba(218,184,106,0.25);} 50%{ box-shadow:0 0 0 8px rgba(218,184,106,0.08);} }
@keyframes twinkle{ 0%,100%{opacity:.3; transform:scale(.85) rotate(0deg);} 50%{opacity:1; transform:scale(1.08) rotate(8deg);} }

@media (max-width: 900px){
  .hero-inner{ grid-template-columns:1fr; padding-top:48px; }
  .hero-visual{ order:-1; }
  .hero-frame{ max-width:300px; margin:0 auto; }
  .hero-desc{ max-width:100%; }
}

/* ================= MARQUEE STRIP ================= */
.strip{
  background:var(--plum-900);
  overflow:hidden;
  border-top:1px solid rgba(233,214,163,0.15);
  border-bottom:1px solid rgba(233,214,163,0.15);
}
.strip-track{
  display:flex;
  width:max-content;
  animation: scroll-left 32s linear infinite;
}
.strip-track span{
  padding:13px 40px;
  font-family:'Cormorant Garamond', serif;
  font-style:italic;
  font-size:15.5px;
  color:var(--gold-300);
  white-space:nowrap;
  display:flex; align-items:center; gap:40px;
}
.strip-track span::after{
  content:'◆';
  font-size:8px;
  color:var(--gold-600);
}
@keyframes scroll-left{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ================= CATALOG SECTION ================= */
.catalog{
  padding:64px 0 90px;
}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
  margin-bottom:30px;
}
.section-head h2{
  font-family:'Cormorant Garamond', serif;
  font-size:38px;
  font-weight:600;
  margin:0 0 6px;
  color:var(--plum-950);
}
.section-head p{
  margin:0; color:var(--ink-soft); font-size:14.5px;
}
.result-count{
  font-size:13px;
  color:var(--plum-700);
  font-weight:600;
  background:var(--lilac-100);
  padding:8px 16px;
  border-radius:999px;
  white-space:nowrap;
}

.types-row{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom:18px;
}
.type-chip{
  border:1.6px solid var(--plum-900);
  background:#fff;
  color:var(--plum-900);
  padding:11px 20px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:all .18s ease;
  display:inline-flex; align-items:center; gap:8px;
}
.type-chip span{
  background:var(--lilac-100);
  color:var(--plum-700);
  font-size:11px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
}
.type-chip:hover{ background:var(--lilac-100); }
.type-chip.active{
  background:var(--plum-900);
  color:var(--gold-300);
}
.type-chip.active span{
  background:rgba(233,214,163,0.18);
  color:var(--gold-300);
}

.filters{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-bottom:36px;
}
.filter-chip{
  border:1.4px solid var(--line);
  background:#fff;
  color:var(--ink-soft);
  padding:9px 18px;
  border-radius:999px;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  transition:all .18s ease;
}
.filter-chip:hover{ border-color:var(--gold-500); color:var(--plum-800); }
.filter-chip.active{
  background:var(--plum-900);
  border-color:var(--plum-900);
  color:var(--gold-300);
}

/* Product grid */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(228px, 1fr));
  gap:22px;
}
.card{
  background:#fff;
  border-radius:var(--radius-m);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow-card);
  transition:transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
  opacity:0; transform:translateY(14px);
  animation: cardIn .5s ease forwards;
  display:flex;
  flex-direction:column;
  height:100%;
}
@keyframes cardIn{ to{opacity:1; transform:translateY(0);} }

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 34px rgba(43,22,54,0.16);
  border-color:var(--gold-400);
}
.card-media{
  position:relative;
  aspect-ratio:1/1;
  background:var(--lilac-050);
  overflow:hidden;
}
.card-media img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease;
}
.card:hover .card-media img{ transform:scale(1.08); }
.card-tags{
  position:absolute; top:10px; left:10px; right:10px;
  display:flex; flex-wrap:wrap; gap:6px;
}
.card-tag{
  background:rgba(28,15,36,0.78);
  color:var(--gold-300);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.4px;
  padding:5px 10px;
  border-radius:999px;
}
.card-tag--order{
  background:rgba(201,162,75,0.92);
  color:var(--plum-950);
}
.card-body{
  padding:16px 16px 18px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.card-title{
  font-family:'Cormorant Garamond', serif;
  font-size:18.5px;
  font-weight:600;
  color:var(--plum-950);
  margin:0 0 4px;
  line-height:1.28;
}
.card-specs{
  font-size:12px;
  color:var(--ink-soft);
  margin:0 0 14px;
}
.card-buy{
  margin-top:auto;
  display:flex; align-items:center; justify-content:center; gap:7px;
  background:var(--lilac-100);
  color:var(--plum-800);
  border:none;
  padding:11px 14px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, transform .15s ease;
  white-space:nowrap;
  width:100%;
  text-decoration:none;
}
.card-buy:hover{ background:#25c766; color:#fff; transform:translateY(-1px); }
.card-buy svg{width:14px;height:14px; flex-shrink:0;}

.empty-state{
  text-align:center;
  padding:70px 20px;
  color:var(--ink-soft);
  display:none;
}
.empty-state.show{ display:block; }
.empty-state svg{ width:44px; height:44px; color:var(--plum-600); margin-bottom:14px; }
.empty-state h3{ font-family:'Cormorant Garamond', serif; font-size:24px; color:var(--plum-900); margin:0 0 8px; }

.load-more-wrap{
  display:flex; justify-content:center; margin-top:44px;
}
.load-more{
  background:#fff;
  border:1.6px solid var(--plum-900);
  color:var(--plum-900);
  padding:14px 34px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:background .2s ease, color .2s ease;
}
.load-more:hover{ background:var(--plum-900); color:var(--gold-300); }
.load-more[hidden]{ display:none; }

/* ================= TRUST / INFO STRIP ================= */
.trust{
  background:var(--lilac-100);
  padding:52px 0;
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:30px;
}
.trust-item{ display:flex; gap:16px; align-items:flex-start; }
.trust-item .ic{
  width:46px; height:46px; flex-shrink:0;
  border-radius:50%;
  background:var(--plum-900);
  color:var(--gold-300);
  display:flex; align-items:center; justify-content:center;
}
.trust-item .ic svg{width:21px;height:21px;}
.trust-item h4{ margin:0 0 4px; font-size:15.5px; color:var(--plum-950); font-family:'Cormorant Garamond', serif; font-weight:700; }
.trust-item p{ margin:0; font-size:13px; color:var(--ink-soft); line-height:1.55; }

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

/* ================= FOOTER ================= */
.site-footer{
  background:var(--plum-950);
  color:#cdbcd6;
  padding:56px 0 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:34px;
  border-bottom:1px solid rgba(233,214,163,0.15);
}
.footer-logo{
  font-family:'Cormorant Garamond', serif;
  font-size:28px;
  font-weight:700;
  color:var(--gold-300);
  margin-bottom:12px;
}
.footer-grid p{ font-size:13.5px; line-height:1.7; color:#b8a7c2; max-width:320px; }
.footer-col h5{
  font-size:12.5px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--gold-300); margin:0 0 16px; font-weight:700;
}
.footer-col a{
  display:block; font-size:14px; color:#d6c9de;
  text-decoration:none; margin-bottom:11px;
  transition:color .18s ease;
}
.footer-col a:hover{ color:var(--gold-300); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding-top:22px;
  font-size:12.5px; color:#8f7c99;
}
@media (max-width:760px){
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
}

/* ================= FLOATING WHATSAPP ================= */
.wa-float{
  position:fixed;
  left:24px; bottom:24px;
  z-index:80;
  width:60px; height:60px;
  border-radius:50%;
  background:#25c766;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(37,199,102,0.45);
  text-decoration:none;
  animation: floatPulse 2.6s ease infinite;
}
.wa-float svg{ width:30px; height:30px; fill:#fff; }
.wa-float::before{
  content:'';
  position:absolute; inset:0;
  border-radius:50%;
  border:2px solid rgba(37,199,102,0.55);
  animation: ring 2.2s ease-out infinite;
}
@keyframes floatPulse{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-4px);} }
@keyframes ring{ 0%{ transform:scale(1); opacity:.7;} 100%{ transform:scale(1.7); opacity:0;} }

.wa-tooltip{
  position:absolute;
  left:70px; top:50%; transform:translateY(-50%);
  background:var(--plum-950);
  color:#fff;
  padding:9px 14px;
  border-radius:10px;
  font-size:12.5px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
.wa-float:hover .wa-tooltip{ opacity:1; }

/* ================= LIGHTBOX / QUICK VIEW ================= */
.modal-backdrop{
  position:fixed; inset:0;
  background:rgba(28,15,36,0.6);
  backdrop-filter:blur(3px);
  display:none;
  align-items:center; justify-content:center;
  z-index:100;
  padding:20px;
}
.modal-backdrop.open{ display:flex; animation: fadeIn .25s ease; }
.modal-card{
  background:#fff;
  border-radius:20px;
  max-width:640px; width:100%;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr 1fr;
  box-shadow:0 30px 60px rgba(0,0,0,0.35);
}
.modal-media{ background:var(--lilac-050); aspect-ratio:1/1; }
.modal-media img{ width:100%; height:100%; object-fit:cover; }
.modal-body{ padding:30px 26px; position:relative; }
.modal-close{
  position:absolute; top:14px; right:14px;
  width:32px; height:32px; border-radius:50%;
  background:var(--lilac-100); border:none;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  color:var(--plum-800);
}
.modal-cat{
  font-size:11.5px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  color:var(--gold-600); margin-bottom:10px;
}
.modal-title{
  font-family:'Cormorant Garamond', serif;
  font-size:26px; font-weight:700; color:var(--plum-950);
  margin:0 0 10px; line-height:1.2;
}
.modal-specs{ font-size:13.5px; color:var(--ink-soft); margin-bottom:20px; line-height:1.6; }
.modal-buy{
  margin-top:22px;

  width:100%;
  background:#25c766; color:#fff; border:none;
  padding:15px; border-radius:12px;
  font-weight:700; font-size:14.5px;
  display:flex; align-items:center; justify-content:center; gap:9px;
  cursor:pointer;
  text-decoration:none;
}
.modal-buy svg{ width:18px; height:18px; fill:#fff; }

@media (max-width:560px){
  .modal-card{ grid-template-columns:1fr; max-height:90vh; overflow-y:auto; }
}
