/* Sección de trivia (solo para modal, no estilos de layout externo) */
.trivia-section h1 {
  color: #f5a946ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}
.trivia-question {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.trivia-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.trivia-btn {
  background: #f5a946ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.trivia-btn:hover {
  background: #f4752cff;
}
.trivia-end {
  color: #f5a946ff;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1rem;
}

.flyer-img {
    display: block;
    max-width: 400px;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(33,150,243,0.12);
}

@media (max-width: 600px) {
    .flyer-img {
        max-width: 100%;
    }
}
/* Sección del flyer del evento */
.flyer-section {
    background: #22242c;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flyer-section h1 {
    color: #f4752cff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
/* Botón para eliminar productos del carrito */
.remove-from-cart {
    background: #263859;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.7rem;
    margin-left: 0.7rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.remove-from-cart:hover {
  background: #f5a946ff;
}
/* Botón de checkout */
.checkout-btn {
    background: #f5a946ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.checkout-btn:hover {
  background: #f4752cff;
}
body {
  background: #181a20;
  color: #e0e6ed;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
.footer {
  flex-shrink: 0;
}
.navbar {
    background: #22242c;
    color: #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 2000;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f5a946ff;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #f5a946ff;
}
main {
    padding: 2rem;
}
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.product {
    background: #22242c;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.product:hover {
    box-shadow: 0 4px 16px rgba(243, 194, 33, 0.18);
}
.product img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #181a20;
}
.product img.out-of-stock-img {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.7;
}
.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #f5a946ff;
}
.product-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.2rem;
}
.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.95rem;
}
.discounted-price {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
}
.discount-percent {
    color: #f4752cff;
    font-size: 0.95rem;
    font-weight: 500;
}
.add-to-cart {
  background: #f5a946ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.add-to-cart:hover {
  background: #f4752cff;
}
.out-of-stock {
  color: #ff5252;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.add-to-cart[disabled] {
  background: #888;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
  border: none;
}
.cart-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(24,26,32,0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.cart-content {
    background: #22242c;
    border-radius: 12px;
    padding: 2rem;
    min-width: 320px;
    max-width: 90vw;
    color: #e0e6ed;
    box-shadow: 0 4px 16px rgba(243, 194, 33, 0.18);
    position: relative;
}
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
  color: #f5a946ff;
}
.cart-total {
    margin-top: 1.5rem;
    font-size: 1.2rem;
  color: #f5a946ff;
}
.youtube-responsive {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  margin: 2rem auto; /* Centrado horizontal */
  max-width: 900px;
  width: 100%;
  display: block; /* Cambiado de flex a block para centrar correctamente */
  text-align: center; /* Fuerza el centrado del contenido */
  left: 50%;
  transform: translateX(-50%);
}
.youtube-responsive iframe {
  display: inline-block;
  margin: 0 auto;
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .youtube-responsive {
    max-width: 100vw;
    margin: 1rem 0;
    left: 0;
    transform: none;
  }
}
@media (max-width: 600px) {
  .youtube-responsive {
    max-width: 100vw;
    margin: 1rem 0;
    left: 0;
    transform: none;
  }
  .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    main {
        padding: 1rem;
    }
    .cart-modal {
        justify-content: flex-end;
        align-items: flex-start;
    }
    .cart-content {
        padding: 1rem;
        margin: 0;
        border-radius: 12px 0 0 12px;
        width: 90vw;
        max-width: 400px;
        min-width: 220px;
        box-shadow: none;
    }
}
/* Estilos para el modal de trivia */
.trivia-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,26,32,0.85);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}
.trivia-content {
  background: #22242c;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  min-width: 320px;
  max-width: 90vw;
  color: #e0e6ed;
  box-shadow: 0 4px 16px rgba(243, 194, 33, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trivia-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f5a946ff;
}
.trivia-input {
  margin: 1rem 0 0.5rem 0;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: none;
  width: 100%;
  max-width: 260px;
  font-size: 1rem;
}
.trivia-btn {
  background: #f5a946ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.trivia-btn:hover {
  background: #f4752cff;
}
@media (max-width: 600px) {
  .trivia-content {
    padding: 1rem;
    min-width: 0;
  }
}
/* Estilos para el footer */
.footer {
  background: #22242c;
  color: #e0e6ed;
  padding: 2rem 0 1rem 0;
  margin-top: 2rem;
  font-size: 1rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto 1rem auto;
}
.footer-section {
  min-width: 180px;
}
.footer-section h3, .footer-section h4 {
  color: #f5a946ff;
  margin-bottom: 0.5rem;
}
.footer-designer {
  color: #f5a946ff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.footer a {
  color: #f5a946ff;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer a:hover {
  color: #f4752cff;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    max-width: 100vw;
  }
  .footer {
    font-size: 0.98rem;
    padding: 1.2rem 0 0.7rem 0;
    text-align: center;
  }
  .footer-section {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
  .footer-bottom {
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .footer {
    font-size: 0.98rem;
    padding: 1.2rem 0 0.7rem 0;
  }
}
