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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(2, 39, 138, 0.9), rgba(2, 39, 138, 0.7)),
    url("https://acdn-us.mitiendanube.com/stores/876/598/products/20240624_124930-25d633c9099e99bd7017194167538390-1024-1024.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  z-index: 2;
  max-width: 850px;
  padding: 2rem;
  animation: apareceDesdeAbajo 1.5s ease-out;
}

.logo {
  font-size: 4rem;
  font-weight: 300;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.911);
  letter-spacing: 3px;
}

.hero-description {
  font-size: 1.3rem;
  color: #f8f9ff;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  animation: float 2s infinite;
}

.scroll-indicator i {
  font-size: 3rem;
}

* Products Section */ .products-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #e5e9fa 0%, #ffffff 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #02278a;
  margin-bottom: 1rem;
  font-weight: 300;
}

.section-subtitle {
  color: #5a5656;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #02278a;
  font-size: 1.2rem;
}

.loading i {
  font-size: 2rem;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
  display: block;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 39, 138, 0.1);
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.product-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(2, 39, 138, 0.15);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
  text-transform: uppercase;
}

.product-carousel {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-nav:hover {
  background: rgba(2, 39, 138, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

.product-info {
  padding: 1.5rem;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #02278a;
  text-transform: capitalize;
}

.product-color {
  background: #f0f2ff;
  color: #02278a;
  padding: 0.2rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
}

.product-sizes {
  margin-bottom: 1rem;
}

.sizes-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-badge {
  background: #e8ecff;
  color: #02278a;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #02278a;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.stock-available {
  color: #4caf50;
}

.stock-unavailable {
  color: #f44336;
}

.catalog-button {
  text-align: center;
  margin-top: 3rem;
}

.btn-catalog {
  display: inline-block;
  background: linear-gradient(135deg, #02278a, #0a3cb8);
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(2, 39, 138, 0.3);
}

.btn-catalog:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(2, 39, 138, 0.4);
  background: linear-gradient(135deg, #0a3cb8, #1248c9);
}

.error-message {
  text-align: center;
  padding: 3rem;
  color: #f44336;
  font-size: 1.1rem;
  background: #ffebee;
  border-radius: 10px;
  margin: 2rem 0;
}

.error-message i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* Animations */
@keyframes apareceDesdeAbajo {
  from {
    opacity: 0;
    transform: translateY(70px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

  .product-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
