/* =========================
   BOTONES IMEX
========================= */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fcd900, #ffea70);
  color: #003c69;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  box-shadow: 0 6px 18px rgba(252, 217, 0, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.read-more-btn::after {
  content: "→";
  font-weight: 900;
  transition: transform 0.25s ease;
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(252, 217, 0, 0.5);
  color: #002a4a;
}

.read-more-btn:hover::after {
  transform: translateX(4px);
}

/* =========================
   DECORATIVE BACKGROUND (DINÁMICO)
========================= */


.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  /* El "Twist": Movimiento suave para que no sea una mancha estática */
  animation: float-bg 25s infinite alternate ease-in-out;
}

.shape-1 {
  width: 40vw;
  height: 40vw;
  background: #003c69;
  top: -5%;
  left: -10%;
}

.shape-2 {
  width: 45vw;
  height: 45vw;
  background: #003c69;
  top: 35%;
  right: -10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 30vw;
  height: 30vw;
  background: #9fd3ff;
  bottom: -5%;
  left: 15%;
  animation-delay: -10s;
}

@keyframes float-bg {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 5%) scale(1.05); }
}

#canvas-particles {
  position: fixed; /* Crucial para que te siga en el scroll */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* Justo encima de las shapes, pero debajo de los textos */
  pointer-events: none;
  background: transparent;
}

.bg-shapes {
  z-index: -1; /* Fondo base */
  background: #ffffff;
}

/* Para asegurar que el texto se lea sobre las partículas en móvil */
@media (max-width: 767px) {
  .services-text {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.4); /* Un velo casi invisible que ayuda a leer */
    backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 10px;
  }
}
/* Imagenes con efecto  */
.parallax-img {
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover sutil (sin parallax) */
.parallax-img:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.parallax-img {
  width: 100%;       /* Mantiene la imagen al ancho del contenedor */
  max-height: 400px; /* Ajusta según necesites */
  object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformar */
  display: block;
  margin: 0 auto;
}

/* Aplicar al contenedor principal de la sección o al body */
  .bg-mesh-animado {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    background-image: 
      radial-gradient(at 0% 0%, rgba(0, 81, 152, 0.08) 0px, transparent 50%),
      radial-gradient(at 100% 0%, rgba(0, 174, 239, 0.05) 0px, transparent 50%),
      radial-gradient(at 100% 100%, rgba(0, 81, 152, 0.08) 0px, transparent 50%),
      radial-gradient(at 0% 100%, rgba(0, 174, 239, 0.05) 0px, transparent 50%);
    animation: mesh-movement 20s ease infinite alternate;
    background-size: 200% 200%;
  }

  @keyframes mesh-movement {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
  }

  /* Glassmorphism en los cards para que resalten sobre el fondo */
  .card-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: transform 0.3s ease;
  }
  
  .card-glass:hover {
    transform: translateY(-5px);
  }

/* Gradiente para proteger la lectura de los textos */
.services-parallax {
  position: relative;
  z-index: 2; /* Por encima del fondo */
}

/* En móvil bajamos la opacidad del canvas aún más */
@media (max-width: 767px) {
  #canvas-particles {
    opacity: 0.2; /* Casi invisible, solo un detalle */
  }
  
  .services-text h3 {
    text-shadow: 0 0 10px rgba(255,255,255,0.8); /* Brillo blanco tras el texto */
  }
}
