
:root {
  --primary: #6a1b9a;
  --accent: #00b894;
  /* color de fondo general de la página */
 --bg: #1c2a33;
  /* color de texto por defecto */
  --text: #0b0c00;
  /* altura estimada del header (se usa para empujar contenido) */
  --header-h: 80px;
  /* ancho máximo de contenido central */
  --content-max-w: 1200px;
  /* tamaño base de fuente (puedes ajustar si quieres escalar todo) */
  --base-font: 13px;
  --border-radius: 10px;
}
/* box-sizing global para evitar problemas de cálculo de ancho */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;                            /* quita margen por defecto del navegador */
  padding: 0;                           /* quita padding por defecto */
  min-width: 100vw;                     /* evita que se reduzca el ancho de la página */
  overflow-x: hidden;                   /* evita scroll horizontal inesperado */
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);                /* color de fondo global */
  color: var(--text);                   /* color de texto global */
  font-size: var(--base-font);          /* tamaño base de fuente */
  margin-top: 5.2%;
}
header {
  background: linear-gradient(135deg, #6a1b9a, #ab47bc); /* degradado de fondo del header */
  padding: 0.00005rem;                                       /* espacio interno del header */
  text-align: center;                                  /* centra el contenido textual */
  position: fixed;                                     /* fija el header en la parte superior */
  top: 0;                                              /* posicion arriba: 0 */
  left: 0;                                             /* pegado a la izquierda */
  right: 0;                                            /* pegado a la derecha */
  z-index: 1000;                                       /* z-index alto para estar encima del contenido */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);               /* sombra sutil debajo */
  width: 100%;                                         /* que ocupe todo el ancho */
  max-width: 100vw;                                    /* evitar overflow por ancho */
  box-sizing: border-box;                              /* asegurar box-sizing dentro del header */
  display: flex;                                       /* layout flex para alinear elementos */
  justify-content: space-between;                      /* espacio entre logo y nav */
  align-items: center;                                 /* centra verticalmente los elementos */
  flex-wrap: wrap;                                     /* permite que el contenido salte a la siguiente línea */
  gap: 0.5rem;                                           /* separación entre elementos flex */
  min-height: var(--header-h);                         /* altura mínima definida por la variable */
 
}
/* contenedor del logo dentro del header */
.logo-contenedor img {
  max-width: 110px;                                    /* ancho máximo del logo */
  height: auto;                                        /* altura automática para mantener proporción */
  border-radius: 12px;                                 /* bordes redondeados en la imagen */
  filter: drop-shadow(0 2px 8px rgba(106,27,154,0.3)); /* sombra externa para destacar */
}
/* contenedor del título (centro del header) */
.titulo-contenedor {
  flex: 1;                                             /* ocupa espacio restante */
  text-align: center;                                  /* centra su contenido */
  overflow: hidden;                                    /* oculta contenido que se desborda */
  box-sizing: border-box;                              /* asegurar box-sizing */
  max-width: 100vw;                                    /* no exceder el ancho de la ventana */
  padding: 0 1rem;                                     /* separación interna horizontal */
  font-size: 1rem;                                     /* tamaño base para contenedor */
}
/* estilo del h1 dentro del título */
.titulo-contenedor h1 {
  font-size: 1.5rem;                                  /* tamaño del título (ajustado para no ser gigante) */
  margin: 0 0 0.5rem 0;                                /* margen inferior pequeño */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);            /* ligera sombra de texto para legibilidad */
  white-space: nowrap;                                 /* evita salto de línea en el título */
  overflow: hidden;                                    /* oculta el texto que se desborda */
  text-overflow: ellipsis;                             /* muestra "..." si corta el texto */
  line-height: 1.2;                                    /* altura de línea */
  font-weight: bold;                                   /* texto en negrita */
  padding: 0 1rem;                                     /* padding horizontal */
  font-family: 'Quicksand', sans-serif;
}
nav {
  display: flex;                                       /* layout flex para los enlaces */
  justify-content: center;                             /* centra la navegación */
  align-items: center;                                 /* alinea verticalmente */
  gap: 0.5rem;                                         /* separación entre enlaces */
  flex-wrap: wrap;                                     /* permite que los enlaces salten línea si hace falta */
  font-family: 'Bebas Neue', sans-serif;
}
/* estilo de cada enlace del nav */
nav a {
  display: inline-block;                               /* inline-block para padding y margin */
  color: #070000;                                      /* color de texto de los enlaces */
  text-decoration: underline;                               /* sin subrayado */
  font-weight: bold;                                   /* negrita */
  font-size: 4rem;                                  /* tamaño razonable para el nav */
  transition: color 0.3s;                              /* transición suave al hover */
  margin: 0.25rem;                                     /* pequeño margen alrededor */
  font-family: 'Bebas Neue', sans-serif;
  padding-right: 120px; /* deja espacio para el botón */
  text-align: center;
}
/* color al pasar el mouse por encima */
nav a:hover {
  color: white;
}
.hero {
  text-align: center;          
  padding-top: 11rem;                    
  max-width: 100vw;                            
  background-size: cover;                 
  background-position: center;
  color: #000;                                        
  position: relative;                        
  z-index: 1;  
}
.hero-title {
  position: absolute;
  bottom: 20px; /* o center si querés centrar */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}
