/* ================================================
   PEPI'S LOMOS â€” styles.css  (v3)
   Paleta: naranja dorado #F5A623, negro #1A1A1A,
           crema calida #FAF3E0, acento #B8860B
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Amatic SC', cursive;
  background-color: #FAF3E0;
  /* Textura de madera suave transparente con SVG inline arreglado */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='wood'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.2' numOctaves='3' result='noise'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.72 0 0 0 0 0.52 0 0 0 0 0.04 0 0 0 0.08 0' in='noise'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23wood)'/%3E%3C/svg%3E");
  color: #1A1A1A;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.05em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* â”€â”€â”€ HEADER â”€â”€â”€ */
.site-header {
  background-color: #1A1A1A;
  /* Textura oscura en el header */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='overlay'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  color: #FAF3E0;
  padding: 1.25rem 1rem;
  border-bottom: 5px solid #F5A623;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.header-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #F5A623;
  object-fit: cover;
  flex-shrink: 0;
}
.site-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #FAF3E0;
  text-shadow: 3px 3px 0 #F5A623, 5px 5px 0 #000;
  line-height: 1.1;
}
.site-sub {
  font-size: 1.25rem;
  font-style: italic;
  color: #c8a84b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* â”€â”€â”€ NAVBAR DE CATEGORIAS â”€â”€â”€ */
.category-nav {
  background-color: #1A1A1A;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #F5A623;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1 0 80px;
  padding: 0.65rem 0.5rem;
  border-right: 1px solid rgba(245,166,35,0.2);
  transition: background 0.2s;
  cursor: pointer;
}
.nav-card:last-child { border-right: none; }
.nav-card:hover,
.nav-card:focus,
.nav-card.active {
  background-color: #F5A623;
  outline: none;
}
.nav-card:hover .nav-card-label,
.nav-card:focus .nav-card-label,
.nav-card.active .nav-card-label { color: #1A1A1A; }

.nav-card-icon {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-card-icon svg { width: 100%; height: 100%; }

.nav-card-label {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #F5A623;
  font-family: 'Amatic SC', cursive;
  white-space: nowrap;
  transition: color 0.2s;
}

/* â”€â”€â”€ MENU PRINCIPAL â”€â”€â”€ */
.menu {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* â”€â”€â”€ SECCION â”€â”€â”€ */
.menu-section {
  padding: 2rem 1rem 1rem;
  border-bottom: 3px dashed #c8a84b;
}
.menu-section:last-child { border-bottom: none; }

.section-header { margin-bottom: 1.25rem; }

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1A1A1A;
  border-left: 6px solid #F5A623;
  padding-left: 0.65rem;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.3rem;
  font-style: italic;
  color: #6b5a2e;
  margin-top: 0.3rem;
  padding-left: 0.9rem;
}

/* â”€â”€â”€ ANIMACIONES DE ENTRADA â”€â”€â”€ */
.product-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.22s ease, transform 0.22s ease,
    box-shadow 0.2s,
    border-color 0.2s;
}
/* Retraso escalonado para las cards dentro de cada grilla */
.card-grid li:nth-child(1) { transition-delay: 0.00s; }
.card-grid li:nth-child(2) { transition-delay: 0.04s; }
.card-grid li:nth-child(3) { transition-delay: 0.08s; }
.card-grid li:nth-child(4) { transition-delay: 0.12s; }
.card-grid li:nth-child(5) { transition-delay: 0.16s; }

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* â”€â”€â”€ GRID DE CARDS â”€â”€â”€ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 820px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* â”€â”€â”€ PRODUCT CARD base â”€â”€â”€ */
.product-card {
  background: #fffdf4;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e0cc99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  transform: translateY(-3px) !important;
}
.product-card.featured {
  border-color: #F5A623;
  box-shadow: 0 3px 12px rgba(245,166,35,0.22);
}

/* Imagen */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #e8d5a3;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .card-img { transform: scale(1.05); }

/* Placeholder SVG */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-img svg { width: 100%; height: 100%; }

/* Badge sobre imagen */
.card-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background-color: #F5A623;
  color: #1A1A1A;
  font-size: 0.94rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  border: 1.5px solid #1A1A1A;
  font-family: 'Yanone Kaffeesatz', sans-serif;
}

/* Cuerpo de la card */
.card-body {
  padding: 0.85rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.card-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  font-family: 'Yanone Kaffeesatz', sans-serif;
}
.card-price {
  font-size: 1.87rem;
  font-weight: 700;
  color: #B8860B;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Yanone Kaffeesatz', sans-serif;
}
.price-unit {
  font-size: 0.6em;
  margin-left: 0.15em;
}

/* â”€â”€â”€ DESCRIPCION EXPANDIBLE â”€â”€â”€ */
.card-desc {
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #4a3b1e;
  line-height: 1.45;
  /* Truncado por defecto: 2 lineas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: none;
}
.card-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.btn-expand {
  align-self: flex-start;
  margin-top: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #B8860B;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.btn-expand:hover { color: #F5A623; }
.btn-expand:focus { outline: 2px solid #F5A623; border-radius: 2px; }

/* â”€â”€â”€ BOTON VOLVER ARRIBA â”€â”€â”€ */
.btn-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #F5A623;
  color: #1A1A1A;
  border: 2.5px solid #1A1A1A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  /* Oculto por defecto */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
}
.btn-top svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.btn-top:hover {
  background-color: #1A1A1A;
  color: #F5A623;
  border-color: #F5A623;
}
.btn-top:focus { outline: 3px solid #1A1A1A; }

/* â”€â”€â”€ FOOTER â”€â”€â”€ */
.site-footer {
  background-color: #1A1A1A;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeBlend in='SourceGraphic' mode='overlay'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.1'/%3E%3C/svg%3E");
  color: #FAF3E0;
  padding: 2.5rem 1rem 1.5rem;
  border-top: 5px solid #F5A623;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-logo {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 3px solid #F5A623;
  object-fit: cover;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .footer-inner { text-align: left; align-items: flex-start; }
}
.footer-heading {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #F5A623;
  margin-bottom: 0.6rem;
  font-family: 'Amatic SC', cursive;
  border-bottom: 1px solid rgba(245,166,35,0.3);
  padding-bottom: 0.3rem;
}
.footer-block p {
  font-size: 1.25rem;
  color: #c8b07a;
  line-height: 1.7;
}
.footer-block strong { color: #FAF3E0; }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #F5A623;
  color: #1A1A1A;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  border: 2px solid #F5A623;
  margin-top: 0.4rem;
  transition: background 0.2s, color 0.2s;
  font-family: 'Amatic SC', cursive;
}
.ig-link:hover, .ig-link:focus {
  background-color: transparent;
  color: #F5A623;
  outline: none;
}
.ig-icon { width: 18px; height: 18px; flex-shrink: 0; }

.footer-copy {
  font-size: 1.1rem;
  color: #5a4a2a;
  border-top: 1px solid #2e2e2e;
  padding-top: 1rem;
  width: 100%;
  text-align: center;
}

/* â”€â”€â”€ RESPONSIVE â”€â”€â”€ */
@media (min-width: 600px) {
  .menu-section { padding: 2.5rem 1.5rem 1.5rem; }
  .site-title { font-size: 2.2rem; }
  .header-logo { width: 95px; height: 95px; }
}





/* ================================================
   AJUSTE DE IMAGENES PARA BEBIDAS
   Botellas y latas son verticales, no deben cortarse
   ================================================ */
#bebidas .card-img-wrap,
#helados .card-img-wrap {
  background-color: #ffffff; /* Fondo blanco limpio para productos de catalogo */
}

#bebidas .card-img,
#helados .card-img {
  object-fit: contain;
  padding: 1.5rem; /* Margen para que la botella respire y no toque los bordes */
}






