/* ==========================================================================
   FAST FOOD DELIVERY - HIPERREALISTA & ULTRA MODERNO
   Colores: Rojo Fuego, Amarillo Mostaza, Negro Carbón y Grafito Profundo
   ========================================================================== */

:root {
  --color-bg: #0B0C10;
  --color-surface: #14161D;
  --color-surface-card: #1A1D26;
  --color-surface-elevated: #222634;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(255, 183, 3, 0.35);

  --color-primary: #FF1E27;
  --color-primary-dark: #C90D15;
  --color-primary-glow: rgba(255, 30, 39, 0.45);

  --color-accent: #FFB703;
  --color-accent-light: #FFC72C;
  --color-accent-glow: rgba(255, 183, 3, 0.4);

  --color-text: #FFFFFF;
  --color-text-muted: #9DA3AF;
  --color-text-dim: #6B7280;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Montserrat', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-glow-red: 0 10px 28px -4px var(--color-primary-glow);
  --shadow-glow-yellow: 0 10px 28px -4px var(--color-accent-glow);
  --shadow-button-3d: 0 6px 0 var(--color-primary-dark), 0 12px 20px rgba(255, 30, 39, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 30, 39, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(255, 183, 3, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(255, 30, 39, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0B0C10 0%, #12141A 100%);
  background-attachment: fixed;
}

/* Steam Canvas Overlay */
#heroSteamCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* ==========================================================================
   HEADER & CREATIVE LOGO (P = Carretera, E = Pizza Pac-Man)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.94);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.logo-icon-svg {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(255, 30, 39, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .logo-icon-svg {
  transform: scale(1.06) rotate(-2deg);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 30%, #FFB703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.brand-name .brand-ped {
  color: #FFFFFF;
}

.brand-name .brand-accent {
  background: linear-gradient(135deg, #FF1E27, #FFB703);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

/* Address Picker */
.address-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.88rem;
}

.address-pill:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-elevated);
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.15);
}

.address-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.address-text {
  display: flex;
  flex-direction: column;
}

.address-label {
  font-size: 0.65rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.address-val {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-header-cart {
  position: relative;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-header-cart:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-primary-glow);
}

.cart-count {
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.pulse-bounce {
  animation: cartPulse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Auth header pill */
.btn-auth-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1C1F28, #14161D);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-auth-trigger:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-glow-yellow);
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-surface-card);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.15);
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.btn-logout-tiny {
  background: transparent;
  border: none;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 0.3rem;
  text-decoration: underline;
}

.btn-logout-tiny:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   HERO SECTION & HIPERREALISTIC FOOD BACKGROUND
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 3.5rem;
  overflow: hidden;
}

/* Background with hyperrealistic hot foods */
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at 15% 20%, rgba(255, 30, 39, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255, 183, 3, 0.16) 0%, transparent 45%),
              linear-gradient(180deg, #10141D 0%, #0B0C10 100%);
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.68) saturate(1.25) contrast(1.08);
  transform: scale(1.04);
  transition: transform 10s ease-out;
}

.hero-section:hover .hero-bg-image {
  transform: scale(1.08);
}

