/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #222;

  background: url("imagenes/forli.png") center/cover no-repeat fixed;
}

/* overlay oscuro */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: -1;
}

/* =========================
   HEADER
========================= */
header {
  background: #dbeeff;
  color: #222;

  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  letter-spacing: 1px;
}

/* =========================
   NAV
========================= */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: #222;
  text-decoration: none;
  font-weight: 700;
}

nav a:hover {
  color: #ce2b37;
}

/* =========================
   HERO VIDEO (ARREGLADO)
========================= */
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.hero-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* TODOS LOS VIDEOS */
.hero-video {
  width: 260px;
  height: 460px;

  object-fit: cover;
  border-radius: 18px;

  opacity: 1;
  transform: scale(0.9);

  transition: all 0.4s ease;

  box-shadow: 0 10px 25px rgb(0, 0, 0);
}

/* VIDEO ACTIVO */
.hero-video.is-active {
  width: 360px;
  height: 640px;

  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* =========================
   INTRO
========================= */
.intro-section {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 900px;
  margin: auto;
  color: white;
}

.intro-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.intro-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

/* BOTÓN CARTA */
.menu-btn {
  display: inline-block;
  background: #ce2b37;
  color: white;

  padding: 14px 28px;
  border-radius: 12px;

  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;

  transition: 0.3s ease;
}

.menu-btn:hover {
  background: #a61f2a;
  transform: translateY(-3px);
}

/* =========================
   INFO SECTION
========================= */
.info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.info-card {
  background: white;
  padding: 30px 20px;
  border-radius: 16px;

  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  overflow-wrap: break-word;
  word-break: break-word;
}

.info-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.info-card p {
  color: #333;
  line-height: 1.7;
}

.info-card a {
  color: #ce2b37;
  text-decoration: none;
  font-weight: bold;
}

.info-card a:hover {
  text-decoration: underline;
}

/* =========================
   MENU GRID
========================= */
.menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 15px;
}

/* TITULO CATEGORÍAS */
.menu-category {
  font-size: 1.8rem;
  margin: 35px 20px 15px;
  padding: 5px 10px;

  display: inline-block;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* CARD */
.menu-item {
  list-style: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);

  transition: 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* IMAGEN */
.menu-img-box {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.menu-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXTO */
.menu-text-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.menu-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #b22222;
}

/* =========================
   BOTONES DELIVERY
========================= */
.just-eat-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;

  background: #ff8000;
  color: #000;

  font-weight: bold;
  padding: 12px 16px;
  border-radius: 50px;

  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 9999;
}

.glovo-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: #ffd100;
  color: #000;

  font-weight: bold;
  padding: 12px 16px;
  border-radius: 50px;

  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  z-index: 9999;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 20px;
  background: #f2f2f2;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {

  .info-section {
    grid-template-columns: 1fr;
  }

  .menu {
    grid-template-columns: 1fr 1fr;
  }

  .menu-img-box {
    height: 150px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  header h1 {
    font-size: 1.6rem; /* antes 2.6rem */
    text-align: center;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-track {
    flex-direction: column;
  }

  .hero-video {
    width: 100% !important;
    height: 300px !important;
    transform: none !important;
  }

  .hero-video:not(.is-active) {
    display: none;
  }
}