/* ==============================================
   EMANUTREK TIENDA — Tokens idénticos a main site
   ============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #08080e;
  --bg-2:      #0e0e18;
  --surface:   #131320;
  --surface-2: #1a1a2a;
  --border:    rgba(255,255,255,0.07);
  --gold:      #c8a05a;
  --gold-dim:  rgba(200,160,90,0.15);
  --gold-glow: rgba(200,160,90,0.08);
  --ice:       #8ab4c8;
  --text:      #e8e4dc;
  --text-dim:  #9a968e;
  --text-faint:#4a4840;
  --radius:    3px;
  --ease:      cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: none; font: inherit; color: inherit; }

/* Custom cursor */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s;
  opacity: 0; mix-blend-mode: screen;
}
.cursor.hover {
  width: 40px; height: 40px;
  background: rgba(200,160,90,.2); border: 1px solid var(--gold);
}

/* Grain overlay */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px; opacity: .035;
  pointer-events: none; z-index: 8000; mix-blend-mode: overlay;
}

/* ==============================================
   LAYOUT
   ============================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem,5vw,4rem); }

/* ==============================================
   SCROLL REVEAL
   ============================================== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal[data-split] { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ==============================================
   TYPOGRAPHY
   ============================================== */
.section-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem,6vw,5rem); line-height: .95;
  letter-spacing: .02em; color: var(--text); margin-bottom: 1.5rem;
}
.section-sub { font-size: 1rem; color: var(--text-dim); max-width: 48ch; margin-top: .5rem; }
.section-header { margin-bottom: clamp(3rem,6vw,4.5rem); }

/* ==============================================
   NAV
   ============================================== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.5rem,5vw,4rem);
  transition: background .5s var(--ease), padding .4s var(--ease), backdrop-filter .5s;
}
#nav.scrolled {
  background: rgba(8,8,14,.92); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem;
  letter-spacing: .08em; color: var(--text); transition: color .3s;
}
.nav-brand span { color: var(--gold); }
.nav-brand:hover { color: var(--gold); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim); transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-tienda {
  color: var(--gold) !important;
  border: 1px solid rgba(200,160,90,.4) !important;
  padding: .4rem 1rem; border-radius: var(--radius);
  transition: background .3s, border-color .3s !important;
}
.nav-tienda::after { display: none !important; }
.nav-tienda:hover { background: var(--gold-dim); border-color: var(--gold) !important; }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px;
}
.menu-toggle span {
  display: block; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease), opacity .25s; transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 900; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem;
  letter-spacing: .06em; color: var(--text-dim); transition: color .3s;
}
.mobile-menu a:hover, .mobile-menu a.gold { color: var(--gold); }

/* ==============================================
   SPA PAGE VIEWS
   ============================================== */
.page-view { display: none; }
.page-view.active { display: block; }

/* Breadcrumb */
.breadcrumb {
  padding: 5.5rem clamp(1.5rem,5vw,4rem) 0;
  font-size: .73rem; color: var(--text-faint); letter-spacing: .06em;
}
.breadcrumb a { color: var(--text-faint); transition: color .3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 .45rem; }

/* ==============================================
   TIENDA HERO
   ============================================== */
.store-hero {
  position: relative; height: 68vh; min-height: 460px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.store-hero-bg {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center 15%;
  will-change: transform;
}
.store-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,14,.98) 0%, rgba(8,8,14,.55) 45%, rgba(8,8,14,.25) 100%);
}
.store-hero-content {
  position: relative; z-index: 2;
  padding: clamp(2rem,6vw,5rem) clamp(1.5rem,5vw,4rem) clamp(3.5rem,8vw,5.5rem);
  max-width: 800px;
}
.store-hero-label {
  font-size: .63rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem;
  opacity: 0; animation: fadeUp .9s var(--ease) .2s forwards;
}
.store-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem,4.8vw,4.6rem); line-height: .92;
  letter-spacing: .02em; color: var(--text); margin-bottom: 1.3rem;
  opacity: 0; animation: fadeUp .9s var(--ease) .35s forwards;
}
.store-hero-sub {
  font-size: clamp(.9rem,1.8vw,1.1rem); color: rgba(232,228,220,.62);
  line-height: 1.65; max-width: 54ch;
  opacity: 0; animation: fadeUp .9s var(--ease) .52s forwards;
}

/* ==============================================
   PRODUCTS SECTION
   ============================================== */
.store-products-section { padding: clamp(4.5rem,10vw,7rem) 0; background: var(--bg); }

