/* ============================================
   ECOTOUCH — Shared Stylesheet
   ============================================ */

:root {
  /* Brand */
  --color-green-mint: #1CF799;
  --color-blue-mid:   #2B83ED;
  --color-navy:       #002F56;
  --color-light-gray: #E1E2E4;

  /* Derived */
  --color-bg-dark:    #001A33;
  --color-bg-mid:     #002F56;
  --color-surface:    #003A6B;
  --color-accent:     #1CF799;
  --color-accent-blue:#2B83ED;
  --color-accent-glow: rgba(28,247,153,0.18);
  --color-blue-glow:  rgba(43,131,237,0.18);
  --color-text-white: #FFFFFF;
  --color-text-light: #E1E2E4;
  --color-text-muted: rgba(225,226,228,0.55);
  --color-border:     rgba(43,131,237,0.20);
  --color-border-green: rgba(28,247,153,0.20);

  --gradient-brand: linear-gradient(135deg, #1CF799 0%, #2B83ED 100%);
  --gradient-brand-reverse: linear-gradient(135deg, #2B83ED 0%, #1CF799 100%);
  --gradient-hero: linear-gradient(180deg, #001A33 0%, #002F56 60%, #003A6B 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0,26,51,0.85) 0%, rgba(0,47,86,0.70) 100%);
  --gradient-side: linear-gradient(90deg, rgba(0,26,51,0.95) 40%, transparent 100%);

  --font-brand: 'Comfortaa', system-ui, sans-serif;
  --radius-card: 20px;
  --radius-btn: 100px;

  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-brand);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-brand); color: var(--color-text-white); line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); letter-spacing: -0.015em; font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; }
p { font-size: clamp(0.95rem, 1.2vw, 1.05rem); }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
  padding: 1.4rem 0;
}
.navbar.scrolled {
  background: rgba(0, 26, 51, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(43,131,237,0.15);
  padding: 0.9rem 0;
}
.nav-container {
  max-width: 1380px; margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-brand); font-weight: 700; color: white; font-size: 1.25rem;
}
.nav-logo img { width: 34px; height: 34px; }
.nav-logo span { letter-spacing: -0.02em; }

.nav-links {
  list-style: none; display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-weight: 500; font-size: 0.92rem;
  color: rgba(225,226,228,0.85);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gradient-brand);
  transition: width 0.3s var(--easing);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-green-mint); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-ctas { display: flex; gap: 0.8rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-brand); font-weight: 600; cursor: pointer; transition: all 0.3s var(--easing); white-space: nowrap; }

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px -8px rgba(28,247,153,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(28,247,153,0.55); }

.btn-secondary {
  background: transparent;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(43,131,237,0.5);
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-secondary:hover { background: rgba(43,131,237,0.15); border-color: var(--color-blue-mid); }

.btn-whatsapp {
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.35);
  color: #25D366;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-whatsapp:hover { background: rgba(37,211,102,0.22); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 30px; padding: 6px 0;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: white; border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: min(360px, 86%); height: 100vh;
  background: rgba(0,26,51,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 5.25rem 2rem 2rem;
  transition: right 0.4s var(--easing);
  z-index: 999;
  border-left: 1px solid var(--color-border);
  overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu-back {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; margin-bottom: 1.7rem; padding: 0.45rem 0.75rem 0.45rem 0;
  color: var(--color-green-mint);
  font-size: 0.95rem; font-weight: 700;
}
.mobile-menu-back span[aria-hidden="true"] {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(28,247,153,0.35);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s var(--easing), background 0.2s var(--easing);
}
.mobile-menu-back:hover span[aria-hidden="true"] {
  background: rgba(28,247,153,0.12);
  transform: translateX(-3px);
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.mobile-menu a { font-size: 1.2rem; color: white; font-weight: 500; }
.mobile-menu .nav-ctas { flex-direction: column; align-items: stretch; gap: 1rem; }
.mobile-menu .btn { justify-content: center; }

@media (max-width: 1024px) {
  .nav-links, .nav-ctas { display: none; }
  .hamburger { display: flex; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 2rem;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--gradient-brand);
  opacity: 0.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { width: 130px; margin-bottom: 1rem; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; max-width: 280px; }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(43,131,237,0.1); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-socials a:hover { background: var(--gradient-brand); border-color: transparent; transform: translateY(-3px); }
.footer-col h5 { color: white; font-weight: 600; margin-bottom: 1.2rem; font-size: 0.95rem; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--color-text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-green-mint); }
.footer-phone { font-family: var(--font-brand); font-weight: 700; font-size: 1.4rem; color: white; margin-bottom: 0.5rem; display: block; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(43,131,237,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--color-text-muted);
  flex-wrap: wrap; gap: 1rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 998;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  animation: glowPulse 3s infinite;
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 38px rgba(37,211,102,0.7); }
}

/* ============================================
   ANIMATIONS — REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--easing), transform 0.9s var(--easing);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.25s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.35s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.45s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.55s; }

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   COMMON SECTION HELPERS
   ============================================ */
section { position: relative; }
.section-pad { padding: clamp(4rem, 9vw, 8rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  border: 1px solid var(--color-border-green);
  background: rgba(28,247,153,0.06);
  color: var(--color-green-mint);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.eyebrow.blue { border-color: var(--color-border); color: var(--color-blue-mid); background: rgba(43,131,237,0.06); }

.section-header { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.section-header.left { text-align: left; margin: 0 0 4rem; }
.section-header p { color: var(--color-text-light); margin-top: 1.1rem; font-size: 1.05rem; }

/* Particle background */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  opacity: 0; animation: floatParticle 12s ease-in-out infinite;
}
@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10%, 90% { opacity: 0.7; }
  50% { transform: translate(30px, -40px); }
}

/* Glass card */
.glass {
  background: rgba(0,47,86,0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

/* Cinematic page transition shell */
.page-shell { overflow-x: hidden; }