/* overlay decorativo dentro del hero */
.hero-overlay {
  position: absolute;                                  /* posición absoluta dentro del hero */
  width: 100%;                                         /* ocupa ancho completo */
  height: 80%;                                         /* altura del overlay */
  margin-top: 1rem;                                    /* separación superior visual */
  top: 0;                                              /* arriba del hero */
  left: 0;                                             /* a la izquierda */
  opacity: 1;                                          /* opacidad completa (puedes bajar para más transparencia) */
  background: linear-gradient(135deg, rgba(106,27,154,0.6), rgba(0,184,148,0.6)); /* degradado semitransparente */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);              /* sombra suave */
  backdrop-filter: blur(2px);                          /* desenfoque del fondo (si el navegador lo soporta) */
  z-index: 1;   
}
/* títulos dentro del hero */
.hero h2, .hero p {
  position: relative;                                  /* posicionamiento relativo (frente al overlay) */
  z-index: 1;                                          /* encima del overlay */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);            /* sombra para legibilidad */
  font-size: 5rem;                                  /* tamaño del texto en hero (ajustado) */
  margin: 0;                                    /* margen vertical */
  padding:0rem;                                     /* padding horizontal */
  margin-top: 0px;
  font-family: 'Bebas Neue', sans-serif;
}
/* botones del hero */
.hero-buttons {
  display: flex;                                       /* flex para alinear botones */
  justify-content: center;                             /* centrado horizontal */
  gap: 1rem;                                           /* espacio entre botones */
  margin-top: 1rem;                                    /* separación superior */
  position: relative;                                  /* relativo (para posibles overlays) */
  z-index: 2;                                          /* encima del overlay */
  font-size: 1rem;                                     /* tamaño base de botones */
}
/* estilo general de botones del hero */
.hero-buttons .btn {
  padding: 0.6rem 1rem;                                /* padding interno */
  background: linear-gradient(45deg, var(--primary), var(--accent)); /* degradado */
  color: #fff;                                         /* texto blanco */
  border: none;                                        /* sin borde */
  border-radius: var(--border-radius);                 /* radio de los bordes */
  cursor: pointer;                                     /* cursor mano */
  font-size: 1rem;                                     /* tamaño de texto interno */
  transition: background 0.3s, transform 0.3s;         /* transiciones */
}
/* hover para los botones */
.hero-buttons .btn:hover {
  background: linear-gradient(45deg, var(--accent), var(--primary)); /* invertir degradado */
  transform: scale(1.03);                              /* pequeño zoom */
}
.destacados {
  text-align: center;                                  /* centra el texto */
  padding: 0.1rem 0.5rem;                                /* padding interno cómodo */
  background: #0a0909;                                    /* fondo blanco */
  border-radius: 0px;                 /* bordes redondeados */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);             /* sombra suave */
  font-size: 1rem;                                     /* tamaño de fuente */
  max-width: var(--content-max-w);                     /* ancho máximo del bloque */
  margin: 0.1rem auto;                                   /* centrado y margen vertical */
  width: 100%;                                         /* ocupa 100% del contenedor */
  box-sizing: border-box;                              /* box-sizing */
}
/* título dentro de destacados */
.destacados h2 {
  color: var(--primary);                               /* color principal */
  margin-bottom: 0.75rem;                              /* separación inferior */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);           /* sombra ligera */
  font-size: 2rem;                                     /* tamaño del título destacado */
  text-align: center;                                  /* centrado */
}
.portfolio {
  display: grid;                                       /* grid layout para tarjetas */
  grid-template-columns: repeat(4, 1fr);               /* 4 columnas en desktop */
  gap: 1rem;                                           /* espacio entre tarjetas */
  max-width: var(--content-max-w);                     /* ancho máximo */
  margin: 0 auto;                                      /* centro horizontal */
  padding: 0.5rem 0.2rem;                              /* padding interno */
  width: 100%;                                         /* ocupa todo el ancho disponible */
  box-sizing: border-box;                              /* box-sizing */
  border-radius: 0px;
}
.catalogo {
  display: grid;                                       /* grid también para catalogo */
  grid-template-columns: inherit;                      /* hereda columnas (por simplicidad) */
  gap: 1rem;                                           /* gap igual */
  width: 100%;                                         /* ancho completo */
  box-sizing: border-box;                              /* box-sizing */
  
}
.card {
  background: #fff;                                    
  border: 2px solid var(--accent);                    
  border-radius: var(--border-radius);                 
  padding: 1rem;                                     
  text-align: center;                                 
  transition: transform 0.3s, box-shadow 0.3s;        
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);            
  font-size: 0.95rem;                                 
  cursor: pointer;                                    
  display: flex;                                       
  flex-direction: column;                             
  align-items: stretch;                               
  justify-content: flex-start;                         
  height: 100%;                                       
  box-sizing: border-box;                             
  min-height: 260px;                                   
  position: relative; 
  border-radius: 10px;
}
.card .mas-fotos {
  position: absolute;
  top: 8px;        
  right: 8px;   
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none; /* para que no interfiera con el click en la card */
  font-weight: bold;
  z-index: 2;
}
/* efecto hover en la tarjeta */
.card:hover {
  transform: translateY(-6px);                         /* sube ligeramente */
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);            /* sombra más pronunciada */
}
/* imagen principal de la tarjeta */
.card img {
  width: 100%;                                         /* ocupa todo el ancho de la tarjeta */
  border-radius: 8px;                                  /* bordes redondeados de la imagen */
  margin-bottom: 0.5rem;                               /* separación hacia el contenido */
  height: 220px;                                       /* altura fija para consistencia */
  object-fit: cover;                                   /* cubre sin deformar (recorta si hace falta) */
  transition: transform 0.3s;                          /* transición para posibles efectos */
  border-radius: 10px;
}
/* título de producto dentro de la card */
.card h3 {
  color: var(--primary);                               /* color del título */
  margin: 0.25rem 0;                                   /* margen vertical pequeño */
  font-size: 1.25rem;                                  /* tamaño razonable para h3 */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);            /* sombra muy suave */
  display: flex;                                       /* flex para centrar verticalmente si hay iconos */
  align-items: center;                                 /* alineación vertical */
  justify-content: center;                             /* centrado horizontal */
  text-align: center;                                  /* centrado */
  padding: 0 0.5rem;                                   /* relleno horizontal */
  flex-grow: 0;                                        /* no expandir */
  font-weight: bold;
}
/* descripción breve dentro de la tarjeta */
.card p {
  margin: 0.25rem 0 0.5rem 0;
  font-size: 1.3rem;
  color: #555;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
/* botón compacto dentro de la card */
.card button {
  padding: 0.45rem 0.8rem;                             /* padding interior */
  background: linear-gradient(45deg, var(--primary), var(--accent)); /* degradado */
  color: #fff;                                         /* texto blanco */
  border: none;                                        /* sin borde */
  border-radius: var(--border-radius);                 /* radio del botón */
  cursor: pointer;                                     /* cursor en hover */
  transition: background 0.3s, transform 0.2s;         /* transiciones */
  font-size: 0.9rem;                                   /* tamaño de texto del botón */
  margin-top: auto;                                    /* empuja el botón hacia el final de la tarjeta */
  width: 100%;                                         /* ocupa todo el ancho disponible */
  box-sizing: border-box;                              /* box-sizing */
  text-transform: uppercase;                           /* texto en mayúsculas */
  font-weight: bold;                                   /* negrita */
  letter-spacing: 0.04rem;                             /* ligero tracking */
}
/* hover del botón */
.card button:hover {
  background: linear-gradient(45deg, var(--accent), var(--primary));  /* invertir degradado */
  transform: translateY(-2px);                         /* pequeño movimiento hacia arriba */
}
.card .btn-carrito {
    display: block;
    width: 100%;
    margin-bottom: 5px; /* separa los botones */
  }
.card .btn-carrito:only-of-type {
  margin-top: auto;
  flex-wrap: wrap;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1300;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  overflow: auto;
  border-radius: 10px;  
}
/* Contenido interior */
.modal-content {
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: flex-start;
  max-width: 500px;
  width: 100%;
  max-height: 500px;                 
  /*overflow-y: auto;     */
  overflow: hidden;
  background: #9d00ff;
  color: #000000;
  padding: 0.5rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: fadeIn 0.25s ease;
  border: 3px solid;
  border-image: linear-gradient(45deg, var(--primary), var(--accent)) 1;
  font-style: normal;
}
/* Imagen del modal */
.modal-content img {
  max-width: 500px;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1;
  transition: transform 0.3s ease;
  transform: translate(0px, 0px) scale(1);
  cursor: zoom-in;
}
/* Zoom */
.modal-content img.zoomed {
  cursor: grab;
  transform: translate(var(--x, 0px), var(--y, 0px)) scale(1.8);
}

.modal-content img.zoomed:active {
  cursor: grabbing;
}
  
/* Cruz para cerrar */
.close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 200;
  user-select: none;
  color: black
}
.close:hover { color: #08ffea; }
/* Flechas */
.modal-content .prev,
.modal-content .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(44, 41, 41, 0.8);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  z-index: 101;
  transition: background 0.2s;
}
.modal-content .prev { left: 12px; }
.modal-content .next { right: 12px; }
.modal-content .prev:hover,
.modal-content .next:hover { background: rgba(0,0,0,0.95); }
.modal-precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: #080400;
  margin-top: 10px;
}
.modal-botones {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  border-radius:10px;
}
.modal-botones button {
  padding: 10px 13px;
  border: black;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  flex: 1 1 auto;       /* que puedan crecer o reducirse */
  min-width: 80px;      /* evita que queden demasiado pequeños */
}
#modal-agregar {
  background: linear-gradient(59deg, var(--accent), var(--primary));  /* invertir degradado */
  color: rgb(0, 0, 0);
  box-sizing: border-box;
  border-bottom: 2px solid #080808;
  margin-top: 0.1px;
}
#modal-agregar {
  transition: opacity 0.3s ease;
}
.modal-botones button:hover {
  opacity: 0.85;
}
/* Carrito: cantidad + y - */
.cantidad-container {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cantidad-btn {
  padding: 0.2rem 0.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, transform 0.1s;
  
}
.cantidad-btn:hover { background: #8e24aa; transform: scale(1.1); }
.cantidad { min-width: 20px; display: inline-block; text-align: center; }
.buscador {
  text-align: center;                                  /* centra el buscador */
  margin: 1rem 0;                                      /* margen arriba y abajo */
  width: 100%;                                         /* ocupa el ancho disponible */
  box-sizing: border-box;                              /* box-sizing */
  max-width: 100vw;                                    /* no exceder ancho de pantalla */
  padding: 0 1rem;                                     /* padding horizontal */
  font-size: 1rem;                                     /* tamaño base */
  display: flex;                                       /* flex para poder alinear iconos si se añaden */
  justify-content: center;                             /* centrar horizontalmente */
  align-items: center;                                 /* centrar verticalmente */
  flex-direction: column;                              /* columna (input encima de botones) */
  gap: 0.75rem;                                        /* separación entre elementos */
  font-family: 'Quicksand', sans-serif;
}
/* input de búsqueda */
#search {
  width: 90%;                                          /* ancho relativo */
  max-width: 900px;                                    /* ancho máximo razonable */
  padding: 0.6rem 0.9rem;                              /* padding interno */
  border: 2px solid var(--accent);                     /* borde con color acento */
  border-radius: var(--border-radius);                 /* bordes redondeados */
  font-size: 1.8rem;                                     /* tamaño del texto del input */
  outline: none;                                       /* quita outline por defecto (mejorar focus abajo) */
  transition: border 0.2s, box-shadow 0.2s;            /* transición suave */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);             /* sombra sutil */
  box-sizing: border-box;                              /* box-sizing */
  font-weight: bold;
  font-family: 'Quicksand', sans-serif;
}
/* estado focus del input para accesibilidad */
#search:focus {
  border-color: var(--primary);                      
  box-shadow: 0 0 8px rgba(106,27,154,0.25);       
}

