/* ═══════════════════════════════════════════════
   KISNNER'S PROJECTS — White + Wine Red palette
   Rockstar-inspired cinematic scroll experience
   ═══════════════════════════════════════════════ */

:root {
  --bg:        #f7f5f2;        /* warm white */
  --bg-2:      #eeebe6;        /* off-white section */
  --wine:      #6b1e2e;        /* rojo vino principal */
  --wine-dk:   #4a1320;        /* vino oscuro */
  --wine-lt:   #8c2a3e;        /* vino claro/hover */
  --wine-pale: rgba(107,30,46,.07);
  --ink:       #1a1208;        /* texto oscuro */
  --muted:     #8a7e74;        /* texto secundario */
  --border:    rgba(107,30,46,.15);
  --white:     #ffffff;

  --ff-d: 'Bebas Neue', sans-serif;
  --ff-s: 'Cormorant Garamond', Georgia, serif;
  --ff-m: 'DM Mono', monospace;

  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --circ: cubic-bezier(0.0, 0.0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-s);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
em   { font-style: italic; }
.dm-mono { font-family: var(--ff-m); font-size: .7rem; letter-spacing: .1em; }
.container { width: min(92%, 1280px); margin-inline: auto; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--wine); }

/* ── NOISE ── */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 8000; opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ══════════════════════════════
   CURSOR
══════════════════════════════ */
.cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--wine);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .25s var(--expo), height .25s var(--expo), background .2s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 38px; height: 38px;
  border: 1.5px solid var(--wine);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  opacity: .5;
  transition: width .4s var(--expo), height .4s var(--expo), opacity .3s;
}
body.ch .cursor      { width: 18px; height: 18px; }
body.ch .cursor-ring { width: 58px; height: 58px; opacity: .8; }

/* ══════════════════════════════
   LOADER
══════════════════════════════ */
.loader {
  position: fixed; inset: 0; z-index: 9500;
  background: var(--wine-dk);
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; }
.loader-logo {
  color: rgba(247,245,242,.4); letter-spacing: .3em; font-size: .65rem;
  margin-bottom: 2.5rem;
}
.loader-track {
  width: 220px; height: 1px; background: rgba(247,245,242,.15); margin: 0 auto 1.2rem;
}
.loader-fill { height: 100%; width: 0%; background: #f7f5f2; transition: width .04s linear; }
.loader-num {
  font-family: var(--ff-d); font-size: 5rem; color: #f7f5f2;
  line-height: 1; letter-spacing: -.02em;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
}

.hero-media {
  position: absolute; inset: 0;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(247,245,242,.05) 0%,
    rgba(247,245,242,.0)  40%,
    rgba(247,245,242,.65) 75%,
    rgba(247,245,242,1)   100%
  );
}

.hero-body {
  position: relative; z-index: 2;
  padding: 0 min(6%, 80px) 5rem;
  max-width: 900px;
}

.hero-tag {
  color: var(--wine); letter-spacing: .25em; margin-bottom: 1.2rem;
  opacity: 0; transform: translateY(10px);
}

.hero-title {
  display: flex; flex-direction: column;
  line-height: .88; margin-bottom: 1.5rem;
}
.ht {
  font-family: var(--ff-d);
  font-size: clamp(5rem, 13vw, 11rem);
  color: var(--ink); letter-spacing: -.01em;
  clip-path: inset(0 0 100% 0);
  display: block; will-change: clip-path;
}
.ht-2 {
  font-family: var(--ff-s); font-weight: 300; font-style: italic;
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  color: var(--wine); letter-spacing: .02em;
  clip-path: inset(0 0 100% 0);
}

.hero-desc {
  font-size: clamp(.9rem, 1.4vw, 1.1rem);
  color: var(--muted); max-width: 46ch;
  margin-bottom: 2rem;
  opacity: 0; transform: translateY(16px);
}

