html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  margin: 0;
  padding: 0;
  background-image: url(/media/Fondo-comida-blanco.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
  /* importante para evitar scroll horizontal global */
}

:root {
  scroll-padding-top: 80px;
  /* Ajusta esto al alto de tu header */
}

h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
  border: 0;
}

h2 {
  font-weight: 100;
}

p {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  border: 0;
}

a {
  color: #0496FF;
  text-decoration-line: none;
  text-decoration: none;
}

.contenedor-menu {
  display: inline;
  justify-content: center;
  position: fixed;
  width: 100%;
  margin: 0 auto;
  z-index: 12;
}

.navbar {
  justify-content: space-between;
  background-color: #fdce34;
  display: flex;
  width: 100%;
  height: 3.2rem;
  padding: 0px 1rem;
  margin: 0 auto;
  border: 0px;
  gap: 2rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar.oculto {
  opacity: 0;
  transform: translateY(-100%); /* sube fuera de la pantalla */
  pointer-events: none; /* desactiva interacción mientras está oculto */
}

.menu {
  display: inline-flex;
  list-style-type: none;
  margin: 0 auto;
  padding: 0vh 1rem;
  align-content: center;
}

/* Estilo de los enlaces */
.menu a {
  display: block;
  margin: 0 auto;
  padding: 1rem 0.8rem;
  color: #222;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

/* Efecto al pasar el mouse */
.menu a:hover {
  background-color: #fdce34;
  color: #333;
  border-top: 3px solid #fff3ca;
  padding: 0.95rem 0.8rem;
  text-decoration: none;
}

.marquilla {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  margin: 0 auto;
}


/* Notificacion */
.notificacion {
  overflow: hidden;
  white-space: nowrap;
  background-color: #fff;
  padding: 0.5vh 0px;
  width: 94%;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;                                       
  color: #333;
  border-radius: 5px;
}

.notificacion.ocultar {
  opacity: 0;
  pointer-events: none;
}

.marquee-text {
  display: inline-block;
  padding-left: 5%;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-60%);
  }
}

/* ==== PRESENTACION ==== */

.presentacion {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  /* evita scroll horizontal */
  overflow-y: auto;
  /* scroll vertical permitido */
  margin: 0 auto;
  padding: 0;
  border-bottom: 2px #fdce34 solid;

}

.presentacion-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  /* no más que la ventana */
  height: 100vh;
  background-image: url(/media/platos/Champignones\ y\ Jamon.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: brightness(0.7);
  z-index: -1;
}

#text {
  position: relative;
  /* relativo para que respete el flujo pero esté sobre el fondo */
  z-index: 10;
  /* superior al fondo */
  color: #fdce34;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-family: 'Ananda';
  font-size: 3.5rem;
  transition: opacity 0.1s ease-in-out;
  display: flex;
  /* si quieres centrar el texto también verticalmente */
  justify-content: center;
  align-items: center;
  height: 100vh;
  /* para centrar verticalmente dentro del contenedor */
  text-shadow: 1px 1px 1px #333333;
}

#text.primero {
  font-size: 8rem;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

/* */
/* */
/* */

/* Mostrar solo la primera sección por defecto */
#carta .bloques:first-child {
    display: block;
}

/* Estilos generales de flechas */

.flecha {
    position: absolute;
    top: 50%;
    cursor: pointer;
    background: #F05D23;
    border-radius: 50%;
    padding: 0.5rem;
    user-select: none;
    z-index: 10;
    transition: background 0.8s;
}

.flecha:hover {
    background: #ffd857;
}

/* Flecha izquierda */
.flecha-izq {
    left: 50px;
}

/* Flecha derecha */
.flecha-der {
    right: 50px;
}

.flecha-der, .flecha-izq{
    width: 30px;   /* ancho de la flecha */
    height: 30px;  /* alto de la flecha */
}

#carta {
    position: relative;
    display: block;
    height: 95vh;
    /* 100% de la altura de la ventana */
    padding: 2rem;
    margin: 0 auto;
    justify-content: center;
    align-content: center;
}

.bloques {
    max-width: fit-content;
    display: flex;
    background-color: #fff;
    margin: 0 auto;
    padding: 0.5rem 2rem 1.2rem;
    border-radius: 10px;
    border-top: 1px solid #D94E1C;
    border-left: 1px solid #D94E1C;
    box-shadow:
        9px 9px 16px #bebebe,
        -9px -9px 16px #fff;
      }

.titulo-tabla {
    font-family: 'Ananda';
    color: #D94E1C;
    font-size: 5rem;
    max-width: fit-content;
    margin: 0 auto;
    padding: 0px;
}


