* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  text-decoration: none;
}

/* Custom properties */
:root {
  --blanco: #ffffff;
  --negro: #111111;
  --color-primario: #c9c9c9;
  --color-secundario: #526c7b;
  --color-fondo-carta: linear-gradient(
    -45deg,
    var(--blanco) 0%,
    transparent 30%
  );
  --color-degradado: linear-gradient(
    -55deg,
    var(--color-secundario) 0%,
    transparent 55%
  );

  --color-degradado2: linear-gradient(
    -55deg,
    var(--color-secundario) 0%,
    #0000007d 55%
  );

  /* Sombras */
  --sombra: 4px 4px 7px #dcdcdc, -3px -3px 7px #ffffff;
  --sombra2:
    0 2.8px 2.2px rgba(0, 0, 0, 0.034), 0 6.7px 5.3px rgba(0, 0, 0, 0.048),
    0 12.5px 10px rgba(0, 0, 0, 0.06), 0 22.3px 17.9px rgba(0, 0, 0, 0.072),
    0 41.8px 33.4px rgba(0, 0, 0, 0.086), 0 100px 80px rgba(0, 0, 0, 0.12);
  /* Botones */
  --border: 2px double var(--color-primario);
  --border-radius: 20px;
  /* Tipografía */
  --tipo-principal: sans-serif;
  --tipo-secundaria: Verdana;
  /* Transition */
  --transition: all 0.5s ease-in-out;
}

/* Animación fade-in para cambios de idioma */
@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-content {
  animation: fadeInContent 0.5s ease-out;
}

html {
  color: var(--negro);
}
body {
  background: var(--blanco);
  width: 100%;
}

/* fadeIn - En el <body> de cada página */
.fade-in {
  animation: fadeIn ease 2s;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* Títulos de las familias de comidas y bebidas */
p {
  font-size: 1rem;
  /* white-space: pre-line; Valida los saltos de linea \n que inserto en los textos largos que tengo en la data*/
  white-space: pre-line;
}
h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-secundario);
}
h3 {
  font-size: 1.1rem;
  color: var(--color-secundario);
}

/* ICONOS BOOTSTRAP */
i {
  font-size: 1.7rem;
  color: var(--blanco);
  font-weight: bold;
  padding: 0 0.8rem;
  text-shadow:
    -1px -1px 0 rgb(0, 0, 0),
    1px -1px 0 rgb(0, 0, 0),
    -1px 1px 0 rgb(0, 0, 0),
    1px 1px 0 rgb(0, 0, 0);
  @media (width > 960px) {
    font-size: 2rem;
  }
}
/* Iconos Cartas */
.bi-house-fill,
.bi-heart-pulse,
.star2 {
  font-size: 2rem;
  padding: 0;
  text-align: center;
}
.star3 {
  font-size: 2rem;
}
/*  */
/* ******************** FOOTER ****************************** */
/* FOOTER. Da estilos a todos los footers */
.footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  margin: 2rem 0;
  max-width: 100%;
}