#no-results {
  color: #444;            
  font-size: 0.95rem;                                  
  text-align: center;                                 
  margin-top: 0.75rem;                                
  font-weight: bold;

}

#no-results a {
  display: inline-block;                              
  margin-top: 0.5rem;                                  
  padding: 0.5rem 0.8rem;                            
  background: var(--accent);                          
  color: #fff;                                        
  border-radius: var(--border-radius);               
  text-decoration: none;                               
  font-weight: bold;                                  
  transition: background 0.2s, transform 0.15s;       
}

#no-results a:hover {
  background: var(--primary);                     
  transform: scale(1.03);                              
}

main {
  max-width: var(--content-max-w);                    
  margin: 0 auto;                                      
  width: 100%;                                         
  min-height: 60vh;                                  
  font-size: 1rem;                                     
  background: #030303;                               
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);            
  overflow: visible;                                   
  padding-bottom: 0.1rem;                               
  padding-top: 0.1rem;                                 
}

footer {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  margin-top: 1rem;

}
footer p {
  margin: 0;
  line-height: 1.4;
}

.social-buttons {
  display: flex;                                       
  align-items: center;                            
  justify-content: center;                           
  gap: 0.5rem;                                    
  flex-wrap: wrap;                                
  text-align: center;                            
  margin-top: 0.1rem;   
  margin-bottom: 0.1rem;                            
  padding: 0.1rem;                         
  color: var(--primary);                            
  font-weight: bold;                                   
  border-radius: var(--border-radius);                
  transition: background 0.3s, transform 0.3s, color 0.3s;
  font-size: 1rem;                                 
  background: transparent;       
  padding-top: 1%;
}


