/* =====================================================
   LUXSTYLE — PREMIUM DESIGN SYSTEM
   Color: Deep Forest Green + Ivory + Emerald + Gold
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  /* Backgrounds — now light */
  --bg-void:        #F8F5EF;   /* was near-black, now warm ivory */
  --bg-deep:        #F0EDE6;   /* was dark forest, now light cream */
  --bg-dark:        #E8E3DA;   /* soft warm grey */
  --forest:         #1B4332;
  --emerald:        #2D6A4F;
  --mid-green:      #40916C;
  --light-emerald:  #2D6A4F;  /* slightly deeper for contrast on light bg */
  --mint:           #95D5B2;
  --gold:           #B8860B;  /* slightly richer gold for light bg */
  --gold-light:     #D4AF37;
  --cream:          #F8F5EF;
  --ivory:          #FDFAF4;
  --white:          #FFFFFF;
  /* Text — inverted for light theme */
  --text-primary:   #1A2E1E;  /* dark forest green text */
  --text-muted:     #4A6355;  /* medium green-grey */
  --text-dark:      #1A2E1E;
  /* Glass — now light */
  --glass-bg:       rgba(255, 255, 255, 0.65);
  --glass-border:   rgba(45, 106, 79, 0.18);
  --glass-light:    rgba(255, 255, 255, 0.8);
  --red-accent:     #C62828;
  --shadow-green:   0 8px 40px rgba(45, 106, 79, 0.18);
  --shadow-gold:    0 4px 24px rgba(184, 134, 11, 0.25);
  --shadow-deep:    0 20px 60px rgba(0,0,0,0.12);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      28px;
  --radius-xl:      48px;
  --transition:     0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast:0.2s ease;
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', sans-serif;
  --font-accent:    'Outfit', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: auto;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CUSTOM CURSOR ── */
#cursor-dot { display: none; }
#cursor-ring { display: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--emerald); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--mid-green); }

/* ── LOADER ── */
#page-loader {
  position: fixed; inset: 0; z-index: 100000;
  background: var(--ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--forest);
  margin-bottom: 40px;
}
.loader-logo span { color: var(--light-emerald); }
.loader-bar-wrap {
  width: 200px; height: 2px;
  background: rgba(82,183,136,0.15);
  border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--light-emerald), var(--gold));
  border-radius: 2px;
  animation: loaderFill 1.8s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-text {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-top: 16px;
  text-transform: uppercase;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 24px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
#navbar.scrolled {
  padding: 14px 5%;
  background: rgba(248,245,239,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(45,106,79,0.12);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--forest);
}
.nav-logo span { color: var(--emerald); }
.nav-logo small {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -4px;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--emerald);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: linear-gradient(135deg, var(--emerald), var(--light-emerald)) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  transition: var(--transition) !important;
  box-shadow: var(--shadow-green);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(45,106,79,0.5) !important; }
.nav-cta::after { display: none !important; }
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--forest);
  transition: var(--transition);
}

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(248,245,239,0.98);
  backdrop-filter: blur(40px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}
.mobile-nav.open { 
  transform: translateX(0); 
  opacity: 1; 
  pointer-events: all; 
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  color: var(--forest);
  transition: color var(--transition-fast);
}
.mobile-nav-links a:hover { color: var(--emerald); }
.mobile-nav-close {
  position: absolute; top: 28px; right: 28px;
  font-size: 1.8rem; color: var(--text-muted);
  cursor: none; transition: color var(--transition-fast);
}
.mobile-nav-close:hover { color: var(--forest); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative; overflow: hidden;
  cursor: none;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn:hover::before { transform: translateX(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  color: var(--white);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(45,106,79,0.55);
}
.btn-gold {
  background: linear-gradient(135deg, #8B6914, var(--gold));
  color: var(--ivory);
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(201,168,76,0.45); }
.btn-ghost {
  background: var(--glass-bg);
  color: var(--cream);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(82,183,136,0.15); transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  color: var(--light-emerald);
  border: 1.5px solid var(--light-emerald);
}
.btn-outline:hover {
  background: var(--light-emerald);
  color: var(--bg-void);
  transform: translateY(-3px);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(45,106,79,0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
}

/* ── SECTION PATTERNS ── */
.section { padding: clamp(80px, 10vw, 140px) 5%; }
.section-dark { background: var(--bg-deep); }
.section-darker { background: var(--bg-dark); }
.section-light {
  background: var(--ivory);
  color: var(--text-dark);
}
.section-green {
  background: linear-gradient(160deg, var(--emerald) 0%, var(--forest) 100%);
}
.container { max-width: 1280px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--light-emerald);
  margin-bottom: 20px;
}
.section-tag::before {
  content: ''; display: block;
  width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-emerald));
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.section-title-dark { color: var(--text-dark); }
.section-title em {
  font-style: italic;
  color: var(--emerald);
}
.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 16px;
}
.section-subtitle-dark { color: #5A6B5F; }
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--light-emerald));
  border-radius: 2px;
  margin: 20px 0;
}

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 28px; }

