/* ------------------ RESET & FUENTES ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdeaff;
  overflow-x: hidden;
  color: #222;
}

img {
  max-width: 100%;
  display: block;
}

/* ------------------ ENCABEZADO ------------------ */
.header {
  background-color: #fff;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.5s ease-in-out;
  margin-left: 510px;
}

.logo:hover {
  transform: rotate(360deg) scale(1.1);
}

.icons {
  display: flex;
  gap: 20px;
}




/* ------------------ CONTENIDO PRINCIPAL ------------------ */
.main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 80px;
  gap: 40px;
  margin-top: -170px;
  
}


.text-content {
  max-width: 50%;
  text-align: left;
}

.title {
  font-size: 54px;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 18px;
  color: #000;
  font-weight: 600;
  margin-bottom: 30px;
}

.button {
  background-color: #a34de2;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #9129d1;
  transform: scale(1.05);
}

.cake-image {
  max-width: 480px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ------------------ CARROUSEL ------------------ */
.carousel-section {
  padding: 40px 0;
  background-color: #fff;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding: 0 30px;
  scroll-snap-type: x mandatory;
}

.section-title {
  font-size: 32px;
  margin: 40px 0 20px;
  text-align: center; /* le añado para centrarlo igual */
}


.carousel img {
  border-radius: 20px;
  min-width: 500px;  /* antes 300px */
  height: 330px;     /* antes 200px */
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s;
  scroll-snap-align: start;
}


.carousel img:hover {
  transform: scale(1.05);
}

/* ------------------ PRODUCTOS ------------------ */
.productos-vendidos {
  position: relative;
  padding: 60px 40px;
  text-align: center;
  background-color: #f5d9f5;
  overflow: hidden;

  background-image:
    repeating-conic-gradient(
      from 45deg,
      #e5bce5 0deg 10deg,
      #f5d9f5 10deg 20deg
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 2px,
      transparent 2px,
      transparent 20px
    );
  background-size: 200% 200%, 100px 100px;
  background-blend-mode: overlay;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0% 0%, 0% 0%;
  }
  100% {
    background-position: 100% 100%, 200% 200%;
  }
}

.productos-vendidos h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.productos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.producto {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 280px;
  text-align: center;
  max-height: 420px; /* Ajusta este valor según prefieras */
  overflow: hidden;   /* Oculta cualquier contenido que sobrepase */
}


.producto h3 {
  margin: 15px 0 10px;
  font-size: 20px;
}

.producto .rating {
  font-size: 20px;
  color: #f39c12;
  margin-bottom: 15px;
}

/*-------------------------- BOTÓN DE "ORDENA EN LÍNEA ------------------- */
.ordenar-container {
  margin-top: 3rem;
}

.ordenar-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #d63384;
  color: white;
  font-size: 1.1rem;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.ordenar-btn:hover {
  background-color: #c1216e;
  transform: scale(1.05);
}
/* ------------------ RESEÑAS ------------------ */


.reseñas {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
  height: 200px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.reseñas blockquote {
  font-style: italic;
  color: #555;
  margin: 0;
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.reseñas blockquote.active {
  opacity: 1;
  position: relative;
}

.reseñas::before, .reseñas::after {
  content: "💬";
  position: absolute;
  font-size: 40px;
  opacity: 1.0;
  top: 10px;
  left: 10px;
  pointer-events: none;
}

.reseñas::after {
  content: "⭐";
  margin-left: 550px;
  top: auto;
  bottom: 10px;
  right: 10px;
  font-size: 50px;
} 

/* Móvil - ajusta para que quede en esquina inferior derecha */
@media (max-width: 600px) {
  .reseñas::after {
    left: auto;
    right: 15px;
    bottom: 15px;
    font-size: 30px;
  }
}


/* ------------------ DESPLAZAMIENTO ------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------ Pie de pagina ------------------ */
.footer {
  background-color: #e5e1fc; /* rosa pastel suave */
  color: #6045a0; /* rosa oscuro para texto */
  padding: 30px 20px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  text-align: center;
  
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  margin: 0 0 15px;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #fbc5cb; /* rosa claro */
  color: #a04563;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 2px 6px rgba(160, 69, 99, 0.3);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social:hover,
.social:focus {
  background-color: #a04563;
  color: #f9e6e8;
  transform: scale(1.15);
  outline: none;
  box-shadow: 0 0 10px #a04563;
}


/* ------------------ MEDIA QUERIES ------------------ */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }

  .text-content {
    max-width: 100%;
    margin-top: 100px;
  }

  .cake-image {
    margin-top: 30px;
    max-width: 300px;
  }

  .nav {
    column-gap: 80px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 20px;
    position: relative;
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    max-height: 80px;
    order: 2;
    margin: 0 auto;
  }

  .icons {
    order: 1;
    gap: 15px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    order: 3;
    z-index: 1100;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .nav {
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background-color: #fff;
    display: flex;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    width: 100%;
    text-align: center;
  }

  .main-content {
    padding: 20px;
  }

  .title {
    font-size: 36px;
  }

  .subtitle {
    font-size: 16px;
  }

  .productos-grid,
  .galeria-grid {
    gap: 20px;
  }

  .producto,
  .galeria-grid img {
    width: 90%;
  }

  .carousel img {
    min-width: 250px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 14px;
  }

  .button {
    padding: 10px 25px;
    font-size: 16px;
  }

  .carousel img {
    min-width: 240px;
    height: 160px;
  }
}

/* ------------------ BOTÓN FLOTANTE DE AUDIO ------------------ */
.audio-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #a34de2;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.audio-control:hover {
  background-color: #9129d1;
  transform: scale(1.1);
}

.audio-control svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}