/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================
   GLOBAL
========================= */

/* SCROLL */
html {
  scroll-behavior: smooth;
}


/* =========================
   NAVBAR
========================= */

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);

  color: white;
  padding: 19px 30px;
  z-index: 1000;

  transition: 0.3s ease;
}

/* EFECTO SCROLL */
.navbar.scrolled {
  background: rgba(0,0,0,0.9);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  font-size: 1.2rem;
  font-weight: bold;
}

/* LINKS */
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #e63946;
}

/* BOTÓN */
.order-btn {
  background: #e63946;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
}


/* =========================
   HERO
========================= */

/* HERO */
.hero {
  background: url('img/portada_final_kds.jpeg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  padding-top: 70px;
}

/* CAPA */
.overlay {
  background: rgba(0,0,0,0.4);
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  text-align: center;
}

/* ESPACIADO */
.overlay h1 {
  margin-bottom: 10px;
}

.overlay p {
  margin-bottom: 20px;
}

.buttons {
  margin-top: 10px;
}

/* BOTONES */
.btn {
  background: #e63946;
  color: white;
  padding: 12px 20px;
  margin: 5px;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.btn:hover {
  background: #c92f3a;
}


/* =========================
   MENU
========================= */

/* MENU GENERAL */
.menu {
  padding: 50px 20px;
  background: #111;
  color: white;
  
}

.menu h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* 🔥 SISTEMA TIPO APP */
.hidden {
  display: none;
}

/* BOTÓN VOLVER */
.back-btn {
  background: #e63946;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  cursor: pointer;
}

/* CATEGORÍAS */
.categories-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.category-card {
  width: 150px;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.category-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.category-card span {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.category-card:hover {
  transform: scale(1.05);
}

/* GRID */
.menu-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CARD */
.card {
  background: #1c1c1c;
  width: 200px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.card h4 {
  margin: 10px 0 5px;
}

.card p {
  color: #e63946;
  font-weight: bold;
  margin-bottom: 10px;
}

/* WHATSAPP */
/* SOCIAL FLOAT */
.social-float {
  position: fixed;
  right: 20px;
  bottom: 20px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  z-index: 999;
}

/* ICONOS */
.social-float a {
  width: 55px;
  height: 55px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;

  color: white;
  font-size: 24px;

  text-decoration: none;

  box-shadow: 0 5px 15px rgba(0,0,0,0.3);

  transition: 0.3s ease;
}

/* FACEBOOK */
.facebook {
  background: #1877f2;
}

/* WHATSAPP */
.whatsapp {
  background: #25d366;
}

/* HOVER */
.social-float a:hover {
  transform: scale(1.1);
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  .hero {
    background: url('img/LOGOFINAL.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
  }

  .nav-links {
    display: none;
  }

  .overlay {
    padding: 0 20px;
  }

  .overlay h1 {
    font-size: 2rem;
  }

  .card {
    width: 90%;
    max-width: 300px;
  }

  .category-card {
    width: 45%;
  }

}
/* SUBCATEGORÍAS */
.subcategory {
  margin-top: 60px;
}

.subcategory-title {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}

.subcategory-desc {
  text-align: center;
  color: #bbb;
  margin-bottom: 25px;
}

.extra-info {
  text-align: center;
  margin-top: 15px;
  color: #aaa;
  font-size: 0.9rem;
}
/* EXTRA SECTION */
.extra-section {
  margin-top: 50px;
  text-align: center;
}

.extra-section h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.extra-section p {
  color: #e63946;
  font-size: 1.1rem;
  font-weight: bold;
}
/* SIGNATURE */
.signature-subtitle {
  text-align: center;
  margin-bottom: 35px;
  color: #bbb;
  font-size: 1rem;
}

.card-desc {
  display: block;
  padding: 0 12px;
  margin-top: 10px;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
  min-height: 80px;
}
/* CATEGORY CARD */
.category-card {
  width: 150px;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
  overflow: hidden;
  border-radius: 12px;
}

/* IMAGEN */
.category-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
}

/* NOMBRE */
.category-card span {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0,0,0,0.7);
  padding: 5px 10px;
  border-radius: 5px;

  font-size: 0.9rem;
}

/* TEXTO HOVER */
.view-more {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 0.8rem;
  color: white;

  opacity: 0;
  transition: 0.3s;
}

/* HOVER */
.category-card:hover {
  transform: translateY(-8px);
}

.category-card:hover img {
  filter: brightness(0.7);
}

.category-card:hover .view-more {
  opacity: 1;
}

/* =========================
   ABOUT / HOURS / CONTACT
========================= */

/* ABOUT */
.about-section {
  background: #181818;
  color: white;
  padding: 80px 20px;
}

.about-container {
  max-width: 1200px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  flex-wrap: wrap;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}

/* HOURS */
.hours-section {
  background: #111;
  color: white;
  padding: 70px 20px;
  text-align: center;
}

.hours-section h2 {
  margin-bottom: 30px;
}

.hours-box p {
  margin: 10px 0;
  color: #ccc;
}

/* CONTACT */
.contact-section {
  background: #181818;
  color: white;
  padding: 70px 20px;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 40px;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;

  margin-bottom: 40px;
}

.contact-card {
  background: #1f1f1f;
  padding: 25px;
  border-radius: 12px;
  width: 250px;
}

.contact-card h3 {
  margin-bottom: 15px;
}

.contact-card p {
  color: #ccc;
}

/* FOOTER */
.footer {
  background: #0d0d0d;
  color: #888;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* MOBILE */
@media (max-width: 768px) {

  .about-container {
    flex-direction: column;
  }

  .contact-card {
    width: 100%;
    max-width: 300px;
  }

}

/* =========================
   ANIMATIONS
========================= */

/* ANIMACIONES */
.fade-up {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ZOOM IMÁGENES */
.card img,
.category-card img,
.about-image img {
  transition: transform 0.5s ease;
}

.card:hover img,
.category-card:hover img,
.about-image:hover img {
  transform: scale(1.08);
}

/* BOTONES */
.btn,
.order-btn,
.back-btn {
  transition: all 0.3s ease;
}

.btn:hover,
.order-btn:hover,
.back-btn:hover {
  transform: translateY(-3px);
}

/* CARDS MÁS PREMIUM */
.card,
.category-card,
.contact-card {
  transition: all 0.4s ease;
}

.card:hover,
.category-card:hover,
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: white;
}

/* =========================
   CART SYSTEM
========================= */

/* ADD CART BUTTON */
.add-cart-btn {
  background: #e63946;
  color: white;
  border: none;
  padding: 10px;
  margin: 15px;
  width: calc(100% - 30px);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.add-cart-btn:hover {
  background: #c92f3a;
}

/* QUANTITY */
.quantity-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.quantity-box button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #333;
  color: white;
  cursor: pointer;
}

.qty {
  font-size: 1.1rem;
  font-weight: bold;
}

/* CART MODAL */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Mantiene oculto el carrito cuando tiene hidden */
.cart-modal.hidden {
  display: none;
}

.cart-content {
  background: #1c1c1c;
  color: white;
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  padding: 25px;
  max-height: 90vh;
  overflow-y: auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-cart {
  background: transparent;
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  margin-bottom: 20px;
}

.cart-item {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;

  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.remove-item {
  background: #e63946;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  height: fit-content;
}

.send-order-btn {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 20px;
}

/* =========================
   FOOTER EXTRAS
========================= */

/* DEVELOPER CREDIT */
.developer-credit {
  background: #0d0d0d;
  text-align: center;
  padding: 12px;

  border-top: 1px solid rgba(255,255,255,0.08);
}

.developer-credit p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.developer-credit a {
  color: #e63946;
  text-decoration: none;
  transition: 0.3s;
}

.developer-credit a:hover {
  color: white;
}

/* TOAST NOTIFICATION */
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;

  transform: translateX(-50%) translateY(100px);

  background: #25d366;
  color: white;

  padding: 14px 22px;

  border-radius: 10px;

  font-size: 0.95rem;

  box-shadow: 0 5px 20px rgba(0,0,0,0.4);

  opacity: 0;

  transition: 0.4s ease;

  z-index: 100000;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* CART ICON NAVBAR */
.cart-nav-btn {
  position: relative;
  width: 45px;
  height: 45px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  padding: 0;
  font-size: 1.2rem;
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -6px;

  background: red;
  color: white;

  width: 20px;
  height: 20px;

  display: none;
  justify-content: center;
  align-items: center;

  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
}