/* Header flotante */
.header-float {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 25px;
    padding: 12px 40px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.header-float:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.nav-float {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    max-height: 50px;
    transition: transform 0.3s;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-menu-float {
    display: flex;
    gap: 40px; /* más espacio entre los items */
    list-style: none;
}

.nav-menu-float a {
    display: flex;
    align-items: center;
    gap: 8px; /* espacio entre icono y texto */
    text-decoration: none;
    color: #80221e;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu-float a:hover {
    color: #f4a261;
}

.nav-menu-float a i {
    font-size: 18px; /* iconos más grandes */
}



/* Sección 1 estilo Pinterest */
.section-1-float-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 140px 60px 80px;
  gap: 50px;
  position: relative;
  background-color: #fdf2e9;
}

.section-text {
  max-width: 500px;
  z-index: 1;
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 1s forwards;
}

.section-logo {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.section-text p {
  font-size: 18px;
  color: #80221e;
  margin-bottom: 30px;
}

.btn-read-more {
  display: inline-block;
  background: linear-gradient(45deg, #f8b88b, #f4a261);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.section-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.section-image img {
  width: 100%;
  max-width: 850px;  /* más ancho para banner */
  height: auto;
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  transform: translateY(-20px); /* efecto flotante */
  transition: transform 0.5s, box-shadow 0.5s;
  opacity: 0;
  animation: fadeInRight 1s forwards;
  animation-delay: 0.5s;
}

.section-image img:hover {
  transform: translateY(-25px) scale(1.02);
  box-shadow: 0 35px 60px rgba(0,0,0,0.25);
}

/* Animaciones */
@keyframes fadeInLeft {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .section-1-float-3d {
    flex-direction: column-reverse;
    padding: 140px 20px 60px;
    gap: 30px;
  }

  .section-image img {
    width: 100%;
    max-width: 400px;
    transform: translateY(0); /* quitar efecto flotante en móvil */
  }

  .section-text p {
    font-size: 16px;
  }

  .btn-read-more {
    padding: 12px 30px;
    font-size: 14px;
  }
}


/* ============ FUENTES Y BASE ============ */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #FFF7F3;
  color: #6A3A2B;
  overflow-x: hidden;
}

/* 🔧 PREVENIR DESBORDES EN TODA LA PÁGINA */
html, body {
    width: 100%;
    overflow-x: hidden;
}


h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: #80221E;
  margin-bottom: 15px;
}

h2 span {
  color: #B85C48;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ============ BOTONES GENERALES ============ */
.btn-primary,
.btn-secondary,
.btn-ver-mas,
.btn-learn-more,
.btn-whatsapp {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #B85C48;
  color: #fff;
}
.btn-primary:hover {
  background-color: #80221E;
}

.btn-secondary {
  border: 2px solid #B85C48;
  color: #B85C48;
  background: #fff;
}
.btn-secondary:hover {
  background-color: #B85C48;
  color: #fff;
}

.btn-ver-mas {
  background-color: #AD7C59;
  color: #fff;
  margin-top: 20px;
}
.btn-ver-mas:hover {
  background-color: #80221E;
}

.btn-learn-more,
.btn-whatsapp {
  background-color: #B85C48;
  color: #fff;
}
.btn-learn-more:hover,
.btn-whatsapp:hover {
  background-color: #80221E;
}

/* ============ HERO PRINCIPAL ============ */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #FFF7F3 0%, #D4B4A1 100%);
  padding: 120px 10%;
  flex-wrap: wrap;
  position: relative;
}

.hero-logo {
  max-width: 200px;
  margin-bottom: 25px;
}

.hero-content {
  max-width: 550px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #80221E;
  line-height: 1.2;
}

.hero-content h1 span {
  color: #B85C48;
}

.hero-content p {
  margin: 20px 0 40px;
  color: #6A3A2B;
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image img {
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(128, 34, 30, 0.25);
}

/* ============ MIGUITAS / CHIPS FLOTANTES ============ */
.cookie-chips {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.chip {
  position: absolute;
  background: radial-gradient(circle, #6A3A2B 40%, transparent 40%);
  border-radius: 50%;
  opacity: 0.6;
  animation: floatChips 10s linear infinite;
}

.chip:nth-child(1) { width: 12px; height: 12px; top: 10%; left: 20%; animation-delay: 0s; }
.chip:nth-child(2) { width: 8px; height: 8px; top: 40%; left: 10%; animation-delay: 2s; }
.chip:nth-child(3) { width: 10px; height: 10px; top: 70%; left: 50%; animation-delay: 4s; }
.chip:nth-child(4) { width: 6px; height: 6px; top: 80%; left: 80%; animation-delay: 6s; }
.chip:nth-child(5) { width: 9px; height: 9px; top: 30%; left: 60%; animation-delay: 8s; }

@keyframes floatChips {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { opacity: 1; }
  100% { transform: translateY(-800px) rotate(360deg); opacity: 0; }
}

/* ============ PRODUCTOS DESTACADOS ============ */
.menu-destacado {
  text-align: center;
  padding: 100px 10%;
  background-color: #fff;
}

.menu-destacado h2 {
  font-size: 2rem;
  margin-bottom: 50px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.producto-card {
  background-color: #FFF7F3;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 20px rgba(128, 34, 30, 0.1);
  transition: transform 0.3s ease;
}
.producto-card:hover {
  transform: translateY(-5px);
}

.producto-imagen img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}

.precio {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #B85C48;
}

/* ============ CÓMO SE HACEN ============ */
.como-se-hacen {
  background-color: #CABCAB;
  padding: 100px 10%;
}

.como-se-hacen h2 {
  text-align: center;
  margin-bottom: 50px;
}

.proceso-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.proceso-texto {
  flex: 1;
  min-width: 300px;
}

.proceso-imagen img {
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(128, 34, 30, 0.2);
}

/* ============ GALERÍA CLIENTES ============ */
.galeria-clientes {
  text-align: center;
  padding: 100px 10%;
  background: linear-gradient(180deg, #FFF7F3, #D4B4A1);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.galeria-grid img {
  width: 100%;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.galeria-grid img:hover {
  transform: scale(1.05);
}

/* ============ GALERÍA CLIENTES (MASONRY) ============ */
.galeria-clientes {
  text-align: center;
  padding: 100px 10%;
  background: linear-gradient(180deg, #FFF7F3 0%, #D4B4A1 100%);
}

.galeria-clientes h2 {
  font-size: 2rem;
  color: #80221E;
  margin-bottom: 50px;
  font-weight: 800;
}

/* 📸 Cuadrícula tipo “masonry” */
.galeria-masonry {
  column-count: 4;
  column-gap: 15px;
}

.galeria-masonry img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 20px;
  display: block;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(128, 34, 30, 0.15);
}

.galeria-masonry img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(128, 34, 30, 0.25);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .galeria-masonry {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .galeria-masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .galeria-masonry {
    column-count: 1;
  }
}

/* ============ UBICACIONES ============ */
.ubicaciones {
  background-color: #AD7C59;
  color: #fff;
  text-align: center;
  padding: 100px 10% 60px;
  margin-bottom: 0;
}

.ubicaciones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.ubicacion-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 20px;
  min-width: 250px;
}

.ubicacion-card h3 {
  color: #fff;
  margin-bottom: 10px;
}


/* ============ FOOTER ============ */
.footer {
  background-color: #80221E;
  color: #fff;
  text-align: center;
  padding: 80px 10% 30px;
  position: relative;
  margin-top: 0;
}

.footer::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #80221E;
  border-top-left-radius: 100% 40px;
  border-top-right-radius: 100% 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-logo img {
  max-width: 120px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-family: 'Pacifico', cursive;
  color: #D4B4A1;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.footer-links a {
  color: #FFF7F3;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #D4B4A1;
}

.footer-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-socials a {
  font-size: 22px;
  color: #fff;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  padding: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  background-color: #B85C48;
  transform: translateY(-4px);
}

.footer-bottom {
  margin-top: 35px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 15px;
  font-size: 14px;
  color: #CABCAB;
}

.footer-bottom span {
  color: #D4B4A1;
  font-weight: 600;
}

section {
  margin: 0;
  padding: 0;
  border: 0;
}

















/* ============ RESPONSIVE DESIGN ============ */

/* TABLET */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 80px 5%;
  }

  .hero-image img {
    max-width: 350px;
    margin-bottom: 30px;
  }

  .hero-content {
    max-width: 100%;
  }

  .menu-destacado, .como-se-hacen, .galeria-clientes, .ubicaciones {
    padding: 60px 5%;
  }

  .producto-card {
    padding: 20px;
  }
}

/* CELULAR */
@media (max-width: 768px) {
  .header-float {
    width: 90%;
    top: 10px;
    padding: 10px 20px;
    border-radius: 20px;
  }

  .nav-menu-float {
    gap: 15px;
  }

  .nav-menu-float a {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }

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

  .proceso-contenido {
    flex-direction: column;
  }

  .proceso-imagen img {
    max-width: 90%;
  }

  .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .footer {
    padding: 50px 5% 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-socials {
    gap: 15px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

/* ======== MENÚ HAMBURGUESA ======== */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #80221E;
  transition: transform 0.3s;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

/* ======== RESPONSIVE HEADER ======== */
@media (max-width: 768px) {
  .nav-menu-float {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 247, 243, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 20px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: none;
  }

  .nav-menu-float.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-float {
    width: 90%;
    top: 15px;
    padding: 12px 25px;
  }
}





.menu-completo {
    padding: 160px 10% 80px;
}

.menu-completo h2 {
    text-align: center;
    color: #80221E;
    font-size: 2.4rem;
    margin-bottom: 50px;
}

/* Contenedor principal */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Tarjeta estilo app */
.menu-item {
    display: flex;
    gap: 25px;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(128,34,30,0.08);
    align-items: center;
}

/* Imagen */
.menu-img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 18px;
}

/* Info */
.menu-info h3 {
    font-size: 1.4rem;
    color: #80221E;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-info p {
    color: #6A3A2B;
    font-size: 0.95rem;
    margin: 8px 0 15px;
    max-width: 350px;
}

/* Precio */
.precio {
    color: #B85C48;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Cantidad */
.cantidad-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-cantidad {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    background: #FDEFE8;
    color: #80221E;
    cursor: pointer;
    transition: 0.2s;
}
.btn-cantidad:hover {
    background: #FFC8B2;
}

.cantidad-input {
    width: 50px;
    text-align: center;
    border: 2px solid #E8D8D0;
    padding: 6px;
    border-radius: 10px;
    font-size: 1rem;
    color: #80221E;
}

/* Botón Añadir carrito */
.btn-add-cart {
    background-color: #B85C48;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-add-cart:hover {
    background-color: #80221E;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-item {
        flex-direction: column;
        text-align: center;
    }
    .menu-img img {
        width: 120px;
        height: 120px;
    }
}

/* ======== Tarjetas más delgadas ======== */
.menu-list {
    max-width: 900px;        /* antes ocupaban toda la pantalla */
    margin: 0 auto;          /* centrar */
    width: 100%;
}

.menu-item {
    max-width: 900px;        /* ancho controlado */
    margin: 0 auto;
    padding: 25px 35px;      /* menos padding horizontal */
}

.menu-img img {
    width: 110px;
    height: 110px;
}

.menu-info h3 {
    font-size: 1.3rem;
}

.menu-info p {
    max-width: 400px;
}

/* Botón más pequeño para que no haga la tarjeta muy grande */
.btn-add-cart {
    padding: 10px 22px;
    font-size: 0.95rem;
}

/* Control de cantidad más compacto */
.cantidad-container {
    margin: 10px 0 15px;
}

.btn-cantidad {
    width: 32px;
    height: 32px;
    font-size: 18px;
}

.cantidad-input {
    width: 45px;
    font-size: 0.9rem;
}

/* Responsive bonito */
@media (max-width: 768px) {
    .menu-list {
        padding: 0 10px;
    }
    .menu-item {
        padding: 20px;
    }
}


/* ===== TARJETAS SUPER DELGADAS ===== */
.producto-mini {
    width: 100%;
    max-width: 700px;
    margin: 25px auto;
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.3s;
}

.producto-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.mini-img {
    width: 85px;
    height: 85px;
    border-radius: 15px;
    object-fit: cover;
}

.mini-info h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #80221E;
}

.mini-precio {
    font-weight: bold;
    color: #B85C48;
    font-size: 1.1rem;
}


/* ===== POPUP ===== */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-content {
    background: #FFF7F3;
    padding: 35px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.popup-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #80221E;
    font-weight: bold;
}

.popup-img {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 20px;
}

.popup-desc {
    color: #6A3A2B;
    font-size: 1rem;
    margin-bottom: 20px;
}

.popup-precio {
    font-size: 1.4rem;
    font-weight: bold;
    color: #B85C48;
    display: block;
    margin-bottom: 15px;
}

/* botones cantidad */
.cantidad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.btn-cantidad {
    background: #FCE7E1;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    color: #80221E;
    cursor: pointer;
}

.cantidad-input {
    width: 50px;
    text-align: center;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #E0C9C3;
}

/* botón carrito */
.btn-add-cart {
    display: block;
    background: #B85C48;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.btn-add-cart:hover {
    background: #80221E;
}

/* GRID estilo McDonald's 🍔 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 40px 10%;
}

/* Tarjeta compacta */
.item-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.25s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* Foto arriba */
.item-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* Nombre */
.item-nombre {
    font-size: 1.1rem;
    color: #80221E;
    margin: 5px 0;
}

/* Precio */
.item-precio {
    font-size: 1rem;
    font-weight: bold;
    color: #B85C48;
}

/* Botón carrito */
.item-btn {
    margin-top: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFF1EB;
    border: none;
    font-size: 20px;
    color: #B85C48;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.item-btn:hover {
    background: #B85C48;
    color: white;
}


.menu-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  width: 260px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform .25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-card:hover {
  transform: translateY(-4px);
}

.menu-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

/* texto */
.menu-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #80221E;
}

.menu-card .precio {
  font-size: 18px;
  font-weight: 700;
  color: #b85c48;
  margin-top: 5px;
}

/* footer de la tarjeta */
.card-bottom {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* cantidad */
.qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b85c48;
  border: none;
  font-size: 18px;
  color: #6A3A2B;
  cursor: pointer;
}

.qty-display {
  width: 40px;
  height: 32px;
  border: 2px solid #f1d5cd;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
}

/* icono de carrito */
.add-small {
  background: #fff3ed;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b85c48;
  font-size: 22px;
  transition: .3s;
}

.add-small:hover {
  background: #b85c48;
  color: white;
}

/* fondo del modal */
.product-modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

/* tarjeta del modal */
.product-modal {
  background: #fff7f3;
  width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 25px;
  padding: 25px 35px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  animation: popup .3s ease;
  position: relative;
}

/* cerrar */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  color: #b85c48;
}

/* imagen */
.modal-image {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* nombre */
.product-modal h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #80221E;
}

/* descripción */
.product-modal p {
  color: #6A3A2B;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* precio */
.modal-price {
  font-size: 24px;
  font-weight: bold;
  color: #b85c48;
  margin-bottom: 20px;
}

/* footer botones */
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-to-cart-btn {
  background: #b85c48;
  padding: 12px 30px;
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: .3s;
}

.add-to-cart-btn:hover {
  background: #80221E;
}











/* CARROOOO DE COMPRAS 🍪 */

.carrito-section {
    padding: 160px 10%;
}

.carrito-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

.carrito-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carrito-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    display: grid;
    grid-template-columns: 80px 1fr 140px 100px 40px;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.carrito-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.carrito-info h3 {
    margin: 0;
    color: #80221E;
}

.carrito-precio {
    color: #B85C48;
    font-weight: bold;
}

.cant-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFF1EC;
    border: none;
    font-size: 18px;
    color: #80221E;
    cursor: pointer;
}

.cant-display {
    padding: 0 10px;
    font-weight: bold;
    color: #80221E;
}

.trash-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #B85C48;
    cursor: pointer;
}

.carrito-resumen {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.carrito-resumen h3 {
    color: #80221E;
}

.carrito-resumen p span {
    float: right;
    font-weight: bold;
}

.carrito-total-final {
    font-size: 20px;
    color: #80221E;
    font-weight: bold;
}

.btn-checkout {
    margin-top: 25px;
    background: #B85C48;
    color: #fff;
    padding: 12px 25px;
    width: 100%;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-checkout:hover {
    background: #80221E;
}






/* ============================
   📱 RESPONSIVE CARRITO
   ============================ */
/* ============================================================
   📱 RESPONSIVE CARRITO & CHECKOUT
   ============================================================ */
@media (max-width: 768px) {

    /* 🧁 Contenedor principal */
    .carrito-wrapper,
    .checkout-wrapper {
        display: block !important;
        padding: 130px 5% 60px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* 🍪 TARJETA PRINCIPAL (Lista de productos) */
    .carrito-lista,
    .checkout-left {
        width: 100% !important;
        padding: 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 📦 TARJETA RESUMEN */
    .carrito-resumen,
    .checkout-right {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px !important;
        margin: 25px auto 0 !important;
        box-sizing: border-box !important;
        position: static !important;
    }

    /* ===========================
       🛒 ITEM DEL CARRITO
       =========================== */
    .carrito-item {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 18px !important;
        box-sizing: border-box !important;
    }

    /* 🍪 Imagen centrada */
    .carrito-item img {
        width: 100% !important;
        max-width: 240px !important;
        height: auto !important;
        margin-bottom: 18px !important;
        display: block !important;
    }

    /* 🎀 Nombre centrado */
    .carrito-item h4 {
        width: 100% !important;
        text-align: center !important;
    }

    /* 🔢 Cantidades centradas */
    .qty-box {
        width: 100% !important;
        justify-content: center !important;
        margin: 15px 0 !important;
    }

    /* 🗑 Botón eliminar centrado */
    .delete-btn {
        margin: 10px auto 0 !important;
        display: block !important;
        text-align: center !important;
        font-size: 26px !important;
    }

    /* ===========================
       💳 Checkout inputs
       =========================== */
    .select-box,
    .input-box {
        width: 100% !important;
    }

    /* ===========================
       📜 Evitar desbordes
       =========================== */
    .carrito-resumen *,
    .checkout-right * {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    html, body {
        overflow-x: hidden !important;
    }
}















/* ============================
   📱 RESPONSIVE CHECKOUT
   ============================ */
@media (max-width: 768px) {

    .checkout-wrapper {
        display: block;
        padding: 140px 20px;
    }

    .checkout-left {
        width: 100%;
        margin-bottom: 25px;
    }

    .checkout-right {
        width: 100% !important;
        position: static !important;
        margin-top: 15px;
        padding: 22px;
    }

    .product-line {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        text-align: center;
    }

    select.select-box,
    input.input-box {
        font-size: 1rem;
        padding: 14px;
    }

    .btn-confirm {
        width: 100%;
    }

    /* Modal en móvil */
    .confirmation-card {
        width: 95%;
        padding: 30px 20px;
    }

}



@media (max-width: 480px) {

    .checkout-wrapper, 
    .carrito-wrapper {
        padding: 120px 15px;
    }

    .product-card img {
        width: 70px;
        height: 70px;
    }

    .btn-confirm {
        padding: 12px;
        font-size: 1rem;
    }
}




/* ===========================
   GALERÍA — DESKTOP ORIGINAL
   =========================== */
.galeria-masonry {
    columns: 4;
    column-gap: 15px;
}

.galeria-masonry img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 15px;
    break-inside: avoid;
}


/* ===========================
   GALERÍA RESPONSIVE NUEVA
   =========================== */
@media (max-width: 768px) {

    /* Ocultar galería tipo masonry */
    .galeria-masonry {
        display: none;
    }

    /* Nuevo carrusel horizontal */
    .galeria-carousel {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 10px 5px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
    }

    .galeria-carousel::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .galeria-carousel img {
        width: 220px;
        height: 180px;
        object-fit: cover;
        border-radius: 16px;
        scroll-snap-align: center;
        flex-shrink: 0;
        box-shadow: 0px 6px 18px rgba(0,0,0,0.12);
    }
}


/* Mostrar SOLO en desktop */
.galeria-masonry {
    display: block;
}

/* Por defecto esconder el carrusel horizontal */
.galeria-carousel {
    display: none;
}

/* --- Responsive: solo móvil --- */
@media (max-width: 768px) {

    /* Oculta la galería tipo masonry */
    .galeria-masonry {
        display: none !important;
    }

    /* Muestra el carrusel */
    .galeria-carousel {
        display: flex !important;
    }
}


/* -------- FIX POPUP EN MÓVIL -------- */
.product-modal-bg {
    z-index: 9999999 !important;
    position: fixed !important;
}

.product-modal {
    z-index: 99999999 !important;
    position: relative !important;
}

/* El header NO debe tapar las tarjetas */
header {
    z-index: 10 !important;
}

/* El fondo del sitio tampoco debe quedar encima del modal */
body, html {
    overflow-x: hidden;
    position: relative;
}

