:root {
  --texto-principal: #333333;
  --texto-secundario: #666666;
  --fondo: #FAFAFA;
  --borde: #CCCCCC;
}

#hamburguesa {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 9999;
}

#hamburguesa span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--texto-principal);
  margin: 3px 0;
  border-radius: 2px;
}

#menu-desplegable {
  position: fixed;
  top: 60px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  min-width: 160px;
}

#menu-desplegable a {
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: background 0.2s;
  display: block;
}

#menu-desplegable a:hover {
  background: #f0f0f0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--fondo);
  font-size: 16px;
  color: var(--texto-principal);
  overflow-x: hidden;
}

.logo-barra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 1em;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.logo-img {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

h1 {
  font-size: 1.8rem;
  color: var(--texto-principal);
  margin: 0;
}

.filtros {
  display: flex;
  gap: 0.5em;
  padding: 1em 0.5em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  justify-content: flex-start;
  border-bottom: 1px solid var(--borde);
}

.filtros::-webkit-scrollbar {
  display: none;
}

.filtros button {
  background: transparent;
  border: 1px solid var(--texto-principal);
  color: var(--texto-principal);
  padding: 0.5em 1em;
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s;
}

.filtros button.activo {
  background: var(--texto-principal);
  color: #fff;
}

.contenedor-plato {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  margin: 1em auto;
  max-width: 90vw;
  min-height: 400px;
}

.slide-content {
  padding: 1em;
  text-align: center;
}

.modelo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: visible;
}

.modelo-wrapper:empty {
  display: none;
}

.model-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

model-viewer {
  width: 100%;
  max-width: 350px;
  height: 320px;
  border: 2px dashed var(--texto-principal);
  border-radius: 0 0 20px 20px;
  background: transparent;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  border: 2px solid;
  --c: conic-gradient(from -90deg at calc(100% - 2px) calc(100% - 2px), #0000 0 90deg, var(--texto-principal) 0);
  background: var(--c), var(--c);
  background-size: 16px 16px;
  background-position: 0 0;
  animation: l3 1s infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

@keyframes l3 {
  100% {
    background-position: -16px -16px, 16px 16px;
  }
}

.modelo-imagen {
  width: 100%;
  max-width: 350px;
  height: 320px;
  object-fit: contain;
  border: 2px dashed var(--texto-principal);
  border-radius: 0 0 20px 20px;
  background: transparent;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
}

.info-plato {
  text-align: center;
  padding: 0.5em 1em;
  max-width: 90vw;
  margin: 0 auto;
}

.info-plato h3 {
  margin: 0.3em 0 0.2em;
  font-size: 1.3rem;
  color: var(--texto-principal);
}

.info-plato p {
  margin: 0.2em 0;
  color: var(--texto-secundario);
}

.precio {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--texto-principal);
}

.flecha-plato {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  background-color: var(--texto-principal);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  touch-action: manipulation;
}

.flecha-plato::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
}

.flecha-plato.izquierda { left: -20px; }
.flecha-plato.derecha { right: -20px; }

.flecha-plato.oculta {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .flecha-plato.izquierda { left: 0; }
  .flecha-plato.derecha { right: 0; }
}

#ar-button {
  padding: 8px 16px;
  font-size: 0.95rem;
  background-color: var(--texto-principal);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  margin: 12px auto;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.indicador-puntos {
  text-align: center;
  margin-top: 1em;
}

.punto {
  font-size: 1rem;
  color: #888;
  margin: 0 4px;
  transition: color 0.3s;
}

.punto.activo {
  color: var(--texto-principal);
}

.boton-contacto {
  text-align: center;
  margin: 40px 0 60px;
}

.btn-contacto {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--texto-principal);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-contacto:hover {
  background-color: #555555;
}

.powered-by {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}