.social-buttons-wrapper {
  margin-top: 0.01rem;                                 
  padding-top: 1rem;                               
  border-top: 1px solid #ccc;                        
  display: inline-block;                            
  text-align: center;                               
  width: 100%;                                      
  box-sizing: border-box;                       
  font-size: 1rem;                           
}
/* botón social base */
.social-btn {
  display: inline-block;                               /* inline-block */
  padding: 0.6rem 1.2rem;                              /* padding */
  border-radius: var(--border-radius);                 /* borde redondeado */
  color: #fff;                                         /* texto blanco */
  font-weight: bold;                                   /* negrita */
  text-decoration: none;                               /* sin subrayado */
  transition: transform 0.3s, background 0.3s;         /* transiciones */
  font-size: 1rem;                                     /* tamaño de texto */
  text-align: center;                                  /* centrado */
  box-sizing: border-box;                              /* box-sizing */
  width: 120px;                                        /* ancho fijo para consistencia */
  height: 40px;                                        /* alto fijo */
  line-height: 40px;                                   /* centrado vertical del texto */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);              /* sombra */
  display: flex;                                       /* flex para icon + texto */
  align-items: center;                                 /* alinear verticalmente */
  justify-content: center;                             /* centrar horizontalmente */
  gap: 0.5rem;                                         /* espacio entre icono y texto */
}
/* hover de botones sociales */
.social-btn:hover {
  transform: scale(1.1);                               /* zoom suave */
  color: #fff;                                         /* asegurar texto blanco */
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);             /* sombra mayor al hover */
}

