/* =============================
   🌸 ESTILO DETALLES Y REGALOS JBM 🌸
   ============================= */

:root {
  --rosa: #ff80aa;
  --rosa-medio: #ff4d7d;
  --rosa-oscuro: #ff1a5c;
  --blanco: #ffffff;
  --fondo: linear-gradient(to bottom right, #ffe0f0, #fff7da);
  --sombra: rgba(0, 0, 0, 0.15);
  --fuente: 'Poppins', sans-serif;
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fuente);
  color: #333;
  background: var(--fondo);
  background-image: radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: brillos 40s linear infinite;
  line-height: 1.6;
}

/* ---------- ANIMACIÓN ---------- */
@keyframes brillos {
  0% { background-position: 0 0; }
  100% { background-position: 1200px 1200px; }
}

/* ---------- ENCABEZADO ---------- */
header {
  background-color: var(--rosa);
  color: var(--blanco);
  text-align: center;
  padding: 40px 15px;
  text-shadow: 1px 1px 5px #e45a8e;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 2rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  margin-top: 10px;
}

nav ul li {
  display: inline-block;
  margin: 0 15px;
}

nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fffbe0;
}

/* ---------- SECCIONES ---------- */
.seccion {
  padding: 60px 20px;
  text-align: center;
}

.seccion h2 {
  color: var(--rosa-oscuro);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

/* ---------- TARJETAS Y CATÁLOGO ---------- */
.galeria, .catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
  justify-items: center;
}

.card, .catalogo-item {
  background-color: #fff0f6;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 10px var(--sombra);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover, .catalogo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px var(--sombra);
}

.card img, .catalogo-item img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.card:hover img, .catalogo-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ---------- INFORMACIÓN SOBRE IMAGEN ---------- */
.catalogo-item .info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.catalogo-item:hover .info {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- BOTONES ---------- */
button, .btn-comprar, .btn-contacto {
  background-color: var(--rosa-medio);
  color: var(--blanco);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

button:hover, .btn-comprar:hover, .btn-contacto:hover {
  background-color: var(--rosa-oscuro);
  transform: translateY(-2px);
}

/* ---------- PIE DE PÁGINA ---------- */
footer {
  background-color: var(--rosa);
  color: white;
  text-align: center;
  padding: 25px 15px;
  font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  header h1 { font-size: 1.5rem; }
  nav ul li { margin: 0 10px; }
  .seccion { padding: 40px 10px; }
  .card img, .catalogo-item img { height: 220px; }
}
/* ----- TARJETAS CON PRECIO Y BOTÓN ----- */
.catalogo-item {
  background-color: #fff0f6;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
  padding-bottom: 15px;
}

.catalogo-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.catalogo-item .info {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
  color: #e23677;
}

.catalogo-item .precio {
  color: #444;
  font-weight: 600;
  margin: 5px 0;
}

.catalogo-item .btn-comprar {
  background-color: #ff4d7d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-weight: 600;
}

.catalogo-item .btn-comprar:hover {
  background-color: #ff1a5c;
  transform: translateY(-2px);
}