.hero-cta {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .85rem 2rem;
  background: var(--wine); color: #f7f5f2;
  font-family: var(--ff-m); font-size: .7rem; letter-spacing: .12em;
  transition: background .25s, transform .3s var(--expo), gap .3s;
  opacity: 0; transform: translateY(16px);
}
.hero-cta:hover { background: var(--wine-dk); transform: translateY(-3px); gap: 1rem; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; right: min(6%, 80px);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--muted); opacity: 0;
}
.hsm {
  width: 22px; height: 36px;
  border: 1.5px solid var(--wine); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hsw {
  width: 3px; height: 6px; background: var(--wine); border-radius: 2px;
  animation: wheel 2s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0);   opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(247,245,242,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform .6s var(--expo), box-shadow .3s;
}
.nav.show { transform: translateY(0); }
.nav.scrolled { box-shadow: 0 2px 24px rgba(107,30,46,.1); }
.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem min(5%, 64px);
  max-width: 1280px; margin-inline: auto;
}
.nav-logo {
  font-family: var(--ff-d); font-size: 1.4rem; letter-spacing: .1em; color: var(--ink);
  margin-right: auto;
}
.nav-logo span { color: var(--wine); }
.nl {
  font-family: var(--ff-m); font-size: .68rem; letter-spacing: .1em; color: var(--muted);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nl::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--wine);
  transition: width .3s var(--expo);
}
.nl:hover, .nl.active { color: var(--wine); }
.nl:hover::after, .nl.active::after { width: 100%; }
.nav-cart {
  display: flex; align-items: center; gap: .45rem;
  color: var(--muted); font-family: var(--ff-m); font-size: .68rem;
}
.cart-count {
  font-family: var(--ff-d); font-size: 1.1rem; color: var(--wine);
  display: inline-block; transition: transform .4s var(--expo);
}

/* ══════════════════════════════
   MARQUEE
══════════════════════════════ */
.marquee {
  overflow: hidden;
  background: var(--wine); padding: .6rem 0;
  border-top: none; border-bottom: none;
}
.marquee-content {
  display: inline-flex; gap: 2.5rem; white-space: nowrap;
  font-family: var(--ff-m); font-size: .62rem; letter-spacing: .18em;
  color: rgba(247,245,242,.7);
  animation: mq 28s linear infinite;
}
.marquee-content b { color: rgba(247,245,242,.3); font-weight: 400; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════
   INTRO
══════════════════════════════ */
.s-intro {
  position: relative; overflow: hidden;
  padding: 10rem 0 8rem;
  background: var(--bg);
}
.s-num { color: var(--wine); display: block; margin-bottom: 1.5rem; }
.s-intro-h {
  font-family: var(--ff-s); font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.1; color: var(--ink);
  margin-bottom: 1.75rem;
  clip-path: inset(0 0 100% 0);
}
.s-intro-h em { color: var(--wine); }
.s-intro-p {
  font-size: 1.05rem; color: var(--muted); max-width: 50ch;
  opacity: 0; transform: translateY(20px);
}
.bg-word {
  position: absolute; bottom: -5rem; right: -3rem;
  font-family: var(--ff-d); font-size: clamp(10rem, 22vw, 20rem);
  color: rgba(107,30,46,.05); pointer-events: none;
  line-height: 1; letter-spacing: -.03em; white-space: nowrap;
  will-change: transform;
}

/* ══════════════════════════════
   PRODUCTOS
══════════════════════════════ */
.s-productos { padding-bottom: 0; background: var(--bg); }
.s-hdr {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--border);
}
.s-title {
  font-family: var(--ff-d); font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  color: var(--ink); letter-spacing: -.01em;
}
.s-hdr-line { flex: 1; height: 1px; background: var(--border); margin-bottom: 4px; }

/* Product rows */
.prow {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 580px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.prow-img-side {
  position: relative; overflow: hidden;
  background: var(--bg-2);
}
.prow-img-clip {
  position: absolute; inset: 0; overflow: hidden;
}
.prow-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
  transition: filter .5s;
  filter: saturate(.9);
}
.prow:hover .prow-img { filter: saturate(1.1); }

.p-idx {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  font-size: 6rem; color: rgba(107,30,46,.12);
  font-family: var(--ff-d); line-height: 1;
  pointer-events: none;
}

.prow-info-side {
  padding: clamp(3rem, 6vw, 6rem);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
  border-left: 1px solid var(--border);
}
.prow-r .prow-info-side { border-left: none; border-right: 1px solid var(--border); }

.p-cat { color: var(--wine); display: block; margin-bottom: .75rem; }
.p-name {
  font-family: var(--ff-d); font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: .88; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 1.5rem;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}
.p-desc {
  font-size: .9rem; color: var(--muted); max-width: 46ch;
  line-height: 1.8; margin-bottom: 2.5rem;
  opacity: 0; transform: translateY(18px);
}
.p-foot {
  display: flex; align-items: center; gap: 2rem;
  opacity: 0; transform: translateY(18px);
}
.p-price { font-family: var(--ff-m); font-size: .9rem; color: var(--wine); }