.social-btn.instagram { background: #E4405F; }
.social-btn.instagram:hover { background: #C13584; }
.social-btn.facebook { background: #1877F2; }
.social-btn.facebook:hover { background: #0F62CE; }
.social-btn.whatsapp { background: #25D366; color: #fff; padding: 0.6rem 1rem; }
.social-btn.whatsapp:hover { background: #1DA851; }
.social-btn.email { background: #6a1b9a; }
.social-btn.email:hover { background: #9c4dcc; }
.social-btn.location { background: #00b894; }
.social-btn.location:hover { background: #00a07f; }

.back-to-top {
  margin-top: 0.2rem;                                 /* margen pequeño */
  padding: 0.7rem 1.2rem;                              /* padding */
  background: rgba(3, 2, 3, 0.667);                                   /* fondo claro */
  color: white;                               /* color del texto */
  font-weight: bold;                                   /* negrita */
  border-radius: var(--border-radius);                 /* radio */
  text-decoration: none;                               /* sin subrayado */
  transition: background 0.3s, transform 0.3s, color 0.3s; /* transiciones */
  font-size: 1rem;                                     /* tamaño */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);              /* sombra */
  box-sizing: border-box;                              /* box-sizing */
  float: left;
  border-radius: 50px;
  position: fixed;      /* se queda visible al hacer scroll */
  bottom: 30px;         /* separación desde el borde inferior */
  left: 30px;           /* separación desde el borde izquierdo */
  
}
/* hover del botón volver arriba */
.back-to-top:hover { background: var(--accent); color: #fff; transform: scale(1.05); }

/* Smooth scroll para anclas */
html { scroll-behavior: smooth; }

/* ==============================
   Animaciones
   ============================== */

/* Animación al agregar al carrito */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes vibrar {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

/* Clase que dispara la animación */
.animar-agregar {
  animation: pulse 0.4s ease;
}

/* Clase que se aplica al botón */
.btn-agregado {
  animation: pulse 0.3s ease;
}

@keyframes fiestaPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-infinite { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes color-change { 0%,100% { color: var(--primary); } 50% { color: #000000; } }
@keyframes carrito-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.animar-carrito {
  animation: carrito-anim 0.3s ease;
}
/* clase para título animado */
.titulo-animado {
  display: inline-block;
  white-space: nowrap;
  animation: slide-infinite 28s linear infinite, color-change 15s ease-in-out infinite;
  font-size: 1.3rem;                                    /* tamaño controlado */
  font-weight: bold;                                   /* negrita */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);            /* sombra para legibilidad */
  padding: 0 1rem;                                     /* padding lateral */
  position: relative;                                  /* relativo para z-index */
  z-index: 2;                                          /* por encima del fondo */
}
.contenedor-secciones {
  display: flex;                                       /* flex para secciones laterales */
  gap: 2rem;                                           /* separación entre secciones */
  max-width: var(--content-max-w);                     /* ancho máximo */
  margin: 0 auto;                                      /* centrar horizontal */
  padding: 0 0.2rem;                                   /* padding horizontal */
  width: 100%;                                         /* ancho completo */
  box-sizing: border-box;                              /* box-sizing */
}
/* tarjeta de sección */
.seccion {
  background: #a7a6a6;                                    /* fondo blanco */
  border: 1px solid var(--accent);                     /* borde con acento */               /* radio */
  padding: 0.3rem;                                     /* padding */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);             /* sombra sutil */
  font-size: 1rem;                                     /* tamaño del contenido */
  box-sizing: border-box;                              /* box-sizing */
  margin-top: 9%;
}
/* titulo de sección */
.seccion h2 {
  color: var(--primary);                               /* color primario */
  margin-bottom: 0.1rem;                               /* separación inferior */
  margin-top: 0.1rem;                                /* separación superior */  
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);           /* sombra ligera */
  font-size: 1.5rem;                                   /* tamaño para h2 */
  text-align: center;                                  /* centrado */
}
/* Tablets medianas y grandes */
@media (max-width: 1024px) {
  .portfolio,
  .catalogo {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 0.75rem;
  }

  .card img {
    height: 200px; /* ajustar altura de imagen */
  }

  .card h3 {
    font-size: 1.1rem; /* título más pequeño */
  }

  .card p {
    font-size: 0.95rem;
    line-clamp: 3; /* mantener 3 líneas máximo */
  }

  .card .btn-carrito {
    display: block;
    width: 100%;
    margin-bottom: 5px; /* separa los botones */
  }

  nav a {
    font-size: 3rem; 
    font-family: 'Playfair Display', serif;
    padding-right: 120px; /* deja espacio para el botón */
    margin-bottom: -2%;
    margin-top: -7%;
  }
  .hero{
    margin-top: 1rem;
  }
  #search {
    width: 90%; /* input más ancho para tablets */
  }
  
}
/* Tablets pequeñas / pantallas horizontales */
@media (max-width: 768px) {
  .portfolio,
  .catalogo {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 0.5rem;
  }

  .card img {
    height: 180px; /* reducir altura de imagen */
  }

  .card h3 {
    font-size: 1rem; 
  }

  .card p {
    font-size: 0.9rem;
    line-clamp: 3;
  }

  .card .btn-carrito {
    display: block;
    width: 100%;
    margin-bottom: 5px; /* separa los botones */
  }

  .titulo-contenedor h1 {
    font-size: 1rem; /* título del header más pequeño */
  }

  nav a {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    padding-right: 120px; /* deja espacio para el botón */
  }

  #search {
    width: 95%; /* input más ancho para pantallas pequeñas */
    padding-bottom: 0.5rem;
  }
}
/* Móviles / pantallas pequeñas */
@media (max-width: 480px) {
  .portfolio,
  .catalogo {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 0.5rem;
  }
  
  body {
    margin-top: 35%;
  }
  .modal-precio,
  .modal-title,
  .h2,
  .img {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 0.9%;
    font-family: 'Bebas Neue', sans-serif;
  }
  .modal-botones{
    margin-bottom: 0.2%;
    margin-top: 5.2%;
  }
  
  .card img {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
  }

  .card h3 {
    font-size: 1.1rem;
    text-align: left;
  }

  .card p {
    font-size: 1.1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 0.1rem;
    text-align: center;
  }

  .card .btn-carrito {
    display: block;
    width: 100%;
    margin-bottom: 5px; /* separa los botones */
  }

  .titulo-contenedor h1 {
    font-size: 1.4rem; /* título header más pequeño */
    font-family: 'Quicksand', sans-serif;
  }
  
  nav a {
    font-size: 3.2rem;
    padding: 0.1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-variant-caps: all-petite-caps;
    font-weight: bold;            /* 🔹 Negrita */
    text-decoration: underline;
    padding-top: 0rem;
    padding-right: 210px; /* deja espacio para el botón */
  }

  .hero {
    padding-top: 7rem; /* menos espacio arriba en móvil */
  }

  .hero h2,
  .hero p {
    font-size: 2.5rem;
    margin: 1rem 0;
    text-align: left;
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    margin-top: 1.5rem;
  }

  #search {
    width: 95%; /* input ocupa casi todo el ancho */
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .contenedor-secciones {
    flex-direction: column; /* secciones apiladas */
    gap: 1rem;
  }

  .seccion {
    margin-top: 2rem; /* ajustar margen */
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .card button {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  
}
@media (max-with: 331px) {
  nav a {
    font-size: 1srem;
    padding: 0.1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-variant-caps: all-petite-caps;
    font-weight: bold;            /* 🔹 Negrita */
    text-decoration: underline;
    padding-top: 0rem;
    padding-right: 210px; /* deja espacio para el botón */
  }

}
/* Footer (total + botones) */
#carrito-footer {
  flex-shrink: 0;  /* nunca se achica */
  display: flex;
  flex-direction: column;
  gap: px;
  margin-top: 8px;
  flex-shrink: 0;
  position: sticky;
}
#carrito-contenedor {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
#carrito-btn {
  background: #6a1b9a;
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.3s;
  border: 2px solid #09000a;
}
#carrito-btn:hover {
  transform: scale(1.1);
  background: #8e24aa;
}
#carrito-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff1744;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  border-radius: 50%;
  padding: 3px 6px;
}
#carrito-dropdown {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #09000a;
  width: 320px;
  height: 480px;
  max-width: 90%;
  max-height: 99vh; /* Máximo alto del modal */
  padding: 15px;
  padding-left: 1%;
  padding-right: 1%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: flex;
  text-align: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
  
}
#carrito-dropdown h4 {
  font-size: 1.8rem;
  color: #7b1fa2;
  margin: 0 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  /*
  background: linear-gradient(135deg, #f3e5f5, #ede7f6);
  border: 2px solid #ba68c8;*/
}
#carrito-dropdown h3 {
  font-size: 2rem;
  margin-bottom: 13px;
  margin-top: 0px;
  padding: 0px;
  text-align: center;
  font-weight: bold;
}
#cerrar-carrito {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #000000;
  transition: color 0.2s;
}
#cerrar-carrito:hover {
  color: #c62828;

}
#carrito-items {
  max-height:280px;
  overflow-y: auto;
  margin-bottom: 0px;
  position: relative;
  z-index: 1001; /* por encima de todo lo que pueda taparlo */
  pointer-events: auto; /* permite usar el scroll normalmente */
  font-size: 1.5rem;
  padding-right: 10px;
  text-align: left;
  margin-left: 0px;
  padding-left: 0%;
  justify-self: flex-start;
}
/* Scroll personalizado para el carrito */
#carrito-items::-webkit-scrollbar {
  width: 8px; /* más ancho */
}
#carrito-items::-webkit-scrollbar-track {
  border-radius: 6px;
}
#carrito-items::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 6px;
}
#carrito-items::-webkit-scrollbar-thumb:hover {
  background: #7b1fa2;  
}
.carrito-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  border-bottom: 3px solid #680263;
  flex-wrap: nowrap;   /* evitas que se vaya a otra línea */
  overflow: visible;   /* para que la línea no se corte */
  background: #ffffff;
  padding: 1.5px;
  border-radius: 7px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  gap: 5px; 
}

