/* ============================================================
   KÔR — Bienestar íntimo sin tabú
   Tokens: fondo #0b0a09, superficie #141210, oro #cda15a → #f0d99a,
   texto crema #f3ede2, texto muted #9c9284
   Display: Cormorant Garamond (itálica para el logo) / Body: Jost
   ============================================================ */

:root{
  --bg:            #0b0a09;
  --surface:       #141210;
  --surface-2:     #1c1916;
  --line:          #2b2620;
  --cream:         #f3ede2;
  --muted:         #9c9284;
  --gold-1:        #cda15a;
  --gold-2:        #f0d99a;
  --gold-soft:     rgba(205,161,90,0.14);
  --radius:        2px;
  --ease:          cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
::selection{ background: var(--gold-1); color:#000; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Shared type ---------- */
h1,h2,h3{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  color: var(--cream);
}
.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 18px; font-weight:500;
}
.rule{ width: 30px; height:1px; background: linear-gradient(90deg,var(--gold-1),transparent); display:inline-block; }
.rule.light{ background: linear-gradient(90deg,var(--gold-2),transparent); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 15px 30px;
  font-size: 13.5px; letter-spacing:.06em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-gold{
  background: linear-gradient(135deg, var(--gold-2), var(--gold-1));
  color: #1a1408;
  font-weight: 500;
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(205,161,90,0.55); }
.btn-ghost{
  border-color: rgba(243,237,226,0.3);
  color: var(--cream);
}
.btn-ghost:hover{ border-color: var(--gold-1); color: var(--gold-2); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 60;
  background: rgba(11,10,9,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 78px;
}
.logo-mark{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 30px;
  letter-spacing:.04em;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-1));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.logo-mark.small{ font-size: 24px; }
.main-nav{ display:flex; gap: 40px; }
.main-nav a{
  font-size: 13.5px; letter-spacing: .04em; color: var(--muted);
  transition: color .25s;
  position: relative;
}
.main-nav a:hover{ color: var(--gold-2); }
.header-actions{ display:flex; align-items:center; gap: 14px; }
.icon-btn{
  position: relative;
  background: transparent; border: 1px solid var(--line);
  width: 40px; height:40px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--cream);
  transition: border-color .25s, color .25s;
}
.icon-btn:hover{ border-color: var(--gold-1); color: var(--gold-2); }
.cart-count{
  position:absolute; top:-6px; right:-6px;
  background: var(--gold-1); color:#1a1408;
  font-size: 10.5px; font-weight:600;
  width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.nav-toggle{ display:none; }

/* ---------- Hero ---------- */
.hero{ padding: 96px 0 80px; position: relative; }
.hero-inner{
  display:grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items:center;
}
.hero-copy h1{ font-size: 58px; margin-bottom: 22px; }
.hero-sub{
  color: var(--muted); font-size: 17px; line-height:1.6;
  max-width: 440px; margin-bottom: 34px;
}
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; }

.hero-frame{
  position: relative;
  aspect-ratio: 4/3.1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 68% 32%, rgba(205,161,90,0.14), transparent 45%),
    linear-gradient(160deg, rgba(11,10,9,0.92) 0%, rgba(12,11,9,0.96) 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}
.hero-frame::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(11,10,9,0.75) 100%);
  pointer-events: none;
}
.hero-glow{
  position:absolute; width: 70%; height:70%;
  right: 6%; top: 8%;
  background: radial-gradient(circle, rgba(240,217,154,0.35), transparent 70%);
  filter: blur(35px);
  opacity: .45;
}
.hero-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.92) saturate(1.05);
  transition: transform .6s ease;
}
.hero-image:hover{
  transform: scale(1.02);
}

/* ---------- Trust bar ---------- */
.trust-bar{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-grid{
  display:grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; padding: 28px 32px;
}
.trust-item{
  display:flex; align-items:center; gap: 12px;
  font-size: 13px; color: var(--muted); letter-spacing:.02em;
}
.trust-item svg{ width:22px; height:22px; color: var(--gold-1); flex-shrink:0; }

/* ---------- Catalog ---------- */
.catalog{ padding: 100px 0 60px; }
.section-head{ max-width: 620px; margin-bottom: 46px; }
.section-head h2{ font-size: 42px; margin-bottom: 14px; }
.section-sub{ color: var(--muted); font-size: 15px; }
.section-sub code{ color: var(--gold-2); font-family: monospace; }

.filter-bar{ display:flex; flex-wrap:wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 20px;
  font-size: 12.5px; letter-spacing:.04em; text-transform: capitalize;
  border-radius: 999px;
  transition: all .25s;
}
.filter-chip:hover{ border-color: var(--gold-1); color: var(--gold-2); }
.filter-chip.active{
  background: var(--gold-soft); border-color: var(--gold-1); color: var(--gold-2);
}

.product-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition: border-color .3s, transform .3s;
}
.product-card:hover{ border-color: var(--gold-1); transform: translateY(-4px); }

