/* VARIABLES PARA COLORES CONSISTENTES */
:root {
  --bg-color: #FFF3DD;
  --text-title-color: #000000;
  --text-body-color: #828282;
  --hero-color: #ffffff;
  --btn-bg-black: #000000;
  --btn-text-black: #FFFFFF;
  --btn-bg-white: #FFFFFF;
  --btn-text-white: #000000;
  --shadow-color: rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-body-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Color global para todos los títulos */
h1, h2, h3, h4 {
  color: var(--text-title-color);
}

/* Tamaños de títulos estandarizados */
.page-title {
  font-size: 2.5rem;
}

.section-title {
  font-size: 1.8rem;
}

.section-title-lg {
  font-size: 2rem;
}

/* Header, Main, Footer con padding lateral de 40px */
header, main, footer {
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
}

header {
  margin-top: 40px;
  margin-bottom: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  flex: 1;
}

footer {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: row;
  gap: 40px;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 40px;
}

/* Marca y Navegación */
.brand-title {
  color: var(--text-title-color);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.header-tagline {
  color: var(--text-title-color);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.nav-text,
.nav-text:link, 
.nav-text:visited {
  color: var(--text-title-color);
  text-decoration: none;
  font-weight: 500;
}

/* Secciones dentro de Main */
.main-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Modificadores de Main Section (Filas y Combos) */
.section-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.combo-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.combo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.combo-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.combo-img-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.combo-img-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.combo-card img {
  width: 100%;
  max-width: 400px;
  height: 220px;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 80px 40px;
  text-align: center;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 12px var(--shadow-color);
  min-height: 350px;
}

.hero-left {
  min-height: 450px;
  align-items: flex-start;
  text-align: left;
  padding: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  z-index: 2;
}

.hero-left .hero-content {
  align-items: flex-start;
}

.hero-title {
  color: var(--hero-color);
  font-size: 3rem;
  font-weight: bold;
  max-width: 600px;
}

.hero-subtitle {
  color: var(--hero-color);
  font-size: 1.2rem;
  max-width: 500px;
  font-weight: 500;
}

/* Imágenes con sombra inferior */
img {
  box-shadow: 0 6px 12px var(--shadow-color);
  border-radius: 8px;
  object-fit: cover;
}

/* Botones */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px var(--shadow-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-black {
  background-color: var(--btn-bg-black);
  color: var(--btn-text-black);
}

.btn-white {
  background-color: var(--btn-bg-white);
  color: var(--btn-text-white);
}

.btn-full {
  width: 100%;
}

/* Parrilla de Productos */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
  width: calc(33.333% - 20px);
}

.product-card img {
  width: 100%;
  height: 200px;
}

.related-grid .product-card img {
  height: 150px;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-body-color);
}

.product-card h3 {
  font-size: 1.2rem;
}

.product-card p {
  color: var(--text-body-color);
  font-size: 0.95rem;
}

.product-price {
  color: var(--text-title-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Sección Momentos (index.html) */
.moments-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.moments-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.moments-list h3 {
  font-size: 1.1rem;
}

.moments-img-wrapper {
  flex: 1;
}

.moments-img-wrapper img {
  width: 100%;
  height: 350px;
}

/* Catálogo y Filtros (catalogo.html) */
.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters-bar {
  display: flex;
  gap: 20px;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.filter-select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  color: var(--text-title-color);
  cursor: pointer;
  flex: 1;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -20px;
  color: var(--text-body-color);
}

.catalog-meta-subtitle {
  font-size: 0.9rem;
}

/* Sobre Nosotros (sobre-nosotros.html) */
.about-section {
  align-items: flex-start;
}

.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 600px;
}

.about-title {
  font-size: 3rem;
}

.about-slogan {
  font-style: italic;
  color: var(--text-title-color);
  font-weight: 500;
}

.about-block h3 {
  margin-bottom: 10px;
}

.about-img-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.about-img-wrapper img {
  width: 100%;
  max-width: 450px;
  height: 480px;
}

.values-section {
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.values-list {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-title-color);
}

/* Estilos para página de opiniones (opinion.html) */
.opinion-form {
  background-color: #ffffff;
  display: flex;
  gap: 20px;
  min-width: 500px;
  padding: 30px;
  border-radius: 12px;
  border-style: none;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.opinion-btn {
  width: 100%;
}



/* Vista de Detalle del Producto (app.js) */
.product-detail-view {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  flex-wrap: wrap;
}

.product-detail-img {
  width: 450px;
  height: 400px;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
}

.product-detail-info h1 {
  font-size: 2.5rem;
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-title-color);
}

.product-detail-desc {
  font-size: 1.1rem;
}

/* Carrito de Compras (carrito.html y app.js) */
.cart-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cart-list-container {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.cart-list-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-title-color);
}

.cart-summary {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-summary h3 {
  font-size: 1.4rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.cart-summary-row strong {
  font-weight: bold;
}

.cart-summary-divider {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-title-color);
}

.cart-total-price {
  font-size: 1.5rem;
}

.btn-checkout {
  margin-top: 10px;
  padding: 15px;
}

/* Tarjeta de cada ítem en el carrito (app.js) */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow-color);
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.cart-item img {
  width: 90px;
  height: 90px;
}

.cart-item-info {
  flex: 2;
  min-width: 200px;
}

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

.cart-item-unit-price {
  font-size: 0.85rem;
  color: var(--text-title-color);
  font-weight: bold;
  margin-top: 5px;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: bold;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.cart-item-total {
  text-align: right;
  min-width: 100px;
}

.cart-item-total span {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-title-color);
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-body-color);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  margin-top: 5px;
}

/* Footer proyecto e integrantes */
.footer-proyecto {
  max-width: 500px;
  margin: auto 0 auto auto;
}

.footer-proyecto p {
  font-weight: bold;
  color: var(--text-title-color);
}

.footer-integrantes {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-body-color);
  margin: auto auto auto 0;
}

.footer-integrantes h4 {
  margin-bottom: 5px;
}

.footer-integrantes ul {
  padding: 0;
  margin-left: 1.6rem;
}

.sabor-selector-container {
  margin: 10px 0;
  font-size: 0.85rem;
  text-align: left;
}

.sabor-label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.sabor-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 0.85rem;
  color: #222;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sabor-select:focus {
  outline: none;
  border-color: #000;
}
/* Media Queries para Responsividad (Pendiente por hacer)*/