.carrito-item strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0px;
  padding-bottom: 0%;
  font-weight: 700;
  color: #2d3436;
  padding-bottom: 0%;
  padding-top: 0.3%;
  margin-top: 0%;
}
.carrito-precio-cantidad {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carrito-item-info {
  display: flex;
  flex-direction: row;
  align-items: left;
  gap: 10px;
}
.carrito-sidebar {
  position: absolute;
  right: 20px;
  top: 80px;
  background-color: linear-gradient(135deg, rgba(106,27,154,0.6), rgba(0,184,148,0.6));
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 280px;
  z-index: 5000; 
}
.carrito-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 120px;
  z-index: 6000; 
  position: relative;
  text-align: left;
}
.carrito-sidebar * {
  pointer-events: auto;
}
.carrito-items {
  width: 100%;

}
.carrito-item {
  display: flex;
  flex-wrap: wrap; /* evita que los elementos se salgan */
  width: 100%;
  overflow: hidden;
  text-align: left;
  padding-right: 1px;
  padding-left: 10px;
  padding-bottom: 1%;
  padding-top: 0.3%;
  margin-top: 0%;
}
.carrito-cantidad-controles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
/* botones carrito  de cantidad*/
.cantidad-btn {
  background: linear-gradient(135deg, rgba(106,27,154,0.6), rgba(0,184,148,0.6));;
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 17px;
}
.cantidad-btn:hover {
  background: #7b1fa2;
}
.btn-vaciar {
  background: #ccc;
  border: none;
  color: #070000;
  padding: 6px 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
  font-weight: bold;
  margin-top: 0%;
}
.btn-vaciar:hover {
  background: #bbb;
}
.btn-enviar {
  background: #25D366;
  color: white;
  border: none;
  padding: 6px 15px;
  padding-bottom: 2%;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
  font-weight: bold;
}
.btn-enviar:hover {
  background: #1ebe5b;
}
#carrito-total {
  margin-top: 0px;
  margin-bottom: 0px;
  font-weight: bold;
  color: #000000;
  font-size: 1.3rem;
  text-align: left;
}
/* Ajustes del modal en pantallas pequeñas */
  .modal {
    width: 90%;
    max-width: 350px;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem;
    border-radius: 12px;
    overflow-y: auto;

  }
  .modal img {
    width: 100%;
    height: auto;
  }
  .modal h2,
  .modal p {
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
    font-family: 'Bebas Neue', sans-serif;
    margin-top: 1rem;
    margin-bottom: 0.1rem;

  }
  .modal button,
  .modal-botones {
    width: 100%;
    font-size: 1rem;
    margin-top: 1rem;
  }
  