.hero-vignette {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(11, 12, 16, 0.25) 0%, rgba(11, 12, 16, 0.55) 65%, rgba(11, 12, 16, 0.9) 100%),
              linear-gradient(180deg, rgba(11, 12, 16, 0.6) 0%, rgba(11, 12, 16, 0.1) 40%, rgba(11, 12, 16, 0.4) 75%, #0B0C10 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 11, 16, 0.94);
  border: 2px solid #FFB703;
  color: #FFD100;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 183, 3, 0.4); }
  50% { box-shadow: 0 6px 26px rgba(0, 0, 0, 0.9), 0 0 28px rgba(255, 183, 3, 0.65); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.hero-title-main {
  color: #FFD100;
  text-shadow: 0 2px 0 #000000, 0 4px 10px rgba(0, 0, 0, 0.8);
  display: inline-block;
}

.hero-title-highlight {
  display: inline-block;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #FF1E27 0%, #D90429 100%) !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #FFFFFF !important;
  padding: 0.28rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(255, 30, 39, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.35);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  margin-top: 0.35rem;
  transform: rotate(-1deg);
  transition: transform 0.25s ease;
}

.hero-title-highlight:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #FFFFFF;
  font-weight: 500;
  line-height: 1.65;
  background: rgba(8, 10, 16, 0.94);
  border: 2px solid #FFB703;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.8rem;
  max-width: 760px;
  margin: 0 auto 2.25rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-subtitle .hl-resto {
  color: #FFD100;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 183, 3, 0.45);
  text-underline-offset: 3px;
}

/* ==========================================================================
   CENTRAL SEARCH BAR (BUSCADOR CENTRAL)
   ========================================================================== */
.search-wrapper {
  background: rgba(14, 16, 24, 0.94);
  border: 1.5px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-full);
  padding: 0.45rem;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.7);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.search-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 20px 50px -10px rgba(255, 30, 39, 0.45), 0 0 0 3px rgba(255, 183, 3, 0.35);
  transform: translateY(-2px);
}

.search-icon-box {
  color: var(--color-accent);
  padding-left: 1.1rem;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 1rem;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
}

.search-input::placeholder {
  color: #A3AAB8;
}

.search-action-btn {
  background: linear-gradient(135deg, var(--color-primary), #E50914);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.8rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px var(--color-primary-glow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.search-action-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(255, 30, 39, 0.6);
  background: linear-gradient(135deg, #FF3840, #FF1E27);
}

/* ==========================================================================
   PAC-MAN PIZZA HERO PREVIEW BANNER (ANIMACIÓN EN VIVO)
   ========================================================================== */
.hero-loader-showcase {
  background: rgba(18, 20, 27, 0.94);
  border: 1px solid rgba(255, 183, 3, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.loader-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.4rem;
}

.loader-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.loader-canvas-box {
  width: 100%;
  height: 95px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0D0E13;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#heroPreviewCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   CATEGORY PILLS BAR
   ========================================================================== */
.categories-nav {
  padding: 1rem 1.5rem 2rem;
  max-width: 1380px;
  margin: 0 auto;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-surface-elevated) transparent;
}

.categories-scroll::-webkit-scrollbar {
  height: 5px;
}
.categories-scroll::-webkit-scrollbar-thumb {
  background: var(--color-surface-elevated);
  border-radius: 10px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-pill:hover {
  color: #FFFFFF;
  background: var(--color-surface-elevated);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--color-primary), #E50914);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--color-primary-glow);
  transform: translateY(-2px);
}

.cat-emoji {
  font-size: 1.15rem;
}

/* ==========================================================================
   MAIN SECTION & FOOD RESTAURANT CARDS
   ========================================================================== */
.main-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-count {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  font-weight: 500;
}

/* Grid Layout */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.85rem;
}

/* Hiperrealistic Food Card */
.food-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.food-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 183, 3, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 30, 39, 0.15);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #111217;
}

.food-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: contrast(1.05) saturate(1.12);
}

.food-card:hover .food-img {
  transform: scale(1.07);
}

/* Card steam overlay gradient */
.food-steam-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--color-surface-card) 0%, transparent 100%);
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 12, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-accent);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-temperature {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 30, 39, 0.94);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.temp-dot {
  width: 6px;
  height: 6px;
  background: #FFD166;
  border-radius: 50%;
  animation: heatPulse 1.2s infinite;
}

