body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff7fb;
  color: #333;

  background-image: url("../../../img/carritos-snacks-jjr/img-fondo.webp");
  background-repeat: repeat;       
  background-size: 400px;           
  background-position: top left;    
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ee70ae;
  color: white;
  padding: 20px 40px;
  position: relative;
  box-shadow: none;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease; 
  cursor: pointer; 
}

.logo img:hover {
  transform: scale(1.1); 
}

.decorado-chocolate {
  position: absolute;       
  top: 0;                   
  right: 0;                 
  width: 150px;             
  height: auto;
  pointer-events: none;    
  user-select: none;        
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  transition: transform 0.3s ease;
  margin-left: -200px; 
  transform: translateX(-200px); 
  font-family: 'Funkie Retro', sans-serif;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: 680;
  font-size: 1.8rem;
  transition: transform 0.25s ease, color 0.3s ease;
  cursor: pointer;
}

.menu-item:hover {
  transform: scale(1.12);
  color: #2f0052;
}

.menu-item:nth-child(1) {
  position: relative;
  left: 10px;
}

.menu-item:nth-child(2) {
  position: relative;
  left: 30px; 
}

.menu-item:nth-child(3) {
  position: relative;
  left: 50px; 
}

.menu-item:nth-child(4) {
  position: relative;
  left: 70px; 
}

.menu-item img {
  width: 50px;
  height: auto;
  vertical-align: middle;
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.menu-item:hover img {
  transform: scale(1.1);
  opacity: 0.9;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: 680;
  font-size: 1.8rem;
  transition: transform 0.25s ease, color 0.3s ease;
  cursor: pointer;
}

.menu-item.hovered {
  transform: scale(1.1);
  color: #690074; 
}


.menu-item img {
  width: 50px;
  height: auto;
  vertical-align: middle;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-item.hovered img {
  transform: scale(1.1);
  opacity: 0.9;
}

.cinta-derretida {
  top: -1px; 
  position: relative;
  width: 100%;
  height: 200px; 
  margin-top: 0; 
  background-image: url("../../../img/carritos-snacks-jjr/cinta-derretida.svg"); 
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%; 
  margin-top: -1px; 
}

@media (max-width: 600px) {

  body {
    background-size: 220px;
  }

  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    position: relative;
  }

  .logo {
    justify-content: center;
    margin-bottom: 10px;
  }

  .logo img {
    width: 95px;
  }


  .decorado-chocolate {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: auto;
    pointer-events: none;
  }

  .cinta-derretida {
    height: 90px;
    background-size: auto 100%;
    background-position: center top;
  }

    .menu {
    display: none;
  }
}


@media (max-width: 1600px) {
  .menu {
    margin-left: 350px;
  }
}

@media (max-width: 1400px) {
  .menu {
    margin-left: 300px;
  }
}

@media (max-width: 1200px) {
  .menu {
    margin-left: 250px;
  }
}

/* Agrupa toda la zona del catálogo */
.seccion-productos {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  width: 100%;
}

/* Productos dentro */
.productos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  justify-items: center;
  width: 100%;
}

.tarjeta {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.tarjeta:hover {
  transform: scale(1.05);
}

@media (max-width: 800px) {
  .productos {
    grid-template-columns: 1fr;
  }
}

.tarjeta img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 30px;
  margin-right: 10px;
  background: #ffffff;
  padding: 1px; /* 🔹 borde blanco casi imperceptible */
}

.info h3 {
  font-size: 26px;
  margin: 0 0 10px 0;
  font-family: 'Sunrise Orange', sans-serif;
  font-weight: bold;
  color: #000; /* texto principal */
  text-shadow:
    -1px -1px 0 #fff,  /* borde arriba-izquierda */
     1px -1px 0 #fff,  /* borde arriba-derecha */
    -1px  1px 0 #fff,  /* borde abajo-izquierda */
     1px  1px 0 #fff;  /* borde abajo-derecha */
}

.info p {
  font-size: 18px;
  margin: 0;
  color: #171616;
  font-weight: 600; /* semi-negrita */
  text-shadow:
    -0.8px -0.8px 0 #fff,
     0.8px -0.8px 0 #fff,
    -0.8px  0.8px 0 #fff,
     0.8px  0.8px 0 #fff;
}