.toast {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: rgb(19, 1, 1);
  padding: 9px 10px;
  border-radius: var(--border-radius);
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: none;
}
.toast.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(135deg, #6a1b9a, #47b8bc); /* degradado de fondo del header */
}
.toast.success {
  background: linear-gradient(135deg,rgba, rgba(0,184,148,0.6));
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.toast.warning {
  background: linear-gradient(135deg,rgba, rgba(0,184,148,0.6));
}
.toast.fiesta {
  background: linear-gradient(135deg,rgba, rgba(0,184,148,0.6));
  color: #2d3436;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  border: 2px solid #00b894;
  animation: fiestaPop 0.6s ease-out;
  padding: 4px 20px;
}

.aviso {
  display:none; 
  background: linear-gradient(135deg, rgba(106,27,154,0.6), rgba(0,184,148,0.6));; 
  color:rgb(20, 3, 3); 
  padding:3px; 
  margin:2px 0; 
  border-radius:8px; 
  font-weight:bold; 
  text-align:center;
  font-size: 20px;
  padding-bottom: 0%;
  margin-bottom: 0.9%;
  margin-top: -1%;
  padding-top: 0%;
}
/* Botón flotante */
#whatsapp-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(106,27,154,0.6), rgba(0,184,148,0.6));
  padding: 5px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 40px;
  cursor: pointer;
  color: white;
  font-size: 14px;
  backdrop-filter: blur(6px);
  z-index: 1000;
  margin-top: 0.8%;
}
#whatsapp-btn img {
  width: 20px;
  height: 20px;
}
/* Menú */
#whatsapp-menu {
  position: fixed;
  top: 70px;
  right: 20px;
  background: linear-gradient(135deg, rgba(106,27,154,0.6), rgba(0,184,148,0.6));
  padding: 15px;
  border-radius: 12px;
  width: 230px;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}
#whatsapp-menu h3 {
  margin: 0 0 10px;
  font-size: 15px;
  text-align: center;
}
#whatsapp-menu button {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  transition: background 0.25s;
  font-size: 14px;
}
#whatsapp-menu button:hover {
  background: rgba(255,255,255,0.25);
}
/* Oculto */
.hidden {
  display: none;
}

.instrucciones-texto {
    margin: 5px;
    padding: 24px 28px;
    margin-top: 100px;
  }

/* Responsive Design */
@media (max-width: 1200px) {
  .instrucciones-texto {
    margin: 35px 25px;
    padding: 24px 28px;
    margin-top: 100px;
  }

  .instrucciones-texto h2 {
    font-size: 23px;
  }

  .instrucciones-texto p,
  .instrucciones-texto li {
    font-size: 15px;
  }
}
@media (max-width: 1024px) {
  .instrucciones-texto {
    margin: 30px 20px;
    padding: 22px 25px;
    margin-top: 100px;
  }

  .instrucciones-texto h2 {
    font-size: 22px;
  }

  .instrucciones-texto p,
  .instrucciones-texto li {
    font-size: 15px;
  }
}
@media (max-width: 900px) {
  .instrucciones-texto {
    margin: 28px 18px;
    padding: 21px 22px;
    margin-top: 100px;
  }

  .instrucciones-texto h2 {
    font-size: 21px;
  }

  .instrucciones-texto p,
  .instrucciones-texto li {
    font-size: 15px;
  }
} 
@media screen and (max-width: 820px) {
  .instrucciones-texto {
    margin: 27px 16px;
    padding: 20px 20px;
    margin-top: 100px;
  }

  .instrucciones-texto h2 {
    font-size: 20px;
  }

  .instrucciones-texto p,
  .instrucciones-texto li {
    font-size: 14px;
  }   
}
/* Mobile */
@media (max-width: 768px) {
  .instrucciones-texto {
    margin: 25px 15px;
    padding: 20px 18px;
    margin-top: 70px;
    margin-bottom: -19%;
  }

  .instrucciones-texto h2 {
    font-size: 20px;
  }

  .instrucciones-texto p,
  .instrucciones-texto li {
    font-size: 14px;
  }

  .instrucciones-texto h2 {
    margin-bottom: 9px;
    margin-top: 0px;
    font-size: 24px;
    text-align: center;
    color: #5c0180; /* rojo suave para destacar */
    font-weight: 700;
    letter-spacing: 1px;
  }

}
#carrito-dropdown,
#fondo-carrito {
  display: none;
}
/* Pagar */
.btn-pagar-mp {
  display: inline-block;
  padding: 6px 15px;
  background: #00b894;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  margin-top: 8px;
}
.btn-pagar-mp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
  