.product-media{
  position:relative;
  aspect-ratio: 1/1;
  background: linear-gradient(155deg, #201c17, #100e0c);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.product-media img{ width:100%; height:100%; object-fit: cover; }
.product-placeholder{
  width: 54px; height:54px; opacity:.35; color: var(--gold-1);
}
.product-tag{
  position:absolute; top:12px; left:12px;
  font-size: 10.5px; letter-spacing:.08em; text-transform:uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(11,10,9,0.75); color: var(--gold-2);
  border: 1px solid rgba(205,161,90,0.4);
}
.product-tag.out{ color:#e0a3a3; border-color: rgba(224,163,163,0.4); }

.product-body{ padding: 18px 18px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-cat{ font-size: 11px; letter-spacing:.08em; text-transform:uppercase; color: var(--muted); }
.product-name{ font-size: 18px; font-family:'Cormorant Garamond',serif; font-weight:500; }
.product-desc{ font-size: 13px; color: var(--muted); line-height:1.5; flex:1; }
.detail-link{
  align-self: flex-start;
  background: none; border: none; padding: 0;
  font-size: 12px; letter-spacing:.04em; color: var(--gold-1);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.detail-link:hover{ color: var(--gold-2); }
.product-media{ cursor: pointer; }
.product-footer{ display:flex; align-items:center; justify-content:space-between; margin-top:6px; }
.price-now{ font-size: 17px; color: var(--gold-2); font-weight:500; }
.price-before{ font-size: 12px; color: var(--muted); text-decoration: line-through; margin-right:6px; }
.add-btn{
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line);
  background: transparent; color: var(--cream);
  display:flex; align-items:center; justify-content:center;
  transition: all .25s;
}
.add-btn:hover{ background: var(--gold-1); border-color: var(--gold-1); color:#1a1408; }
.add-btn:disabled{ opacity:.3; cursor:not-allowed; }

/* ---------- Promise ---------- */
.promise{ padding: 90px 0; background: var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.promise-inner{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items:center; }
.promise-text h2{ font-size: 36px; margin-bottom:18px; }
.promise-text p{ color: var(--muted); font-size:15.5px; line-height:1.7; max-width: 480px; }
.promise-quote{
  border-left: 1px solid var(--gold-1);
  padding-left: 28px;
}
.promise-quote p{
  font-family:'Cormorant Garamond',serif; font-style: italic;
  font-size: 26px; color: var(--gold-2); margin:0 0 10px;
}
.promise-quote span{ font-size: 12.5px; color: var(--muted); letter-spacing:.05em; }

/* ---------- Contact CTA ---------- */
.contact-cta{ padding: 110px 0; text-align:center; }
.contact-inner{ display:flex; flex-direction:column; align-items:center; }
.contact-cta h2{ font-size: 44px; margin-bottom: 16px; }
.contact-cta p{ color: var(--muted); max-width: 460px; margin-bottom: 34px; }
.contact-actions{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-inner{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p{ color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.footer-cols{ display:grid; grid-template-columns: 1fr 1fr; gap: 30px; justify-self:end; }
.footer-col h4{ font-size: 12px; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-2); margin: 0 0 14px; font-weight: 500; }
.footer-col a{ display:block; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover{ color: var(--cream); }
.footer-legal{ border-top:1px solid var(--line); padding-top: 22px; }
.footer-legal p{ color: var(--muted); font-size: 12px; text-align:center; margin:0; }

/* ---------- Cart drawer ---------- */
.cart-overlay{
  position: fixed; inset:0; background: rgba(0,0,0,0.55);
  opacity:0; pointer-events:none; transition: opacity .3s; z-index: 90;
}
.cart-overlay.open{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position: fixed; top:0; right:0; height:100%;
  width: 400px; max-width: 92vw;
  background: var(--surface); border-left:1px solid var(--line);
  z-index: 95; display:flex; flex-direction:column;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.cart-drawer.open{ transform: translateX(0); }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding: 24px; border-bottom:1px solid var(--line); }
.cart-head h3{ font-size: 22px; }
.cart-items{ flex:1; overflow-y:auto; padding: 10px 24px; }
.cart-item{ display:flex; gap:14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items:center; }
.cart-item-media{ width:56px; height:56px; border-radius:4px; background: var(--surface-2); flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.cart-item-media img{ width:100%; height:100%; object-fit:cover; }
.cart-item-info{ flex:1; }
.cart-item-info .name{ font-size: 14px; margin-bottom:4px; }
.cart-item-info .meta{ font-size: 12.5px; color: var(--muted); display:flex; align-items:center; gap:10px; }
.qty-btn{ width:22px; height:22px; border-radius:50%; border:1px solid var(--line); background:transparent; color:var(--cream); font-size:13px; display:inline-flex; align-items:center; justify-content:center; }
.remove-btn{ color: var(--muted); font-size: 12px; text-decoration: underline; margin-left: auto; }
.cart-empty{ color: var(--muted); font-size: 14px; text-align:center; padding: 40px 0; }
.cart-footer{ padding: 20px 24px 26px; border-top:1px solid var(--line); }
.cart-total{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; font-size:15px; }
.cart-total strong{ color: var(--gold-2); font-size: 20px; }
.cart-note{ font-size: 11.5px; color: var(--muted); text-align:center; margin: 12px 0 0; }

/* ---------- Product detail modal ---------- */
body.no-scroll{ overflow: hidden; }
.detail-overlay{
  position: fixed; inset:0; background: rgba(0,0,0,0.65);
  opacity:0; pointer-events:none; transition: opacity .3s; z-index: 120;
}
.detail-overlay.open{ opacity:1; pointer-events:auto; }
.detail-modal{
  position: fixed; top:50%; left:50%;
  transform: translate(-50%,-46%) scale(.97);
  width: min(880px, 92vw);
  max-height: 88vh; overflow-y:auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 130;
  opacity: 0; pointer-events:none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.detail-modal.open{ opacity:1; pointer-events:auto; transform: translate(-50%,-50%) scale(1); }
.detail-close{
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0;
  background: var(--bg);
}
.detail-inner{
  display:grid; grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 8px 40px 40px;
  clear: both;
}
.detail-media{ display:flex; flex-direction:column; gap:14px; }
.detail-main-media{
  aspect-ratio: 1/1;
  background: linear-gradient(155deg, #201c17, #100e0c);
  border-radius: 4px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.detail-main-media img{ width:100%; height:100%; object-fit:cover; }
.detail-main-media .product-placeholder{ width: 64px; height:64px; }
.detail-thumbs{ display:flex; gap: 10px; }
.detail-thumb{
  width: 68px; height:68px; border-radius:4px;
  border: 1px solid var(--line); background: var(--surface-2);
  overflow:hidden; padding:0; opacity:.6;
  transition: opacity .2s, border-color .2s;
}
.detail-thumb img{ width:100%; height:100%; object-fit:cover; }
.detail-thumb.active,.detail-thumb:hover{ opacity:1; border-color: var(--gold-1); }

.detail-info{ display:flex; flex-direction:column; padding-top: 6px; }
.detail-info h3{ font-size: 30px; margin: 8px 0 14px; }
.detail-desc{ color: var(--muted); font-size: 14.5px; line-height:1.7; margin-bottom: 22px; }
.detail-price{ margin-bottom: 6px; }
.detail-price .price-now{ font-size: 24px; }
.detail-outofstock{ color:#e0a3a3; font-size: 13px; margin: 6px 0 10px; }
.detail-actions{ display:flex; flex-direction:column; gap: 12px; margin-top: auto; padding-top: 20px; }

/* ---------- Floating WhatsApp button ---------- */
.floating-whatsapp{
  position: fixed; right: 24px; bottom: 24px;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 28px -8px rgba(37,211,102,0.6);
  z-index: 80;
  transition: transform .3s var(--ease);
}
.floating-whatsapp::before{
  content:'';
  position:absolute; inset:0; border-radius:50%;
  border: 2px solid rgba(37,211,102,0.6);
  animation: wa-pulse 2.2s ease-out infinite;
}
.floating-whatsapp:hover{ transform: scale(1.08); }
@keyframes wa-pulse{
  0%{ transform: scale(1); opacity:.7; }
  100%{ transform: scale(1.6); opacity:0; }
}

/* ---------- Age gate ---------- */
.age-gate{
  position: fixed; inset:0; background: var(--bg);
  z-index: 200; display:flex; align-items:center; justify-content:center;
  padding: 24px;
}
.age-gate.hidden{ display:none; }
.age-box{ text-align:center; max-width: 380px; }
.age-box .logo-mark{ font-size: 40px; margin-bottom: 20px; display:block; }
.age-box p{ color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.age-box h3{ font-size: 26px; margin: 10px 0 26px; }
.age-actions{ display:flex; flex-direction:column; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-copy h1{ font-size: 42px; }
  .trust-grid{ grid-template-columns: repeat(2,1fr); }
  .product-grid{ grid-template-columns: repeat(2,1fr); }
  .promise-inner{ grid-template-columns: 1fr; }
  .promise-quote{ border-left:none; border-top:1px solid var(--gold-1); padding-left:0; padding-top:20px; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-cols{ justify-self:start; grid-template-columns: 1fr 1fr; }
  .detail-inner{ grid-template-columns: 1fr; gap: 20px; padding: 8px 24px 32px; }
}
@media (max-width: 560px){
  .wrap{ padding: 0 20px; }
  .product-grid{ grid-template-columns: 1fr 1fr; gap:14px; }
  .hero-copy h1{ font-size: 34px; }
  .contact-cta h2{ font-size: 32px; }
  .floating-whatsapp{ width: 52px; height:52px; right: 16px; bottom: 16px; }
  .detail-modal{ width: 94vw; max-height: 92vh; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
