@keyframes bounceHorizontal {
  0% { left: 10%; }
  25% { left: 30%; }
  50% { left: 60%; }
  75% { left: 35%; }
  100% { left: 10%; }
}

@keyframes bounceVertical {
  0% { top: 10%; }
  25% { top: 25%; }
  50% { top: 55%; }
  75% { top: 40%; }
  100% { top: 10%; }
}
/* FONTS */
@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/sf-pro-display/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/sf-pro-display/SFPRODISPLAYMEDIUM.OTF') format('opentype');
  font-weight: 500;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/sf-pro-display/SFPRODISPLAYBOLD.OTF') format('opentype');
  font-weight: 700;
}
:root {
  --color-bg1: rgb(8, 10, 15);
  --color-bg2: rgb(0, 17, 32);
  --color1: 18, 113, 255;
  --color2: 107, 74, 255;
  --color3: 100, 100, 255;
  --color4: 50, 160, 220;
  --color5: 80, 47, 122;
  --color-interactive: 140, 100, 255;
  --circle-size: 80%;
  --blending: hard-light;
}

.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  min-height: 100vh;
  max-width: 100vw;
  max-height: none;
  overflow: hidden;
  background: black;
  border-radius: 0;
  box-shadow: none;
  z-index: -1;
  /* Forma ovalada más pronunciada para contener los gradientes */
  mask-image: radial-gradient(ellipse 85% 70% at center, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at center, black 35%, transparent 75%);
}
@media (max-width: 900px) {
  .gradient-bg {
    min-height: 500px;
    height: 100vh;
  }
}
@media (max-width: 600px) {
  .gradient-bg {
    min-height: 350px;
    height: 100vh;
  }
}

.gradient-bg .svgBlur {
  display: none;
}

.gradient-bg .noiseBg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  mix-blend-mode: soft-light;
  opacity: 0.3;
}

.gradient-bg .gradients-container {
  filter: url(#goo) blur(50px);
  width: 100%;
  height: 100%;
}

.gradient-bg .g1,
.gradient-bg .g2,
.gradient-bg .g3,
.gradient-bg .g4,
.gradient-bg .g5,
.gradient-bg .interactive {
  position: absolute;
  mix-blend-mode: var(--blending);
  /* Evita que los gradientes toquen los bordes y los mantiene dentro del óvalo */
  margin: 50px;
  max-width: calc(100% - 100px);
  max-height: calc(100% - 100px);
}

.gradient-bg .g1 {
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%);
  width: 50%;
  height: 40%;
  top: 10%;
  left: 10%;
  animation: bounceHorizontal 24s ease-in-out infinite, bounceVertical 18s ease-in-out infinite;
}

.gradient-bg .g2 {
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%);
  width: 45%;
  height: 35%;
  top: 15%;
  left: 15%;
  animation: bounceHorizontal 20s ease-in-out infinite, bounceVertical 28s ease-in-out infinite;
}

.gradient-bg .g3 {
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%);
  width: 40%;
  height: 30%;
  top: 20%;
  left: 20%;
  animation: bounceHorizontal 32s ease-in-out infinite, bounceVertical 22s ease-in-out infinite;
}

.gradient-bg .g4 {
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%);
  width: 35%;
  height: 28%;
  top: 25%;
  left: 25%;
  animation: bounceHorizontal 26s ease-in-out infinite, bounceVertical 34s ease-in-out infinite;
}

.gradient-bg .g5 {
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%);
  width: 32%;
  height: 25%;
  top: 30%;
  left: 30%;
  animation: bounceHorizontal 38s ease-in-out infinite, bounceVertical 30s ease-in-out infinite;
}

@keyframes moveInCircle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
  0% { transform: translateX(-50%) translateY(-10%); }
  50% { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Display', 'Inter', sans-serif;
}

body {
  background: #000;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* CONTAINERS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* CARDS */
.card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, transparent 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: white;
}

.card p {
  color: #9ca3af;
  line-height: 1.6;
}