.facebook-embed {
  margin-top: 0.1rem;
  padding: 0.1rem 1rem;
  background: #162028;
  text-align: center;
  border-radius: 14px;
}

.facebook-embed h2 {
  color: #fff;
  margin-bottom: .5rem;
}

.fb-sub,
.fb-cta {
  color: #ccc;
  font-size: .95rem;
  margin-bottom: 1.2rem;
}

.fb-video {
  display: flex;
  justify-content: center;
}

.fb-video iframe {
  width: 300px;
  max-width: 100%;
  height: 450px;
  border-radius: 12px;
}

.fb-video iframe {
  max-width: 100%;
  width: 320px;
  height: 480px;
}
/* CP */

.modal-cp {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-cp-content {
  background: white;
  padding: 20px 25px;
  border-radius: 8px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  
}
.modal-cp-content input {
  width: 100%;
  padding: 8px 10px;
  margin: 15px 0;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.modal-cp-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.modal-cp-buttons button {
  padding: 3px 6px;
  font-size: 17px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
 
}
#cp-cancelar {
  background: #ccc;
  color: #333;
}
#cp-confirmar {
  background: #007bff;
  color: white;
}
#cp-cancelar:hover {
  background: #bbb;
}
#cp-confirmar:hover {
  background: #0056b3;
}
.animar-agregar {
  animation: vibrar 0.35s linear;
}

.card {
  -webkit-tap-highlight-color: transparent;
}
.carrito-confianza {
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-top: 6px;
}
.ultimo-stock{
  position:absolute;
  top:8px;
  left:8px;
  background:#ff3b3b;
  color:white;
  font-size:12px;
  padding:4px 6px;
  border-radius:6px;
  font-weight:bold;
}

/*siguiente proddddddd*/
.prev-producto,
.next-producto {
  position: absolute;
  bottom: 6px;
  font-size: 14px;
  color: white;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  color: white;
  padding: 1px 15px;
  border-radius: 50px;
}


.prev-producto span,
.next-producto span {
  font-size: 11px;
  opacity: 0.8;
}

/* posiciones */
.prev-producto {
  left: 15px;
}

.next-producto {
  right: 15px;
}

.modal-botones {
  padding: 5px;
  background: #9d00ff;
  margin-bottom: 1.5rem;
  margin-top: 0rem;
  padding-top: 0%;
}
.modal-content {
  display: flex;
  flex-direction: column;
  max-height: 500px;
  padding-top: 2%;
  padding-bottom: 2%;
}

.modal-body {
  flex: 1;
  overflow: auto; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 0rem;
  margin-top: 0rem;
}

.modal-footer {
  position: sticky;   
  bottom: 0;
  background: #9d00ff;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  z-index: 10;
}

#modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.1%;
    margin-top: 0.9%;
    font-family: 'Bebas Neue', sans-serif;
  }
#modal-precio {
    font-size: 1.8rem;
    margin-bottom: 0.1%;
    margin-top: 0.1%;
    font-family: 'Bebas Neue', sans-serif;
    
  }
#whatsapp-btn.oculto {
  display: none;
}
body {
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
}
.card h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}
.card p {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}
#carrito-dropdown {
  font-family: 'Poppins', sans-serif;
}

.carrito-item strong {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
}
#modal {
  font-family: 'Poppins', sans-serif;
}

#modal-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
}

#modal-precio {
  font-weight: bold;
}

/* CONTENEDOR */
.card .img-container {
  position: relative;
}

/* FLECHAS */
.card .flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0,0,0,0.5);
  color: white;

  font-size: 22px;
  padding: 8px 12px;
  border-radius: 50%;

  cursor: pointer;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* IZQUIERDA */
.card .flecha.izq {
  left: 10px;
}

/* DERECHA */
.card .flecha.der {
  right: 10px;
}

/* HOVER */
.card .flecha:hover {
  background: rgba(0,0,0,0.8);
}

.card-video {
  position: relative;
  overflow: hidden;
}

/* el video arriba de la imagen */
.card-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* al pasar el mouse */
.card-video:hover video {
  opacity: 1;
}

/* opcional: ocultar imagen cuando aparece video */
.card-video:hover img {
  opacity: 0;
}
.modal-media video {
  opacity: 1;
  position: static;
  width: 100%;
  height: auto;
  display: block;
}
.video-ojos {
  transform: rotate(90deg);
  object-fit: contain;
  background: black;
}
#modal-video.video-ojos {
  transform: rotate(90deg);
  object-fit: contain;
  background: black;
}
.sin-stock {
  opacity: 0.6;
  position: relative;
}

.sin-stock-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 5;
}

/* FLECHAS MOBILE */
@media (max-width: 768px) {
  .card .flecha {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    font-size: 10px;   /* tamaño del icono */
    padding: 8px 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
  }

  .card.mostrar-flechas .flecha {
    opacity: 1;
    pointer-events: auto;
  }
  .card .flecha:hover {
  background: rgba(0,0,0,0.8);
}
.card .flecha.izq {
  left: 1px;
}

.card .flecha.der {
  right: 1px;
  
}
}
