:root {
  --blue: #1f3c88;
  --cream: #f7f1e1;
  --orange: #e67e22;
  --dark: #0b0b0b;
  --white: #ffffff;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
}


/* =====================
   TOPBAR
===================== */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}


.topbar-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 30px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.topbar.scrolled {
  background: var(--blue);
}

.order-btn {
  background: var(--orange);
  color: var(--white);
  padding: 12px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  text-decoration: none;
  justify-self: start;
  transition: background 0.25s ease, transform 0.2s ease;
  
}

.order-btn:hover {
  background: #d8790d; /* apenas más claro */
  transform: translateY(-1px);
}


/* LOGO CENTRADO */
.topbar-logo {
  width: 140px;
  justify-self: center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* ACCIONES */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.lang-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
}

.phone-btn {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
}

.menu-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

@media (max-width: 480px) {

  .topbar-inner {
    padding: 10px 14px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .order-btn {
    padding: 8px 14px;
    font-size: 0.7rem;
    border-radius: 999px;
  }

  .topbar-logo {
    width: 110px;
  }

  .topbar-actions {
    gap: 8px;
  }

}


/* =====================
   CELULAR
===================== */
@media (max-width: 768px) {
  .order-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .topbar-logo {
    width: 120px;
  }
}

/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  padding-top: 90px;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("../assets/hero-food.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 16px 36px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn.primary {
  background: var(--orange);
  color: var(--white);
}

.btn.secondary {
  background: var(--white);
  color: var(--dark);
}

.btn:hover {
  transform: translateY(-2px);
}

/* =====================
   INFO
===================== */
.info {
  background: var(--blue);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  opacity: 0.95;
  letter-spacing: 1px;
  gap: 20px;
}

.info-item h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 1px;
}

.info-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}


@media (max-width: 480px) {
  .info {
    padding: 40px 15px;
    grid-template-columns: 1fr; 
  }

  .info-box h3 {
    font-size: 0.95rem;
  }

  .info-box p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}


/* =====================
   DIRECTION
===================== */

.directions {
  background: var(--cream);
  padding-bottom: 50px;
  margin-top: -30px;
}

.directions-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: stretch;
}

/* CONTENIDO IZQUIERDA */
.directions-content {
  background: #fff9ec; /* crema mas claro que el fondo */
  padding: 50px 45px;
  border-radius: 16px;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;

  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.directions-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.directions-content p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

/* BOTON */
.directions-btn {
  Background: var(--blue);
  color: var(--white);
  padding: 14px 34px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 60, 136, 0.25);
}

/* MAPA */
.directions-map {
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.directions-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* CELULAR */
@media (max-width: 768px) {
  .directions-inner {
    grid-template-columns: 1fr;
  }

  .directions-content {
    text-align: center;
  }

  .directions-btn {
    margin: 0 auto;
  }

  .directions-map {
    height: 280px;
  }
}

/* =====================
   FOOTER
===================== */
.footer {
  background: var(--blue);
  text-align: center;
  padding: 25px;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .footer {
    padding: 15px;
    font-size: 0.8rem;
  }
}


/* =====================
   CELULAR HERO
===================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* =====================
   ORDEN SECCION
===================== */

.order {
  background: var(--cream);
  padding: 90px 20px;
  display: flex;
  justify-content: center;
}

.order-card {
  
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 14px;
  overflow: hidden;

}

.order-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  
}

.order-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
}


.order-content {
  padding: 60px 50px;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.order-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.order-content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 35px;
}


.order-main-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 16px 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  width: fit-content;
}

.order-main-btn:hover {
  background: #111;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .order-card {
    grid-template-columns: 1fr;
  }

  .order-content {
    padding: 40px 25px;
    text-align: center;
  }

  .order-main-btn {
    margin: 0 auto;
  }
}

/* ==========================
   TOPBAR LIMPIO EN MOBILE
========================== */
@media (max-width: 768px) {

  /* ocultar CTA solo en mobile */
  .order-btn {
    display: none;
  }

  /* reorganizar layout */
  .topbar-inner {
    grid-template-columns: auto 1fr auto;
    padding: 12px 16px;
  }

  /* logo a la izquierda */
  .topbar-logo {
    justify-self: start;
    width: 120px;
  }

  /* menu a la derecha */
  .topbar-actions {
    justify-self: end;
  }

}

/* =====================
   OVERLAY MENU (FINAL)
===================== */

.overlay-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  background: linear-gradient(
    180deg,
    #1f3c88 0%,
    #162f66 100%
  );
  z-index: 2000;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 110px;   
  padding-left: 48px;  
  padding-right: 24px;

  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.overlay-menu.open {
  transform: translateX(0);
  opacity: 1;
}

/* LISTA */
.overlay-menu ul {
  list-style: none;
  width: 100%;
}

/* ITEMS */
.overlay-menu li {
  margin: 28px 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.overlay-menu.open li {
  opacity: 1;
  transform: translateX(0);
}

.overlay-menu.open li:nth-child(1) { transition-delay: 0.1s; }
.overlay-menu.open li:nth-child(2) { transition-delay: 0.2s; }
.overlay-menu.open li:nth-child(3) { transition-delay: 0.3s; }
.overlay-menu.open li:nth-child(4) { transition-delay: 0.4s; }

/* LINKS */
.overlay-menu a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--white);
  text-decoration: none;

  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;

  padding-left: 14px;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.overlay-menu svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  opacity: 0.7;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.overlay-menu a:hover svg {
  transform: translateX(4px);
  stroke: var(--orange);
}

/* BARRA NARANJA */
.overlay-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 0%;
  background: var(--orange);
  border-radius: 4px;
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

/* HOVER */
.overlay-menu a:hover {
  color: var(--orange);
  transform: translateX(6px);
}

/* RESALTAR ORDEN */
.overlay-menu a:hover::before {
  height: 70%;
}

/* BLOQUEAR SCROLL */
body.menu-open {
  overflow: hidden;
}

/* BOTON CERRAR */
.menu-close {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.7rem;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* OCULTAR BOTONES HEADER */
body.menu-open .menu-btn,
body.menu-open .lang-toggle {
  opacity: 0;
  pointer-events: none;
}

.overlay-menu a span {
  letter-spacing: 0.5px;
}


@media (max-width: 480px) {
  .overlay-menu {
    padding-left: 32px;
  }
}