/* ── btn comprar ── */
.btn-buy {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.5rem;
  background: transparent; border: 1.5px solid var(--wine);
  color: var(--wine);
  font-family: var(--ff-m); font-size: .7rem; letter-spacing: .1em;
  cursor: none;
  transition: background .25s, color .25s, transform .3s var(--expo);
  position: relative; overflow: hidden;
}
.btn-buy::before {
  content: ''; position: absolute; inset: 0;
  background: var(--wine); transform: translateX(-101%);
  transition: transform .3s var(--expo);
}
.btn-buy:hover::before { transform: translateX(0); }
.btn-buy:hover { color: #f7f5f2; transform: translateY(-2px); }
.btn-buy span { position: relative; z-index: 1; }
.btn-buy.added { background: var(--wine); color: #f7f5f2; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 2.5rem; right: 2.5rem;
  background: var(--wine); color: #f7f5f2;
  padding: .85rem 1.6rem;
  font-family: var(--ff-m); font-size: .72rem; letter-spacing: .07em;
  display: flex; align-items: center; gap: .75rem;
  z-index: 600; pointer-events: none;
  transform: translateY(120%) scale(.95); opacity: 0;
  transition: transform .55s var(--expo), opacity .4s;
}
.toast.on { transform: translateY(0) scale(1); opacity: 1; }

/* ══════════════════════════════
   CALLOUT
══════════════════════════════ */
.s-callout {
  padding: 9rem 0;
  background: var(--wine);
  overflow: hidden;
}
.callout-h {
  font-family: var(--ff-s); font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300; line-height: 1; color: #f7f5f2;
  clip-path: inset(0 0 100% 0);
}
.callout-h em { color: rgba(247,245,242,.55); }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
.s-contacto { padding: 9rem 0; background: var(--bg); }
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 8rem; align-items: start;
}
.c-left .s-title { margin: .5rem 0 1.25rem; }
.c-tagline { font-size: 1.05rem; font-style: italic; color: var(--muted); margin-bottom: 2.5rem; }
.c-info { display: flex; flex-direction: column; gap: .75rem; }
.c-row  { display: flex; gap: 1.25rem; }
.c-lbl  { color: var(--wine); min-width: 3.5rem; }

/* Form */
.fg { margin-bottom: 1.75rem; }
.fl {
  display: block; color: var(--muted); margin-bottom: .45rem;
  text-transform: uppercase; font-size: .62rem; letter-spacing: .18em;
}
.fi {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid var(--border);
  color: var(--ink); font-family: var(--ff-s); font-size: 1rem;
  padding: .7rem .15rem;
  outline: none; transition: border-color .25s;
  caret-color: var(--wine);
}
.fi::placeholder { color: #cac4bc; }
.fi:focus { border-bottom-color: var(--wine); }
.fi.error { border-bottom-color: #c0392b; }
.fi-ta { resize: vertical; min-height: 120px; }
.fe {
  display: block; font-family: var(--ff-m); font-size: .62rem;
  color: #c0392b; margin-top: .35rem; min-height: 1em;
}
.btn-send {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 2.2rem;
  background: transparent; border: 1.5px solid var(--wine);
  color: var(--wine);
  font-family: var(--ff-m); font-size: .7rem; letter-spacing: .12em;
  cursor: none; overflow: hidden; position: relative;
  transition: color .3s, transform .3s var(--expo);
}
.btn-send::before {
  content: ''; position: absolute; inset: 0;
  background: var(--wine); transform: translateX(-101%);
  transition: transform .35s var(--expo);
}
.btn-send:hover::before { transform: translateX(0); }
.btn-send:hover { color: #f7f5f2; transform: translateX(5px); }
.btn-send span { position: relative; z-index: 1; }
.btn-send:disabled { opacity: .4; pointer-events: none; }
.f-ok {
  display: none; margin-top: 1.25rem;
  font-family: var(--ff-m); font-size: .7rem; letter-spacing: .07em;
  color: var(--wine-lt);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(107,30,46,.25);
  background: rgba(107,30,46,.05);
}
.f-ok.on { display: block; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer { padding: 4rem 0 2rem; background: var(--wine-dk); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 2.5rem; margin-bottom: 2rem;
  border-bottom: 1px solid rgba(247,245,242,.1);
}
.footer-logo {
  font-family: var(--ff-d); font-size: 2.2rem; letter-spacing: .06em; line-height: .88;
  color: #f7f5f2;
}
.footer-logo em { font-family: var(--ff-s); color: rgba(247,245,242,.45); font-size: .65em; }
.footer-nav { display: flex; flex-direction: column; gap: .75rem; }
.footer-nav a { color: rgba(247,245,242,.4); font-size: .68rem; letter-spacing: .1em; transition: color .2s; }
.footer-nav a:hover { color: #f7f5f2; }
.footer-bot {
  display: flex; justify-content: space-between;
  color: rgba(247,245,242,.3); font-size: .62rem; letter-spacing: .1em;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .prow { grid-template-columns: 1fr; min-height: auto; }
  .prow-r .prow-info-side { order: -1; }
  .prow-img-side { height: 400px; }
  .prow-img-clip { position: relative; height: 400px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-bot { flex-direction: column; gap: .4rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-body { padding-bottom: 4rem; }
}