@keyframes heatPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* Card Content */
.card-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.restaurant-name {
  color: var(--color-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.card-rating {
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-rating .star {
  color: var(--color-accent);
}

.card-rating .review-count {
  color: var(--color-text-dim);
  font-weight: 400;
  font-size: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.chip-time {
  color: var(--color-accent);
  background: rgba(255, 183, 3, 0.12);
}

.chip-icon {
  width: 13px;
  height: 13px;
}

.chip-delivery {
  color: #06D6A0;
  background: rgba(6, 214, 160, 0.12);
}

/* Card Footer & Tactile 3D Buttons */
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
}

/* 3D Realistic Glossy Button "Ordenar ahora" */
.btn-order-now {
  position: relative;
  background: linear-gradient(180deg, #FF333B 0%, #D90429 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 0 #9E0017, 0 10px 20px rgba(255, 30, 39, 0.4);
  transition: all 0.18s ease;
  overflow: hidden;
}

/* Glossy highlight shine */
.btn-order-now::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  pointer-events: none;
}

.btn-order-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #9E0017, 0 14px 28px rgba(255, 30, 39, 0.55);
  background: linear-gradient(180deg, #FF454C 0%, #E50914 100%);
}

.btn-order-now:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9E0017, 0 4px 10px rgba(255, 30, 39, 0.3);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.btn-order-now:hover .btn-arrow {
  transform: translateX(3px);
}

/* Empty State */
.empty-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-results h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.empty-results p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   DYNAMIC SIDE CART DRAWER (CARRITO LATERAL)
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: rgba(20, 22, 29, 0.95);
  border-left: 1px solid var(--color-border);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-close-cart {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-cart:hover {
  color: #FFFFFF;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Cart Content & Items List */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
}

.cart-empty-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cart-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.cart-item:hover {
  border-color: rgba(255, 183, 3, 0.3);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.cart-item-restaurant {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  display: block;
  margin-bottom: 0.3rem;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-accent);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
}

.qty-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.qty-btn:hover {
  background: var(--color-primary);
}

.qty-num {
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}

/* Cart Footer & Calculations - Elevated Above Windows Taskbar */
.cart-footer {
  padding: 0.95rem 1.35rem 3.8rem;
  border-top: 1px solid var(--color-border);
  background: rgba(18, 20, 27, 0.98);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
  z-index: 10;
}

.tip-selection-box {
  margin-bottom: 1.1rem;
}

.tip-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tip-pills {
  display: flex;
  gap: 0.5rem;
}

.tip-pill {
  flex: 1;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.tip-pill.active {
  background: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
}

.cart-summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
}

.summary-row.total-row {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--color-border);
}

.text-free {
  color: #06D6A0 !important;
  font-weight: 800;
}

/* Big Vibrant "PAGO RÁPIDO" Button */
.btn-checkout-fast {
  width: 100%;
  background: linear-gradient(180deg, #FFB703 0%, #FF8800 100%);
  color: #0B0C10;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 4px 0 #C96600, 0 10px 24px rgba(255, 183, 3, 0.45);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn-checkout-fast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  pointer-events: none;
}

.btn-checkout-fast:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #C96600, 0 16px 32px rgba(255, 183, 3, 0.6);
  background: linear-gradient(180deg, #FFC72C 0%, #FF9900 100%);
}

.btn-checkout-fast:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #C96600, 0 4px 12px rgba(255, 183, 3, 0.3);
}

.moto-icon-fast {
  width: 24px;
  height: 24px;
  animation: motoBounce 0.6s infinite alternate ease-in-out;
}

@keyframes motoBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

/* ==========================================================================
   CHECKOUT LOADER OVERLAY (PAC-MAN PIZZA COMING HOT DOG)
   ========================================================================== */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 16, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 2rem;
  text-align: center;
}

.checkout-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.checkout-card-modal {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 30, 39, 0.2);
}

.checkout-canvas-container {
  width: 100%;
  height: 130px;
  margin: 1.5rem 0;
  background: #0E0F14;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#checkoutLoaderCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.checkout-status-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.checkout-status-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   MODAL DIALOG: AUTHENTICATION (SOCIAL & STANDARD)
   Usa <dialog closedby="any"> conforme a modern web guidance
   ========================================================================== */
dialog.auth-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(20, 23, 31, 0.96);
  color: #FFFFFF;
  width: 90%;
  max-width: 440px;
  padding: 0;
  box-shadow: 0 24px 64px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 183, 3, 0.15);
  z-index: 1500;
}

dialog.auth-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
}

.auth-modal-wrapper {
  padding: 2.2rem 2rem;
  position: relative;
}

