/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --white: #ffffff;
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5a;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--zinc-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== TEXT UTILS ===== */
.text-emerald { color: var(--emerald-600); }
.text-emerald-light { color: var(--emerald-400); }
.text-white { color: var(--white); }
.text-zinc-300 { color: var(--zinc-300); }
.text-gradient {
  background: linear-gradient(to right, var(--emerald-600), var(--teal-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--emerald-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  border: 2px solid var(--zinc-300);
  color: var(--zinc-900);
}
.btn-outline:hover {
  background: var(--zinc-100);
  border-color: var(--emerald-400);
  color: var(--emerald-700);
}

.btn-white {
  background: var(--white);
  color: var(--emerald-700);
}
.btn-white:hover {
  background: var(--emerald-50);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--zinc-200);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zinc-700);
  cursor: pointer;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--emerald-600);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--zinc-900);
  padding: 0.25rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--zinc-200);
  background: var(--white);
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile .nav-link {
  text-align: left;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--white), rgba(236, 253, 245, 0.4), var(--white));
  padding: 5rem 0 7rem;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--emerald-200);
  background: var(--emerald-50);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--emerald-700);
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--zinc-900);
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--zinc-600);
  line-height: 1.6;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1rem;
  font-size: 0.875rem;
  color: var(--zinc-600);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-item svg { color: var(--emerald-600); }

/* ===== METRICS ===== */
.metrics {
  border-top: 1px solid var(--zinc-100);
  border-bottom: 1px solid var(--zinc-100);
  background: var(--zinc-100);
  padding: 3rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.metric svg { color: var(--emerald-600); }
.metric-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--zinc-900);
}
@media (min-width: 640px) { .metric-value { font-size: 2.25rem; } }
.metric-label {
  font-size: 0.875rem;
  color: var(--zinc-600);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}
.section-dark {
  background: var(--zinc-900);
  color: var(--white);
}
.section-tinted {
  background: linear-gradient(to bottom, rgba(236, 253, 245, 0.6), var(--white));
}
.section-tinted-light {
  background: var(--zinc-100);
  border-top: 1px solid var(--zinc-100);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-header-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header-light .section-title { color: var(--white); }

.section-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-600);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--zinc-900);
  line-height: 1.2;
}
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--zinc-600);
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }

.service-card {
  border: 1px solid var(--zinc-200);
  border-radius: 1rem;
  padding: 2rem;
  background: var(--white);
  transition: all 0.3s ease;
}
.service-card:hover {
  border-color: var(--emerald-200);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--emerald-100);
  color: var(--emerald-600);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-desc {
  color: var(--zinc-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--zinc-700);
}
.service-list svg {
  color: var(--emerald-600);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ===== PLATFORMS (dark) ===== */
.platforms-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .platforms-grid { grid-template-columns: repeat(3, 1fr); } }

.platform-card {
  border: 1px solid var(--zinc-800);
  background: rgba(39, 39, 42, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  transition: background 0.3s ease;
}
.platform-card:hover {
  background: rgba(39, 39, 42, 0.8);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
  margin-bottom: 1.5rem;
}

.platform-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.platform-desc {
  color: var(--zinc-300);
  line-height: 1.6;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-card {
  border: 1px solid var(--zinc-200);
  border-radius: 1rem;
  padding: 1.5rem;
  background: var(--white);
  height: 100%;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--emerald-100);
  color: var(--emerald-600);
  margin-bottom: 1rem;
}

.process-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.process-desc {
  font-size: 0.875rem;
  color: var(--zinc-600);
  line-height: 1.6;
}

/* ===== DIFFERENTIALS ===== */
.differentials-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .differentials-grid { grid-template-columns: 1fr 1fr; } }

.differential {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  transition: box-shadow 0.3s ease;
}
.differential:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.differential-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--emerald-100);
  color: var(--emerald-600);
  flex-shrink: 0;
}

.differential-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.differential-desc {
  font-size: 0.875rem;
  color: var(--zinc-600);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section { padding: 4rem 0 5rem; }

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-700));
  padding: 3rem 1.5rem;
  text-align: center;
}
@media (min-width: 640px) { .cta-box { padding: 4rem 3rem; } }

.cta-icon {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (min-width: 640px) { .cta-title { font-size: 2.25rem; } }

.cta-text {
  color: var(--emerald-50);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1024px;
  margin: 0 auto;
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--zinc-200);
  background: var(--white);
}
.contact-card-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}
.contact-card-clickable:hover {
  border-color: var(--emerald-200);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.contact-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--zinc-900);
}
.contact-sub {
  font-size: 0.875rem;
  color: var(--zinc-500);
  margin-top: 0.25rem;
}

.contact-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--zinc-900);
  color: var(--zinc-500);
  margin-top: auto;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }

.footer-col {}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-title {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.footer-links a {
  color: var(--zinc-500);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.footer-links a:hover {
  color: var(--emerald-400);
}

.logo-footer .logo-text { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--zinc-800);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}
@media (min-width: 640px) {
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
  }
  .floating-whatsapp svg { width: 36px; height: 36px; }
}

.floating-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.05);
}
.floating-whatsapp:active {
  transform: scale(0.95);
}

.floating-whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--whatsapp);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
