/* ===================== RESET GLOBAL ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: #fff6fa; /* Ajustado a paleta rosa */
  color: #2c2c2c;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================== VARIABLES (PALETA ROSA ELEGANTE) ===================== */
:root {
  --rose-accent: #e56b8a;
  --rose-hover: #d94b74;
  --rose-soft: rgba(229, 107, 138, 0.15);
  --rose-nude: #f3c6d1;
  --champagne: #f2d3a4;
  --text-dark: #2e2e2e;
  --bg-light: #fff1f5;
  --shadow-rose: 0 18px 35px rgba(229, 107, 138, 0.25);
}

/* ===================== HEADER ===================== */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--rose-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1;
}

.logo .brand {
  font-size: 2.2rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
  color: var(--rose-accent);
}

.logo .tagline {
  font-size: 0.8rem;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--rose-accent);
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: var(--rose-accent);
}

/* ===================== CATALOGO ===================== */
.catalogo {
  padding: 5rem 0;
  background-color: var(--bg-light);
  text-align: center;
  opacity: 0; /* oculto hasta que JS lo haga aparecer */
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.catalogo h2 {
  color: var(--rose-accent);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.catalogo .subtitulo {
  color: #555;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.filtros {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;         
  justify-content: center;  
  gap: 12px;
}

.filtro-btn {
  background: #fff;
  border: 1px solid var(--rose-accent);
  color: var(--rose-accent);
  padding: 10px 20px;
  margin: 5px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-20px);
}

.filtro-btn:hover,
.filtro-btn.activo {
  background-color: var(--rose-accent);
  color: #fff;
}

/* ===================== GRID PRODUCTOS ===================== */
.grid-catalogo {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2.5rem;
  margin-top: 2rem;
}

/* --------- TARJETAS --------- */
.pcatalogo-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(229, 107, 138, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
}

.pcatalogo-card:hover {
  transform: translateY(-14px) rotate3d(1, 1, 0, 4deg) scale(1.04);
  box-shadow: var(--shadow-rose), 0 4px 8px rgba(0, 0, 0, 0.05);
}

.pcatalogo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pcatalogo-card:hover::before {
  opacity: 1;
}

.pcatalogo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pcatalogo-card:hover img {
  transform: scale(1.08) rotate3d(1, 1, 0, 2deg);
}

.pcatalogo-card h3 {
  color: var(--rose-accent);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.2rem;
  transition: color 0.3s ease;
}

.pcatalogo-card:hover h3 {
  color: var(--rose-hover);
}

.pcatalogo-card .descripcion {
  color: #555;
  font-size: 1rem;
  margin: 0.8rem 1.5rem 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.precios {
  background: var(--rose-soft);
  padding: 1rem;
  border-top: 1px solid var(--rose-nude);
  font-size: 0.95rem;
  transition: background 0.4s ease, transform 0.4s ease;
}

.precios strong {
  color: var(--rose-accent);
}

.pcatalogo-card:hover .precios {
  background: rgba(229, 107, 138, 0.15);
  transform: translateY(-3px);
}

.pcatalogo-card.oculto {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* ===================== MODAL ===================== */
.pcatalogo-modal {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height:100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 2rem;
}

.pcatalogo-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
}

.modal-left, .modal-right {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-left {
  flex: 1;
  background-color: var(--bg-light);
}

.modal-left h3 {
  color: var(--rose-accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-left p {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.pcatalogo-precios p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.pcatalogo-precios strong {
  color: var(--rose-accent);
}

.modal-right {
  flex: 1;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  max-height: 500px;
}

.modal-right img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 15px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: grab;
}

.modal-right small {
  margin-top: 10px;
  color: #888;
  font-size: 0.85rem;
}

.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--rose-accent);
  background: rgba(255,255,255,0.7);
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.modal-prev:hover, .modal-next:hover {
  background: var(--rose-accent);
  color: #fff;
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }

.pcatalogo-cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--rose-accent);
  cursor: pointer;
  transition: 0.3s;
}

.pcatalogo-cerrar:hover {
  color: var(--rose-hover);
}

/* ===================== FOOTER ===================== */
.footer-le {
  background-color: var(--rose-accent);
  color: #fff;
  padding: 3rem 1rem 1.5rem;
  text-align: center;
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
  position: relative;
}

.footer-contacto {
  text-align: center;
}

.footer-social {
  position: absolute;
  right: 0;
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--champagne);
  transform: scale(1.2);
}

.footer-copy {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
}

/* ===================== ANIMACIONES ===================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pcatalogo-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

/* Stagger productos */
.pcatalogo-card:nth-child(1) { animation-delay: 0.1s; }
.pcatalogo-card:nth-child(2) { animation-delay: 0.2s; }
.pcatalogo-card:nth-child(3) { animation-delay: 0.3s; }
.pcatalogo-card:nth-child(4) { animation-delay: 0.4s; }
.pcatalogo-card:nth-child(5) { animation-delay: 0.5s; }
.pcatalogo-card:nth-child(6) { animation-delay: 0.6s; }

/* Animación filtros */
.filtro-btn:nth-child(1) { animation: fadeDown 0.6s ease forwards 0.2s; }
.filtro-btn:nth-child(2) { animation: fadeDown 0.6s ease forwards 0.3s; }
.filtro-btn:nth-child(3) { animation: fadeDown 0.6s ease forwards 0.4s; }
.filtro-btn:nth-child(4) { animation: fadeDown 0.6s ease forwards 0.5s; }
.filtro-btn:nth-child(5) { animation: fadeDown 0.6s ease forwards 0.6s; }
.filtro-btn:nth-child(6) { animation: fadeDown 0.6s ease forwards 0.7s; }

/* ================================
   FONDO ANIMADO ROSA
   ================================ */
#fondo-estrellas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, #fff6fa 0%, #ffe9f0 100%);
  pointer-events: none;
}

body,
html {
  background: transparent !important;
}

section.catalogo {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

.ver-mas-container {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.ver-mas-btn {
  background: var(--rose-accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.ver-mas-btn:hover {
  background: var(--rose-hover);
  transform: translateY(-2px);
}

/* ======================================================================
   RESPONSIVE (PARA MÓVILES Y TABLETS)
====================================================================== */

/* Tablets */
@media (max-width: 1024px) {
  .grid-catalogo {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Móviles */
@media (max-width: 650px) {
  .header .container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .logo {
    align-items: center;
  }

  .navbar ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo .brand {
    font-size: 1.8rem;
  }

  /* Modal adaptado a móvil */
  .pcatalogo-modal-content {
    flex-direction: column-reverse; /* Imagen arriba, texto abajo */
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-left, .modal-right {
    flex: none;
    width: 100%;
    padding: 1.5rem;
  }

  .modal-right {
    height: 300px;
  }

  .footer-social {
    position: static;
    margin-top: 1.5rem;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .grid-catalogo {
    grid-template-columns: 1fr;
  }

  .container {
    width: 95%;
  }

  .catalogo h2 {
    font-size: 1.6rem;
  }

  .filtro-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}