.btn-close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--color-surface-elevated);
  border: none;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  color: #FFFFFF;
  background: var(--color-primary);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.auth-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.auth-modal-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 1.8rem;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--color-surface-elevated);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Social Buttons Grid */
.social-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

/* Official Google Button */
.btn-social-google {
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
  font-family: -apple-system, Roboto, sans-serif;
}

.btn-social-google:hover {
  background: #F8F9FA;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Official Facebook Button */
.btn-social-facebook {
  background: #1877F2;
  color: #FFFFFF;
}

.btn-social-facebook:hover {
  background: #166FE5;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.35);
  transform: translateY(-1px);
}

.social-icon-svg {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.auth-divider span {
  padding: 0 0.85rem;
}

/* Auth Input Fields */
.auth-form-group {
  margin-bottom: 1rem;
}

.auth-label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.auth-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2);
}

.btn-submit-auth {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), #D90429);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow-red);
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.btn-submit-auth:hover {
  background: linear-gradient(135deg, #FF3840, var(--color-primary));
  transform: translateY(-2px);
}

/* Success Order Dialog */
dialog.success-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(6, 214, 160, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(20, 23, 31, 0.98);
  color: #FFFFFF;
  width: 90%;
  max-width: 460px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 35px rgba(6, 214, 160, 0.25);
  z-index: 1600;
}

dialog.success-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.success-icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(6, 214, 160, 0.15);
  border: 2px solid #06D6A0;
  color: #06D6A0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
}

.order-code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.eta-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast-notification {
  background: rgba(26, 29, 38, 0.95);
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
}

.toast-notification.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #08090C;
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 1.5rem 2rem;
  color: var(--color-text-muted);
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  font-size: 0.88rem;
  margin-top: 0.8rem;
  max-width: 340px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: 1380px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
/* Mobile Bottom Navigation (Hidden on desktop) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px; /* Space for fixed bottom navigation bar */
  }

  /* Fixed Mobile Bottom Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(12, 14, 21, 0.97);
    border-top: 1.5px solid rgba(255, 183, 3, 0.35);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.8);
    z-index: 990;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.3rem max(0.25rem, env(safe-area-inset-bottom));
  }

  .mob-nav-item {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0.2rem 0;
  }

  .mob-nav-item:active {
    transform: scale(0.92);
  }

  .mob-nav-item.active,
  .mob-nav-item:hover {
    color: #FFD100;
  }

  .mob-nav-icon {
    font-size: 1.35rem;
    line-height: 1;
    position: relative;
    display: inline-block;
  }

  .mob-nav-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .mob-cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #FF1E27;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 2px 6px rgba(255, 30, 39, 0.6);
  }

  /* Header on Mobile */
  .header-container {
    padding: 0.65rem 0.9rem;
    gap: 0.5rem;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .logo-icon-svg {
    height: 38px;
    width: auto;
  }

  .brand-title .brand-name {
    font-size: 1.25rem;
  }

  .brand-title .brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .address-pill {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .btn-header-cart .cart-label {
    display: none; /* Icon-only cart button in mobile header */
  }

  .btn-header-cart {
    padding: 0.55rem 0.75rem;
  }

  .btn-auth-trigger {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 2.2rem 0.9rem 1.8rem;
    min-height: auto;
  }

  .hero-pill-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.85rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.7rem);
    line-height: 1.2;
    margin-bottom: 0.95rem;
  }

  .hero-title-highlight {
    padding: 0.2rem 0.85rem;
    font-size: 0.88em;
    margin-top: 0.25rem;
  }

  .hero-subtitle {
    padding: 0.75rem 0.95rem;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 auto 1.35rem;
    border-radius: var(--radius-sm);
  }

  .search-wrapper {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 0.45rem;
    gap: 0.5rem;
  }

  .search-icon-box {
    display: none; /* cleaner input on small screens */
  }

  .search-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    text-align: center;
  }

  .search-action-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }

  .hero-loader-showcase {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
  }

  .loader-showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  /* Categories Nav on Mobile */
  .categories-nav {
    padding: 0.5rem 0.8rem;
    margin-bottom: 1.25rem;
  }

  .categories-scroll {
    gap: 0.4rem;
  }

  .cat-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Main Container & Food Cards */
  .main-container {
    padding: 1rem 0.85rem 2.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .food-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .food-card {
    border-radius: var(--radius-md);
  }

  .card-image-wrapper {
    height: 200px;
  }

  .card-content {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .card-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .btn-order-card {
    padding: 0.85rem;
    font-size: 0.98rem;
  }

  /* Cart Drawer on Mobile */
  .cart-drawer {
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 1000;
  }

  .cart-header {
    padding: 1rem;
  }

  .cart-footer {
    padding: 0.85rem 1rem max(1.2rem, env(safe-area-inset-bottom));
  }

  /* Modals on Mobile */
  dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 88vh !important;
    border-radius: 18px !important;
  }

  .auth-modal-wrapper,
  .track-modal-wrapper,
  .portal-modal-wrapper,
  .unioc-modal-wrapper {
    padding: 1.25rem 0.85rem !important;
    max-height: 85vh;
  }

  .btn-close-modal {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .portal-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .portal-tab-btn {
    padding: 0.55rem 0.3rem;
    font-size: 0.78rem;
  }

  .portal-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .orders-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   COLOMBIAN PAYMENT METHODS (NEQUI, DAVIPLATA, TARJETA DE CRÉDITO, EFECTIVO)
   ========================================================================== */
.payment-section {
  margin-bottom: 1.25rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.95rem;
}

.payment-section-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.payment-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.payment-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.payment-btn-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Active States */
.payment-btn.active-nequi {
  border-color: #FF2E63;
  background: rgba(255, 46, 99, 0.12);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 46, 99, 0.25);
}

.payment-btn.active-daviplata {
  border-color: #ED1C24;
  background: rgba(237, 28, 36, 0.14);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.25);
}

