@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800;900&display=swap');

:root {
  /* Brand Colors - Vibrant Purple Palette (Magneto style) */
  --color-primary: #2E1065; /* Violet 900 - Very dark purple for text/sections */
  --color-primary-light: #4C1D95; /* Violet 800 */
  --color-brand: #7C3AED; /* Violet 600 - The vibrant purple from the image background */
  --color-brand-hover: #6D28D9; /* Violet 700 */
  --color-accent: #16A34A; /* Green 600 - Kept for WhatsApp/Success (complements purple) */
  --color-accent-hover: #15803D; /* Green 700 */
  
  /* Surfaces & Backgrounds */
  --bg-body: #FAF5FF; /* Purple 50 - Extremely subtle purple tint for whites */
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3E8FF; /* Purple 100 */
  
  /* Typography Colors */
  --text-main: #2E1065; /* Violet 900 */
  --text-muted: #6B7280; /* Cool Gray 500 */
  --text-inverse: #FFFFFF;
  
  /* Borders & Shadows */
  --border-light: #E9D5FF; /* Purple 200 */
  --shadow-sm: 0 1px 2px 0 rgba(46, 16, 101, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(46, 16, 101, 0.05), 0 2px 4px -2px rgba(46, 16, 101, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(46, 16, 101, 0.05), 0 4px 6px -4px rgba(46, 16, 101, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(46, 16, 101, 0.05), 0 8px 10px -6px rgba(46, 16, 101, 0.05);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3); /* Brand glow */
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing Rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast: 0.2s var(--ease-smooth);
  --trans-normal: 0.4s var(--ease-smooth);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; border-radius: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* Typography System */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; margin-bottom: var(--space-sm); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; margin-bottom: var(--space-sm); }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { font-size: 1.125rem; margin-bottom: var(--space-sm); color: var(--text-muted); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.section { padding: var(--space-xl) 0; }
.section-sm { padding: var(--space-lg) 0; }

/* Flex & Grid Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Buttons & Links (Commercial Hierarchy) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: var(--radius-pill);
  transition: all var(--trans-fast);
  text-align: center;
}

/* CTA Principal (Acción principal) */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Acción Secundaria */
.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--color-primary);
  border: 2px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--bg-subtle);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 100;
  height: 90px;
  transition: all var(--trans-normal);
}
.header .container { height: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { font-size: 2.25rem; color: var(--color-brand); }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--color-primary); line-height: 1; display: block; }
.logo-subtext { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; display: block; margin-top: 0.1rem; }

.nav-links { display: flex; gap: var(--space-md); align-items: center; }
.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--trans-fast);
  font-size: 1rem;
}
.nav-link:hover, .nav-link.active { color: var(--color-brand); }

/* Mobile Menu */
.mobile-btn { display: none; font-size: 1.5rem; color: var(--color-primary); }
.mobile-nav {
  position: fixed; top: 90px; left: 0; width: 100%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  display: flex; flex-direction: column; gap: var(--space-sm);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
  z-index: 90;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

/* Hero Section */
.hero {
  padding-top: calc(90px + var(--space-xl));
  padding-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 50vw; height: 100%;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, rgba(241,245,249,0) 100%);
  border-bottom-left-radius: 100px;
  z-index: -1;
}

.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37, 99, 235, 0.1); color: var(--color-brand);
  padding: 0.5rem 1rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.875rem; margin-bottom: var(--space-md);
}

.hero-image-container { position: relative; border-radius: var(--radius-lg); }
.hero-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); object-fit: cover; aspect-ratio: 4/3; }
.trust-badge {
  position: absolute; bottom: -2rem; left: -2rem;
  background: var(--bg-surface); padding: 1.5rem;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 1rem;
  animation: float 6s ease-in-out infinite;
}
.trust-icon { width: 3rem; height: 3rem; background: var(--bg-subtle); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-brand); font-size: 1.25rem; }

/* Social Proof Carousel */
.logos-section { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: var(--bg-surface); overflow: hidden; }
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.carousel-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}
.carousel-track img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin: 0 3rem;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--trans-normal);
}
.carousel-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

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

/* Value Proposition (Cards) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-md); }
.card {
  background: var(--bg-surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon-wrap {
  width: 4rem; height: 4rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: var(--space-sm);
}

/* Specific Card Colors */
.card-1 .card-icon-wrap { background: #E9D5FF; color: #7C3AED; }
.card-2 .card-icon-wrap { background: #DCFCE7; color: #16A34A; }
.card-3 .card-icon-wrap { background: #FEF3C7; color: #D97706; }

/* Pricing */
.pricing-section { background: var(--color-primary); color: var(--text-inverse); }
.pricing-section h2 { color: var(--text-inverse); }
.pricing-section p { color: #94A3B8; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-md); max-width: 1000px; margin: 0 auto; }
.price-card {
  background: var(--bg-surface); color: var(--text-main);
  border-radius: var(--radius-lg); padding: var(--space-md);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { transform: scale(1.05); border: 2px solid var(--color-brand); box-shadow: 0 0 30px rgba(37,99,235,0.2); z-index: 2; }
.price-header { border-bottom: 1px solid var(--border-light); padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); }
.price-amount { font-size: 3rem; font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); line-height: 1; }
.price-features li { display: flex; gap: 0.75rem; margin-bottom: 1rem; font-size: 1rem; }
.price-features i { color: var(--color-accent); margin-top: 0.25rem; }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* Media Queries */
@media (max-width: 1024px) {
  .hero::before { width: 100%; border-bottom-left-radius: 0; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-badge { margin: 0 auto var(--space-md); }
  .flex-btns { justify-content: center; }
  .trust-badge { left: 50%; transform: translateX(-50%); bottom: -2rem; animation: none; width: 90%; max-width: 350px; }
  .price-card.featured { transform: scale(1); }
  .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  :root { --space-xl: 4rem; --space-lg: 3rem; }
  .nav-links { display: none; }
  .mobile-btn { display: block; }
  .flex-btns { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .logo-text { font-size: 1.25rem; }
  .logo-subtext { font-size: 0.75rem; }
  .logo-icon { font-size: 1.75rem; }
}

/* Footer */
.footer { background: var(--color-primary-light); color: #CBD5E1; padding: var(--space-xl) 0 var(--space-md); }
.footer h3, .footer h4 { color: var(--text-inverse); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-lg); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: var(--space-lg); margin-bottom: var(--space-md); }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: #CBD5E1; transition: color var(--trans-fast); }
.contact-item:hover { color: var(--text-inverse); }
.contact-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
