/* PREVENCIÓN DE SCROLL HORIZONTAL */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* KEYFRAMES PARA ANIMACIONES */
@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(60px);
  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);
  /* Gradientes más grandes y superpuestos para formar una masa */
  margin: 20px;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
}

.gradient-bg .g1 {
  background: radial-gradient(circle at center, rgba(var(--color1), 0.9) 0, rgba(var(--color1), 0.3) 40%, rgba(var(--color1), 0) 70%);
  width: 70%;
  height: 60%;
  top: 15%;
  left: 15%;
  animation: moveInCircle 20s reverse linear infinite;
}

.gradient-bg .g2 {
  background: radial-gradient(circle at center, rgba(var(--color2), 0.9) 0, rgba(var(--color2), 0.3) 40%, rgba(var(--color2), 0) 70%);
  width: 65%;
  height: 55%;
  top: 20%;
  left: 20%;
  animation: moveInCircle 25s linear infinite;
}

.gradient-bg .g3 {
  background: radial-gradient(circle at center, rgba(var(--color3), 0.9) 0, rgba(var(--color3), 0.3) 40%, rgba(var(--color3), 0) 70%);
  width: 60%;
  height: 50%;
  top: 25%;
  left: 25%;
  animation: moveInCircle 30s reverse linear infinite;
}

.gradient-bg .g4 {
  background: radial-gradient(circle at center, rgba(var(--color4), 0.9) 0, rgba(var(--color4), 0.3) 40%, rgba(var(--color4), 0) 70%);
  width: 55%;
  height: 45%;
  top: 30%;
  left: 30%;
  animation: moveInCircle 35s linear infinite;
}

.gradient-bg .g5 {
  background: radial-gradient(circle at center, rgba(var(--color5), 0.9) 0, rgba(var(--color5), 0.3) 40%, rgba(var(--color5), 0) 70%);
  width: 50%;
  height: 40%;
  top: 35%;
  left: 35%;
  animation: moveInCircle 40s reverse linear infinite;
}

@keyframes moveInCircle {
  0% { 
    transform: rotate(0deg) translateX(20px) rotate(0deg);
  }
  100% { 
    transform: rotate(360deg) translateX(20px) rotate(-360deg);
  }
}

@keyframes moveVertical {
  0% { transform: translateY(-30px); }
  50% { transform: translateY(30px); }
  100% { transform: translateY(-30px); }
}

@keyframes moveHorizontal {
  0% { transform: translateX(-30px) translateY(-15px); }
  50% { transform: translateX(30px) translateY(15px); }
  100% { transform: translateX(-30px) translateY(-15px); }
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Display', 'Inter', sans-serif;
}

/* Ocultar scrollbar del navegador en todos los navegadores */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00EF66 0%, #7F79BF 50%, #C5C3D7 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 239, 102, 0.4);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00FF6B 0%, #00EF66 100%);
  box-shadow: 0 0 15px rgba(0, 239, 102, 0.6);
}

html {
  scrollbar-width: thin;
  scrollbar-color: #00EF66 rgba(0, 0, 0, 0.3);
}