/* ================================================
   ESTADO AGOTADO (SIN STOCK)
   ================================================ */
.product-card.agotado-estado {
  opacity: 0.55;
  filter: grayscale(80%);
}

.product-card.agotado-estado::after {
  content: 'AGOTADO';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background-color: #c0392b;
  color: #FAF3E0;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  padding: 0.2rem 1.5rem;
  border-radius: 5px;
  border: 4px solid #FAF3E0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  z-index: 10;
  pointer-events: none;
  letter-spacing: 0.05em;
}


/* ENCUADRE PIZZA */
.img-pizza { object-position: center 85%; }


/* ================================================
   MOVIL: 2 productos por fila
   ================================================ */
@media (max-width: 539px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .card-body { padding: 0.55rem 0.55rem 0.65rem; gap: 0.2rem; }
  .card-header-row { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .card-name { font-size: 1.2rem; }
  .card-price { font-size: 1.55rem; }
  .card-desc { font-size: 1rem; line-height: 1.3; }
  .btn-expand { font-size: 0.95rem; }
  .card-badge { font-size: 0.8rem; padding: 0.1rem 0.35rem; }
  #bebidas .card-img, #helados .card-img { padding: 0.8rem; }
  .product-card.agotado-estado::after { font-size: 1.8rem; padding: 0.1rem 0.6rem; border-width: 3px; }
}
