/* 🌸 RESETEO GENERAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Handlee', cursive;
  background-color: #fff5fb;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 🌙 ENCABEZADO */
.site-header {
  background-color: #ffe2f1;
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 2px solid #ffb6d9;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.site-header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem;
  color: #ff4fa3;
}

.slogan {
  font-size: 0.9rem;
  color: #777;
}

/* 🌸 NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav a,
.btn-mini {
  text-decoration: none;
  color: #ff4fa3;
  font-weight: bold;
  transition: 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Handlee', cursive;
}

.nav a:hover,
.btn-mini:hover {
  color: #ff82c3;
  transform: scale(1.05);
}

/* 🌸 HERO */
.hero {
  background-color: #ffe9f5;
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-inner {
  flex: 1;
  max-width: 550px;
}

.hero h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #ff4fa3;
  margin-bottom: 10px;
}

.hero p {
  margin-bottom: 15px;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.hero-deco {
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 100, 150, 0.3);
}

/* 🌸 BOTONES */
.btn,
.btn-outline,
.btn.small {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: 'Handlee', cursive;
}

.btn {
  background-color: #ff4fa3;
  color: white;
}

.btn:hover {
  background-color: #ff76b9;
}

.btn-outline {
  border: 2px solid #ff4fa3;
  color: #ff4fa3;
  background: none;
}

.btn-outline:hover {
  background-color: #ff4fa3;
  color: white;
}

.btn.small {
  font-size: 0.9rem;
  padding: 5px 10px;
}

/* 🌷 SECCIONES */
.container.section {
  padding: 50px 5%;
  text-align: center;
}

h3 {
  color: #ff4fa3;
  font-family: 'Pacifico', cursive;
  margin-bottom: 10px;
}

.muted {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* 🛍️ PRODUCTOS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-content: center;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 8px rgba(255, 100, 150, 0.2);
  padding: 10px;
  text-align: center;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}

.product-card h4 {
  color: #ff4fa3;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.subdesc {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.price {
  color: #333;
  font-weight: bold;
  margin: 5px 0;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

/* 🌸 GALERÍA */
.gallery-section {
  background-color: #fffafc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.gallery-item {
  background: white;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 0 6px rgba(255, 100, 150, 0.2);
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-item p {
  margin-top: 5px;
  color: #ff4fa3;
  font-weight: bold;
  font-size: 0.95rem;
}

/* 💌 MODAL "CÓMO PEDIR" */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff0fa;
  margin: auto;
  padding: 25px;
  border-radius: 20px;
  width: 85%;
  max-width: 500px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  box-shadow: 0 0 12px rgba(255, 150, 200, 0.5);
}

.modal h3 {
  font-family: 'Pacifico', cursive;
  color: #ff4fa3;
  margin-bottom: 10px;
}

.close {
  color: #ff4fa3;
  float: right;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
}

/* 📞 CONTACTO */
.contact a {
  color: #ff4fa3;
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  color: #ff82c3;
}

/* 🌸 FOOTER */
.site-footer {
  text-align: center;
  padding: 20px;
  background-color: #ffe2f1;
  color: #555;
  border-top: 2px solid #ffb6d9;
}

/* 🌸 RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-deco {
    margin-top: 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .product-card img,
  .gallery-item img {
    height: 160px;
  }
}
/* --- Corrección: Imagen del modal “Ver producto” --- */
.modal-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  align-self: center;
}

/* En pantallas pequeñas, se adapta de forma proporcional */
@media (max-width: 760px) {
  .modal-content {
    flex-direction: column;
    max-width: 520px;
    padding: 14px;
  }
  .modal-img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
  }
  .modal-info {
    width: 100%;
  }
}
/* --- Corrección: imágenes dentro del modal del carrito (no tocar otras imágenes) --- */
.modal .cart-item img,
.modal .cart-list img {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  object-fit: cover !important;
  border-radius: 8px;
  display: block;
}

/* Si el carrito aparece en pantallas pequeñas, mantén la proporción */
@media (max-width: 480px) {
  .modal .cart-item img,
  .modal .cart-list img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
  }
}