table {
    max-width: fit-content;
    margin: 0 auto;
    font-size: clamp(0.8rem, 1vw, 1rem);
}

th,
td {
    padding: 1rem;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

th {
  padding: 0px 1rem;
    color: #F05D23;
    text-align: left;
    font-size: 1rem;
}

td.producto-col {
    text-align: left;
    /* o center / right según necesites */
}

td {
    color: #222;
    text-align: right;
}

tbody {
    font-size: 1.2rem;
    line-height: 0.02;
}

#galeria {
  padding: 0.5rem 0px;
  margin: 0 auto;
  background-image: url(/media/Fondo-comida-oscura.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #333;
  border-top: 2px #fdce34 solid;
  border-bottom: 2px #fdce34 solid;
  border-radius: 5px;
}

#galeria-titulo {
  justify-items: center;
  align-content: center;
  margin: 0 auto;
  padding-top: 5rem;
  padding-bottom: 0px;
  font-size: 1.5rem;
}

#galeria-titulo h2 {
  font-family: 'Ananda';
  color: #fdce34;
  border-top: 2px #fdce34 solid;
  border-bottom: 2px #fdce34 solid;
  border-radius: 5px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 5rem 0px 3rem;
  border-radius: 5px;
}

.gallery img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.8s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.gallery-down {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 5fr));
  gap: 20px;
  padding: 5rem 20px;
  max-width: 80%;
  margin: 0 auto;
}

.gallery-down img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 1rem;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  animation: fadeOut 0.3s forwards;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
  opacity: 1;
  transform: scale(1);
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fdce34;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  font-size: 30px;
  color: #fdce34;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  z-index: 20;
  transition: 0.2s;
}

.arrow:hover {
  color: #fdce34;
}

.arrow.left {
  left: 40px;
}

.arrow.right {
  right: 40px;
}

.thumbnails {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  max-width: 90%;
  margin: 0 auto;
}