body {
  background: #000;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ========== BARRA DE PROGRESO CUSTOM ========== */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10000;
  border-bottom: 1px solid rgba(0, 239, 102, 0.2);
  transform: translateZ(0); /* Fuerza aceleración por hardware */
  will-change: transform; /* Optimiza para animaciones */
  pointer-events: none; /* Evita interferencias con otros elementos */
  box-sizing: border-box;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, 
    #00EF66 0%, 
    #00FF6B 25%, 
    #7F79BF 50%, 
    #00EF66 75%, 
    #C5C3D7 100%
  );
  background-size: 200% 100%;
  animation: gradientShift 3s ease-in-out infinite;
  width: 0%;
  max-width: 100%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 10px rgba(0, 239, 102, 0.6),
    0 0 20px rgba(0, 239, 102, 0.3),
    0 2px 10px rgba(0, 239, 102, 0.2);
  position: relative;
  transform: translateZ(0); /* Fuerza aceleración por hardware */
  pointer-events: none; /* Evita interferencias */
  box-sizing: border-box;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: shine 2s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shine {
  0% { transform: translateX(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(20px); opacity: 0; }
}

/* Indicador de porcentaje */
.progress-percentage {
  position: fixed;
  top: 8px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #00EF66;
  z-index: 10001;
  text-shadow: 0 0 10px rgba(0, 239, 102, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateZ(0); /* Fuerza aceleración por hardware */
  will-change: opacity; /* Optimiza para animaciones */
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  pointer-events: none; /* Evita interferencias */
  white-space: nowrap; /* Evita que el texto se corte */
  max-width: 60px; /* Limita el ancho máximo */
  text-align: center;
  box-sizing: border-box;
}

/* Estilos específicos para mobile y tablet */
@media (max-width: 1024px) {
  .progress-bar-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    height: 4px !important;
    z-index: 10000 !important;
    transform: translate3d(0, 0, 0) !important; /* Optimización para mobile */
    -webkit-transform: translate3d(0, 0, 0) !important; /* Safari */
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important; /* Safari */
    pointer-events: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .progress-bar {
    height: 100% !important;
    width: 0% !important;
    max-width: 100% !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .progress-percentage {
    position: fixed !important;
    top: 6px !important;
    right: 8px !important;
    z-index: 10001 !important;
    font-size: 10px !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    pointer-events: none !important;
    padding: 1px 6px !important;
    max-width: 50px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}

/* ========== SOLUCIONES: GRID DESKTOP + SLIDER MOBILE ========== */

/* Grid para desktop - visible solo en pantallas grandes */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Slider para mobile/tablet - oculto en desktop */
.solutions-slider {
  display: block;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .solutions-slider {
    display: none !important;
  }
  
  .solutions-grid {
    display: grid !important;
  }
}

@media (max-width: 1023px) {
  .solutions-grid {
    display: none !important;
  }
}

/* Configuración del Swiper para móvil */
.solutionsSwiper {
  width: 100%;
  height: auto;
  padding-bottom: 2rem;
  overflow: visible;
}

.solutionsSwiper .swiper-wrapper {
  align-items: center;
}

.solutionsSwiper .swiper-slide {
  width: 280px !important; /* Ancho fijo para mostrar cartas adyacentes */
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  opacity: 0.7;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

/* Cuando hay pocas slides, centrar mejor */
.solutionsSwiper[data-slide-count="1"] .swiper-wrapper,
.solutionsSwiper[data-slide-count="2"] .swiper-wrapper,
.solutionsSwiper[data-slide-count="3"] .swiper-wrapper {
  justify-content: center;
}

.solutionsSwiper[data-slide-count="1"] .swiper-slide,
.solutionsSwiper[data-slide-count="2"] .swiper-slide,
.solutionsSwiper[data-slide-count="3"] .swiper-slide {
  width: auto !important;
  max-width: 280px;
  flex: 0 0 auto;
}

.solutionsSwiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.solutionsSwiper .swiper-slide-next,
.solutionsSwiper .swiper-slide-prev {
  opacity: 0.8;
  transform: scale(0.95);
}

.solutionsSwiper .swiper-pagination {
  bottom: 0;
  position: relative;
  margin-top: 1.5rem;
  text-align: center;
}

.solutionsSwiper .swiper-pagination-bullet {
  background-color: #4a4a4a !important;
  opacity: 0.8 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.solutionsSwiper .swiper-pagination-bullet-active {
  background: linear-gradient(to right, #7F79BF, #C5C3D7) !important;
  opacity: 1 !important;
  width: 25px !important;
  border-radius: 5px !important;
}

/* Mejorar responsive del grid de desktop */
@media (max-width: 1023px) {
  .solutions-grid {
    display: none !important;
  }
}

/* BOTONES MAGNÉTICOS */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

/* ANIMACIÓN DEL LOGO */
.logo-animated {
  transition: all 0.3s ease;
}

.logo-animated:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-animated path {
  transition: all 0.5s ease;
}

.logo-animated:hover path:nth-child(1) {
  animation: glow-text 2s infinite alternate;
}

.logo-animated:hover path:nth-child(2) {
  animation: glow-text 2s infinite alternate 0.2s;
}

.logo-animated:hover path:nth-child(3) {
  animation: glow-text 2s infinite alternate 0.4s;
}

.logo-animated:hover path:nth-child(4) {
  animation: glow-text 2s infinite alternate 0.6s;
}

.logo-animated:hover path:nth-child(5) {
  animation: glow-text 2s infinite alternate 0.8s;
}

.logo-animated:hover path:nth-child(6),
.logo-animated:hover path:nth-child(7),
.logo-animated:hover path:nth-child(8),
.logo-animated:hover path:nth-child(9) {
  animation: glow-green 2s infinite alternate;
}

@keyframes glow-text {
  from {
    fill: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }
  to {
    fill: #00EF66;
    filter: drop-shadow(0 0 20px rgba(0, 239, 102, 0.8));
  }
}

@keyframes glow-green {
  from {
    fill: #00F068;
    filter: drop-shadow(0 0 5px rgba(0, 240, 104, 0.5));
  }
  to {
    fill: #00EF66;
    filter: drop-shadow(0 0 25px rgba(0, 239, 102, 1));
  }
}

/* PARALLAX ELEMENTS */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

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;
}

/* COMPENSACIÓN PARA NAVEGACIÓN - SCROLL OFFSET */
section[id] {
  scroll-margin-top: 100px; /* Valor por defecto */
}

/* Ajustes específicos para cada sección */
#porque {
  scroll-margin-top: 100px; /* Más espacio para "¿Por qué elegirnos?" */
}

#soluciones {
  scroll-margin-top: 60px;  /* Menos espacio para "Soluciones" */
}

#contacto {
  scroll-margin-top: 80px;  /* Espacio intermedio para "Contacto" */
}

/* Ajustes responsivos para mobile */
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 90px;
  }
  
  #porque {
    scroll-margin-top: 90px;   /* Ajuste para mobile */
  }
  
  #soluciones {
    scroll-margin-top: 50px;   /* Menos espacio en mobile */
  }
  
  #contacto {
    scroll-margin-top: 70px;   /* Ajuste para mobile */
  }
}

