/* Variables de color */
:root {
  /* Colores claros y contrastantes para resaltar el logo oscuro */
  --bg-color: #f7f7f7;
  --primary-color: #b71c1c; /* rojo profundo inspirado en el logo */
  --secondary-color: #f5a623; /* naranja suave para detalles */
  --accent-color: #333333; /* gris oscuro para contrastes */
  --text-color: #333333;
  --muted-text: #666666;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.navbar nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 400;
  transition: color 0.3s;
}

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

/* Hero section */
.hero {
  height: 70vh;
  background: linear-gradient(135deg, #ffffff, #fdecea);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero::after {
  /* Elimina overlay oscura para mantener un fondo claro */
  content: none;
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--muted-text);
}

/* Logo en la sección hero */
.hero-logo {
  max-width: 200px;
  width: 50%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Main sections */
main {
  margin-top: 80px;
  padding: 2rem;
}

.product-section {
  margin-bottom: 3rem;
}

.product-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  margin: 0.3rem 0;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.product-card p {
  flex-grow: 1;
  font-size: 0.9rem;
  color: var(--muted-text);
}

.product-card .price {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--primary-color);
}

.product-card button {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: none;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-card button:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
}

/* Cart panel */
.cart-panel {
  position: fixed;
  top: 80px;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: calc(100% - 80px);
  background-color: #ffffff;
  color: var(--accent-color);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 2000;
}

.cart-panel.visible {
  transform: translateX(0);
}

.cart-panel h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.cart-item span {
  font-size: 0.9rem;
}

.cart-summary {
  margin: 1rem 0;
  font-size: 1rem;
  color: var(--secondary-color);
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

form input[type="text"],
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.2rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  color: var(--accent-color);
}

form textarea {
  resize: vertical;
}

.note {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin: 0.5rem 0;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f2f2f2;
  color: var(--muted-text);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}