.thumbnails img {
  width: 60px;
  height: auto;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.thumbnails img:hover {
  transform: scale(1.1);
}

.thumbnails img.active {
  border-color: #fdce34;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeOut {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}

.contenedor-boton {
    display: flex;
    justify-content: center; /* centra horizontalmente */
    align-items: center;     /* centra verticalmente si el contenedor tiene altura */
    height: 100%;            /* opcional, para centrar verticalmente */
    margin-bottom: 2rem;
}

.contenedor-boton p{
  background-color: #fdce34;
  color: #333;
  margin: 0 auto;
  padding: 1.3rem 1.3rem;
  border-radius: 20px;

}

#logo {
  display: flex;
  margin: 0 auto;
  padding: 3rem 0rem 5rem;
  justify-content: center;
  align-items: center;
}

.logo {
  display: inline;
  max-width: 300px;
}

.linea {
  height: 2px;
  width: 100%;
  /* O por ejemplo 200px */
  background-color: #fdce34;
  margin: 0px;
}

.contenedor-footer {
  justify-items: center;
  align-items: center;
  background-image: url(/media/Fondo-comida-oscura.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #333333;
  padding: 2vh 0px 2vh;
  margin: 0 auto;
}

.col-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 1vh;
}

.col1,
.col2,
.col3 {
  color: #f1f1f1;
  padding: 0px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.col1 {
  text-align: right;
}

.col2 {
  text-align: center;
}

.col3 {
  text-align: left;
}

.contenedor-footer h3 {
  color: #fdce34;
  padding: 1px;
  margin: 2vh 0vh;
  font-size: 3vh;
  font-family: Arial, Helvetica, sans-serif;
}

.contenedor-footer p {
  font-size: 2vh;
  line-height: 4vh;
  flex-wrap: nowrap;
}

a:hover, a:focus {
  color: #0366d6; /* un azul más oscuro */
  text-decoration: underline; /* mejora accesibilidad */
}

@font-face {
  font-family: 'Ananda';
  src: url('Ananda.woff2') format('woff2'),
    url('/assets/Ananda.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ananda Black Personal Use';
  src: url('AnandaBlackPersonalUse-Regular.woff2') format('woff2'),
    url('AnandaBlackPersonalUse-Regular.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}




/* ========================== */
/* 📱 Responsive para móviles */
/* ========================== */
@media screen and (max-width: 768px) {

  body {
    background-color: #fff;
    margin: 0 auto;
    padding: 0vh;
    background-image: url(/media/Fondo-comida-blanco.svg);
    background-position: center;
    background-repeat: repeat;
    background-size: contain;
    background-attachment: fixed;
  }

  .navbar {
    width: 100%;
    height: 1.3rem;
    margin: 0 auto;
    padding: 0.5rem 0px;
    border-radius: 0;
  }

  .contenedor-menu {
    display: inherit;
  }

  .menu {
    display: none;
  }

  .marquilla {
    padding: 0.2rem;
    margin: 0 auto;
  }

  .notificacion {
    display: none;
  }

  .marquee-text {
    display: inline-block;
    padding-left: 50%;
    animation: marquee 28s linear infinite;
  }

  @keyframes marquee {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(-90%);
    }
  }

  .presentacion {
    width: 100%;
    height: 100%;
    padding: 0px;
    text-align: center;
  }

  #text {
    font-size: 3rem;
    padding: 0 10px;
  }

  #text.primero {
    font-size: 3.5rem;
  }

  #content-blq {
    margin: 1rem 0vh;
    padding: 1rem 0px;
  }

  #carta {
    padding: 0 0vw;
    margin: 0 auto;
  }

  .bloques {
    flex-direction: column;
    padding: 1rem 0.2rem;
    margin: 0 auto;
    justify-content: center;
  }

  .flecha img {
  display: block;        /* elimina espacios extra */
  width: 100%;            /* controla el tamaño relativo al círculo */
  height: auto;          /* mantiene proporción */
  margin: 0 auto;        /* centra horizontalmente */
  position: relative;
  top: 50%;
  transform: translateY(-50%); /* centra verticalmente */
  }

  .titulo-tabla {
    font-size: 1.8rem;
    text-align: center;
  }

  .categoria-flex {
    justify-items: center;
    justify-items: center;
    align-items: center;

    padding: 0.5vh;
    margin: 0 auto;
  }

  table {
    font-size: 1.8rem;
    margin: 0 auto;
    padding: 0.2rem 0px;
    /* Esto centra horizontalmente */
  }

  th,
  td {
    padding: 0.5rem;
    font-size: 0.7rem;
    text-align: center;
  }

  #galeria-titulo h2 {
    max-width: fit-content;
    font-size: 1.2rem;
    white-space: nowrap;
    margin: 0 auto;
    padding: 0.7rem 1rem;

  }

  .modal-content {
    max-width: 90%;
    max-height: 60vh;
  }

  .arrow {
    font-size: 20px;
    top: 45%;
  }

  .arrow.left {
    left: 20px;
  }

  .arrow.right {
    right: 20px;
  }

  .close {
    display: none;
  }

  .thumbnails img {
    width: 50px;
  }

  #galeria .gallery img {
    max-width: 45%;
  }

  body.modal-open {
    overflow: hidden;
  }

  .alergenos {
    padding: 1rem 0px 2rem;
  }

  .alergenos p {
    font-size: 1rem;
    text-align: center;
  }

  .boton-descarga p {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .contenedor-footer {
    height: 100vh;               /* 100% de altura */
    display: flex;               /* activa flexbox */
    justify-content: center;     /* centra horizontalmente */
    align-items: center;         /* centra verticalmente */
    flex-direction: column;      /* opcional: si quieres que los hijos estén en columna */
    padding: 0;                  /* quita padding vertical innecesario */
    text-align: center;          /* centra el texto dentro */
    background-color: #333;      /* opcional: color de fondo */
    color: white;                /* opcional: color de texto */
  }

  .col-footer {
    display: grid;               /* grid interno para columnas si lo necesitas */
    grid-template-columns: 1fr;  /* una columna (modifica si quieres más) */
    grid-template-rows: auto;
    gap: 7vh;
    text-align: center;
  }

  .col1,
  .col2,
  .col3 {
    text-align: center;
  }

  .contenedor-footer h3 {
    font-size: 1rem;
    margin: 1rem 0;
  }

  .contenedor-footer p {
    font-size: 0.8rem;
    line-height: 1rem;
  }

}

/*FLECHAS - ARROWS*/

@media (max-width: 768px) {
  .flecha-der, .flecha-izq {
    width: 25px;   /* más pequeñas */
    height: 25px;
    padding: 0.4rem;
  }

  .flecha-izq {
    left: 20px;   /* acercamos al borde */
  }

  .flecha-der {
    right: 20px;
  }
}

@media (max-width: 480px) {
  .flecha-der, .flecha-izq {
    width: 20px;   /* aún más compactas */
    height: 20px;
    padding: 0.3rem;
  }

  .flecha-izq {
    left: 10px;
  }

  .flecha-der {
    right: 10px;
  }
}