/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #f5f5f5;
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #e5e5e5;
  --hover-color: #f8f8f8;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

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

/* Header moderno */
.header {
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.logo-text {
  color: var(--primary-color);
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  gap: 15px;
}

.search-btn,
.cart-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.search-btn:hover,
.cart-btn:hover {
  background: var(--hover-color);
}

/* Hero Section */
.hero {
  padding: 100px 0;
  background: url('img/Imagen Principal.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--secondary-color);
  letter-spacing: -1px;
  z-index: 2;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 40px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}



.cta-button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  position: relative;
}

.cta-button:hover {
  background: var(--text-color);
  transform: translateY(-2px);
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.image-placeholder {
  width: 100%;
  height: 700px;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.hero-image .image-placeholder {
  display: none;
}

/* Sección de productos */
.featured-products {
  padding: 100px 0;
  background: var(--accent-color);
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--secondary-color);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 350px;
}

.product-image .image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-light);
  transition: var(--transition);
}

/* Imagen real del producto */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Imagen swap en hover */
.product-img-base {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.product-img-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.product-card:hover .product-img-hover {
  opacity: 1;
}

.product-card:hover .product-img-base {
  opacity: 0;
}

/* Hover: zoom de la imagen y elevación */
.product-card:hover .product-img-base,
.product-card:hover .product-img-hover,
.product-card:hover .image-placeholder {
  transform: scale(1.06);
}

.product-img,
.product-image .image-placeholder {
  transition: transform 0.4s ease;
}

.product-info {
  padding: 24px;
}

.product-name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-section p {
  color: #cccccc;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: #cccccc;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* Modal (Quick View) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal:target {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background: var(--secondary-color);
  max-width: 900px;
  margin: 60px auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
}

.modal-image-wrap {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border-color);
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.modal-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 30px 15px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .nav {
    gap: 20px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .logo-img {
    height: 48px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .section-title {
    font-size: 28px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .featured-products {
    padding: 60px 0;
  }

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

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-img {
    height: 40px;
  }
}