/* reset.css ya gestiona box-sizing, margin, padding y text-decoration */

/* Custom properties */
:root {
  --blanco: #fcfcfc;
  --negro: #111111;
  --color-primario: #f07c00;
  --color-secundario: yellow;
  --titulos-precios: #c06300;
  --color-fondo-carta: linear-gradient(
    -45deg,
    var(--blanco) 0%,
    transparent 30%
  );
  --color-degradado: linear-gradient(-45deg, #f28b34 0%, var(--blanco) 45%);
  --color-degradado2: linear-gradient(-45deg, #f28b34 0%, transparent 45%);
  --color-fondo-index: linear-gradient(
    -45deg,
    var(--color-primario) 25%,
    transparent 45%
  );
  --color-formulario: linear-gradient(
    -45deg,
    var(--color-primario) 0,
    var(--blanco) 100%
  );

  /* Sombras */
  --sombra: 9px 9px 14px #676767, -9px -9px 14px #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: "Roboto", sans-serif;
  --tipo-secundaria: Verdana;
  /* Transition */
  --transition: all 0.5s ease-in-out;
}
html {
  color: var(--negro);
}
body {
  font-family: var(--tipo-principal);
  background: var(--color-fondo-carta);
}

/* 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: 1.1rem;
}
h2 {
  font-size: 1.3rem;
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  color: var(--negro);
}

/* ICONOS BOOTSTRAP */
i {
  font-size: 1.2rem;
  padding: 0.6rem;
}
/* Iconos Cartas */
.bi-house-fill,
.bi-heart-pulse,
.star2 {
  font-size: 2rem;
  padding: 0;
  text-align: center;
  color: var(--blanco);
}
.star3 {
  font-size: 2rem;
}

/* ******************** FOOTER ****************************** */
/* FOOTER. Da estilos a todos los footers */
.footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0.5rem;
  padding-bottom: 8rem;
}

/* Baner de alérgenos */
.baner__alergenos {
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--color-degradado2);
  box-shadow: var(--sombra2);
}
.footer__imagen-alergenos {
  width: 90%;
}
.footer__boton-alergenos {
  width: auto;
  background: var(--color-degradado2);
  border-radius: var(--border-radius);
  margin: 0 auto;
  padding: 0.3rem;
  text-align: center;
  box-shadow: var(--sombra);
  &:active {
    box-shadow: none;
  }
}

.footer__div {
  font-weight: bold;
  margin: 1rem;
  text-align: center;
}
.footer__creditos {
  font-size: 0.8rem;
}
.bi-heart-fill {
  color: red;
}

/* ********* FORMULARIO RESERVAS *************************** */
.form {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 85vw;
  height: 100vh;
  padding: 2rem;
  background: var(--color-degradado);
  transition: all 0.5s ease-in-out;
  /* Ocultar menú lateral */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  box-shadow:
    38px 38px 160px 40px #202020,
    -38px -38px 44px #ffffff;
  & .form__titulo {
    text-align: center;
    font-size: 1.3rem;
    color: var(--negro);
    margin-bottom: 3rem;
  }
  & section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
.form.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.form div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.form label {
  color: var(--negro);
  font-size: 1.1rem;
  display: inline-block;
  margin: 0.2rem;
}
.input-small {
  width: 60%;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.4rem;
  background: var(--color-degradado2);
  border: 1px solid var(--blanco);
  border-radius: 10px;
  font-size: 1rem;
}
.form span {
  color: var(--negro);
  font-size: 0.9rem;
}
.warning {
  opacity: 0;
  padding: 0.5rem 0;
  transition: all 0.7s ease-in-out;
  transform: translateX(-100%);
}
#label-warning {
  color: red;
  font-size: 0.9rem;
}
.active-warning {
  opacity: 1;
  transform: translateX(0);
}
.reservar {
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  padding: 0.3rem 1rem;
  font-size: 1.5rem;
  color: var(--negro);
  border: 4px solid transparent;
  border-radius: var(--border-radius);
  background:
    var(--color-degradado) padding-box,
    linear-gradient(90deg, yellow, yellow, var(--color-primario), yellow, #fff)
      border-box;
  background-size:
    100% 100%,
    300% 100%;
  box-shadow: var(--sombra);
  cursor: pointer;
  margin-bottom: 1rem;
  animation: border-shine 6s linear infinite;
}

/* Cerrar formulario de reservas */
.cerrar-formulario {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--blanco);
}
.cerrar-formulario-desde-fuera {
  position: fixed;
  top: 0;
  right: -20%;
  width: 20%;
  height: 100vh;
}

/* Position absolute */
/* Botón Llamada */
/* Botón RESERVAR en el header */
.boton-whatsapp {
  text-align: center;
  padding: 0.3rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--negro);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  background:
    var(--color-degradado) padding-box,
    linear-gradient(90deg, #fff, #fff, var(--color-primario), #fff, #fff)
      border-box;
  background-size:
    100% 100%,
    300% 100%;
  box-shadow: var(--sombra);
  cursor: pointer;
  animation: border-shine 6s linear infinite;
  white-space: nowrap;
}
#label-reservar {
  color: var(--negro);
  font-size: 1.5rem;
  font-weight: 500;
}
.boton-whatsapp span {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Logo de fondo */
.logo__fondo {
  width: 50%;
  max-width: 20rem;
  position: fixed;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: -2;
}
/* Propiedades compartidas entre logo__fondo2 y logo__fondo3 */
.logo__fondo2,
.logo__fondo3 {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  z-index: -2;
  background-size: cover;
}
.logo__fondo2 {
  background-image: url(/images/fondo4.png);
}
.logo__fondo3 {
  background-image: url(/images/icon2.png);
}
/* ***************** ANIMACIONES *************************** */
@keyframes rotation {
  from {
    transform: rotateX(180deg);
  }
  to {
    transform: rotateX(360deg);
  }
}
/* Brillo recorriendo el borde del botón reservar */
@keyframes border-shine {
  0% {
    background-position:
      0 0,
      0% 50%;
  }
  100% {
    background-position:
      0 0,
      300% 50%;
  }
}
