/* HEADER */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.main-nav a {
  margin: 0 1rem;
  color: var(--color-secondary);
  font-weight: bold;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-img {
  max-width: 100%;
  border-radius: var(--radius);
}

.hero-text h2 {
  font-size: 2rem;
  color: var(--color-primary);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--color-text);
}

/* BOTONES */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: white;
  text-align: center;
  border-radius: var(--radius);
  font-weight: bold;
  transition: background 0.3s;
}

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

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid #ccc;
  color: var(--color-text);
}

.site-footer .social a {
  margin: 0 0.5rem;
  color: var(--color-secondary);
}

.site-footer .social a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .hero-text {
    max-width: 400px;
    margin-left: 2rem;
  }
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card img {
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: center;
}

table th {
  background: var(--color-primary);
  color: white;
}

.btn-danger {
  background: #e03131;
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-weight: bold;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

.checkout-form input {
  padding: 0.7rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

/* CHECKOUT */
.checkout {
  max-width: 600px;
  margin: 0 auto;
}

.checkout-title {
  text-align: center;
  font-size: 1.8rem;
}

.checkout-step {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
}

/* CARDS */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}


/* RESUMEN */
.checkout-summary {
  list-style: none;
  margin-bottom: 1rem;
}

.checkout-summary li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.checkout-total {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
  text-align: right;
}

/* FORM */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checkout-form input {
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* CTA */
.btn-checkout {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* MICROCOPY */
.checkout-microcopy {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

/* DESKTOP ENHANCEMENT */
@media (min-width: 768px) {
  .checkout {
    max-width: 800px;
  }
}

/* CARRITO */
.cart {
  max-width: 600px;
  margin: 0 auto;
}

.cart-title {
  text-align: center;
  font-size: 1.8rem;
}

.cart-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* ITEM */
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.item-row {
  display: flex;
  justify-content: space-between;
  margin: .5rem 0;
}

.item-row.total {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.qty-btn {
  background: var(--color-secondary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
}

.qty {
  font-size: 1.1rem;
  font-weight: bold;
}

/* FOOTER ITEM */
.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* TOTAL */
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total strong {
  font-weight: normal;
  color: #555;
}

.cart-total span {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-primary);
}


/* CTA */
.btn-checkout {
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}


/* DESKTOP */
@media (min-width: 768px) {
  .cart {
    max-width: 700px;
  }
}

.categorias-nav a.active {
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

/* =========================
   Categorías slider
========================= */
.categorias-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
}

.categoria-card {
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    scroll-snap-align: start;
    transition: transform .2s, box-shadow .2s;
}

.categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.categoria-card.active {
    border: 2px solid var(--primary-color);
}

.categoria-content h3 {
    margin: 0;
    font-size: 1.1rem;
}