.payment-btn.active-card {
  border-color: #0077FF;
  background: rgba(0, 119, 255, 0.14);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 119, 255, 0.25);
}

.payment-btn.active-cash {
  border-color: #06D6A0;
  background: rgba(6, 214, 160, 0.14);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(6, 214, 160, 0.25);
}

/* Dynamic Details Container */
.payment-details-box {
  background: rgba(11, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.5rem;
}

.payment-input-group {
  margin-bottom: 0.65rem;
}

.payment-input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dim);
  margin-bottom: 0.25rem;
}

.payment-text-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.payment-text-input:focus {
  border-color: var(--color-accent);
}

.card-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.payment-secure-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #06D6A0;
  margin-top: 0.5rem;
  font-weight: 600;
}

.payment-hint {
  font-size: 0.74rem;
  color: var(--color-text-dim);
  line-height: 1.35;
  margin-top: 0.4rem;
}

/* ==========================================================================
   HEADER NAVIGATION FEATURES (RASTREO, ROLES, UNIOC)
   ========================================================================== */
.header-nav-features {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(22, 25, 34, 0.85);
  border: 1px solid var(--color-border);
  color: #FFFFFF;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-nav-feature:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-accent);
  color: #FFD100;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.2);
}

.btn-feature-portal {
  border-color: rgba(255, 183, 3, 0.4);
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.15), rgba(255, 30, 39, 0.1));
}

.btn-feature-unioc {
  border-color: rgba(6, 214, 160, 0.4);
  color: #A7F3D0;
}

.btn-feature-unioc:hover {
  border-color: #06D6A0;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(6, 214, 160, 0.25);
}

/* ==========================================================================
   RESTAURANT TYPE CLASSIFICATION TAGS (RF-03)
   ========================================================================== */
.restaurant-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-top: 0.35rem;
}

.restaurant-type-tag.pizzeria {
  background: rgba(255, 183, 3, 0.18);
  border: 1px solid rgba(255, 183, 3, 0.5);
  color: #FFD100;
}

.restaurant-type-tag.comida_rapida {
  background: rgba(255, 30, 39, 0.18);
  border: 1px solid rgba(255, 30, 39, 0.5);
  color: #FF7B80;
}

/* ==========================================================================
   TRACK ORDER MODAL (RF-07, RF-02)
   ========================================================================== */
