* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
}

nav {
  position: fixed;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e63946;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
  animation: logoSpin 3s infinite alternate;
  display: inline-block;
}

.logo:hover .logo-icon {
  animation: logoSpin 1s infinite;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e63946;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #e63946;
}

main {
  padding-top: 60px;
}

section {
  padding: 4rem 2rem;
  animation: fadeIn 1s ease-out;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600') center/cover;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-out;
}

.hero p {
  animation: fadeIn 2s ease-out;
}

.productos, .servicios {
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.swiper {
  width: 100%;
  height: 400px;
  margin: 2rem 0;
}

.swiper-slide {
  text-align: center;
  transition: transform 0.3s;
}

.swiper-slide:hover {
  transform: scale(1.05);
}

.swiper-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.servicio-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.servicio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.servicio-card:hover img {
  transform: scale(1.1);
}

.servicio-card h3, .servicio-card p {
  padding: 1rem;
}

.contacto {
  background-color: #f8f9fa;
}

.contacto-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contacto-info p {
  transition: transform 0.3s;
}

.contacto-info p:hover {
  transform: translateX(10px);
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: #25d366;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.whatsapp-button img {
  width: 30px;
  height: 30px;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }
}