﻿/* ---------------------------------------------------------------------------------------
   base.css - Variables, Reset, Tipografía
   Tequila Mapelo © 2026
   Eduardo López
---------------------------------------------------------------------------------------- */

/* VARIABLES */
:root {
  /* Paleta Cromática - Brandbook Oficial Mapelo
     Pantone refs: 7527C, Cool Gray 11C, 7583C, 181C, 7585C, 5483C, Black 6C */
  --perla: #FAF8F5;
  /* Perla - Pantone 7527 C */
  --carbon: #141414;
  /* Carbón - Pantone Black 6 C */
  --carbon2: #1c1c1c;
  --carbon3: #0e0e0e;
  --agave: #648C96;
  /* Agave - Pantone 5483 C */
  --agave2: #557a83;
  --anejo: #505250;
  /* Añejo - Pantone Cool Gray 11 C */
  --reposado: #5F3C28;
  /* Reposado - Pantone 7583 C */
  --barrel: #64281E;
  /* Barrica - Pantone 181 C */
  --cobre: #A56441;
  /* Cobre - Pantone 7585 C */
  --gold: #C9A255;
  /* Foil Oro - KURZ Luxor 396 */
  --tierra: #5F3C28;
  /* alias reposado */
  --cream: #F0EBE0;
  --muted: rgba(250, 248, 245, 0.45);
  --muted2: rgba(250, 248, 245, 0.2);
  --border: rgba(255, 255, 255, 0.06);

  /* Tipografí­a */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Spacing */
  --section-pad: 140px;
  --side-pad: 64px;
  --max-width: 1200px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  /* GSAP + Lenis manejan el scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Lenis overrides */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  background: var(--carbon);
  color: var(--perla);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: none;
}

small {
  font-size: 0.5em;
}

/* TIPOGRAFÍA BASE */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* UTILIDADES */
.s-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--agave);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.s-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--agave);
  flex-shrink: 0;
}

/* GRAIN OVERLAY */
.grain {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* GSAP REVEAL */
.gsap-reveal {
  opacity: 0;
}

/* SPLIT CHAR (for hero title animation) */
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--agave), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 900;
  pointer-events: none;
}

/* HERO CTA BUTTON */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--agave);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(100, 140, 150, .25);
  transition: color .3s, border-color .3s, gap .3s var(--ease-smooth);
  opacity: 0;
}

.btn-hero:hover {
  color: var(--gold);
  border-color: var(--gold);
  gap: 18px;
}

.btn-hero svg {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* IMAGEN BOTELLA (cuando esté disponible) */
.bottle-img {
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 0 80px rgba(100, 140, 150, .2));
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
  :root {
    --section-pad: 100px;
    --side-pad: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
    --side-pad: 24px;
  }

  body {
    cursor: auto;
  }

  #cur,
  #cur-ring {
    display: none;
  }
}