/* ===== PAKO MARTÍNEZ — MASTER BRAND STYLES (AWWWARDS EDITION + CUSTOM MAGNETIC CURSOR) ===== */

/* 1. BRAND DESIGN SYSTEM TOKENS (OFFICIAL PACO MARTÍNEZ MANUAL) */
:root {
  --pako-green: #00984A;   /* PANTONE® 17-6154 TCX Green Bee */
  --pako-neon: #00984A;    /* Primary Brand Green (Sin neón estridente) */
  --pako-navy: #0F1324;    /* PANTONE® 19-3911 TCX Black Beauty */
  --pako-dark: #0F1324;    /* PANTONE® 19-3911 TCX Black Beauty */
  --pako-forest: #16442D;  /* PANTONE® 19-5220 TCX Forest */
  --pako-mint: #B3DAC4;    /* PANTONE® 12-0107 TCX Soft Mint */
  --pako-slate: #5C6079;   /* PANTONE® 7703C Slate Grey */
  
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Metropolis', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 2. SELF-HOSTED METROPOLIS FONT REGISTRATION */
@font-face {
  font-family: 'Metropolis';
  src: url('IDENTIDAD/metropolis/Metropolis-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('IDENTIDAD/metropolis/Metropolis-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('IDENTIDAD/metropolis/Metropolis-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('IDENTIDAD/metropolis/Metropolis-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('IDENTIDAD/metropolis/Metropolis-Black.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* 3. GLOBAL RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, button, a, input, select, textarea, [role="button"], .cursor-pointer {
  cursor: none !important;
}

body {
  font-family: var(--font-body);
  background-color: #F8FAFC;
  color: #0F1324;
  overflow-x: hidden;
}

h1, h2, h3, .font-bebas {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* 4. AWWWARDS CUSTOM DYNAMIC LEAF FLOATING CURSOR */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

/* Hover States for Leaf Cursor */
.custom-cursor-dot.active-hover {
  filter: drop-shadow(0 0 15px var(--pako-neon));
}

/* 5. PRELOADER OVERLAY & GLOWS (GLASSMORPHIC LIGHT THEME) */
.preloader-overlay {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 70%, #F1F5F9 100%);
  backdrop-filter: blur(20px);
}

.glow-halo-logo {
  box-shadow: 0 0 60px rgba(0, 152, 74, 0.25);
}

.text-glow-neon {
  color: var(--pako-green);
  text-shadow: 0 0 10px rgba(0, 152, 74, 0.2);
}

.text-gradient-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #B3DAC4 60%, #00FF66 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-pako {
  background: linear-gradient(135deg, #0F1324 0%, #16442D 40%, #00984A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 6. LIQUID GLASS CARDS */
.liquid-glass-light {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 15px 35px rgba(15, 19, 36, 0.05), 
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 12px rgba(255, 255, 255, 0.5);
}

.liquid-glass-dark {
  background: rgba(15, 19, 36, 0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 20px rgba(0, 255, 102, 0.04); /* Soft emerald inner glow */
}

/* 7. NEUMORPHIC FORM INPUT */
.premium-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.4s var(--ease-expo);
  font-family: 'Metropolis', sans-serif;
  color: #fff;
}

.premium-input:focus {
  border-color: var(--pako-neon);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  outline: none;
}

.premium-label {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.5s var(--ease-elastic), font-size 0.5s var(--ease-elastic), color 0.4s ease;
  pointer-events: none;
}

.premium-input:focus ~ .premium-label,
.premium-input:not(:placeholder-shown) ~ .premium-label {
  transform: translateY(-2.2rem);
  font-size: 0.75rem;
  color: var(--pako-neon);
  letter-spacing: 0.1em;
}

/* 8. GLOW BORDERS */
.emerald-glow-border {
  position: relative;
}
.emerald-glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.6), rgba(0, 152, 74, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 9. RANGE SLIDER STYLING */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00FF66;
  border: 3px solid #0F1324;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* 10. AWWWARDS STAGGERED ENTRANCE TRANSITION */
@keyframes sutilEntrance {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate-reveal {
  animation: sutilEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 11. 3D PERSPECTIVE SCROLL LAYOUTS */
#impact-section, #how-it-works {
  perspective: 1500px;
  transform-style: preserve-3d;
}

.tilt-card {
  transition: transform 0.1s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

/* 12. CUSTOM AWWWARDS INTERACTIVE ANIMATIONS */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes fadeInHologram {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-fade-in {
  animation: fadeInHologram 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
