@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════
   BASE
   ══════════════════════════════ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════
   FONDO CON BLUR — compartido index + catálogo
   ══════════════════════════════ */
body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  position: relative;
  background-color: #ffffff;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-image) center/cover no-repeat;
  filter: blur(8px) brightness(0.4);
  transform: scale(1.05);
  z-index: -1;
}

/* ══════════════════════════════
   INDEX — layout centrado
   ══════════════════════════════ */
body.page-index {
  /* background: #f2ede8; */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* padding: 24px 16px 40px; */
}

body.page-index::before {
  display: none;
}

/* ── Card principal ── */
.card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  padding: 36px 24px 28px;
  /* box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12); */
  text-align: center;
}

/* ── Logo index ── */
.logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid #e8d9b0;
  box-shadow: 0 4px 16px rgba(179, 135, 40, 0.2);
  margin-bottom: 14px;
}

/* ── Título ── */
h1 {
  font-weight: 800;
  font-size: 26px;
  color: #2c2118;
  line-height: 1.2;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 13px;
  color: #9e8a6e;
  font-weight: 500;
  margin-bottom: 28px;
}

/* ── Títulos de sección ── */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c2118;
  text-align: left;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════
   CATÁLOGO — grilla 2×2 (index)
   ══════════════════════════════ */
.catalog-section {
  margin-bottom: 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2c2118;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border-radius: 16px;
  padding: 16px 8px;
  border: 1.5px solid #f0e8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.cat-card:active { transform: scale(0.97); }

.cat-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fdf0d5;
  color: #c17d2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* ══════════════════════════════
   REDES SOCIALES — fila de 4
   ══════════════════════════════ */
.social-section {
  margin-bottom: 20px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #2c2118;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  border: 1.5px solid #ebebeb;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.social-card:active { transform: scale(0.97); }

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.social-card.facebook  .social-icon { background: #e8f0fd; color: #1877F2; }
.social-card.instagram .social-icon { background: #fce8ef; color: #c13584; }
.social-card.tiktok    .social-icon { background: #f0f0f0; color: #010101; }
.social-card.maps      .social-icon { background: #fff3d6; color: #b38728; }

/* ══════════════════════════════
   BOTÓN WHATSAPP
   ══════════════════════════════ */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  background: #25D366;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 24px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i { font-size: 22px; }

.btn-whatsapp:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

/* ── Footer ── */
footer {
  font-size: 11px;
  color: #b0a090;
  line-height: 1.7;
}

/* ══════════════════════════════
   PÁGINAS DE CATÁLOGO
   ══════════════════════════════ */
body.page-catalog {
  background: #fff;
  padding: 0 0 40px;
}

body.page-catalog::before {
  display: none;
}

/* ── Header catálogo ── */
header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #f0e8d8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #2c2118;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c2118;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

.back-btn:hover { opacity: 0.6; }

.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

/* ── Main catálogo ── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

body.page-catalog h1 {
  font-size: 20px;
  font-weight: 700;
  color: #2c2118;
  text-align: left;
  margin-bottom: 20px;
}

/* ── Grilla de fotos ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.photo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.photo-card:hover { transform: translateY(-4px); }

.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* ── Info del producto ── */
.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: #2c2118;
}

.product-detail {
  font-size: 12px;
  color: #888;
}

.product-detail span {
  font-weight: 600;
  color: #555;
}

.product-price {
  font-size: 15px;
  font-weight: 800;
  color: #b38728;
  margin-top: 4px;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.btn-buy:hover { opacity: 0.88; }
.btn-buy i { font-size: 16px; }

.btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #888;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1.5px solid #e8e8e8;
  transition: color 0.2s, border-color 0.2s;
}

.btn-detail:hover { color: #2c2118; border-color: #ccc; }
.btn-detail i { font-size: 13px; }

.photo-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-align: center;
  padding: 8px 6px;
}

/* ══════════════════════════════
   PÁGINA DE DETALLE DE PRODUCTO
   ══════════════════════════════ */
body.page-detail {
  background: #fff;
  padding: 0 0 40px;
}

body.page-detail::before { display: none; }

.product-hero {
  position: relative;
  background: #f5f0eb;
  overflow: hidden;
  margin: 0 24px;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #2c2118;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 2;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn:hover { background: #fff; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: width 0.3s, border-radius 0.3s, background 0.3s;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

.detail-body {
  padding: 20px 16px 16px;
  max-width: 600px;
  margin: 0 auto;
}

.detail-name {
  font-size: 20px;
  font-weight: 800;
  color: #2c2118;
  margin-bottom: 4px;
}

.detail-price {
  font-size: 22px;
  font-weight: 800;
  color: #c17d2a;
  margin-bottom: 14px;
}

.detail-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0e8d8;
  padding-bottom: 20px;
}

.specs-section { margin-bottom: 24px; }

.specs-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c2118;
  margin-bottom: 10px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr { border-bottom: 1px solid #f0e8d8; }

.specs-table td {
  padding: 11px 0;
  font-size: 14px;
}

.specs-table td:first-child { color: #999; }

.specs-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #2c2118;
}

.btn-reserve-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  background: #25D366;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-reserve-full i { font-size: 22px; }
.btn-reserve-full:hover { opacity: 0.92; transform: translateY(-2px); }

.btn-back-catalog {
  display: block;
  text-align: center;
  color: #888;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px;
}

.btn-back-catalog:hover { color: #2c2118; }

/* ── Estado vacío ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.7);
}

.empty-state i {
  font-size: 48px;
  color: #b38728;
  margin-bottom: 14px;
  display: block;
}

.empty-state p { font-size: 15px; }