.store-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem; align-items: start;
}

.store-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.store-card:hover {
  border-color: rgba(200,160,90,.28);
  box-shadow: 0 8px 40px rgba(200,160,90,.06);
  transform: translateY(-4px);
}

.store-card.bundle {
  border-color: rgba(200,160,90,.38);
  box-shadow: 0 0 0 1px rgba(200,160,90,.1), 0 8px 28px rgba(200,160,90,.07);
  margin-top: -10px;
}
.store-card.bundle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(200,160,90,.3), 0 12px 48px rgba(200,160,90,.12);
  transform: translateY(-6px);
}

.popular-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--bg);
  font-size: .58rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: .32rem 1.1rem;
  border-radius: 0 0 4px 4px; white-space: nowrap; z-index: 2;
}

.card-cover {
  width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative;
  background: linear-gradient(145deg, #0d1b2a 0%, #0a2240 60%, #081628 100%);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.store-card:hover .card-cover img { transform: scale(1.04); }

.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card-sub { font-size: .78rem; color: var(--gold); font-weight: 500; letter-spacing: .04em; }
.card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.45rem;
  letter-spacing: .03em; color: var(--text); line-height: 1.05;
}
.card-desc { font-size: .85rem; color: var(--text-dim); line-height: 1.65; }

.bundle-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.bundle-list li { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--text-dim); }
.bundle-list li::before { content: '\2705'; font-size: .7rem; }

.card-price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price-currency { font-size: .9rem; color: var(--text-dim); }
.price-amount {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem;
  letter-spacing: .04em; color: var(--text); line-height: 1;
}
.price-strike { font-size: 1rem; color: var(--text-faint); text-decoration: line-through; }
.price-note { font-size: .7rem; color: var(--text-faint); letter-spacing: .05em; margin-top: -.2rem; }

.card-ctas { display: flex; flex-direction: column; gap: .55rem; margin-top: auto; padding-top: .9rem; }

.btn-primary {
  display: block; text-align: center; width: 100%;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold); color: var(--bg);
  padding: .88rem 1.5rem; border-radius: var(--radius);
  transition: background .3s, box-shadow .3s; cursor: pointer;
}
.btn-primary:hover { background: #d9b36a; box-shadow: 0 4px 20px rgba(200,160,90,.3); }

.btn-secondary {
  display: block; text-align: center; width: 100%;
  font-size: .68rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border);
  padding: .72rem 1.5rem; border-radius: var(--radius);
  transition: border-color .3s, color .3s; cursor: pointer;
}
.btn-secondary:hover { border-color: rgba(200,160,90,.35); color: var(--gold); }

/* ==============================================
   AUTHORITY SECTION
   ============================================== */
.authority-section { padding: clamp(4rem,10vw,6.5rem) 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.authority-inner { display: grid; grid-template-columns: 180px 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.authority-photo {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(200,160,90,.35); box-shadow: 0 0 0 8px rgba(200,160,90,.05); margin-top: .3rem;
}
.authority-photo img { object-position: center top; }
.authority-text { display: flex; flex-direction: column; gap: 1.1rem; }
.authority-bio { font-size: .98rem; color: var(--text-dim); line-height: 1.78; }
.authority-bio strong { color: var(--text); }
.credentials { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .4rem; }
.credential {
  font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,160,90,.28);
  padding: .28rem .85rem; border-radius: 100px; background: var(--gold-dim);
}

/* ==============================================
   GUARANTEE SECTION
   ============================================== */
.guarantee-section { padding: clamp(3rem,8vw,5.5rem) 0; background: var(--bg); border-top: 1px solid var(--border); }
.guarantee-inner { max-width: 600px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.guarantee-icon { width: 50px; height: 50px; color: var(--gold); opacity: .9; }
.guarantee-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem,4vw,2.8rem); letter-spacing: .04em; color: var(--text); line-height: 1.05; }
.guarantee-text { font-size: .93rem; color: var(--text-dim); line-height: 1.72; max-width: 44ch; }

/* ==============================================
   DETAIL HERO
   ============================================== */