.track-modal-wrapper {
  max-width: 1100px !important;
  width: 100% !important;
}
.portal-dialog .btn-close-modal { z-index: 5; }

.track-search-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-track-action {
  background: linear-gradient(135deg, var(--color-accent), #FF9500);
  border: none;
  color: #000000;
  font-weight: 800;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-track-action:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(255, 183, 3, 0.4);
}

.track-recent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1.25rem;
}

.track-order-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: #E2E8F0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-order-pill:hover {
  border-color: var(--color-accent);
  color: #FFD100;
  background: rgba(255, 183, 3, 0.12);
}

/* Timeline */
.timeline-container {
  background: rgba(14, 16, 23, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.timeline-code {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #FFD100;
}

.timeline-status-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  padding-left: 1rem;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 23px;
  width: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.timeline-step {
  display: flex;
  gap: 1.1rem;
  position: relative;
  z-index: 2;
}

.step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1A1D26;
  border: 2px solid #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #94A3B8;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.timeline-step.completed .step-node {
  background: #06D6A0;
  border-color: #06D6A0;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.4);
}

.timeline-step.active .step-node {
  background: #FFB703;
  border-color: #FFB703;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.6);
  animation: pulseNode 1.5s infinite;
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.step-info {
  flex: 1;
}

.step-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.15rem;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  line-height: 1.35;
}

.step-time {
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* ==========================================================================
   PORTAL DE GESTIÓN POR ROLES EN PANTALLA COMPLETA (FULL-SCREEN DASHBOARD)
   RNF-01, RNF-02, RF-04, RF-05, RF-06, RF-08, RF-09, RF-10
   ========================================================================== */
dialog.portal-dialog {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  transform: none !important;
  background: #0B0C10 !important;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(255, 30, 39, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255, 209, 0, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #0A0C11 0%, #10141D 100%) !important;
  color: #FFFFFF !important;
  z-index: 2200 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

dialog.portal-dialog[open] {
  display: flex !important;
  flex-direction: column !important;
}

dialog.portal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.94) !important;
}

.portal-modal-wrapper {
  width: 100% !important;
  max-width: 1440px !important;
  height: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 auto !important;
  padding: 1.5rem 2.2rem 3rem !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.portal-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
}

.portal-nav-left {
  flex: 1;
}

.portal-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0.25rem 0 0.15rem;
  letter-spacing: -0.01em;
}

.portal-modal-subtitle {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-portal-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-portal-back:hover {
  background: rgba(255, 30, 39, 0.25);
  border-color: #FF1E27;
  color: #FFFFFF;
  transform: translateX(-2px);
}

.portal-dialog .btn-close-modal {
  position: static !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: rgba(255, 30, 39, 0.2) !important;
  border: 1.5px solid rgba(255, 30, 39, 0.6) !important;
  color: #FFFFFF !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.portal-dialog .btn-close-modal:hover {
  background: #FF1E27 !important;
  transform: rotate(90deg) scale(1.08) !important;
  box-shadow: 0 4px 18px rgba(255, 30, 39, 0.6) !important;
}

.portal-badge-academic {
  display: inline-block;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #FFD100;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.25rem;
}

.portal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: rgba(14, 16, 22, 0.9);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  margin: 0.5rem 0 1.25rem;
  border: 1px solid var(--color-border);
}

.portal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  padding: 0.7rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.portal-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.portal-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 30, 39, 0.25) 0%, rgba(255, 183, 3, 0.2) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 183, 3, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.portal-kpi-card {
  background: rgba(20, 23, 32, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  text-align: center;
}

.portal-kpi-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #FFD100;
}

.portal-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.portal-search-input {
  flex: 1;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: #FFF;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.portal-filter-btns {
  display: flex;
  gap: 0.35rem;
}

.btn-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 700;
}

