/* ===================== RESET GLOBAL ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: #fff6fa;
  color: #2c2c2c;
  line-height: 1.6;
}

.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;
  --text-muted: #555;
  --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;
  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: var(--text-muted);
  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;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.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; }

.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: var(--text-muted);
  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 CATÁLOGO ===================== */
.pcatalogo-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.pcatalogo-modal-content {
  background: #fff;
  border-radius: 28px;
  max-width: 950px;
  width: 90%;
  height: 500px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
  position: relative;
  animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* LADO IZQUIERDO */
.modal-left {
  flex: 1;
  background-color: var(--bg-light);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.modal-left h3 {
  color: var(--rose-accent);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}

.modal-left p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin: 0;
  line-height: 1.5;
}

/* LADO DERECHO */
.modal-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0 28px 28px 0;
  background-color: #fff;
}

.modal-right img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  cursor: grab;
  transition: transform 0.5s ease;
  z-index: 1;
}

/* ===================== ZOOM TEXT ===================== */
.zoom-text {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to top, rgba(229, 107, 138, 0.8), rgba(229, 107, 138, 0.4));
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  z-index: 2;
  pointer-events: none;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  text-align: center;
  font-weight: 500;
}

/* Botones prev/next */
.modal-prev, .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--rose-accent);
  background: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  z-index: 2;
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }

.modal-prev:hover, .modal-next:hover {
  background: var(--rose-accent);
  color: #fff;
}

/* ===================== CERRAR MODAL ===================== */
.pcatalogo-cerrar {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--rose-accent);
  background: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 3000;
  transition: 0.3s;
  
}

.pcatalogo-cerrar:hover {
  color: var(--rose-hover);
  transform: rotate(90deg) scale(1.05);
}

/* ===================== PRECIOS OPCIONES ===================== */
.pcatalogo-precios {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #fff5f7;
  border-radius: 15px;
}

.pcatalogo-precios label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 0;
  transition: 0.3s;
}

.pcatalogo-precios label:hover { color: var(--rose-accent); }

.pcatalogo-precios input[type="radio"] {
  accent-color: var(--rose-accent);
  width: 18px;
  height: 18px;
}

/* ===================== BOTÓN WHATSAPP ===================== */
.whatsapp-btn {
  margin-top: 1.4rem;
  background: #25D366;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.3);
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background: #1DA851;
  transform: translateY(-2px);
}

/* ===================== 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); }
}

/* 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 ===================== */
#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;
}

/* ===================== BOTÓN VER MÁS ===================== */
.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);
}

/* ===================== 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;
}

/* ===================== RESPONSIVE ===================== */
/* 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; }

  .pcatalogo-modal-content {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-height: 92vh;
    border-radius: 18px;
    overflow: hidden;
  }

  .modal-left {
    order: 2;
    width: 100%;
    padding: 1.2rem 1.4rem;
    overflow-y: auto;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .modal-left h3 { font-size: 1.4rem; line-height: 1.2; }
  .modal-left p { font-size: 0.9rem; line-height: 1.4; }

  .modal-right {
    order: 1;
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 260px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: #fff;
  }

  .modal-right img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.25s ease;
  }

  .modal-right img:active { transform: scale(1.4); }

  .zoom-text { font-size: 0.7rem; padding: 0.35rem 0.8rem; }

  .pcatalogo-precios { padding: 0.8rem; gap: 0.5rem; }
  .pcatalogo-precios label { font-size: 0.95rem; }

  .whatsapp-btn { font-size: 0.9rem; padding: 0.7rem 1.6rem; margin-top: 1rem; }

  .pcatalogo-cerrar { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 1.6rem; z-index: 4000; }

  .footer-social { position: static; margin-top: 1.5rem; }
  .footer-grid { flex-direction: column; }
}

/* Más pequeño */
@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; }
}
