/* Estilos Modernos y Dinámicos para GC Servicios */

:root {
  --primary-color: #000000;
  --secondary-color: #ffdd00;
  --accent-color: #007bff;
  --text-color: #ffffff;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--primary-color), #1a1a1a, #333);
  background-size: 300% 300%;
  animation: dynamicBackground 15s ease infinite;
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

@keyframes dynamicBackground {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 221, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
  animation: floatingParticles 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatingParticles {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(90deg); }
  50% { transform: translateY(10px) rotate(180deg); }
  75% { transform: translateY(-5px) rotate(270deg); }
}

header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px var(--shadow);
  border-bottom: 1px solid var(--secondary-color);
  transition: all 0.3s ease;
}

header:hover {
  background: rgba(0, 0, 0, 0.95);
}

.logo h1 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: neonGlow 3s ease-in-out infinite alternate;
  margin: 0;
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes neonGlow {
  from {
    text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color);
  }
  to {
    text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color), 0 0 40px var(--accent-color);
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  border-radius: 25px;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

nav a:hover::before {
  transform: scale(1);
}

nav a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

main {
  margin-top: 100px;
  padding: 3rem 2rem;
}

#slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  margin-bottom: 3rem;
}

.carousel {
  display: flex;
  width: 300%;
  animation: slideShow 18s infinite;
  transition: transform 0.5s ease;
}

@keyframes slideShow {
  0%, 33.33% { transform: translateX(0); }
  33.33%, 66.66% { transform: translateX(-33.33%); }
  66.66%, 100% { transform: translateX(-66.66%); }
}

.slide {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slide:hover img {
  transform: scale(1.05);
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,123,255,0.2));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide:hover::after {
  opacity: 1;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--text-color);
  border: none;
  padding: 1.5rem;
  cursor: pointer;
  font-size: 2rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow);
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

#servicios {
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.servicio {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 221, 0, 0.2);
  animation: slideInUp 0.8s ease-out;
}

.servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow);
  border-color: var(--secondary-color);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.servicio h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  position: relative;
}

.servicio h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.servicio p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
}

#contenido {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px var(--shadow);
  margin: 3rem 0;
  border: 1px solid rgba(0, 123, 255, 0.2);
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#contenido h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
}

#contenido p {
  color: var(--text-color);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

footer {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  color: var(--text-color);
  border-top: 1px solid var(--secondary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contacto, .enlaces, .redes {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contacto:hover, .enlaces:hover, .redes:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.contacto h3, .enlaces h3, .redes h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contacto p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.enlaces ul {
  list-style: none;
  padding: 0;
}

.enlaces a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: block;
  margin: 0.5rem 0;
}

.enlaces a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.redes a {
  margin: 0 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.redes a:hover {
  transform: scale(1.2);
}

.redes img {
  width: 32px;
  height: 32px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .logo h1 {
    font-size: 2rem;
  }

  main {
    padding: 2rem 1rem;
  }

  #slider {
    height: 300px;
  }

  #servicios {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}