/* ===== VARIABLES ===== */
:root {
  --rosa:    #f9e4e4;
  --marron:  #7b2d2d;
  --marron-oscuro: #4a1a1a;
  --crema:   #fdf6f0;
  --texto:   #2c1a1a;
  --gris:    #888;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--crema);
  color: var(--texto);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 500px;
  background: url('https://lh3.googleusercontent.com/d/129XjUdRRsVrpcuK5OLieTF8u0jjYDLeV') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0rem 2rem 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, transparent 80%);
}
.hero-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}

.hero-logo {
    width: 90%;
    max-width: 1000px;
    height: auto;
}

.hero-content h1 {
  font-family: 'Nunito Sans', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.hero-content p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.92;
}
.btn-primary {
  display: inline-block;
  background: var(--marron);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--marron-oscuro);
  transform: translateY(-2px);
}

/* ===== PRODUCTOS ===== */
.productos {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.productos h2 {
  font-family: 'Nunito Sans', bold;
  font-size: 2.2rem;
  color: var(--marron);
  text-align: center;
  margin-bottom: 3rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.loading {
  text-align: center;
  color: var(--gris);
  grid-column: 1/-1;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 1.2rem 1.4rem 1.5rem;
}
.card-body h3 {
  font-family: 'Nunito Sans', bold;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.card-body p {
  font-size: 0.9rem;
  color: var(--gris);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.precio {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--marron);
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--marron-oscuro);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}
.contacto h2 {
  font-family: 'Pacifico', serif;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.contacto p {
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.btn-whatsapp {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.btn-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-social:hover { opacity: 0.85; transform: translateY(-2px); }
.instagram { background: #e1306c; }
.facebook { background: #1877f2; }
.footer-copy { font-size: 0.85rem; color: var(--gris); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.active {
  display: flex;
  opacity: 0;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.85);
  transition: transform 0.25s ease;
}
.lightbox-overlay.active img {
  transform: scale(1);
}
.modal-item img {
  cursor: zoom-in;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .navbar { padding: 1rem; }
  .nav-links a { margin-left: 1rem; }
  .hero { padding: 2rem 1.5rem; }
  .hero-logo {width: 90%;}
  .productos { padding: 3rem 1rem; }
  .modal-box {
      max-height: 95vh;
      border-radius: 16px;
    }
    .modal-item {
      flex-direction: column;
      align-items: flex-start;
    }
    .modal-item img {
      width: 100%;
      height: 220px;
    }
    .modal-overlay {
      align-items: flex-end;
      padding: 0;
    }
    .modal-box {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #f0e0d6;
  position: sticky;
  top: 0;
  background: #fff;
}
.modal-header h3 {
  font-family: 'Nunito Sans', serif;
  font-size: 1.5rem;
  color: var(--marron);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gris);
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}
.modal-close:hover { background: #f5f5f5; }
.modal-body {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--crema);
  align-items: center;
}
.modal-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.modal-item-info {
  flex: 1;
}
.modal-item-info h4 {
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.modal-item-info p {
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 0.5rem;
}
.modal-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-whatsapp-small {
  background: #25d366;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-whatsapp-small:hover { background: #1da851; }

/* Card clickeable */
.card { cursor: pointer; }
