/* ------------------ 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;
}

/* ------------------ NAVEGACIÓN ------------------ */
.nav {
  background-color: #e4e2ff;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  column-gap: 170px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav a {
  color: #000;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: #ff69b4;
  text-decoration: underline;
}

.wave-border {
  width: 100%;
  height: 120px;
  background: transparent;
}

/* ------------------ FOOTER ------------------ */
.footer {
  background-color: #e4e2ff;
  padding: 30px 20px;
  text-align: center;
}

.footer-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.social svg {
  width: 32px;
  height: 32px;
  fill: #333;
  transition: transform 0.3s, fill 0.3s;
}

.social:hover svg {
  transform: scale(1.3);
  fill: #a34de2;
}

.icon-top svg {
  width: 26px;
  height: 26px;
  fill: #444;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.icon-top:hover svg {
  transform: scale(1.2);
  fill: #a34de2;
}

/* ------------------ 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);
}

/* ------------------ 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;
  }
}