.detail-hero { position: relative; height: 72vh; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.detail-hero-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; will-change: transform; }
.detail-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,14,.99) 0%, rgba(8,8,14,.58) 45%, rgba(8,8,14,.28) 100%); }
.detail-hero-content { position: relative; z-index: 2; padding: clamp(2rem,6vw,4.5rem) clamp(1.5rem,5vw,4rem) clamp(3.5rem,7vw,5.5rem); max-width: 900px; }
.detail-hero-tag {
  display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bg); background: var(--gold);
  padding: .28rem .8rem; border-radius: var(--radius); margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp .9s var(--ease) .2s forwards;
}
.detail-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.8rem,9.5vw,8.5rem); line-height: .88;
  letter-spacing: .02em; color: var(--text); margin-bottom: 1rem;
  opacity: 0; animation: fadeUp .9s var(--ease) .35s forwards;
}
.detail-hero-sub {
  font-size: clamp(.9rem,1.8vw,1.1rem); color: rgba(232,228,220,.62);
  line-height: 1.62; margin-bottom: 2rem; max-width: 58ch;
  opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards;
}
.detail-hero-cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s var(--ease) .63s forwards; }
.detail-price-display { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; letter-spacing: .06em; color: var(--gold); line-height: 1; }

/* ==============================================
   DETAIL BODY
   ============================================== */
.detail-body { padding: clamp(4rem,9vw,7rem) 0; background: var(--bg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,5.5rem); }
.detail-block { display: flex; flex-direction: column; gap: 1.2rem; }
.detail-block-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; letter-spacing: .04em; color: var(--text); line-height: 1; }

.for-who-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.for-who-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: .93rem; color: var(--text-dim); line-height: 1.58; }
.for-who-list li::before { content: ''; display: block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-top: .5rem; flex-shrink: 0; }

.learn-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.learn-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .88rem; color: var(--text-dim); line-height: 1.58;
  padding: .55rem .7rem; border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .25s, border-color .25s, color .25s;
}
.learn-list li:hover { background: var(--surface); border-left-color: var(--gold); color: var(--text); }
.learn-list li::before { content: '\2192'; color: var(--gold); font-size: .78rem; margin-top: .07rem; flex-shrink: 0; }

/* ==============================================
   TESTIMONIALS
   ============================================== */
.testimonials-section { padding: clamp(4rem,8vw,6rem) 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  min-height: 180px; align-items: center; justify-content: center; text-align: center;
}
.t-stars { display: flex; gap: .3rem; justify-content: center; }
.t-star { width: 16px; height: 16px; background: var(--surface-2); clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.t-soon { font-size: .72rem; color: var(--text-faint); letter-spacing: .12em; text-transform: uppercase; }

/* ==============================================
   PRICE CTA FINAL
   ============================================== */
.price-cta-section { padding: clamp(4rem,8vw,6rem) 0; background: var(--bg); border-top: 1px solid var(--border); }
.price-cta-inner { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.price-cta-amount { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; letter-spacing: .06em; color: var(--text); line-height: 1; }
.price-cta-note { font-size: .82rem; color: var(--text-dim); margin-top: -.6rem; }
.btn-cta-large {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; background: var(--gold); color: var(--bg);
  padding: 1.1rem 3.2rem; border-radius: var(--radius);
  transition: background .3s, box-shadow .3s; cursor: pointer;
}
.btn-cta-large:hover { background: #d9b36a; box-shadow: 0 6px 28px rgba(200,160,90,.3); }
.trust-line { font-size: .75rem; color: var(--text-faint); letter-spacing: .05em; display: flex; align-items: center; gap: .5rem; justify-content: center; flex-wrap: wrap; }

/* ==============================================
   FOOTER
   ============================================== */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: clamp(3rem,7vw,5rem) 0 clamp(2rem,4vw,3rem); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem,5vw,4rem); display: flex; flex-direction: column; align-items: center; gap: 2.5rem; text-align: center; }
.footer-name { font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem; letter-spacing: .1em; color: var(--text); line-height: 1; }
.footer-tagline { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-faint); margin-top: .5rem; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: .68rem; color: var(--text-faint); letter-spacing: .06em; padding-top: 1.5rem; border-top: 1px solid var(--border); width: 100%; }

/* ==============================================
   KEYFRAMES
   ============================================== */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ==============================================
   RESPONSIVE — TABLET
   ============================================== */
@media (max-width: 960px) {
  body { cursor: auto; }
  .cursor { display: none; }
  button { cursor: pointer; }
  a { cursor: pointer; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .store-cards-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .store-card.bundle { margin-top: 0; }
  .two-col { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .authority-inner { grid-template-columns: 1fr; }
  .authority-photo { margin: 0 auto; }
}

@media (max-width: 600px) {
  .store-hero-title { font-size: clamp(2.8rem,13vw,4.5rem); }
  .detail-hero-title { font-size: clamp(3rem,14vw,5rem); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .detail-hero-cta-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn-primary { max-width: 320px; }
}