/* Baner de alérgenos */
.baner__alergenos {
  width: 100%;
  margin: 3rem 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
  box-sizing: border-box;

  & p {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
.footer__imagen-alergenos {
  width: 90%;
  max-width: 30rem;
}
.footer__boton-alergenos {
  width: auto;
  border-radius: var(--border-radius);
  margin: 1rem auto;
  padding: 0.3rem 1rem;
  text-align: center;
  box-shadow: var(--sombra);
}

.footer__div {
  font-weight: bold;
  text-align: center;
  & h3 {
    color: var(--color-secundario);
    font-size: 1.2rem;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
  }
}
.footer__creditos {
  font-size: 0.8rem;
  text-align: center;
}
.footer__creditos span {
  font-size: 0.8rem;
  color: var(--negro);
}
.email {
  text-align: center;
  padding: 2rem;
}
.restaurant123 {
  color: var(--negro);
  font-size: 0.8rem;
}

/* ************************************************ */
/* fondo */
.fondo {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  z-index: -2;
  background-image: url(/images/fondo.webp);
  background-size: cover;
}
.imagen__fondo {
  width: 100%;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: -2;
}

/* ***************** ANIMACIONES *************************** */
@keyframes rotation {
  from {
    transform: rotateX(180deg);
  }
  to {
    transform: rotateX(360deg);
  }
}

/* ********* FORMULARIO RESERVAS (ACTUALMENTE COMENTADO) *************************** */
/* Estilos del formulario comentados - mantenidos por si se reactiva */
.reservar {
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #767676;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.2rem 1rem;
  border: 1px solid #55cb60;
  border-radius: 20px;
  background: var(--color-degradado);
  box-shadow: var(--sombra2);
  cursor: pointer;
  &:hover {
    background: #55cb60;
    color: var(--blanco);
    transform: scale(1.1);
    transition: all 0.5s ease-in-out;
  }
}

/* Boton @easybooking del index */
.easy-index {
  transform: translate(-50%, -50%);
  background: var(--color-degradado);
  border: 1px solid #55cb60;
}

/* ************** NUEVA BANDERA *********************** */
/* ************** NUEVA BANDERA *********************** */
/* ************** NUEVA BANDERA *********************** */
/* ************** NUEVA BANDERA *********************** */
/* CONTENEDOR DEL SELECTOR */
#select-container {
  position: fixed;
  width: auto;
  height: fit-content;
  top: 1rem;
  right: calc(2.5dvw + 50px + 1rem);
  border-radius: 50px;
  box-shadow: var(--sombra);
  background: var(--color-degradado2);
  z-index: 9;

  overflow: hidden;
  /* Transición suave para el cambio de ancho */
  transition:
    max-width 0.4s ease-in-out,
    transform 0.3s linear,
    background 0.3s linear;
  max-width: var(
    --closed-width,
    50px
  ); /* Ancho inicial calculado dinámicamente */
  cursor: pointer;

  &:hover {
    transform: scale(1.1);
    background: linear-gradient(
      -55deg,
      var(--color-primario) 0%,
      #000000bb 55%
    );
  }

  &:active {
    transform: scale(0.95);
  }

  &.open {
    max-width: var(--open-width, 400px); /* Ancho calculado dinámicamente */
  }

  & ul {
    list-style-type: none;
    position: relative;
    margin: 0;
    padding: 0px;
    display: flex;
    flex-direction: row;
    white-space: nowrap;

    & li {
      opacity: 1;
      transition: opacity 0.5s ease-in-out;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      padding: 0;

      &:first-child span {
        /* el primer idioma es el seleccionado actual */
        cursor: pointer;
      }

      & span {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        padding: 0;
        font-size: 1.2rem;
        font-weight: bold;
        color: #ffffff;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease-in-out;
      }
    }
  }
}

/* Animación de movimiento para el box-shadow */
@keyframes shadowMove {
  0%,
  100% {
    box-shadow: 0px 1px 2px rgba(226, 226, 226, 0.516);
  }
  50% {
    box-shadow: 0px 2px 7px rgba(226, 226, 226, 1);
  }
}

/* Reglas específicas para la página index */
.index #select-container {
  right: 2.5dvw;
}

/* Media query para pantallas grandes donde el wrapper alcanza su max-width */
@media (min-width: 1264px) {
  #select-container {
    right: calc((100vw - 1200px) / 2);
  }

  .index #select-container {
    right: calc((100vw - 1200px) / 2);
  }
}

/* ********************************************** */
/* MANDALA */
.mandala {
  display: none;
  animation: 60s rotate linear infinite;
  transform-origin: 50% 50%;
  width: 65dvw;
  max-width: 30rem;
  position: fixed;
  bottom: 2rem;
  left: 40dvw;
  margin: auto;
  z-index: 1;
  @media (width > 960px) {
    width: 20rem;
    left: 70dvw;
  }
}
/* Mandala giratorio */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
