* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff7f2;
  color: #3b1f1f;
  overflow-x: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3c6b8;
}

.navbar {
  max-width: 1180px;
  margin: auto;
  padding: 4px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #3b1f1f;
  font-weight: 600;
}

.nav-links a:hover {
  color: #d94f70;
}

.menu-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #3b1f1f;
}

/* ANCLAS */

.hero {
  scroll-margin-top: 72px;
}

.products-section,
.about,
.contact {
  scroll-margin-top: 0;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background-image: url("public/img/patron-estrellas.png");
  background-repeat: repeat;
  background-size: 680px auto;

  background-position: var(--pattern-x, 0px) var(--pattern-y, 0px);

  animation: movePattern 35s linear infinite;

  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: rgba(255, 247, 242, 0.42);
}

.hero-container {
  width: 100%;
  max-width: 1180px;
  margin: auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: fadeUp 1s ease forwards;
}

.tag,
.section-title span,
.about span {
  color: #d94f70;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
}

.hero p {
  margin: 24px 0;
  font-size: 1.1rem;
  max-width: 520px;
  color: #6f4a4a;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #d94f70;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  background: #b83255;
  transform: translateY(-3px);
}

.hero-card {
  padding: 40px;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.dessert {
  font-size: 16rem;
}

.hero-card h3 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.products-section {
  padding: 90px 24px;
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-top: 10px;
  font-size: 2.6rem;
}

.products-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff7f2;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(59, 31, 31, 0.08);
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(217, 79, 112, 0.2);
}

.product-img {
  font-size: 4rem;
  margin-bottom: 18px;
}

.product-card h3 {
  margin-bottom: 10px;
}

.product-card p {
  color: #6f4a4a;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.product-card strong {
  display: block;
  margin-bottom: 18px;
  color: #d94f70;
  font-size: 1.2rem;
}

.add-btn {
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: #3b1f1f;
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s ease;
}

.add-btn:hover {
  background: #d94f70;
}

.about {
  max-width: 1180px;
  margin: auto;
  padding: 90px 24px;
  text-align: center;
}

.about h2 {
  margin: 14px 0;
  font-size: 2.5rem;
}

.about p {
  max-width: 760px;
  margin: auto;
  color: #6f4a4a;
  line-height: 1.7;
}

.cart-section {
  max-width: 800px;
  margin: 0 auto 90px;
  padding: 40px 24px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(59, 31, 31, 0.08);
  text-align: center;
}

.cart-section h2 {
  margin-bottom: 20px;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid #f3c6b8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-btn {
  margin-top: 20px;
}

.contact {
  padding: 90px 24px;
  text-align: center;
  background: linear-gradient(135deg, #d94f70, #ff9f7c);
  color: white;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.contact p {
  margin-bottom: 26px;
}

.contact .btn {
  background: white;
  color: #d94f70;
}

.footer {
  padding: 24px;
  text-align: center;
  background: #3b1f1f;
  color: white;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes movePattern {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 680px 380px;
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 24px;
    width: 240px;
    padding: 22px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(59, 31, 31, 0.18);

    display: none;
    flex-direction: column;
    gap: 18px;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    min-height: calc(100vh - 72px);
    padding: 50px 18px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 16px 18px;
  }

  .logo img {
    width: 110px;
  }

  .hero {
    min-height: calc(100vh - 76px);
    padding: 40px 18px;
  }

  .hero-card {
    padding: 30px 20px;
  }

  .dessert {
    font-size: 6rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2,
  .about h2,
  .contact h2 {
    font-size: 2rem;
  }

  .cart-section {
    margin-left: 18px;
    margin-right: 18px;
  }

  .cart-item {
    flex-direction: column;
    text-align: left;
  }
}