/* 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(60px);
  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;
  /* Gradientes más grandes y superpuestos para formar una masa */
  margin: 20px;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
}

.footer-gradient-bg .fg1 {
  background: radial-gradient(circle at center, rgba(18, 113, 255, 0.9) 0, rgba(18, 113, 255, 0.3) 40%, rgba(18, 113, 255, 0) 70%);
  width: 70%;
  height: 60%;
  top: 40%;
  left: 15%;
  animation: moveInCircle 25s linear infinite;
}

.footer-gradient-bg .fg2 {
  background: radial-gradient(circle at center, rgba(107, 74, 255, 0.9) 0, rgba(107, 74, 255, 0.3) 40%, rgba(107, 74, 255, 0) 70%);
  width: 65%;
  height: 55%;
  top: 35%;
  left: 20%;
  animation: moveInCircle 30s reverse linear infinite;
}

.footer-gradient-bg .fg3 {
  background: radial-gradient(circle at center, rgba(100, 100, 255, 0.9) 0, rgba(100, 100, 255, 0.3) 40%, rgba(100, 100, 255, 0) 70%);
  width: 60%;
  height: 50%;
  top: 45%;
  left: 25%;
  animation: moveInCircle 35s linear infinite;
}

.footer-gradient-bg .fg4 {
  background: radial-gradient(circle at center, rgba(50, 160, 220, 0.9) 0, rgba(50, 160, 220, 0.3) 40%, rgba(50, 160, 220, 0) 70%);
  width: 55%;
  height: 45%;
  top: 40%;
  left: 30%;
  animation: moveInCircle 40s reverse linear infinite;
}

.footer-gradient-bg .fg5 {
  background: radial-gradient(circle at center, rgba(80, 47, 122, 0.9) 0, rgba(80, 47, 122, 0.3) 40%, rgba(80, 47, 122, 0) 70%);
  width: 50%;
  height: 40%;
  top: 50%;
  left: 35%;
  animation: moveInCircle 45s linear infinite;
}