.azul     { background: #8ee0ff; }
.amarilla { background: #ffe68f; }
.rosada   { background: #fa9cc3; }
.verde    { background: #b6ff9f; }
.anaranjado { background: #ffb676; }

.fondo-rosado {
  background-color: rgba(238, 112, 174, 0.35);
  border-radius: 25px;
  padding: 40px 30px; /* 🔹 Menos espacio */
  margin: 60px auto; /* Centrado verticalmente */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  max-width: 950px; /* 🔹 Se ajusta al contenido de productos */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra los productos dentro */
}


.titulo-catalogo {
  text-align: center;
  font-size: 5rem;
  color: #a3058e; 
 font-family: 'Rastano', sans-serif;
 
  margin-top: 60px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: 3px;
}

html, body {
  width: 100%;
  overflow-x: hidden; 
  margin: 0;
  padding: 0;
}

@media (max-width: 400px) {
  body {
    background-size: 250px; 
  }

  .fondo-rosado {
    padding: 40px 10px;
    width: 95%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .productos {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
    gap: 15px;
  }

  .tarjeta {
    width: 100%;
    box-sizing: border-box;
  }
}

html, body {
  width: 100%;
  overflow-x: hidden; 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit; 
}

.fondo-rosado {
  background-color: rgba(238, 112, 174, 0.35);
  border-radius: 25px;
  padding: 60px 60px; /* 🔹 más aire horizontal */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  max-width: 1200px; /* 🔹 más ancho total */
  width: 90%; 
  margin: 0 auto 60px auto;
  display: flex;
  justify-content: center;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* 💡 más ancho mínimo */
  gap: 40px; /* un poco más de espacio entre ellas */
  justify-items: stretch; /* 🟢 esto hace que las tarjetas se estiren */
  width: 100%;
}


@media (max-width: 400px) {
  .fondo-rosado {
    width: 95%;
    padding: 40px 10px;
    border-radius: 25px;
  }

  .productos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tarjeta {
  width: 100%; /* ✅ se estira hasta el ancho asignado */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

  .tarjeta img {
    width: 90px;
    height: 90px;
    margin: 0 0 10px 0;
  }

  .info h3 {
    font-size: 20px;
  }

  .info p {
    font-size: 16px;
  }

  .titulo-catalogo {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  html, body {
    overflow-x: hidden;
  }

  .fondo-rosado {
    width: 92%;
    max-width: 100%;
    padding: 50px 20px;
    border-radius: 30px;
    margin: 30px auto;
  }

  .titulo-catalogo {
    font-size: 2.3rem;
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
  }

  .productos {
    grid-template-columns: 1fr; 
    gap: 25px;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
  }

  .tarjeta {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    border-radius: 20px;
  }

  .tarjeta img {
    width: 110px;
    height: 110px;
    margin: 0 0 15px 0;
  }

  .info h3 {
    font-size: 22px;
  }

  .info p {
    font-size: 17px;
  }
}

/* =====================================
   🧩 Ajuste final responsive 400–800px
   ===================================== */

@media (max-width: 800px) {
  html, body {
    overflow-x: hidden !important;
  }

  /* Corrige alineación del header y decoración */
  header {
    width: 100%;
    overflow: hidden;
    padding: 15px 15px;
    box-sizing: border-box;
  }

  .decorado-chocolate {
    right: 0;
    width: 100px;
  }

  /* Ajuste fino del título */
  .titulo-catalogo {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-top: 35px;
    margin-bottom: 20px;
  }

  /* Fondo rosado centrado sin desbordar */
  .fondo-rosado {
    width: 94%;
    max-width: 100%;
    margin: 0 auto 40px auto;
    padding: 50px 20px;
    border-radius: 28px;
    box-sizing: border-box;
  }

  /* Grilla flexible */
  .productos {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 25px;
    width: 100%;
  }

  /* Tarjetas limpias y centradas */
  .tarjeta {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    border-radius: 20px;
    box-sizing: border-box;
  }

  .tarjeta img {
    width: 100px;
    height: 100px;
    margin: 0 0 10px 0;
  }

  .info h3 {
    font-size: 22px;
  }

  .info p {
    font-size: 17px;
  }

  .fondo-rosado,
  .productos,
  .tarjeta {
    overflow: hidden;
  }
}


/* ===============================
   SECCIÓN DE COMBOS
=============================== */
.seccion-combos {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
  width: 100%;
}

.combos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  align-items: flex-start;
  justify-items: center;
}

.combo {
  width: 90%;
  max-width: 550px;
  transition: transform 0.3s ease;
}

.combo:hover {
  transform: scale(1.02);
}

.combo h3 {
  font-size: 2.4rem;
  color: #2f0052;
  font-family: 'Gasoek One', sans-serif;
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.tabla-combo {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.tabla-combo th {
  background-color: #ff00a6;
  color: white;
  text-align: center;
  padding: 10px 5px;
  font-size: 1.1rem;
  font-weight: bold;
}

.tabla-combo td {
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #222;
  padding: 15px;
  border-bottom: 2px solid #f7b4da;
  background: rgba(255,255,255,0.9);
}

.tabla-combo img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tabla-combo img:hover {
  transform: scale(1.08);
}

.tabla-combo .precio {
  font-size: 1.6rem;
  color: #2f0052;
  font-weight: 800;
  background-color: #ffe0f0;
}

.combo strong {
  color: #222;
}

/* ===============================
   📱 Responsive: 900 px o menos
   (Se convierte a 1 columna)
=============================== */
@media (max-width: 900px) {
  .combos {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .combo {
    max-width: 500px;
  }

  .combo h3 {
    font-size: 2rem;
  }

  .tabla-combo td {
    font-size: 1rem;
  }
}

/* ===============================
   📱 Responsive: 400 px o menos
=============================== */

@media (max-width: 500px) {
  .combo h3 {
    font-size: 1.6rem;
  }

  .tabla-combo th {
    font-size: 0.8rem;
    padding: 6px;
  }

  .tabla-combo td {
    font-size: 0.85rem;
    padding: 8px;
  }

  .tabla-combo img {
    width: 65px;
    height: 65px;
  }

  .tabla-combo .precio {
    font-size: 1.1rem;
    padding: 5px;
  }
}


@media (max-width: 400px) {
  .combo h3 {
    font-size: 1.6rem;
  }

  .tabla-combo th {
    font-size: 0.8rem;
    padding: 6px;
  }

  .tabla-combo td {
    font-size: 0.85rem;
    padding: 8px;
  }

  .tabla-combo img {
    width: 65px;
    height: 65px;
  }

  .tabla-combo .precio {
    font-size: 1.1rem;
    padding: 5px;
  }
}


/* ==========================
  Ícono flotante de WhatsApp
========================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.whatsapp-float img {
  width: 120px; 
  height: auto;
  cursor: pointer;
  user-select: none;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .whatsapp-float img {
    width: 100px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
  }
}

@media (max-width: 500px) {
  .whatsapp-float img {
    width: 100px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
  }
}


@media (max-width: 600px) {
  body {
    background-image: none !important;
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-size: auto !important;
  }
}