@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  /* MacBook Neo Pallete */
  --bg-dark-1: #000000;
  --bg-dark-2: #0a0a0a;
  --bg-dark-3: #111111;
  --bg-light:  #f5f5f7;

  --accent:       #b7f629;
  --accent-hover: #c4fb46;
  --brand-blue:   #1a5f87;

  --text-dark:  #ffffff;
  --text-muted: #a1a1a6;
  --text-light: #1d1d1f;

  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark-1);
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: inherit; }

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-accent { color: var(--accent); }
.text-brand { color: var(--brand-blue); }

/* SPACING & LAYOUT */
.container { max-width: 1200px; padding: 0 2rem; margin: 0 auto; position: relative; }

.section-dark { background-color: var(--bg-dark-1); color: var(--text-dark); padding: 140px 0; }
.section-dark-2 { background-color: var(--bg-dark-2); color: var(--text-dark); padding: 140px 0; }
.section-dark-3 { background-color: var(--bg-dark-3); color: var(--text-dark); padding: 140px 0; }
.section-light { background-color: var(--bg-light); color: var(--text-light); padding: 140px 0; }
.section-hero { min-height: 100vh; padding-top: 140px; display: flex; flex-direction: column; justify-content: center; position: relative; }

@media (max-width: 768px) {
  .section-dark, .section-dark-2, .section-dark-3, .section-light { padding: 100px 0; }
  h1 { font-size: clamp(2rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .eyebrow { white-space: normal; letter-spacing: 0.08em; }
  .section-hero { overflow: hidden; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .container { padding: 0 1.25rem; }
}

/* SPACING RULES */
.eyebrow + h2, .eyebrow + h1 { margin-top: 1rem; margin-bottom: 1.5rem; }
h2 + p, h1 + p { margin-top: 1.5rem; margin-bottom: 2.5rem; }

/* UTILS */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mb-5 { margin-bottom: 4rem; }
.mt-4 { margin-top: 2.5rem; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: transparent;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 900px) { .nav-links { display: flex; align-items: center; } }
.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
  transition: var(--transition-fast);
}
.nav-links a:hover { opacity: 1; }
/* Light navbar override when on light bg, except if it's overall dark */
.navbar.nav-light.scrolled { background: rgba(245,245,247,0.85); border-bottom: 1px solid rgba(0,0,0,0.05); }
.navbar.nav-light .nav-links a { color: var(--text-light); }
.navbar.nav-light .logo { filter: invert(1); }

/* STICKY CTA MOBILE */
.sticky-cta-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: #000;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  z-index: 999;
  text-decoration: none;
  opacity: 0;
  box-shadow: 0 10px 30px rgba(183, 246, 41, 0.2);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}
.sticky-cta-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1024px) { .sticky-cta-bar { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-accent {
  background: var(--accent);
  color: #000000;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(183,246,41,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1rem 2.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.section-light .btn-ghost {
  color: var(--text-light);
  border-color: rgba(0,0,0,0.2);
}
.section-light .btn-ghost:hover {
  border-color: rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.03);
}

/* CARDS / BENTO */
.card-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}
.card-dark:hover {
  border-color: rgba(183, 246, 41, 0.3);
  transform: translateY(-4px);
}
.card-light {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}
.card-white {
  background: #ffffff;
  color: var(--text-light);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.card-white h1, .card-white h2, .card-white h3, .card-white h4, .card-white h5, .card-white h6 {
  color: #111;
}
.card-white.hoverable:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* GRADIENT BACKGROUNDS */
.bg-gradient-mesh {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05) 0%, transparent 40%),
              radial-gradient(circle at bottom right, rgba(183,246,41,0.05) 0%, transparent 40%);
  background-color: var(--bg-dark-1);
}
.section-light-gradient {
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
  color: var(--text-light);
  padding: 140px 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) { .bento-span-2 { grid-column: span 2; } }

/* FLOATING METRICS */
.floating-metric {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  z-index: 3;
  animation: perpetualFloat 7s ease-in-out infinite;
  display: none;
}
@media (min-width: 1024px) { .floating-metric { display: block; } }

.fm-1 { top: 25%; left: 8%; animation-duration: 8s; animation-delay: 0s; }
.fm-2 { bottom: 20%; right: 8%; animation-duration: 9s; animation-delay: 1.5s; }
.fm-3 { bottom: 15%; left: 15%; animation-duration: 7s; animation-delay: 3s; }

@keyframes perpetualFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* LISTS */
.checklist, .crosslist { list-style: none; }
.checklist li, .crosslist li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1rem; }
.checklist li::before {
  content: '✓';
  color: #000;
  font-weight: 900;
  background: var(--accent);
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 10px; flex-shrink: 0; margin-top: 5px;
}
.crosslist li::before {
  content: '✕';
  color: #fff;
  background: #dc2626;
  font-weight: 900;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 10px; flex-shrink: 0; margin-top: 5px;
}
.section-light .crosslist li::before { background: transparent; color: #dc2626; font-size: 16px; width:auto; height:auto; }

/* FORMS */
.input-minimal {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dark);
  padding: 1.2rem;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-fast);
}
.section-light .input-minimal {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-light);
}
.input-minimal:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183,246,41,0.1);
}
.section-light .input-minimal:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26,95,135,0.1);
}
.img-fluid { max-width: 100%; height: auto; border-radius: 24px; }

