* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --crema: #fff8f0;
  --manteca: #fff3b0;
  --coral: #f07f7b;
  --menta: #a3d9a5;
  --cacao: #4f3428;
  --texto-suave: #7c6b5d;
  --uva: #9360cf;
}

body {
  background-color: var(--crema);
  color: var(--cacao);
  font-family: 'Segoe UI', Arial, sans-serif;
}

main,
section,
article {
  background-color: var(--crema);
}

p {
  color: var(--texto-suave);
}

.navbar {
  box-shadow: 0 2px 16px rgba(79, 52, 40, 0.08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cacao) !important;
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  color: var(--cacao) !important;
  font-weight: 600 !important;
}

.nav-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.hero {
  min-height: clamp(520px, 74vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
  background:
    linear-gradient(90deg, rgba(38, 24, 18, 0.82) 0%, rgba(56, 36, 27, 0.58) 48%, rgba(56, 36, 27, 0.1) 100%),
    url("IMG/carrusel.jpg") center/cover no-repeat;
}

.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  color: white;
}

.hero-kicker,
.section-kicker {
  margin-bottom: 0.6rem;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 1.6rem;
  color: #fff7ef;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-hero,
.btn-hero-outline {
  min-width: 150px;
  padding: 0.75rem 1.1rem !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
}

.btn-hero {
  background-color: var(--manteca) !important;
  color: var(--cacao) !important;
}

.btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, 0.82) !important;
  color: white !important;
}

.galeria-sabores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(1120px, calc(100% - 2rem));
  margin: -3.25rem auto 3rem;
  background: transparent;
}

.galeria-sabores img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid white;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(79, 52, 40, 0.16);
}

.presentacion {
  display: grid;
  place-items: center;
  padding: 1rem 1rem 3rem;
}

article {
  align-items: center;
  width: min(1000px, 100%);
  margin: 0 !important;
}

#imgsection {
  width: min(320px, 80vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(79, 52, 40, 0.16);
}

#h2section {
  color: var(--cacao);
  font-weight: 800;
}

#psection {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: center;
}
.divsection{
    display: grid;
    place-items: center;
}
#navbarNav{
  justify-content: flex-end;
}
/* Tienda */
main {
  padding: 3rem 1rem 1rem;
}

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

.productos-header h2 {
  color: var(--cacao);
  font-weight: 850;
}

.divcard{
    display: grid;
    place-items: center;
    gap: 0.3rem;
    text-align: center;
}
.contenedor {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.tarjeta {
  width: 320px;
  height: 460px;
  perspective: 1000px;
  position: relative;
}

.tarjeta-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  position: relative;
}

.tarjeta.volteada .tarjeta-inner {
  transform: rotateY(180deg);
}

.tarjeta-frente, .tarjeta-dorso {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(79,52,40,0.14);
}

.tarjeta-frente {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 1rem;
  color: white;
  font-weight: bold;
  background-blend-mode: multiply;
  background-color: rgba(0,0,0,0.42);
}

.tarjeta-dorso {
  background-color: white;
  transform: rotateY(180deg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cacao);
  gap: 0.35rem;
}

.tarjeta-frente h4,
.tarjeta-dorso h4 {
  font-weight: 800;
}

.tarjeta-frente p {
  color: #fff3b0;
  font-size: 1.1rem;
  font-weight: 800;
}

.tarjeta-dorso select,
.tarjeta-dorso input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
}

.tarjeta-dorso button {
  padding: 0.6rem;
  background-color: var(--menta);
  color: var(--cacao);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.tarjeta-dorso button:hover {
  background-color: var(--coral);
}

.botonproducto{
  margin-bottom: 5px;
}

input, select, textarea {
  border: 1px solid var(--uva);
  border-radius: 8px;
  padding: 0.5rem;
  margin-top: 0.3rem;
  width: 100%;
}
input[type="number"] {
  max-width: 80px;
}

/* Footer */
.footer-banaco {
  background-color: var(--manteca);
  color: var(--cacao);
  font-family: 'Segoe UI', sans-serif;
  padding: 2rem 1rem 1rem;
  margin-top: 3rem;
  border-top: 3px solid rgba(147, 96, 207, 0.35);
}

.footer-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
  gap: 1rem;
  font-family: 'Lato', sans-serif;


}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.logo-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-footer img {
  width: 150px;
  height: auto;
  border-radius: 50%;
  border: 2px solid #F7A4A4;
  background-color: #fff;
}

.logo-footer p {
  font-weight: bold;
  margin: 0;
  font-size: 1.1rem;
  color: var(--cacao);
}

.logo-footer span {
  font-weight: normal;
  font-size: 0.9rem;
  display: block;
  color: var(--texto-suave);
}

.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a, .footer-social a{
  text-decoration: none;
  color: var(--cacao);
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--uva);
}

.footer-social img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

/* Estilo para el contador del carrito */
.contador-carrito {
  background-color: var(--uva);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 6px;
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .hero {
    min-height: 560px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(38, 24, 18, 0.12) 0%, rgba(38, 24, 18, 0.86) 66%),
      url("IMG/carrusel.jpg") center/cover no-repeat;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .galeria-sabores {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .galeria-sabores img {
    aspect-ratio: 16 / 10;
  }

  .presentacion article {
    gap: 1.5rem;
  }

  .tarjeta {
    width: min(320px, 100%);
  }
}
