/* =====================================================
   FOOD TRUCK BELLVITGE — Custom Styles
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

/* ---- Variables de color ---- */
:root {
  --brand-orange: #ff6b2b;
  --brand-dark:   #1a1a2e;
  --brand-light:  #fff8f3;
  --card-shadow:  0 6px 24px rgba(0,0,0,.12);
  --transition:   .3s ease;
}

/* ---- Base ---- */
body {
  padding-top: 70px;
  font-family: 'Poppins', sans-serif;
  background-color: var(--brand-light);
  color: #333;
}

/* ---- Navbar ---- */
.navbar {
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  letter-spacing: .5px;
  color: var(--brand-orange) !important;
}
.nav-link:hover {
  color: var(--brand-orange) !important;
}
.navbar-dark .navbar-nav .nav-link {
  transition: color var(--transition);
}

/* ---- Hero section ---- */
.hero-section {
  position: relative;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}
.hero-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.65);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
}
.hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero-overlay p {
  font-size: 1.2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero-overlay .btn-hero {
  background: var(--brand-orange);
  border: none;
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(255,107,43,.5);
}
.hero-overlay .btn-hero:hover {
  background: #e05520;
  transform: translateY(-2px);
}

/* ---- Carousel ---- */
#foodtruckCarousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
#foodtruckCarousel img {
  max-height: 460px;
  object-fit: cover;
  filter: brightness(.85);
}
.carousel-caption {
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 1.5rem;
  border-radius: 0 0 16px 16px;
}
.carousel-caption h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
}

/* ---- Section title ---- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--brand-dark);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 60%;
  background: var(--brand-orange);
  border-radius: 4px;
  margin-top: 6px;
}

/* ---- Cards ---- */
.card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  background: #fff;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition);
}
.card:hover .card-img-top {
  transform: scale(1.05);
}
.card-title {
  font-weight: 700;
  color: var(--brand-dark);
}
.card-footer {
  background: #fff;
  border-top: 1px solid #f0e8e0;
  padding: .6rem 1rem;
}
.card-footer .btn-like,
.card-footer .btn-dislike {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform var(--transition);
}
.card-footer .btn-like:hover   { transform: scale(1.3); color: #28a745; }
.card-footer .btn-dislike:hover { transform: scale(1.3); color: #dc3545; }

/* ---- Badge de categoría ---- */
.card-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-orange);
  color: #fff;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  z-index: 1;
}

/* ---- Promo banner ---- */
.promo-banner {
  background: linear-gradient(135deg, var(--brand-orange), #ff9f68);
  color: #fff;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(255,107,43,.4);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.promo-banner i {
  font-size: 3rem;
  flex-shrink: 0;
}
.promo-banner h4 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 1.5rem;
}
.promo-banner p { margin: .3rem 0 0; opacity: .9; }

/* ---- Pagination ---- */
.page-link {
  color: var(--brand-orange);
  border-color: #f5ddd0;
  border-radius: 8px !important;
  margin: 0 2px;
  transition: background var(--transition), color var(--transition);
}
.page-link:hover,
.page-item.active .page-link {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

/* ---- Cookies alert ---- */
.cookies-alert {
  position: sticky;
  bottom: 0;
  z-index: 1030;
  border-radius: 10px;
  border-left: 5px solid var(--brand-orange);
}

/* ---- Footer ---- */
footer {
  background: var(--brand-dark) !important;
  border-top: 3px solid var(--brand-orange);
}
footer .footer-icons a {
  font-size: 1.5rem;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
footer .footer-icons a:hover {
  color: var(--brand-orange) !important;
  transform: translateY(-3px);
}

/* ---- Modal login top-right ---- */
.modal-login-position {
  position: absolute;
  top: 70px;
  right: 1rem;
  margin: 0;
}

/* ---- Smooth scroll ---- */
html { scroll-behavior: smooth; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-section { height: 260px; }
  .hero-overlay h1 { font-size: 1.8rem; }
  #foodtruckCarousel img { max-height: 240px; }
  .promo-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 576px) {
  .section-title { font-size: 1.4rem; }
}
