*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* PALETA */
:root {
  --primary: #FAA7BB;
  --soft: #F7F0E8;
  --dark: #2f2a4a;
  --text: #5A3E4B;
  --light: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--soft);
  color: var(--text);
}

/* HEADER */
.header {
  background: linear-gradient(180deg, #f3a6b8, #e58aa3);
  padding: 16px 24px;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 100px;
  border-radius: 50%;
}

.btn-header {
  background: var(--dark);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  background: var(--soft);
}

.hero-text {
  padding: 80px 60px;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #a87c8e;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-top: 10px;
  color: var(--dark);
}

.hero-text h1 em {
  color: var(--primary);
}

.hero-text p {
  margin-top: 20px;
  font-size: 0.95rem;
  max-width: 300px;
}

/* MOSAICO */
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 20px;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PRODUCTOS */
.products {
  background: #f1f1f1;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: auto;
}

.product-card {
  text-align: center;
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
}

.card-label {
  position: absolute;
  left: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 10px;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.7);
}

.product-card p {
  margin-top: 10px;
  font-size: 0.8rem;
}

.btn-whatsapp {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 18px;
  background: #d9d9d9;
  border-radius: 20px;
  font-size: 0.75rem;
  text-decoration: none;
  color: #333;
}

/* FOOTER */

footer {
  background: var(--primary);
  padding: 28px 20px;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* lados */
.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

/* texto */
.footer-left p,
.footer-right p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* centro */
.footer-center {
  display: flex;
  justify-content: center;
}

/* botón whatsapp */
.footer-whatsapp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.footer-whatsapp:hover {
  transform: scale(1.08);
}

.footer-whatsapp img {
  width: 22px;
  height: 22px;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  display: block;
}

.product-card {
  max-width: 280px;
  margin: 0 auto;
}

.footer-whatsapp {
  width: 64px; 
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}

.footer-whatsapp img {
  width: 34px; 
  height: 34px;
}

.footer-whatsapp img {
  width: 100px;   /* prueba entre 44 y 52 */
  height: 100px;
}



@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }
}

/* ── HOVER SUTIL ── */
.card-image {
  cursor: zoom-in;
}

.card-image img {
  transition: transform 0.5s ease, filter 0.4s ease;
}

.card-image:hover img {
  transform: scale(1.04);
  filter: brightness(0.95);
}

/* ── LIGHTBOX PRODUCTOS ── */
#product-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 15, 0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

#product-lightbox.open {
  display: flex;
}

#product-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeZoom 0.25s ease;
}

/* animación suave */
@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#plb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
}

#plb-close:hover {
  opacity: 1;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* movimiento leve */
.mosaic-item:hover img {
  transform: scale(1.08) translateY(-4px);
}

.mosaic-item img {
  transition: transform 0.3s ease;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mosaic-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}