:root{
    --colorPrimario:#F71E9A;
    --colorSecundario:#FFE3F2;
    --colorComplementario:#80064A;
}

html {
  scroll-behavior: smooth;
}

body{
    background: url(img/bg.jpg);
    font-family: Arial, Helvetica, sans-serif;
}
.container{
    background: white;
    max-width: 900px;
    margin: 0 auto;
}
.logo{
    width: 140px;
}

/* MENU */
nav{
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: var(--colorSecundario); /* Inicialmente transparente */
    transition: all 0.4s ease; /* Transición suave para todo */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0; /* Altura inicial */
}

/* Enlaces del menú */
nav a {
    color: var(--colorPrimario); /* Letras rosas iniciales */
    padding: 10px;
    text-decoration: none;
    transition: color 0.4s ease, background-color 0.4s ease;
}

/* Estado al hacer scroll */
nav.scrolled {
    background-color: var(--colorPrimario); /* Fondo rosa al hacer scroll */
}

nav.scrolled a {
    color: white; /* Letras blancas al hacer scroll */
}

/* Menú hamburguesa */
nav #navHamb{
    display: none;
    color: var(--colorPrimario);
    padding: 1px;
    cursor: pointer;
    transition: color 0.4s ease, background-color 0.4s ease;
}

/* Hover de menú hamburguesa */
nav #navHamb:hover {
    background: var(--colorComplementario);
    color: white;
}

nav.scrolled #navHamb {
    color: white;
}

/* Hover de enlaces */
nav a:hover{
    background: var(--colorComplementario);
    color: white;
}

@media (max-width:768px) {
    nav{
        justify-content: space-between;
    }
    nav #navHamb{
        display: block;
    }
    nav #navMenu{
        display: none;
        flex-direction: column;
        margin-top: 10px;
        width: 100%;        
    }
}
/* FIN MENU */

.slogan{
    color: var(--colorPrimario);
}
img{
    max-width: 100%;    
}
.text-center{
    text-align: center;
}


.gallery{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}
.gallery div{
    border: 3px solid var(--colorComplementario);
    border-radius: 10px;
    text-align: center;
}
.gallery div img{
    border-radius: 10px;
    
}
.button{
    background-color: #F71E9A;
    color: white;
    padding: 10px;   
    border-radius: 10px; 
    text-decoration: none;
}
footer{
    background: black;
    color: var(--colorSecundario);
    padding: 20px;    
}
.title{ 
    color: var(--colorPrimario);
    border-bottom: 2px solid var(--colorSecundario);
    scroll-margin-top: 40px;
}
h2{
    color: var(--colorComplementario);
}

.content{
    padding: 16px;
}

/* --- ESTILOS BOTÓN INSTAGRAM CON ANIMACIÓN --- */

/* Contenedor para centrar y separar */
.instagram-callout-container {
    margin: 25px 0; /* Espacio arriba y abajo */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espacio entre "Síguenos" y el botón */
}

/* Texto "Síguenos👉" */
.siguenos-texto {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--colorPrimario);
}

/* Botón de Instagram */
.btn-instagram-animado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    /* Gradiente característico de Instagram */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 25px; /* Bordes redondeados */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Aplicar la animación de balanceo (wobble) para llamar la atención */
    /* Nombre | Duración | Función de tiempo | Retraso | Iteraciones */
    animation: wobble-atencion 2s ease-in-out infinite;
}

/* Ícono dentro del botón */
.btn-instagram-animado i {
    margin-right: 8px;
    font-size: 1.3rem;
}

/* Efecto al pasar el mouse: detiene la animación y lo agranda un poco */
.btn-instagram-animado:hover {
    animation-play-state: paused; /* Pausa la animación */
    transform: scale(1.05); /* Crece ligeramente */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Definición de la animación de balanceo (Wobble) */
@keyframes wobble-atencion {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-5px) rotate(-2deg); } /* Izquierda leve y rotación */
    30% { transform: translateX(4px) rotate(2deg); }   /* Derecha leve y rotación */
    45% { transform: translateX(-3px) rotate(-1deg); }
    60% { transform: translateX(2px) rotate(1deg); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0%); }
}

/* PRODUCTOS */
.productos {
    display: grid;
    grid-template-columns: 1fr 1fr; /* dos columnas */
    gap: 20px;
    margin: 30px 0;
}

.producto-item {
    background: transparent;
    padding: 15px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 80px 1fr auto; /* imagen - info - precio */
    align-items: center;
    gap: 15px;
}

.producto-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.producto-item .detalle {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ---- línea entre título y precio ---- */
.titulo-precio {
    display: flex;
    align-items: center;
    gap: 10px;
}

.titulo-precio h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: var(--colorComplementario);
}

/* la línea expansiva */
.titulo-precio .linea {
    flex: 1;
    height: 1px;
    background-color: #444;
}

