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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideIn {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #222;
  overflow-x: hidden;
}

header {
  background: linear-gradient(90deg, #ff6f00 0%, #ffb300 25%, #ff4081 50%, #9c27b0 75%, #2196f3 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  padding: 2rem 1rem 1rem 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(255, 105, 135, 0.3);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: slideIn 2s ease-out;
}

.banner {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(120deg, #ff4081 0%, #ffd600 25%, #00bcd4 50%, #ff9800 75%, #e91e63 100%);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(255, 105, 135, 0.3);
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.banner-text {
  color: #fff;
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: pulse 3s ease-in-out infinite;
  z-index: 1;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 3px;
  text-shadow: 0 4px 20px rgba(255, 179, 0, 0.8);
  animation: fadeInUp 1.5s ease-out;
}

header h2 {
  margin: 0.5rem 0 1rem 0;
  font-size: 1.8rem;
  font-weight: 400;
  text-shadow: 0 4px 16px rgba(255, 64, 129, 0.8);
  animation: fadeInUp 1.5s ease-out 0.3s both;
}

nav {
  margin-top: 1.5rem;
  animation: fadeInUp 1.5s ease-out 0.6s both;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  background: linear-gradient(90deg, #ff4081 0%, #ffd600 50%, #00bcd4 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover {
  background: linear-gradient(90deg, #00bcd4 0%, #ff4081 50%, #ffd600 100%);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite;
  box-shadow: 0 6px 25px rgba(255, 64, 129, 0.6);
  transform: translateY(-3px) scale(1.05);
}

main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(255, 105, 135, 0.2);
  animation: fadeInUp 1s ease-out;
}

section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

section h3 {
  color: #ff4081;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(255, 64, 129, 0.3);
  font-size: 2rem;
  position: relative;
}

section h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #ff4081, #ffd600, #00bcd4);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.modelos-lista {
  columns: 2 300px;
  column-gap: 2rem;
  padding-left: 1.2rem;
}

.modelos-lista li {
  margin-bottom: 0.8rem;
  font-weight: 500;
  background: linear-gradient(90deg, #ffd600 0%, #ff4081 50%, #00bcd4 100%);
  background-size: 200% 200%;
  color: #fff;
  border-radius: 15px;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.modelos-lista li:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 64, 129, 0.5);
  animation: gradientShift 2s ease infinite;
}

/* Carrusel de modelos */
#galeria-modelos {
  margin-top: 3rem;
}

.carruseles {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.carrusel-container {
  background: linear-gradient(135deg, #ffd600 0%, #ff4081 25%, #00bcd4 50%, #9c27b0 75%, #ff9800 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(255, 64, 129, 0.3);
  padding: 2rem 1.5rem;
  max-width: 380px;
  min-width: 300px;
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.carrusel-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.carrusel-container:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 64, 129, 0.4);
}

.carrusel-container h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  text-shadow: 0 3px 15px rgba(0,0,0,0.5);
  z-index: 1;
  position: relative;
}

.frase-modelo {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-shadow: 0 3px 15px rgba(255, 215, 0, 0.8);
  z-index: 1;
  position: relative;
}

.carrusel {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.carrusel-imagenes {
  width: 240px;
  height: 240px;
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: #fff;
  margin: 0 1rem;
  position: relative;
}

.carrusel-imagenes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: slideIn 3s ease-out;
}

.carrusel-imagenes img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: none;
  transition: all 0.5s ease;
}

.carrusel-imagenes img.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.carrusel-prev, .carrusel-next {
  background: linear-gradient(90deg, #ff4081 0%, #ffd600 50%, #00bcd4 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.carrusel-prev::before, .carrusel-next::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.carrusel-prev:hover::before, .carrusel-next:hover::before {
  left: 100%;
}

.carrusel-prev:hover, .carrusel-next:hover {
  background: linear-gradient(90deg, #00bcd4 0%, #ff4081 50%, #ffd600 100%);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite;
  box-shadow: 0 6px 25px rgba(255, 64, 129, 0.6);
  transform: scale(1.1);
}

footer {
  background: linear-gradient(90deg, #ff4081 0%, #ffd600 25%, #00bcd4 50%, #9c27b0 75%, #ff9800 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 -8px 32px rgba(255, 64, 129, 0.3);
}

section ul, section p {
  font-size: 1.2rem;
  line-height: 1.6;
}

section ul li {
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

section ul li:hover {
  transform: translateX(10px);
  color: #ff4081;
}

section#contacto a {
  color: #ff4081;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

section#contacto a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4081, #ffd600);
  transition: width 0.3s ease;
}

section#contacto a:hover::after {
  width: 100%;
}

section#contacto a:hover {
  color: #ffd600;
  text-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
}

@media (max-width: 900px) {
  .carruseles {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .carrusel-container {
    max-width: 95vw;
    min-width: 0;
  }
  header h1 {
    font-size: 2rem;
  }
  header h2 {
    font-size: 1.2rem;
  }
  .banner-text {
    font-size: 1.5rem;
  }
  main {
    margin: 1rem;
    padding: 1rem;
  }
}

/* Efectos adicionales */
.intro p {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.tecnologia ul li {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Efecto de partículas en el fondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 159, 243, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
} 