:root {
  --red: #e5141a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
}

body {
  background: #EDE1CD;
  font-family: 'Libre Franklin', sans-serif;
}

a {
  color: inherit;
}

a:hover {
  color: inherit;
}

@keyframes categoriesIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intro: el logo sube, una línea roja lo subraya y el telón blanco se retira hacia arriba. */
@keyframes introLogoIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes introLineIn {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes introContentUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-70px);
    opacity: 0;
  }
}

@keyframes introCurtainUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-101%);
    visibility: hidden;
  }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #EDE1CD;
  pointer-events: none;
  animation: introCurtainUp 0.85s cubic-bezier(0.76, 0, 0.24, 1) 1.75s forwards;
}

.intro__logo {
  width: min(520px, 78vw);
  height: auto;
  animation:
    introLogoIn 1s cubic-bezier(0.22, 1, 0.36, 1) both,
    introContentUp 0.5s ease-in 1.5s forwards;
}

/* Subrayado rojo que se dibuja bajo el logo. */
.intro::after {
  content: "";
  width: min(360px, 54vw);
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  transform-origin: left center;
  animation:
    introLineIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both,
    introContentUp 0.5s ease-in 1.5s forwards;
}

.page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 15%, rgba(229, 20, 26, 0.07), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(229, 20, 26, 0.06), transparent 42%),
    #faf8f6;
  overflow: hidden;
}

.categories {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  opacity: 0;
  /* Termina justo cuando el telón se retira, para que la página ya esté puesta al descubrirse. */
  animation: categoriesIn 0.9s ease-out 1.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }

  .intro__logo,
  .intro::after,
  .categories {
    animation: none;
    opacity: 1;
  }
}

.divider {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 6px;
  transform: translateX(-51%);
  background: linear-gradient(
    rgba(229, 20, 26, 0),
    rgba(229, 20, 26, 0.6) 20%,
    rgba(229, 20, 26, 0.6) 80%,
    rgba(229, 20, 26, 0)
  );
  filter: blur(1.5px);
  border-radius: 6px;
  z-index: 1;
}

.category {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-decoration: none;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.category--shawarma {
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.02) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25)),
    url(assets/photo-1.jpg);
}

.category--shawarma:hover {
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2)),
    url(assets/photo-1.jpg);
}

.category--tapas {
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.02) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25)),
    url(assets/photo-2.jpg);
}

.category--tapas:hover {
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.2)),
    url(assets/photo-2.jpg);
}

.category__logo {
  position: relative;
  z-index: 1;
  width: 340px;
  height: auto;
  filter: drop-shadow(0 0 46px rgba(255, 255, 255, 0.5)) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.65));
}

.category__cta {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}

/* Tablets and phones: stack the two categories instead of a side-by-side split. */
@media (max-width: 860px) {
  .page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .categories {
    flex-direction: column;
  }

  .divider {
    top: auto;
    bottom: auto;
    left: 6%;
    right: 6%;
    width: auto;
    height: 6px;
    top: 50%;
    transform: translateY(-51%);
    background: linear-gradient(
      90deg,
      rgba(229, 20, 26, 0),
      rgba(229, 20, 26, 0.6) 20%,
      rgba(229, 20, 26, 0.6) 80%,
      rgba(229, 20, 26, 0)
    );
  }

  .category {
    min-height: 50vh;
    min-height: 50dvh;
    padding: 32px 24px;
    gap: 20px;
  }

  .category__logo {
    width: clamp(180px, 55vw, 300px);
  }
}

@media (max-width: 420px) {
  .category__logo {
    width: clamp(160px, 62vw, 240px);
  }

  .category__cta {
    font-size: 11px;
  }
}