/* NAVBAR ESPECÍFICO */
#navbar-content {
  background: transparent;
  backdrop-filter: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar-content.navbar-scrolled {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

/* NEGOCIO SECTION */
.negocio {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.negocio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
}

.negocio-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.negocio h2 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* SOLUCIONES SECTION */
.soluciones {
  padding: 6rem 0;
  background: #000;
}

.soluciones h2 {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.soluciones > .container > p {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tabs button {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #9ca3af;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tabs button.active,
.tabs button:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.soluciones .card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* BUTTONS */
.btn-primary {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  border-radius: 2rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: #3b82f6;
  color: white;
}

/* CONTACTO SECTION */
.contacto {
  background: #0f172a;
  padding: 6rem 0;
}

.contacto h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: white;
}

.contacto > .container > p {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 1rem;
}

.contact-form input::placeholder {
  color: #9ca3af;
}

.contact-form select {
  color: #9ca3af;
}

.contact-form select option {
  background: #0f172a;
  color: white;
}

/* FOOTER */
.footer {
  background: #000;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer .logo span {
  color: #3b82f6;
}

.footer nav {
  display: flex;
  gap: 2rem;
}

.footer nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer nav a:hover {
  color: #3b82f6;
}

.footer a[href^="mailto"] {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
}

/* CHAT BUBBLES ANIMATION */
.chat-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

.chat-bubble:nth-child(odd) {
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .negocio h2 {
    font-size: 2rem;
  }
  
  .soluciones h2 {
    font-size: 2rem;
  }
  
  .contacto h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* SCROLL DOWN ARROW */
.scroll-down-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.scroll-down-arrow:hover {
  transform: translateY(-2px);
}

.scroll-down-arrow .arrow-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(80, 80, 80, 0.144);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(80, 80, 80, 0.144);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

.scroll-down-arrow:hover .arrow-icon {
  border-color: rgb(74 222 128 / var(--tw-text-opacity, 1));
  transform: scale(1.1);
}

.scroll-down-arrow .arrow-icon svg {
  width: 16px;
  height: 16px;
  color: white;
  animation: arrowMove 2s infinite;
}

.scroll-down-arrow .scroll-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  font-weight: 500;
  animation: textFade 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

@keyframes arrowMove {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(3px);
  }
  60% {
    transform: translateY(1px);
  }
}

@keyframes textFade {
  0%, 50%, 100% {
    opacity: 0.8;
  }
  25%, 75% {
    opacity: 1;
  }
}

/* Animaciones para las cards de soluciones */
.solution-card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.solution-card.hidden {
  opacity: 0;
  transform: translateY(20px);
  display: none;
}

.solution-card.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

#solutions-container {
  transition: all 0.4s ease;
}

/* Animación de entrada para las cards */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.solution-card.animate-in {
  animation: cardFadeIn 0.5s ease forwards;
}

/* FOOTER GRADIENT (mismo que el hero) */
.footer-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  min-height: 100%;
  max-width: 100vw;
  max-height: none;
  overflow: hidden;
  background: black;
  border-radius: 0;
  box-shadow: none;
  z-index: -1;
  /* Forma ovalada invertida para el footer */
  mask-image: radial-gradient(ellipse 90% 70% at center top, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at center top, black 35%, transparent 75%);
}

.footer-gradient-bg .svgBlur {
  display: none;
}

.footer-gradient-bg .noiseBg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  mix-blend-mode: soft-light;
  opacity: 0.3;
}

.footer-gradients-container {
  filter: url(#footerGoo) blur(50px);
  width: 100%;
  height: 100%;
}

.footer-gradient-bg .fg1,
.footer-gradient-bg .fg2,
.footer-gradient-bg .fg3,
.footer-gradient-bg .fg4,
.footer-gradient-bg .fg5 {
  position: absolute;
  mix-blend-mode: hard-light;
  /* Evita que los gradientes toquen los bordes y los mantiene dentro del óvalo */
  margin: 50px;
  max-width: calc(100% - 100px);
  max-height: calc(100% - 100px);
}

/* Animaciones para el footer (invertidas para venir desde arriba) */
@keyframes footerBounceHorizontal {
  0% { left: 10%; }
  25% { left: 30%; }
  50% { left: 60%; }
  75% { left: 35%; }
  100% { left: 10%; }
}

@keyframes footerBounceVertical {
  0% { top: 80%; }
  25% { top: 60%; }
  50% { top: 30%; }
  75% { top: 50%; }
  100% { top: 80%; }
}

.footer-gradient-bg .fg1 {
  background: radial-gradient(circle at center, rgba(18, 113, 255, 0.8) 0, rgba(18, 113, 255, 0) 50%);
  width: 50%;
  height: 40%;
  top: 70%;
  left: 10%;
  animation: footerBounceHorizontal 24s ease-in-out infinite, footerBounceVertical 18s ease-in-out infinite;
}

.footer-gradient-bg .fg2 {
  background: radial-gradient(circle at center, rgba(107, 74, 255, 0.8) 0, rgba(107, 74, 255, 0) 50%);
  width: 45%;
  height: 35%;
  top: 65%;
  left: 15%;
  animation: footerBounceHorizontal 20s ease-in-out infinite, footerBounceVertical 28s ease-in-out infinite;
}

.footer-gradient-bg .fg3 {
  background: radial-gradient(circle at center, rgba(100, 100, 255, 0.8) 0, rgba(100, 100, 255, 0) 50%);
  width: 40%;
  height: 30%;
  top: 75%;
  left: 20%;
  animation: footerBounceHorizontal 32s ease-in-out infinite, footerBounceVertical 22s ease-in-out infinite;
}

.footer-gradient-bg .fg4 {
  background: radial-gradient(circle at center, rgba(50, 160, 220, 0.8) 0, rgba(50, 160, 220, 0) 50%);
  width: 35%;
  height: 28%;
  top: 70%;
  left: 25%;
  animation: footerBounceHorizontal 26s ease-in-out infinite, footerBounceVertical 34s ease-in-out infinite;
}

.footer-gradient-bg .fg5 {
  background: radial-gradient(circle at center, rgba(80, 47, 122, 0.8) 0, rgba(80, 47, 122, 0) 50%);
  width: 32%;
  height: 25%;
  top: 80%;
  left: 30%;
  animation: footerBounceHorizontal 38s ease-in-out infinite, footerBounceVertical 30s ease-in-out infinite;
}
