/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.accent { color: #ea7955; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: #ea7955;
  color: #fff;
  box-shadow: 0 4px 24px rgba(234, 121, 85, 0.35);
}
.btn-primary:hover {
  background: #d4683f;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(234, 121, 85, 0.45);
}
.btn-secondary {
  background: transparent;
  color: #F5F0EB;
  border: 2px solid rgba(245, 240, 235, 0.3);
}
.btn-secondary:hover {
  border-color: #ea7955;
  color: #ea7955;
  transform: translateY(-2px);
}
.card {
  background: #1e293b;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border-color: rgba(234, 121, 85, 0.2);
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #F5F0EB;
}
.nav-logo span { color: #ea7955; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: #94a3b8;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #ea7955; }
.nav-cta {
  padding: 0.625rem 1.5rem !important;
  font-size: 0.875rem !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F0EB;
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(234, 121, 85, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 121, 85, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #F5F0EB;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-graphic {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 2rem;
  border: 1px solid rgba(234, 121, 85, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-graphic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ea7955, #f4a261, #ea7955);
}
.metric-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}
.metric-card {
  flex: 1;
  background: rgba(234, 121, 85, 0.08);
  border: 1px solid rgba(234, 121, 85, 0.15);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
}
.metric-card .number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ea7955;
}
.metric-card .label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}
.chart-placeholder {
  width: 100%;
  height: 120px;
  background: rgba(255,255,255,0.03);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.chart-bar {
  position: absolute;
  bottom: 1rem;
  width: 12%;
  background: linear-gradient(to top, #ea7955, #f4a261);
  border-radius: 0.5rem 0.5rem 0 0;
  opacity: 0.7;
}
.chart-bar:nth-child(1) { left: 6%; height: 40%; }
.chart-bar:nth-child(2) { left: 22%; height: 65%; }
.chart-bar:nth-child(3) { left: 38%; height: 50%; }
.chart-bar:nth-child(4) { left: 54%; height: 80%; }
.chart-bar:nth-child(5) { left: 70%; height: 60%; }
.chart-bar:nth-child(6) { left: 86%; height: 90%; opacity: 1; }

/* ============ PROBLEM ============ */
.problem { background: #0f172a; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem;
}
.problem-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(234, 121, 85, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.problem-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ea7955;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.problem-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #F5F0EB;
  line-height: 1.4;
}

/* ============ SERVICES ============ */
.services { background: #1e293b; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card { background: #0f172a; }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(234, 121, 85, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: #ea7955;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #F5F0EB;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: #94a3b8;
  font-size: 0.9375rem;
}

/* ============ HOW IT WORKS ============ */
.how-it-works { background: #0f172a; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(234,121,85,0.3), rgba(234,121,85,0.3), transparent);
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ea7955, #d4683f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 32px rgba(234, 121, 85, 0.3);
}
.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #F5F0EB;
  margin-bottom: 0.5rem;
}
.step p {
  color: #94a3b8;
  font-size: 0.9375rem;
}

/* ============ PRICING ============ */
.pricing { background: #1e293b; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.price-card {
  background: #0f172a;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  border-color: rgba(234, 121, 85, 0.4);
  box-shadow: 0 0 60px rgba(234, 121, 85, 0.1);
}
.price-card.featured::before {
  content: 'Más popular';
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: #ea7955;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 2.5rem;
  transform: rotate(45deg);
}
.price-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F5F0EB;
  margin-bottom: 0.5rem;
}
.price {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #ea7955;
  margin: 1rem 0;
}
.price span {
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
}
.price-features {
  text-align: left;
  margin: 1.5rem 0;
  flex: 1;
}
.price-features li {
  padding: 0.5rem 0;
  color: #cbd5e1;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.price-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(234, 121, 85, 0.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea7955' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.price-card .btn { width: 100%; justify-content: center; }

/* ============ TESTIMONIALS ============ */
.testimonials { background: #0f172a; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.testimonial-card {
  padding: 2rem;
}
.testimonial-stars {
  color: #ea7955;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  color: #cbd5e1;
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea7955, #f4a261);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}
.testimonial-name {
  font-weight: 600;
  color: #F5F0EB;
  font-size: 0.9375rem;
}
.testimonial-role {
  color: #64748b;
  font-size: 0.8125rem;
}
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.metric {
  text-align: center;
  padding: 2rem 1rem;
  background: #1e293b;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.metric .value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ea7955;
}
.metric .desc {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============ FAQ ============ */
.faq { background: #1e293b; }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: #0f172a;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.active { border-color: rgba(234, 121, 85, 0.3); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #F5F0EB;
  text-align: left;
  transition: color 0.3s ease;
}
.faq-question:hover { color: #ea7955; }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(234, 121, 85, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #ea7955;
}
.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: #ea7955;
  stroke-width: 2.5;
}
.faq-item.active .faq-icon svg { stroke: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============ CTA FINAL ============ */
.cta-final {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 121, 85, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #F5F0EB;
  margin-bottom: 1rem;
}
.cta-final p {
  color: #94a3b8;
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}
.cta-final .btn-primary {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}
.cta-email {
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.875rem;
}
.cta-email a {
  color: #ea7955;
  font-weight: 500;
}

/* ============ FOOTER ============ */
.footer {
  background: #0a0f1e;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #F5F0EB;
}
.footer-logo span { color: #ea7955; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a {
  color: #64748b;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: #ea7955; }
.footer-links svg {
  width: 22px;
  height: 22px;
}
.footer-copy {
  color: #475569;
  font-size: 0.8125rem;
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-wa 2s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-content h1 { font-size: 2.75rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid .price-card:last-child { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 2rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 998;
  }
  .nav-links.open a { font-size: 1.25rem; }
  .nav-toggle { display: block; z-index: 999; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content p { font-size: 1.0625rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .price-card:last-child { max-width: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { max-width: none; }
  .metrics-bar { grid-template-columns: 1fr; }
  .cta-final h2 { font-size: 2rem; }
  .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.875rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .price { font-size: 2.25rem; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}