/* ── FLOATING WHATSAPP ── */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(46,125,50,0.55);
  animation: waPulse 2.5s ease infinite;
  cursor: none;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.12); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(46,125,50,0.55), 0 0 0 0 rgba(46,125,50,0.4); }
  50% { box-shadow: 0 8px 32px rgba(46,125,50,0.55), 0 0 0 14px rgba(46,125,50,0); }
}

/* ── FLOATING TIKTOK ── */
.tiktok-float {
  position: fixed; bottom: 104px; right: 32px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(254,44,85,0.4);
  animation: ttSpin 6s linear infinite;
  cursor: none;
  transition: var(--transition);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.tiktok-float::before {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, #25F4EE, #FE2C55, #25F4EE);
  animation: ttSpin 3s linear infinite;
}
.tiktok-float:hover { transform: scale(1.12); }
.tiktok-float svg { width: 26px; height: 26px; fill: #fff; position: relative; z-index: 1; animation: ttSpinReverse 6s linear infinite; }
.tiktok-float:hover svg, .tiktok-float:hover, .tiktok-float:hover::before { animation-play-state: paused; }

@keyframes ttSpin { 100% { transform: rotate(360deg); } }
@keyframes ttSpinReverse { 100% { transform: rotate(-360deg); } }

/* ── TIKTOK ICON SIZE (FontAwesome) ── */
.tiktok-float i { font-size: 22px; color: #fff; position: relative; z-index: 1; }

/* ── FLOATING CALL ── */
.call-float {
  position: fixed; bottom: 104px; right: 32px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--emerald));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-green);
  cursor: none;
  transition: var(--transition);
}
.call-float:hover { transform: scale(1.1); }
.call-float svg { width: 22px; height: 22px; fill: #fff; }

/* ── BADGE / PILL ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.badge-green {
  background: rgba(82,183,136,0.12);
  color: var(--mint);
  border: 1px solid rgba(82,183,136,0.25);
}
.badge-gold {
  background: rgba(201,168,76,0.12);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.25);
}

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #1A2E1E;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(74,99,85,0.55); }
.form-group select option { background: #fff; color: #1A2E1E; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── COUNTER STRIP ── */
.stats-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item {
  flex: 1; min-width: 160px;
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--glass-border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.stat-num span { color: var(--emerald); font-size: 0.55em; }
.stat-label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ── FOOTER ── */
.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--glass-border);
  padding: 80px 5% 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 280px;
  margin-bottom: 24px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.social-link:hover {
  background: rgba(82,183,136,0.2);
  border-color: var(--light-emerald);
  color: var(--light-emerald);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--forest); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(82,183,136,0.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-cities {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.footer-cities a {
  font-size: 0.78rem;
  color: var(--forest);
  opacity: 0.8;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
.footer-cities a:hover { color: var(--emerald); opacity: 1; }

/* ── LIGHT SECTION OVERRIDES ── */
.section-light .section-tag { color: var(--emerald); }
.section-light .section-tag::before { background: linear-gradient(90deg, transparent, var(--emerald)); }
.section-light .section-title { color: var(--text-dark); }
.section-light .section-subtitle { color: #5A7060; }
.section-light .glass-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(45,106,79,0.15);
}
.section-light .glass-card:hover { border-color: var(--emerald); }

/* ── ACCENT LINE ── */
.accent-line {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}
.accent-line::before, .accent-line::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { flex-direction: row; flex-wrap: wrap; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--glass-border); min-width: 50%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }

  /* ── MOBILE FLOATING ICONS ── */
  .whatsapp-float {
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: 16px;
    width: 50px;
    height: 50px;
    z-index: 9999;
  }
  .whatsapp-float i { font-size: 22px !important; }

  .tiktok-float {
    bottom: calc(84px + env(safe-area-inset-bottom));
    right: 16px;
    width: 50px;
    height: 50px;
    z-index: 9999;
    animation: none;
  }
  .tiktok-float::before {
    animation: none;
    background: conic-gradient(from 0deg, #25F4EE, #FE2C55, #25F4EE);
  }
  .tiktok-float i { font-size: 18px !important; }

  .call-float {
    bottom: calc(148px + env(safe-area-inset-bottom));
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 14px 28px; font-size: 0.8rem; }
  .stat-item { min-width: 100%; }
}

/* ── REMOVE EXTRA SPACE BELOW FOOTER ON MOBILE ── */
@media (max-width: 768px) {
  .footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    margin-bottom: 0;
  }
  body {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  html {
    overflow-x: hidden;
  }
  /* Footer bottom stacks on mobile */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
