/* ============================================================
   CAFÉ DE LA CABAÑA — Catálogo (catalogo.html)
   styleCatalogo.css · Secciones exclusivas del Catálogo
   ============================================================ */

/* ============================================================
   LAYOUT BASE
   ============================================================ */
.catalogo {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ============================================================
   HEADER DEL CATÁLOGO
   ============================================================ */
.catalogo__hero {
  position: relative;
  width: 100%;
  padding-top: var(--nav-height);
  border-bottom: 1px solid rgba(0,0,0,0.7);
  min-height: calc(var(--nav-height) + 290px);
}

.catalogo__hero-inner {
  position: relative;
  padding: var(--space-5) 60px var(--space-7);
  max-width: var(--container-wide);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 288px;
}

.catalogo__hero-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(23,22,22,0.7);
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.catalogo__hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-green-mid);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.catalogo__hero-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: #000000;
  line-height: 1.56;
  max-width: 525px;
}

.catalogo__hero-img {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - 600px);
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   NAVBAR DEL CATÁLOGO (dark)
   ============================================================ */
.catalogo .navbar {
  background-color: var(--color-green-mid);
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.catalogo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 70px;
  padding: 100px 60px;
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   TARJETA DE PRODUCTO
   ============================================================ */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 5px 5px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 393 / 361;
  background-size: cover;
  background-position: 50% 50%;
}

.product-card__image--bourbon  { background-image: url('../assets/img/Catalogo/bourbon.png'); }
.product-card__image--geisha   { background-image: url('../assets/img/Catalogo/geisha.png'); }
.product-card__image--castillo { background-image: url('../assets/img/Catalogo/castillo.png'); }
.product-card__image--panela   { background-image: url('../assets/img/Catalogo/Panela.webp'); }
.product-card__image--pergamino{ background-image: url('../assets/img/Catalogo/CafePergamino.webp'); }

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 15px;
  flex: 1;
  justify-content: center;
  min-height: 176px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.4;
}

.product-card__name--bourbon  { color: var(--color-red-product); }
.product-card__name--geisha   { color: var(--color-slate); }
.product-card__name--castillo,
.product-card__name--panela,
.product-card__name--pergamino{ color: var(--color-green-mid); }

.product-card__notes {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: #000000;
  line-height: 1.4;
}

.product-card__price {
  position: absolute;
  top: calc(361px / 393 * 100%);
  right: 15px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(0,0,0,0.6);
  line-height: 1.4;
}

.product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  margin-top: auto;
  padding-bottom: 15px;
}

.product-card__btn-details {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px 10px;
  border-radius: 5px;
  border: 2px solid rgba(0,0,0,0.3);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(0,0,0,0.6);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.product-card__btn-details:hover {
  border-color: var(--color-green-mid);
  color: var(--color-green-mid);
}

.product-card__btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.product-card__btn-add--bourbon  { border-color: var(--color-red-product); }
.product-card__btn-add--geisha   { border-color: var(--color-slate); }
.product-card__btn-add--default  { border-color: var(--color-green-mid); }

.product-card__btn-add:hover {
  background-color: rgba(0,0,0,0.05);
}

.product-card__btn-add img {
  width: 15px;
  height: 19px;
}

/* ============================================================
   RESPONSIVE — CATÁLOGO
   ============================================================ */
@media (max-width: 1024px) {
  .catalogo__hero-img {
    display: none;
  }

  .catalogo__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 40px;
    padding: 60px var(--space-6);
  }

  .catalogo__hero-title {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 640px) {
  .catalogo__hero-inner {
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .catalogo__hero-title {
    font-size: var(--text-3xl);
  }

  .catalogo__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding: var(--space-7) var(--space-4);
  }

  .product-card__price {
    position: static;
    padding: 0 15px;
    margin-bottom: var(--space-2);
  }

  .product-card__actions {
    padding: 0 var(--space-4) var(--space-4);
  }
}
