:root {
  --azul: #1565c0;
  --azul-oscuro: #0d47a1;
  --amarillo: #ffc107;
  --rojo: #e63946;
  --texto: #2b2b2b;
  --fondo: #fffdf5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: var(--fondo);
  color: var(--texto);
}

h1, h2 {
  font-family: 'Baloo 2', sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.header {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  color: #fff;
  padding: 18px 0 32px;
  text-align: center;
  border-bottom: 8px solid var(--amarillo);
}

.header__title {
  margin: 0 0 12px;
}

.header__logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto;
}

.header__subtitle {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 999px;
  font-size: 1rem;
  margin: 0;
}

.header__pricing-note {
  margin: 5px 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.header__price-warning {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
}

/* PRODUCTS GRID */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin: -30px 0 50px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.15);
  border: 3px solid var(--amarillo);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13, 71, 161, 0.25);
}

.product-card__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.product-card__image-wrap:hover .product-card__image {
  transform: scale(1.06);
}

.product-card__info {
  padding: 14px 16px 18px;
  border-top: 3px solid var(--rojo);
}

.product-card__info h2 {
  font-size: 1.15rem;
  line-height: 1.15;
  min-height: 2.3em;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
  color: var(--azul-oscuro);
}

.product-card__info p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #555;
}

.product-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--azul);
  color: #fff;
  font-weight: 800;
  min-width: 112px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__price small {
  font-size: 0.65rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card__price--wholesale {
  background: var(--azul-oscuro);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px 0;
  background: var(--azul-oscuro);
  color: #fff;
  font-weight: 600;
}

.footer__legal {
  max-width: 820px;
  margin: 10px auto 0;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 400;
}

.footer__legal--prices {
  margin-top: 6px;
  font-weight: 700;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  border: 5px solid var(--amarillo);
  box-shadow: 0 0 40px rgba(255, 193, 7, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 480px) {
  .header__title {
    font-size: 2rem;
  }
}
