/* ===================== RESET GLOBAL ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background-color: #fff6fa; /* Fondo base rosa muy suave */
  color: #2c2c2c;
  line-height: 1.6;
  scroll-behavior: smooth;
  /* Importante para ver el canvas de estrellas */
  background: transparent !important;
}

.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;
  --bg-card: #ffffff;
  --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);
}

/* ===================== OFERTAS (SECCIÓN) ===================== */
#ofertas {
  padding: 5rem 0;
  background-color: transparent; /* Transparente para ver estrellas */
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  position: relative;
  z-index: 1;
}

#ofertas h2 {
  color: var(--rose-accent);
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
  font-family: 'Playfair Display', serif;
}

#ofertas .subtitulo {
  color: var(--text-muted);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

/* ===================== GRID OFERTAS ===================== */
.grid-ofertas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

@media screen and (max-width: 1024px) {
  .grid-ofertas { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media screen and (max-width: 600px) {
  .grid-ofertas { grid-template-columns: 1fr; }
}

/* ===================== TARJETAS DE OFERTAS ===================== */
.ofertas-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  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;
}

.ofertas-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);
}

.ofertas-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ofertas-card:hover::before { opacity: 1; }

.ofertas-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ofertas-card:hover img { 
  transform: scale(1.08) rotate3d(1, 1, 0, 2deg); 
}

.ofertas-card h3 {
  color: var(--rose-accent);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.2rem;
  transition: color 0.3s ease;
}

.ofertas-card:hover h3 { color: var(--rose-hover); }

.ofertas-card .descripcion {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0.8rem 1.5rem 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.ofertas-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;
}

.ofertas-precios strong { color: var(--text-dark); }
.ofertas-precios p:first-child { text-decoration: line-through; color:#999; font-weight:400; font-size: 0.9em;}
.ofertas-precios p:nth-child(2) { font-size:1.2rem; font-weight:700; color: var(--rose-accent); margin-top: 4px; }

.ofertas-card:hover .ofertas-precios {
  background: rgba(229, 107, 138, 0.2);
  transform: translateY(-3px);
}

/* ===================== MODAL ===================== */
.ofertas-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);
}

.ofertas-modal-content {
  background: #fff;
  border-radius: 28px;
  max-width: 950px;
  width: 90%;
  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;
  gap: 1.5rem;
  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;
}

.ofertas-info-compra {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.ofertas-modal .ofertas-precios {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  border: none;
  padding: 0;
}

.ofertas-modal .ofertas-precios p:first-child {
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  color: #999;
  text-decoration: line-through;
}

.ofertas-modal .ofertas-precios p:nth-child(2) {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--rose-accent);
  line-height: 1;
}

.ofertas-modal .ofertas-precios p:nth-child(3) {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: #fff;
  font-weight: 600;
  background: var(--rose-accent);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Botón WhatsApp */
.whatsapp-btn {
  background-color: #25D366; /* Mantenemos el verde oficial */
  color: #fff;
  padding: clamp(0.9rem, 1.2vw, 1.2rem) clamp(2rem, 3vw, 3rem);
  border-radius: 50px;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(37,211,102,0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.whatsapp-btn i { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
.whatsapp-btn:hover { 
  background-color: #1DA851; 
  transform: translateY(-3px) scale(1.05); 
  box-shadow: 0 15px 35px rgba(37,211,102,0.35); 
}

/* 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;
}

/* Texto delante de la imagen */
.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;
}

/* Botón cerrar */
.pcatalogo-cerrar {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--rose-accent);
  background: #fff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2001;
  transition: 0.3s;
}

.pcatalogo-cerrar:hover {
  color: var(--rose-hover);
  transform: rotate(90deg) scale(1.1);
  background: #fdfdfd;
}

/* ===== Responsive ===== */
@media screen and (max-width: 850px) {
  .ofertas-modal-content { 
    flex-direction: column; 
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
  }
  
  .modal-left, .modal-right { 
    width: 100%; 
    padding: 1.5rem; 
  }

  .modal-left { 
    justify-content: flex-start; 
    gap: 1rem;
    order: 2; /* Texto abajo en móvil */
  }
  
  .modal-right {
    min-height: 350px;
    border-radius: 20px 20px 0 0;
    padding: 0;
    order: 1; /* Imagen arriba en móvil */
  }

  .modal-right img { 
    min-width: 100%;
    min-height: 100%;
  }
  
  .pcatalogo-cerrar {
    top: 15px;
    right: 15px;
  }
}

/* --------- FOOTER --------- */
.footer-le {
  background-color: var(--rose-accent);
  color: #fff;
  padding: 3rem 1rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.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;
}

@media (max-width: 600px) {
  .footer-social {
    position: static;
    justify-content: center;
    margin-top: 1rem;
  }
  .footer-grid { flex-direction: column; }
}

/* ===================== ANIMACIONES ===================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.ofertas-card:nth-child(1) { animation-delay: 0.1s; }
.ofertas-card:nth-child(2) { animation-delay: 0.2s; }
.ofertas-card:nth-child(3) { animation-delay: 0.3s; }
.ofertas-card:nth-child(4) { animation-delay: 0.4s; }
.ofertas-card:nth-child(5) { animation-delay: 0.5s; }
.ofertas-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================== FONDO ANIMADO ROSA ===================== */
#fondo-estrellas {
  position: fixed;
  top: 0;
  left: 0;
  width:100%;
  height:100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #fff6fa 0%, #ffe9f0 100%);
}

body, html { background: transparent !important; }
section { position: relative; z-index: 1; background: transparent !important; }
@media (max-width: 1024px) {
  .grid-catalogo {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
/* ======================================================================
   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;
  }
}