/* ============================================
   TP CARD — PREMIUM DESIGN SYSTEM
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  /* Gold palette */
  --gold: #D4AF37;
  --gold-light: #E8CC6E;
  --gold-dark: #B8960C;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --gold-border: rgba(212, 175, 55, 0.12);
  --gold-border-hover: rgba(212, 175, 55, 0.35);
  --gold-gradient: linear-gradient(135deg, #D4AF37, #E8CC6E, #D4AF37);
  --gold-gradient-h: linear-gradient(90deg, transparent, #D4AF37, transparent);

  /* Black palette — depth layers */
  --black: #0A0A0A;
  --black-soft: #0F0F0F;
  --black-card: #141414;
  --black-elevated: #1A1A1A;
  --black-hover: #1E1E1E;

  /* White palette */
  --white: #F5F5F0;
  --white-soft: rgba(245, 245, 240, 0.85);
  --white-muted: rgba(245, 245, 240, 0.5);
  --white-faint: rgba(245, 245, 240, 0.3);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Transitions */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.3s;
  --duration-medium: 0.5s;
  --duration-slow: 0.8s;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 160px);
  --container-width: 1100px;

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.08);
  --shadow-gold-glow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* --- GLOBAL RESETS & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga' 1, 'kern' 1;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

h1 em, h2 em, h3 em, h4 em,
h1 i, h2 i, h3 i, h4 i {
  color: var(--gold);
  font-style: italic;
}

p, li, span, a, label, input, select, textarea, button {
  font-family: var(--font-body);
}

/* --- GRAIN TEXTURE OVERLAY --- */
.premium-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
}

.premium-grain svg {
  width: 100%;
  height: 100%;
}

/* --- PRELOADER --- */
.premium-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s var(--ease-premium), visibility 0.3s;
}

.premium-preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.premium-preloader .pre-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  transform: translateY(20px);
  animation: preLogoIn 0.4s var(--ease-premium) 0s forwards;
}

.premium-preloader .pre-line {
  width: 0;
  height: 1px;
  background: var(--gold-gradient-h);
  margin: 20px 0;
  animation: preLineExpand 0.4s var(--ease-premium) 0.2s forwards;
}

.premium-preloader .pre-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-muted);
  opacity: 0;
  animation: preTextIn 0.3s var(--ease-premium) 0.3s forwards;
}

@keyframes preLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes preLineExpand {
  to { width: 120px; }
}

@keyframes preTextIn {
  to { opacity: 1; }
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  z-index: 100000;
  transition: none;
}

/* --- NAVBAR GLASSMORPHISM ON SCROLL --- */
nav.scrolled,
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--gold-border) !important;
}

/* --- PREMIUM BUTTONS --- */
.bp, .btn-premium-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-gradient) !important;
  color: var(--black) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 16px 40px !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-medium) var(--ease-premium),
              box-shadow var(--duration-medium) var(--ease-premium) !important;
}

.bp:hover, .btn-premium-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-gold-glow) !important;
}

.bp::after, .btn-premium-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s var(--ease-premium);
}

.bp:hover::after, .btn-premium-primary:hover::after {
  left: 100%;
}

.bo, .btn-premium-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: 2px !important;
  padding: 16px 40px !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-premium) !important;
}

.bo:hover, .btn-premium-ghost:hover {
  border-color: var(--gold) !important;
  background: rgba(212, 175, 55, 0.08) !important;
  transform: translateY(-2px) !important;
}

/* --- PREMIUM CARDS (glassmorphism) --- */
.premium-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-medium) var(--ease-premium),
              box-shadow var(--duration-medium) var(--ease-premium),
              border-color var(--duration-medium) var(--ease-premium);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-gradient-h);
  opacity: 0.6;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-border-hover);
}

/* --- SECTION SEPARATORS --- */
.premium-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  gap: 20px;
}

.premium-separator::before,
.premium-separator::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--gold-gradient-h);
}

.premium-separator .diamond {
  color: var(--gold);
  font-size: 8px;
  opacity: 0.6;
}

/* --- MARQUEE (socios) --- */
.premium-marquee-wrapper {
  overflow: hidden;
  position: relative;
  padding: 30px 0;
}

.premium-marquee-wrapper::before,
.premium-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.premium-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--black), transparent);
}

.premium-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--black), transparent);
}

.premium-marquee-track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.premium-marquee-track.reverse {
  animation-direction: reverse;
}

.premium-marquee-item {
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white-soft);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.premium-marquee-item .discount {
  color: var(--gold);
  font-weight: 600;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- TESTIMONIAL CAROUSEL --- */
.premium-testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  min-height: 250px;
}

.premium-testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-premium);
  pointer-events: none;
}

.premium-testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.premium-testimonial-slide .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
  color: var(--white-soft);
  margin-bottom: 24px;
}