/* LPS SPECIFIC */
.lp-site { background-color: var(--bg-dark-2); }
.urgency-bar {
  background: var(--accent);
  color: #000;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* =======================================
   JAVASCRIPT ANIMATION CLASSES
   ======================================= */
/* A. Reveal on Scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* B. Clip-Path Reveal */
.clip-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.175, 1);
}
.clip-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* C. Word-by-word reveal (Applied via JS) */
.word-reveal span {
  opacity: 0;
  transform: translateY(12px);
  display: inline-block;
  white-space: pre-wrap; /* Preserve spaces in spans */
}
.word-reveal.is-visible span {
  animation: fadeUpWord 0.5s forwards;
}
@keyframes fadeUpWord {
  to { opacity: 1; transform: translateY(0); }
}

/* D. Underline Animado */
.underline-lime {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 4px;
  background-position: left 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.underline-lime.is-visible {
  background-size: 100% 4px;
}

/* =======================================
   WHATSAPP INTEGRATION
   ======================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  animation: waPop 0.5s ease 2s forwards;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}
@keyframes waPop {
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .whatsapp-float { bottom: 5rem; right: 1rem; width: 52px; height: 52px; }
}

/* =======================================
   NEW B2B/APPLE BANNER POPUP (FULL SCREEN INVERTED)
   ======================================= */
#popup-b2b {
  position: fixed;
  bottom: -100vh;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  background: var(--bg-dark-1);
  display: flex;
  align-items: center;
  justify-content: center;
}
#popup-b2b.visible { 
  bottom: 0; 
  opacity: 1;
  pointer-events: auto;
}

#popup-b2b-inner {
  background: var(--accent); /* Inverted colors: Green background */
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  max-height: 800px;
  border-radius: 40px;
  padding: 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(183, 246, 41, 0.7);
  animation: pulse-shadow 2s infinite;
  position: relative;
  align-items: center;
}
@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(183, 246, 41, 0.4); }
  70% { box-shadow: 0 0 0 40px rgba(183, 246, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 246, 41, 0); }
}

#popup-b2b-close {
  position: absolute;
  top: 2rem; right: 2.5rem;
  background: rgba(0,0,0,0.1); border: none;
  border-radius: 50%; width: 48px; height: 48px;
  color: #000; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}
#popup-b2b-close:hover { background: rgba(0,0,0,0.2); transform: scale(1.1); }

.popup-b2b-content {
  flex: 1;
  padding: 5rem;
  color: #0a0a0a;
}
.popup-b2b-content h3 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}
.popup-b2b-content p {
  color: rgba(0,0,0,0.7);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 3.5rem;
  font-weight: 500;
  max-width: 500px;
}
.popup-buttons {
  display: flex;
  gap: 1rem;
}
.popup-btn-accent {
  background: #000; color: #fff;
  padding: 1.2rem 2.5rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.popup-btn-accent:hover { transform: scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.popup-b2b-visual {
  flex: 1;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  position: relative;
  border-left: 1px solid rgba(0,0,0,0.05);
}
.popup-b2b-visual img {
  width: 85%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
  transform: translateY(30px);
}

@media (max-width: 900px) {
  #popup-b2b-inner { flex-direction: column; height: 95vh; width: 95%; }
  .popup-b2b-content { padding: 3rem 2rem; text-align: center; }
  .popup-b2b-content p { margin-left: auto; margin-right: auto; }
  .popup-b2b-visual { min-height: 300px; width: 100%; }
  .popup-buttons { justify-content: center; }
}

/* =======================================
   ANIMATED BORDER CARDS (Slimy Parrot)
   ======================================= */
.animated-card {
  position: relative;
  border-radius: 24px; /* Adjust to match card radius */
  padding: 2px; /* thickness of the border */
  overflow: hidden;
  z-index: 1;
}
.animated-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 70%, var(--accent) 100%);
  transform-origin: 0 0;
  animation: rotate-border 3s linear infinite;
  z-index: -2;
}
.animated-card::after {
  content: "";
  position: absolute;
  inset: 2px; /* This defines the inner card masking the gradient */
  background: var(--bg-dark-2); /* The dark background of the card */
  border-radius: 22px; /* Inner radius */
  z-index: -1;
}
.animated-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem; /* The actual padding of the card content */
}
@keyframes rotate-border {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* APPLE PLACEHOLDER */
.apple-placeholder {
  background: #f5f5f7;
  border-radius: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 4rem;
}
.apple-placeholder::after {
  content: 'Espacio para Imagen Visual';
  font-family: var(--font-main);
  color: rgba(0,0,0,0.3);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.apple-placeholder.dark-flavor {
  background: var(--bg-dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.apple-placeholder.dark-flavor::after {
  color: rgba(255,255,255,0.2);
}

/* =======================================
   HERO VIDEO BACKGROUND & GLOW (V12)
   ======================================= */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1; /* behind hero content */
  background: #000;
}
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: luminosity; /* makes it greyscale/moody if needed */
}
.hero-video-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 984px;
  height: 527px;
  background: rgba(183, 246, 41, 0.2); /* verde lima tint */
  filter: blur(82px);
  pointer-events: none;
  z-index: 2; /* above video, behind content */
}
.hero-video-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* darken video to ensure text is readable */
  z-index: 3;
}