.titulo-precio .precio {
    background: var(--colorComplementario);
    color: var(--colorSecundario);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* descripción */
.producto-item p {
    font-size: 14px;
    margin: 0;
    color: #2d2d2d;
}

@media (max-width:768px) {
    .productos {
        grid-template-columns: 1fr;
    }
    .productos div img{       
        width: 160px;
    } 
}

/* botón agregar */
.btn-agregar {
    background: var(--colorPrimario);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-agregar:hover {
    background: var(--colorComplementario);
}

/* FIN PRODUCTOS */

.precios-multiples {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    justify-content: center; /* centra todo el bloque */
}

.precios-multiples div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.precios-multiples .etiqueta {
    font-size: 0.8rem;
    font-weight: bold;
    color: #ccc; /* tono gris sutil para diferenciar */
    margin-bottom: 3px;
}

.precios-multiples .precio {
    background: var(--colorComplementario);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--colorSecundario);
}


.displayMenu{
    display: flex !important;
}

/* Tablas */
.tabla-precios {
  width: 100%;
  margin: 10px 0 16px;
}

/* Tabla responsive */
.tabla {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed; 
  font-size: clamp(0.85rem, 2.2vw, 1rem);
}

/* Bordes y espaciado */
.tabla th,
.tabla td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  word-wrap: break-word;
}

.tabla th {
  background: #f8f8f8;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tabla th, .tabla td { padding: 8px; }
}

@media (max-width: 480px) {
  .tabla { font-size: 0.85rem; }
  .tabla th, .tabla td { padding: 6px 4px; }
}

@media (max-width:768px) {
    .title {
        scroll-margin-top: 65px;
    }
}

/* Fondo oscuro del modal */
.modal {
  display: none; /* oculto al inicio */
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* Caja blanca del modal */
.modal-contenido {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 300px;
  width: 90%;
  text-align: center;

  max-height: 80vh;    /* límite de alto del modal */
  display: flex;
  flex-direction: column;
  position: relative;   /* necesario para que el botón se posicione dentro */
  animation: fadeIn 0.3s ease;
}

/* Botón cerrar */
.cerrar {
  position: absolute;   /* se posiciona dentro del modal */
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Botones de precios */
.opciones-precio button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--colorPrimario);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.opciones-precio button:hover {
  background: var(--colorComplementario);
}

/* Botón flotante Enviar pedido */
.btn-enviar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--colorPrimario);
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  z-index: 3000;
  transition: background 0.3s;
}
.btn-enviar:hover {
  background: var(--colorComplementario);
}
.btn-enviar:disabled {
  background: gray;
  cursor: not-allowed;
}

/* Mensaje flotante "Agregado!" */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--colorPrimario);
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  animation: fadeInOut 1.5s forwards;
  z-index: 4000;
}

/* Animación para mostrar y ocultar */
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  10%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Botón flotante Ver carrito */
.btn-carrito {
  position: fixed;
  bottom: 70px;  
  right: 20px;
  background: var(--colorPrimario);
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  z-index: 3000;
  transition: background 0.3s;
}
.btn-carrito:hover {
  background: var(--colorComplementario);
}
.btn-carrito:disabled {
  background: gray;
  cursor: not-allowed;
}

/* Lista del carrito */
#lista-carrito {
  text-align: left;
  margin-top: 10px;

  flex: 1;             /* ocupa el espacio disponible */
  overflow-y: auto;    /* scroll interno */
  max-height: 50vh;    /* límite de altura para la lista */
}
.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}
.item-carrito span {
  font-size: 14px;
}

.acciones-carrito {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-mas, .btn-menos {
  background: var(--colorPrimario);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
.btn-mas:hover, .btn-menos:hover {
  background: var(--colorComplementario);
}

.btn-eliminar {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 35px;
  line-height: 1;
}

#form-charola label {
  display: block;
  margin: 6px 0;
  text-align: left;
}

.paso-charola {
  animation: fadeIn 0.3s ease;
}

/* Formularios dentro del modal alineados a la izquierda */
.form-opciones {
  text-align: left;
  margin: 10px 0;
}
.form-opciones label {
  display: block;
  margin: 4px 0;
}

.scroll-toppings {
  max-height: 250px;   /* ajusta según lo que quieras mostrar */
  overflow-y: auto;
  padding-right: 5px;  /* deja espacio para el scrollbar */
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.scroll-toppings::-webkit-scrollbar {
  width: 6px;
}

.scroll-toppings::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

.scroll-toppings::-webkit-scrollbar-thumb:hover {
  background: #999;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* apariencia "desactivada" (visualmente) pero sigue recibiendo clicks */
.btn-disabled {
  opacity: 0.65;
  filter: grayscale(15%);
}

/* mensaje de error simple dentro del modal */
.error-inline {
  color: #c0392b;
  font-weight: 700;
  transition: opacity 0.25s ease, transform 0.2s ease;
  opacity: 1;
}
/* Opciones tipo formulario */
.form-opciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Cada opción (label) como recuadro rosa */
.form-opciones label {
  display: flex;
  align-items: center;
  gap: 8px;                      /* espacio entre checkbox y texto */
  background: var(--colorPrimario);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* Checkbox tamaño normal, alineado a la izquierda */
.form-opciones input[type="checkbox"],
.form-opciones input[type="radio"] {
  margin: 0;                     /* quita espacio extra */
  transform: scale(1.1);         /* opcional: agranda un poco */
  accent-color: var(--colorPrimario);
}