.premium-testimonial-slide .quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.premium-testimonial-slide .author {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.premium-testimonial-slide .stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.premium-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.premium-testimonial-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white-faint);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-premium),
              transform var(--duration-fast) var(--ease-premium);
  border: none;
  padding: 0;
}

.premium-testimonial-dots .dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* --- CUSTOM CURSOR (desktop only) --- */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transition: width 0.3s var(--ease-premium),
                height 0.3s var(--ease-premium),
                background 0.3s var(--ease-premium),
                opacity 0.3s var(--ease-premium),
                margin 0.3s var(--ease-premium);
    margin-top: -6px;
    margin-left: -6px;
    opacity: 0;
  }

  .custom-cursor.visible {
    opacity: 1;
  }

  .custom-cursor.hover {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
  }

  /* Custom cursor disabled — native cursor used */
}

/* --- HERO TEXT REVEAL --- */
.hero-title {
  overflow: hidden;
  padding-bottom: 8px; /* prevent clipping descenders */
}

.hero-word {
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero-word.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-reveal {
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero-reveal.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --- SCROLL ANIMATIONS FALLBACK --- */
/* If AOS JS fails to load, elements remain visible */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* AOS loaded — hide until animated */
html.aos-initialized [data-aos] {
  opacity: 0;
  transform: translateY(40px);
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: var(--ease-premium);
}

html.aos-initialized [data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  z-index: 3;
  transition: opacity var(--duration-fast) var(--ease-premium);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: scrollPulse 2s var(--ease-smooth) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* --- FOOTER PREMIUM --- */
.footer-premium {
  border-top: 1px solid var(--gold-border);
  padding: var(--section-padding) 0 40px;
}

.footer-premium a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-premium);
}

.footer-premium a:hover {
  color: var(--gold);
}

/* --- LINK UNDERLINE ANIMATION --- */
a:not(.bp):not(.bo):not(.bn):not(.bc):not(.nav-logo):not(.wa-link):not(.wa-float) {
  position: relative;
  text-decoration: none;
}

.footer-premium a::after,
.nav-links a::after,
.nav-dd-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-premium);
}

.footer-premium a:hover::after,
.nav-links a:hover::after,
.nav-dd-menu a:hover::after {
  width: 100%;
}

/* --- INPUT FOCUS GLOW --- */
.fi:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 0 20px rgba(212, 175, 55, 0.08) !important;
  transition: border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium) !important;
}

/* --- HAMBURGER ANIMATED X --- */
.nav-hamburger.has-anim span, .ham.has-anim span {
  transition: transform 0.4s var(--ease-premium), opacity 0.3s var(--ease-premium);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1),
.ham.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2),
.ham.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3),
.ham.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- GRADIENT TEXT ANIMATION --- */
.gradient-text {
  background: linear-gradient(90deg, #D4AF37, #E8CC6E, #F0DFA0, #E8CC6E, #D4AF37);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --- CARD TILT 3D --- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.5s var(--ease-premium);
}

.tilt-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* --- BLOB SHAPES --- */
.premium-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.premium-blob.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: 20%;
  left: -10%;
}

.premium-blob.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--gold-light);
  bottom: 10%;
  right: -5%;
  animation-delay: -4s;
  animation-duration: 15s;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* --- IMAGE BLUR PLACEHOLDER --- */
.img-lazy {
  filter: blur(20px);
  transition: filter 0.8s var(--ease-premium);
}

.img-lazy.loaded {
  filter: blur(0);
}

/* --- IMAGE HOVER ZOOM --- */
.img-hover-zoom {
  overflow: hidden;
  position: relative;
}

.img-hover-zoom img {
  transition: transform 0.6s var(--ease-premium);
}

.img-hover-zoom:hover img {
  transform: scale(1.08);
}

.img-hover-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-premium);
  pointer-events: none;
}

.img-hover-zoom:hover::after {
  opacity: 1;
}

/* --- ANIMATED BORDER GRADIENT (pricing popular) --- */
.animated-border {
  position: relative;
  border: none !important;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #D4AF37, #E8CC6E, #F0DFA0, #D4AF37, #B8960C, #D4AF37);
  background-size: 300% 100%;
  animation: borderGlow 3s linear infinite;
  z-index: -1;
}

.animated-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--black);
  z-index: -1;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* --- MAGNETIC BUTTON --- */
.magnetic-btn {
  transition: transform 0.3s var(--ease-premium);
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-border);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-premium);
  border-radius: 2px;
  padding: 0;
  font-size: 18px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* --- FOOTER GRID RESPONSIVE --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(60px, 8vw, 100px);
  }

  .custom-cursor {
    display: none !important;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .premium-marquee-wrapper::before,
  .premium-marquee-wrapper::after {
    width: 60px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .bp, .btn-premium-primary {
    padding: 14px 28px !important;
    font-size: 0.75rem !important;
  }

  .bo, .btn-premium-ghost {
    padding: 14px 28px !important;
    font-size: 0.75rem !important;
  }
}
