:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text-primary: #343A40;
  --text-light: #6c757d;
  --accent: #58FFA4;
  --accent-hover: #48e290;
  
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius: 12px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Typography Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i.ph-arrow-right {
  transform: translateX(5px);
}

/* Base Primary Button (CTA) */
.btn-primary {
  background-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(88, 255, 164, 0.3);
}

/* Efecto de brillo que recorre el botón CTA (Shine Effect) */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: -1;
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(88, 255, 164, 0.5), 
              0 5px 15px rgba(88, 255, 164, 0.3);
  letter-spacing: 0.5px;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 8px 15px rgba(88, 255, 164, 0.4);
}

/* Base Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}

/* Efecto de relleno líquido para Outline */
.btn-outline::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
  border-radius: 50% 50% 0 0;
}

.btn-outline:hover {
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(52, 58, 64, 0.15);
}

.btn-outline:hover::before {
  top: 0;
  border-radius: 0;
}

/* Preloader */
.no-scroll {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader-video {
  max-width: min(400px, 80vw);
  width: 100%;
  height: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container img {
  height: 56px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-mockup {
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

/* Efecto de resplandor (glow) premium detrás de la imagen */
.hero-mockup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.15;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  animation: pulseGlow 4s infinite alternate ease-in-out;
}

.hero-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden; /* Corta el reflejo para que no se salga de los bordes */
  /* Valores por defecto (se sobreescriben en JS al mover el ratón) */
  --rotate-x: 4deg;
  --rotate-y: -12deg;
  --x: 50%;
  --y: 50%;
  
  box-shadow: 0 30px 60px rgba(52, 58, 64, 0.25), 
              0 10px 20px rgba(52, 58, 64, 0.1);
  transform: perspective(1200px) rotateY(var(--rotate-y)) rotateX(var(--rotate-x));
  transition: box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-image-container img {
  width: 100%;
  display: block;
}

.glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Permite que los eventos pasen a través del resplandor */
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: overlay; /* Efecto premium que reacciona con el color de fondo */
}

.hero-mockup:hover .hero-image-container {
  box-shadow: 0 40px 80px rgba(52, 58, 64, 0.3),
              0 20px 40px rgba(88, 255, 164, 0.2);
}

.hero-mockup:hover .glare {
  opacity: 1;
}

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

@keyframes pulseGlow {
  0% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

/* Pain Points Section */
.pain-points {
  padding: 10rem 0;
  background-color: var(--bg-secondary);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.card {
  background: var(--bg-primary);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Mouse-tracking glow effect background */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(88, 255, 164, 0.08), 
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(52, 58, 64, 0.08),
              0 0 0 1px var(--accent);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-icon {
  background-color: var(--accent);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(88, 255, 164, 0.3);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--text-primary);
}

.card p {
  transition: color 0.3s ease;
}

/* Solution Section */
.solution {
  padding: 8rem 0;
  background-color: var(--bg-primary);
}

.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.zigzag-row:last-child {
  margin-bottom: 0;
}

.zigzag-row.reverse .zigzag-content {
  order: 2;
}

.zigzag-row.reverse .zigzag-image {
  order: 1;
}

.metrics-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.zigzag-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.zigzag-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.zigzag-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* Portfolio Section */
.portfolio {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(52, 58, 64, 0.1);
  background-color: var(--bg-primary);
}

.portfolio-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 1.5rem;
  border-top: 1px solid rgba(52, 58, 64, 0.1);
}

.portfolio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--text-primary);
}

/* Final CTA Section */
.final-cta {
  padding: 6rem 0 10rem;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  text-align: center;
}

.final-cta h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.final-cta p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: #adb5bd;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-primary {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

/* Footer */
.footer {
  padding: 4rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.footer-contact {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.separator {
  color: rgba(0, 0, 0, 0.1);
  font-weight: 300;
}

@media (max-width: 768px) {
  .footer-contact {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .separator {
    display: none;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: var(--text-primary);
  color: var(--accent);
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 8px 16px rgba(52, 58, 64, 0.15);
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(88, 255, 164, 0.4), 
              0 0 15px rgba(88, 255, 164, 0.6);
}

/* Mobile Bottom Navigation Styles */
.mobile-bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  height: 70px;
  background-color: rgba(52, 58, 64, 0.8);
  backdrop-filter: blur(15px);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  z-index: 2000;
  border-radius: 20px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 500;
  gap: 4px;
  height: 100%;
  transition: var(--transition);
}

.nav-item i {
  font-size: 1.5rem;
  color: var(--accent);
}

.nav-item.cta-item {
  background-color: var(--accent);
  color: var(--text-primary);
  height: 50px;
  border-radius: 12px;
  margin: 0 5px;
  box-shadow: 0 4px 10px rgba(88, 255, 164, 0.3);
}

.nav-item.cta-item i {
  color: var(--text-primary);
}

.nav-item:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-grid, .zigzag-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .zigzag-row.reverse .zigzag-content {
    order: 1;
  }
  
  .zigzag-row.reverse .zigzag-image {
    order: 2;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 100px; 
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .grid-3, .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
  }
  
  .hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
  }
  
  .hero-content .btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }

  .final-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .final-cta p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero {
    padding: 8.5rem 0 3rem;
  }
  
  .final-cta {
    padding: 5rem 1rem 8rem;
  }

  .footer {
    margin-bottom: 150px; /* Extra space to allow scrolling past the last button */
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .final-cta h2 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
