:root {
  --accent: #0f766e;
  --accent-dark: #0e5b59;
  --bg: #f8fafc;
  --text: #0f172a;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* NAVBAR */
.navbar {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.5px;
}
.logo span {
  color: var(--accent);
}
.cart-icon {
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}
.cart-icon span {
  background: white;
  color: var(--accent);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.9em;
  margin-left: 6px;
}

/* HERO */
.hero {
  background: linear-gradient(120deg, #0ea5a4, #0e9de0);
  color: white;
  text-align: center;
  padding: 60px 20px;
}
.hero h2 { font-size: 2.4rem; margin-bottom: 0.5em; }
.hero p { font-size: 1.2rem; opacity: 0.9; }

/* CATALOGO */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent-dark);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card h3 {
  margin: 12px;
  font-size: 1.1rem;
  color: var(--accent-dark);
}
.card p {
  margin: 0 12px 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #eee;
}
.price {
  font-weight: 800;
  color: var(--accent);
}
.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn.full { width: 100%; margin-top: 8px; }

/* 🛒 PANEL DEL CARRITO */
.cart-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  z-index: 999;
}
.hidden { display: none; }
.cart-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 6px 0;
  font-size: 0.95rem;
}
.small {
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
}
.close-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  margin-top: 10px;
}
input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.checkout-actions { margin-top: 10px; }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal.hidden { display: none; }
.modal-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-card img { width: 180px; margin: 10px auto; }

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
footer a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }

/*+++++++++++++++++++++++++++++++++++++++*/
.thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.25s ease;
}

.card:hover .thumb {
  transform: scale(1.03);
}

