body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(-45deg, #15182D, #2D2B5A, #4D61F4, #2D2B5A);
  background-size: 400% 400%;
  animation: gradientBG 25s ease infinite;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2em;
  overflow-x: hidden;
  justify-content: center;
  min-height: 100vh;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #15182D;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.loader-container.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-text {
  color: #D7FF7B;
  font-size: 1.2rem;
  margin-top: 1.5em;
}

h1 {
  font-size: 3rem;
  margin: 0.5em 0 0.2em;
  color: #D7FF7B;
}

p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5em;
  line-height: 1.6;
}

section {
  margin-top: 3em;
  max-width: 1000px;
  width: 100%;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1em;
  color: #CFB6FF;
}

.servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2em;
  justify-content: center;
  margin-top: 2em;
}

.servicios div {
  background: rgba(31, 41, 55, 0.85);
  border: 1px solid #374151;
  padding: 1em;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.contacto {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 4em;
}

a {
  color: #4D61F4;
  text-decoration: none;
}

.social {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  margin-top: 2em;
}

.social a {
  font-size: 1.8rem;
  color: #4D61F4;
  transition: transform 0.3s;
}

.social a:hover {
  transform: scale(1.2);
  color: #D7FF7B;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#contactBtn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(77,97,244,0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(77,97,244,0.8); }
}

#formModal {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
}

#formModal.show {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