.btn-filter-pill.active {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

.btn-export-backup {
  background: rgba(6, 214, 160, 0.15);
  border: 1px solid #06D6A0;
  color: #06D6A0;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-export-backup:hover {
  background: #06D6A0;
  color: #000;
}

/* Orders table */
.portal-table-container {
  overflow-x: auto;
  background: rgba(14, 16, 23, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.portal-table th {
  background: rgba(25, 29, 40, 0.9);
  padding: 0.75rem 0.85rem;
  color: var(--color-text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--color-border);
}

.portal-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.portal-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.order-driver-select {
  background: var(--color-surface);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: #FFF;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.order-status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-status-badge.recibido {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.order-status-badge.en_preparacion {
  background: rgba(255, 183, 3, 0.2);
  color: #FFD100;
  border: 1px solid rgba(255, 183, 3, 0.5);
}

.order-status-badge.listo {
  background: rgba(168, 85, 247, 0.2);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.order-status-badge.en_camino {
  background: rgba(255, 30, 39, 0.2);
  color: #FF7B80;
  border: 1px solid rgba(255, 30, 39, 0.5);
}

.order-status-badge.entregado {
  background: rgba(6, 214, 160, 0.2);
  color: #06D6A0;
  border: 1px solid rgba(6, 214, 160, 0.5);
}

/* Restaurant & Delivery Cards */
.orders-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.order-action-card {
  background: rgba(18, 20, 28, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.order-action-card:hover {
  border-color: rgba(255, 183, 3, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-order-advance {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-order-advance:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-order-advance.btn-advance-ready {
  background: linear-gradient(135deg, #FFB703, #FF9500);
  color: #000;
}

.btn-order-advance.btn-advance-deliver {
  background: linear-gradient(135deg, #06D6A0, #059669);
  color: #000;
}

/* ==========================================================================
   ACADEMIC UNIOC PROJECT STYLES
   ========================================================================== */
.unioc-modal-wrapper {
  max-width: 680px !important;
}

.unioc-info-card {
  background: rgba(14, 16, 23, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 0.85rem;
}

.unioc-info-card h4 {
  font-size: 0.95rem;
  color: #FFD100;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.unioc-team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.unioc-req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.45rem;
}

.unioc-req-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: #E2E8F0;
}

.unioc-req-pill strong {
  color: #FFD100;
  margin-right: 0.25rem;
}

.footer-academic-banner {
  background: linear-gradient(135deg, rgba(20, 23, 33, 0.95), rgba(11, 12, 16, 0.98));
  border-top: 1px solid rgba(255, 183, 3, 0.25);
  border-bottom: 1px solid rgba(255, 183, 3, 0.25);
  padding: 1.25rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.academic-badge {
  font-size: 0.85rem;
  font-weight: 900;
  color: #FFD100;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.academic-details {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .header-nav-features {
    display: none; /* Mobile navigation simplified */
  }
  dialog.portal-dialog {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }
  .portal-modal-wrapper {
    padding: 1rem 0.85rem 4.5rem !important;
  }
  .portal-nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .portal-nav-actions {
    justify-content: space-between;
    width: 100%;
  }
  .portal-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem;
  }
  .portal-tab-btn {
    padding: 0.55rem 0.35rem;
    font-size: 0.78rem;
  }
  .portal-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }
  .portal-kpi-num {
    font-size: 1.3rem;
  }
  .portal-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .portal-search-input {
    width: 100%;
  }
  .portal-filter-btns {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
}



/* Rendimiento: equipos de gama baja y preferencia de movimiento reducido */
.lite *, .lite *::before, .lite *::after { }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
footer { content-visibility: auto; contain-intrinsic-size: auto 420px; }


/* ===== Panel de cuenta ===== */
.account-caret { font-size: 0.7rem; color: var(--color-text-muted); }
dialog.account-dialog { max-height: 90vh; overflow-y: auto; }
.account-head { display: flex; align-items: center; gap: 0.9rem; margin: 0 2rem 1.2rem 0; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-accent); flex-shrink: 0; }
.account-head-text { min-width: 0; }
.account-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; margin: 0 0 0.1rem; }
.account-name { font-weight: 700; font-size: 0.95rem; }
.account-email { font-size: 0.8rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-hint { font-size: 0.78rem; color: var(--color-text-muted); margin: 0.2rem 0 0.9rem; }
.account-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--color-border); }
.btn-account-secondary, .btn-account-logout { width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-full); font-weight: 800; font-size: 0.9rem; cursor: pointer; align-items: center; justify-content: center; }
.btn-account-secondary { display: flex; background: var(--color-surface-elevated); color: var(--color-accent); border: 1px solid var(--color-border-glow); }
.btn-account-logout { display: flex; background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-account-logout:hover { background: var(--color-primary); color: #fff; }
.account-order { background: var(--color-surface-card); border: 1px solid var(--color-border); border-radius: 12px; padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; }
.account-order-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.9rem; }
.account-order-top span { color: var(--color-accent); font-weight: 800; }
.account-order-sub { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.15rem; }
.account-empty { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; padding: 1.2rem 0; }

/* ===== Datos de entrega dentro del carrito ===== */
.delivery-data-box { margin-top: 1.25rem; }
.btn-pick-address { width: 100%; margin: -0.2rem 0 0.8rem; padding: 0.55rem 0.8rem; background: var(--color-surface-elevated); color: var(--color-accent); border: 1px dashed var(--color-border-glow); border-radius: 10px; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.btn-pick-address:hover { border-style: solid; }

/* Apartado de Roles */
.role-row{display:grid;grid-template-columns:1.6fr 1.4fr 1fr 190px;gap:.75rem;align-items:center;padding:.8rem 1rem;margin-bottom:.5rem;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.04)}
.role-row strong{display:block}.role-row small{color:var(--color-text-muted)}
.role-badge{display:inline-block;padding:.2rem .65rem;border-radius:999px;font-size:.74rem;font-weight:800;background:rgba(255,183,3,.15);color:#FFB703;border:1px solid rgba(255,183,3,.4)}
.role-badge.admin{background:rgba(255,30,39,.18);color:#FF7B80;border-color:rgba(255,30,39,.5)}
.role-row select{width:100%}
@media(max-width:768px){.role-row{grid-template-columns:1fr}}
.role-section-title{margin:1.8rem 0 .6rem;font-family:var(--font-display);font-size:1.15rem;color:#FFD100}
.role-new{grid-template-columns:1.6fr 1fr 1.4fr 190px}
.dish-form{display:grid;grid-template-columns:2fr 1fr 1fr;gap:.6rem;padding:1rem;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.04)}
.dish-form textarea,.dish-form #dishImg{grid-column:1/-1;resize:vertical;font-family:inherit}
.dish-avail,.dish-form-actions{grid-column:1/-1;display:flex;gap:.6rem;align-items:center;color:#fff}
.dish-row{grid-template-columns:1.6fr 110px 130px 190px}
.dish-row p{color:var(--color-text-muted);font-size:.8rem;margin-top:.2rem}
.role-actions{display:flex;gap:.4rem;flex-wrap:wrap}
@media(max-width:768px){.role-new,.dish-form,.dish-row{grid-template-columns:1fr}}

/* Panel de restaurante: barra lateral */
.resto-layout{display:grid;grid-template-columns:210px 1fr;gap:1rem;align-items:start}
.resto-side{display:flex;flex-direction:column;gap:.35rem;position:sticky;top:0;padding:.6rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:14px}
.resto-side button{display:flex;align-items:center;gap:.6rem;padding:.65rem .8rem;border-radius:10px;background:transparent;border:0;color:var(--color-text-muted);font:inherit;font-weight:700;font-size:.88rem;text-align:left;cursor:pointer}
.resto-side button:hover{background:rgba(255,255,255,.06);color:#fff}
.resto-side button.active{background:#FFD100;color:#141414}
.resto-main{min-width:0}.resto-sec[hidden]{display:none}
@media(max-width:700px){.resto-layout{grid-template-columns:1fr}.resto-side{flex-direction:row;overflow-x:auto;position:static}.resto-side button{white-space:nowrap}}

/* Avisos sobre los paneles abiertos (capa superior) */
.toast-container[popover] { inset: auto; bottom: 24px; left: 24px; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; width: auto; height: auto; color: inherit; max-width: calc(100vw - 48px); }
