:root {
--bg: #fdf1df;
--bg-soft: #f8e3c3;
--primary: #8a233a;
--primary-deep: #6d182f;
--text: #531325;
--card: #fff7eb;
--stroke: #f2c995;
}

* {
box-sizing: border-box;
}

body {
margin: 0;
min-height: 100vh;
font-family: 'Nunito', sans-serif;
color: var(--text);
background: radial-gradient(circle at top, #ffeccb 0%, var(--bg) 55%, #fde8c8 100%);
}

.container {
width: min(1100px, 92vw);
margin: 0 auto;
}

.hero {
position: relative;
overflow: hidden;
padding: 3rem 0 2rem;
}

.hero__glow {
position: absolute;
inset: auto -10% -40% -10%;
height: 75%;
background: radial-gradient(circle, rgba(138, 35, 58, 0.2) 0%, rgba(138, 35, 58, 0) 70%);
pointer-events: none;
}

.hero__content {
position: relative;
text-align: center;
}

.hero__brand {
width: min(760px, 40%);
display: block;
margin: 0 auto 1.2rem;
}

.hero__title {
margin: 0;
font-family: 'Baloo 2', cursive;
font-size: clamp(2rem, 5vw, 3.2rem);
line-height: 1;
color: var(--primary);
}

.hero__subtitle {
margin: 0.85rem auto 1.7rem;
max-width: 640px;
font-size: clamp(1rem, 2.7vw, 1.2rem);
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
border-radius: 999px;
border: 2px solid transparent;
padding: 0.72rem 1.35rem;
font-weight: 800;
font-family: 'Baloo 2', cursive;
font-size: 1.12rem;
transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
transform: translateY(-2px);
}

.btn--primary {
background: var(--primary);
color: #fff7eb;
box-shadow: 0 8px 18px rgba(90, 18, 37, 0.22);
}

.btn--primary:hover {
background: var(--primary-deep);
}

.btn--ghost {
background: rgba(255, 247, 235, 0.7);
color: var(--primary);
border-color: var(--stroke);
}

.intro {
padding: 0.5rem 0 2rem;
}

.card {
background: var(--card);
border: 3px solid var(--stroke);
border-radius: 24px;
padding: 1.4rem;
box-shadow: 0 9px 22px rgba(90, 18, 37, 0.12);
}

.card h2 {
margin: 0 0 0.4rem;
font-family: 'Baloo 2', cursive;
color: var(--primary);
}

.card p {
margin: 0;
line-height: 1.5;
}

.card__mascot {
width: 160px;
height: auto;
display: block;
margin-bottom: 0.8rem;
}

.topbar {
  border-bottom: 3px solid var(--stroke);
  background: rgba(255, 242, 220, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}

.topbar__inner {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 1rem;
align-items: center;
padding: 0.7rem 0;
}

.topbar__logo img {
width: 92px;
display: block;
}

.topbar h1 {
margin: 0;
font-family: 'Baloo 2', cursive;
color: var(--primary);
font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.topbar p {
margin: 0;
font-size: 0.97rem;
}

.sabores-main {
padding: 1.2rem 0 2rem;
}

.sabores-header {
margin-bottom: 1.1rem;
}

.sabores-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 0.85rem;
}

.sabor-item {
background: var(--card);
border: 2px solid var(--stroke);
border-radius: 16px;
padding: 0.9rem 0.9rem 0.85rem;
display: flex;
gap: 0.72rem;
align-items: flex-start;
}

.sabor-id {
min-width: 34px;
height: 34px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 0.9rem;
color: #fff7eb;
background: var(--primary);
}

.sabor-nombre {
  margin: 0 0 0.3rem 0;
  font-weight: 700;
  line-height: 1.25;
}

.sabor-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
  opacity: 0.9;
}

.sabor-badge {
  display: inline-block;
  margin-right: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  background: #ffe7bc;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.sabor-badge--premium {
  background: #f2d99f;
  border-color: #e8c44e;
  color: var(--primary-deep);
}

.precios-section {
  margin-bottom: 2rem;
  padding: 0;
}

.precios-section h3 {
  margin: 0 0 1rem 0;
  font-family: 'Baloo 2', cursive;
  font-size: 1.6rem;
  color: var(--primary);
}

.precios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.precio-item {
  background: var(--card);
  border: 2px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(90, 18, 37, 0.1);
}

.precio-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.precio-valor {
  display: block;
  font-family: 'Baloo 2', cursive;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.footer {
padding: 1.2rem 0 1.5rem;
text-align: center;
color: var(--primary-deep);
font-weight: 700;
}

@media (min-width: 740px) {
.card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: center;
}

.card__mascot {
    width: 210px;
    margin-bottom: 0;
}
}

@media (max-width: 620px) {
  .topbar__inner {
    grid-template-columns: auto 1fr auto;
    justify-items: center;
    gap: 0.5rem;
  }

  .topbar__inner > div {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-items: start;
  }

  .topbar__logo img {
    width: 60px;
  }

  .topbar h1 {
    font-size: 1.3rem;
    margin: 0.2rem 0 0 0;
  }

  .topbar p {
    font-size: 0.8rem;
    margin: 0;
  }

  .topbar__inner .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    height: fit-content;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out both;
}

/* Button variations */
.btn--secondary {
  background: #f4d09e;
  color: var(--primary-deep);
  border-color: var(--stroke);
  box-shadow: 0 8px 18px rgba(90, 18, 37, 0.15);
}

.btn--secondary:hover {
  background: #e8c44e;
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Precios header with button */
.precios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.precios-header h3 {
  margin: 0;
}

/* Promos page styles */
.promos-main {
  padding: 1.2rem 0 2rem;
}

.promos-header {
  margin-bottom: 2rem;
  text-align: center;
}

.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.promo-card {
  background: var(--card);
  border: 3px solid var(--stroke);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 9px 22px rgba(90, 18, 37, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(90, 18, 37, 0.18);
}

.promo-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-soft);
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.promo-card:hover .promo-image img {
  transform: scale(1.08);
}

.promo-content {
  padding: 1.3rem;
}

.promo-content h3 {
  margin: 0 0 0.6rem 0;
  font-family: 'Baloo 2', cursive;
  color: var(--primary);
  font-size: 1.5rem;
}

.promo-desc {
  margin: 0 0 1rem 0;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--text);
}

.promo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 2px solid var(--stroke);
}

.promo-precio {
  font-family: 'Baloo 2', cursive;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.promo-ahorro {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: #ffe7bc;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
}

.info-promos {
  margin-top: 2rem;
}

.info-promos h3 {
  margin: 0 0 1rem 0;
  font-family: 'Baloo 2', cursive;
  color: var(--primary);
}

.info-promos ul {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.info-promos li {
  margin-bottom: 0.5rem;
}

@media (max-width: 620px) {
  .hero__brand {
    width: min(760px, 95%);
    display: block;
    margin: 0 auto 1.2rem;
  }
  .hero__buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .promos-grid {
    grid-template-columns: 1fr;
  }
}
