/* ===== GLOBAL ===== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 28px 56px rgba(28, 77, 141, 0.22), 0 8px 16px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 28px 56px rgba(28, 77, 141, 0.35), 0 8px 16px rgba(255, 215, 0, 0.15), 0 0 30px rgba(28, 77, 141, 0.2);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(28, 77, 141, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 0 8px 24px rgba(28, 77, 141, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 215, 0, 0.2);
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowText {
  0%, 100% { text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); }
  50% { text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3); }
}

@keyframes hoverGlowBtn {
  0%, 100% { box-shadow: 0 8px 24px rgba(28, 77, 141, 0.35); }
  50% { box-shadow: 0 8px 24px rgba(28, 77, 141, 0.35), 0 0 15px rgba(255, 215, 0, 0.25); }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes skeletonPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #003399 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader .preloader-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}
#preloader .preloader-logo-modern {
  width: 100px;
  margin-top: 20px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  animation: float 2s ease-in-out infinite;
}
#preloader .preloader-spinner {
  width: 70px;
  height: 70px;
  border: 6px solid rgba(255, 215, 0, 0.3);
  border-top: 6px solid #FFD700;
  border-right: 6px solid #FFD700;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* ===== ADMIN BUTTON HEADER ===== */
.admin-btn {
  display: block;
  position: absolute;
  top: 18px;
  right: 22px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  padding: 10px 24px 10px 16px;
  border-radius: 24px;
  font-size: 1.08rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  opacity: 0.97;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.6s ease;
}
.admin-btn i.fa-user-shield {
  font-size: 1.25em;
  margin-right: 6px;
  color: #fff;
}
.admin-btn:hover {
  background: linear-gradient(135deg, #003399, #1e40af);
  color: #FFD700;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 153, 0.4);
}
@media (max-width: 768px) {
  .admin-btn {
    display: none;
  }
}

.admin-link-mobile {
  display: block;
  background: linear-gradient(135deg, #003399, #1e40af);
  color: #FFD700;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 51, 153, 0.3);
  opacity: 0.92;
  margin: 16px 18px 12px 18px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.admin-link-mobile:hover {
  background: linear-gradient(135deg, #FFD700, #FFC700);
  color: #003399;
  opacity: 1;
  transform: scale(1.05);
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #1C4D8D 0%, #153a65 50%, #1C4D8D 100%);
  color: white;
  padding: 20px 15px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(28, 77, 141, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.6s ease;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: shimmer 3s infinite;
  z-index: 0;
}

header img {
  height: 55px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  animation: scaleIn 0.6s ease 0.2s backwards;
  position: relative;
  z-index: 1;
}

header h1 {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease 0.3s backwards;
  position: relative;
  z-index: 1;
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.98);
    width: auto;
    min-width: 180px;
    max-width: 260px;
    height: 96vh;
    position: fixed;
    top: 2vh;
    left: 1vw;
    z-index: 12000;
    box-shadow: 0 12px 40px rgba(0, 51, 153, 0.2);
    border-radius: 26px;
    padding: 38px 0 32px 0;
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1), box-shadow 0.2s;
    transform: translateX(-110%);
    overflow-y: auto;
    border: 1.5px solid #e0e6f7;
    backdrop-filter: blur(6px);
    gap: 0;
  }
  nav.show {
    display: flex;
    transform: translateX(0);
    box-shadow: 0 12px 40px rgba(0, 51, 153, 0.25);
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    left: 18px;
    right: auto;
    color: #003399;
    background: linear-gradient(135deg, #FFD700, #FFC700);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 13000;
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2);
    transition: all 0.3s ease;
  }
  .menu-toggle:hover {
    transform: scale(1.1) rotate(5deg);
  }
  nav a {
    width: 90%;
    margin: 0 auto 14px auto;
    padding: 15px 18px 15px 18px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    color: #003399;
    font-size: 1.13rem;
    border-radius: 14px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    background: transparent;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  nav a:hover {
    background: linear-gradient(135deg, #e6edfa, #ddeaf5);
    color: #FFD700;
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.15);
    transform: translateX(4px) scale(1.04);
  }
  .admin-link-mobile {
    margin-top: 38px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-weight: bold;
    border: 2.5px solid #2563eb;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
    font-size: 1.18rem;
    letter-spacing: 0.5px;
    order: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 94%;
    align-self: center;
    min-height: 54px;
    margin-bottom: 10px;
  }
  .admin-link-mobile i.fa-user-shield {
    font-size: 1.35em;
    margin-right: 10px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.3));
  }
  .admin-link-mobile:hover {
    background: linear-gradient(135deg, #003399, #FFD700);
    color: #003399;
    box-shadow: 0 6px 24px rgba(0, 51, 153, 0.3);
    border-color: #FFD700;
    transform: scale(1.05);
  }
}

/* ===== NAVBAR ===== */
nav {
  background: linear-gradient(to right, #f4f4f4, #fafafa);
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 8px;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeInDown 0.6s ease 0.2s backwards;
}

nav.show {
  display: flex;
}
nav a {
  margin: 5px 10px;
  text-decoration: none;
  color: #003399;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #FFD700;
  transition: left 0.3s ease;
  z-index: -1;
  border-radius: 10px;
}
nav a:hover {
  color: #003399;
  transform: scale(1.08) translateY(-2px);
}
nav a:hover::before {
  left: 0;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 180px;
    max-width: 260px;
    height: 96vh;
    position: fixed;
    top: 2vh;
    left: 1vw;
    z-index: 12000;
    padding: 38px 0 32px;
    transform: translateX(-110%);
    overflow-y: auto;
  }

  nav.show {
    display: flex;
    transform: translateX(0);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 280px;
  background-image: url('../recursos/fondomenu.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  animation: fadeInDown 0.8s ease;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 77, 141, 0.6) 0%, rgba(21, 58, 101, 0.55) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 1px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.15);
  color: white;
}

.hero p {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

/* ===== CATEGORÍAS HORIZONTAL ===== */
.categorias-container {
  background: #f5f5f5;
  padding: 12px 0 14px;
  border-bottom: 2px solid #FFD700;
  overflow: hidden;
  animation: fadeInDown 0.6s ease 0.3s backwards;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.menu-buscador {
  width: min(520px, calc(100% - 24px));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(28, 77, 141, 0.14);
  border-radius: 999px;
  padding: 10px 12px 10px 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.menu-buscador i {
  color: #1C4D8D;
  font-size: 0.95rem;
}

.menu-buscador input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  color: #172033;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
}

.menu-buscador input::placeholder {
  color: #8a94a6;
}

#limpiar-busqueda {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #eef2f8;
  color: #1C4D8D;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

#limpiar-busqueda.visible {
  display: flex;
}

#limpiar-busqueda:hover {
  background: #dde7f5;
  transform: scale(1.08);
}

.categorias-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.categorias-scroll::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: white;
  color: #1C4D8D;
  border: 2px solid #1C4D8D;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  flex-shrink: 0;
  animation: slideInRight 0.5s ease;
  position: relative;
  overflow: hidden;
}

.cat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.cat-btn:hover {
  background: #1C4D8D;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(28, 77, 141, 0.35);
  border-color: #FFD700;
}

.cat-btn-activo {
  background: linear-gradient(135deg, #1C4D8D, #153a65);
  color: #FFD700;
  border-color: #FFD700;
  box-shadow: 0 8px 24px rgba(28, 77, 141, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== CONTENEDOR DE PRODUCTOS ===== */
.productos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 48px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.menu-grid-enter .card {
  animation: floatUp 0.42s ease both;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  animation: scaleIn 0.5s ease;
  animation-fill-mode: both;
  border: 1px solid rgba(28, 77, 141, 0.10);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6) { animation-delay: 0.35s; }
.card:nth-child(n+7) { animation-delay: 0.4s; }

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14), 0 8px 16px rgba(15, 23, 42, 0.08);
  border-color: rgba(28, 77, 141, 0.15);
  animation: glow 2s ease-in-out;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

.card-imagen {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8edf8, #d0d8f0);
}

.card-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-imagen img {
  transform: scale(1.12) rotate(2deg);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #FFD700, #FFC700);
  color: #003399;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
  animation: slideInRight 0.4s ease;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.card-desc {
  margin: 0 0 14px;
  color: #777;
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-variantes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 8px 0;
}

.card-variantes span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9f0fb;
  color: #1C4D8D;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-variantes small {
  color: #6b7280;
  font-size: 0.78rem;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px solid #f0f0f0;
}

.price {
  font-weight: 800;
  font-size: 1.4rem;
  color: #003399;
  text-shadow: 0 1px 2px rgba(0, 51, 153, 0.1);
}

.btn-ver {
  background: linear-gradient(135deg, #1C4D8D, #153a65);
  color: #FFD700;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 18px rgba(28, 77, 141, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.btn-ver::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-ver:hover {
  transform: scale(1.2) rotate(8deg);
  color: #1C4D8D;
  background: linear-gradient(135deg, #FFD700, #FFC700);
  box-shadow: 0 10px 28px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}

.btn-ver:hover::before {
  width: 100px;
  height: 100px;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #1C4D8D 0%, #153a65 50%, #1C4D8D 100%);
  color: white;
  text-align: center;
  padding: 32px 0 24px 0;
  font-size: 1rem;
  margin-top: 50px;
  border-top: 4px solid #FFD700;
  box-shadow: 0 -8px 24px rgba(28, 77, 141, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent);
  animation: shimmer 3s infinite;
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 1;
}

footer a, footer .social-icons a {
  color: white;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

footer a:hover, footer .social-icons a:hover {
  color: #FFD700;
  filter: brightness(1.2);
}

footer .social-icons a {
  margin: 0 8px;
  font-size: 1.45em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer .metodos-pago img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

footer .social-icons a.whatsapp {
  background: #25D366;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  animation: slideInRight 0.5s ease;
  color: white;
}

footer .social-icons a.instagram {
  background: linear-gradient(45deg, #E1306C, #C13584);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  animation: slideInRight 0.5s ease 0.1s backwards;
  color: white;
}

footer .social-icons a.facebook {
  background: #1877F2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  animation: slideInRight 0.5s ease 0.2s backwards;
  color: white;
}

footer .social-icons a:hover {
  transform: translateY(-8px) scale(1.15);
  filter: brightness(1.1) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

footer .social-icons a[href*="whatsapp"]:hover { background: #25D366; }
footer .social-icons a[href*="instagram"]:hover { background: linear-gradient(45deg, #E1306C, #C13584); }
footer .social-icons a[href*="facebook"]:hover { background: #1877F2; }

.metodos-pago {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.pago {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pago:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.pago img {
  width: 45px;
  height: auto;
  border-radius: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

.pago span {
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
}

@media (min-width: 768px) {
  .metodos-pago {
    flex-direction: row;
    justify-content: center;
  }
}

@keyframes bell {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

footer .social-icons a:hover i {
  animation: bell 0.6s ease-in-out;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(28, 77, 141, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.5rem;
  animation: slideInRight 0.5s ease;
}

.floating-btn:hover {
  transform: scale(1.08) translateX(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  border-color: rgba(28, 77, 141, 0.22);
}

.floating-btn .tooltip {
  position: absolute;
  right: 70px;
  background: #fff;
  color: #1C4D8D;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(28, 77, 141, 0.12);
}

.floating-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

.floating-btn.nequi img,
.floating-btn.bancolombia img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nequi.shake {
  animation: bell 0.6s ease;
}

.whatsapp { color: #25D366; }
.instagram { color: #E4405F; }
.facebook { color: #1877F2; }

.floating-btn.pedido {
  color: #fff;
  background: #1C4D8D;
  border: 0;
}

.pedido-contador {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: none;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #FFD700;
  color: #153b70;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.floating-btn.pedido.confirmado {
  animation: pedidoConfirmado 0.35s ease;
}

@keyframes pedidoConfirmado {
  50% { transform: scale(1.12); }
}

.floating-btn i {
  font-size: 1.8rem;
  color: currentColor;
}

.floating-btn.bancolombia {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #fff;
  color: #1C4D8D;
  border: 1px solid rgba(28, 77, 141, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.5rem;
  animation: slideInRight 0.5s ease;
}

.floating-btn.bancolombia:hover {
  transform: scale(1.08) translateX(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.modal-content img {
  width: 200px;
  margin: 15px 0;
  animation: float 2s ease-in-out infinite;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal .close:hover {
  color: #FF9800;
  transform: scale(1.2) rotate(90deg);
}

/* ===== SECCIONES ===== */
section {
  margin: 16px auto;
  padding: 0 16px 28px;
  animation: fadeInUp 0.6s ease;
}

section h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 20px;
  color: #111;
  position: relative;
  padding-bottom: 12px;
  animation: slideInRight 0.5s ease 0.1s backwards;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #003399, #FFD700);
  border-radius: 2px;
}

#picadas    { background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%); border-left: 6px solid #FFD700; border-radius: 14px; }
#almuerzos  { background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%); border-left: 6px solid #2563eb; border-radius: 14px; }
#desayunos  { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border-left: 6px solid #FF9800; border-radius: 14px; }
#infantil   { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-left: 6px solid #22c55e; border-radius: 14px; }
#especiales { background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); border-left: 6px solid #ec4899; border-radius: 14px; }
#bebidas    { background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); border-left: 6px solid #06b6d4; border-radius: 14px; }
#licores    { background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%); border-left: 6px solid #eab308; border-radius: 14px; }
#cheladas   { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); border-left: 6px solid #8b5cf6; border-radius: 14px; }
#whisky     { background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%); border-left: 6px solid #d97706; border-radius: 14px; }
#cervezas   { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-left: 6px solid #f59e0b; border-radius: 14px; }
#raspados   { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-left: 6px solid #3b82f6; border-radius: 14px; }
#limonadas  { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-left: 6px solid #16a34a; border-radius: 14px; }
#jugos      { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border-left: 6px solid #ea580c; border-radius: 14px; }
#adiciones  { background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%); border-left: 6px solid #a855f7; border-radius: 14px; }

/* ===== CARGA DINÁMICA DEL MENÚ ===== */
.menu-cargando {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  color: #888;
  font-size: 1.1rem;
  animation: fadeIn 0.5s ease;
}

.spinner-menu {
  width: 50px;
  height: 50px;
  border: 5px solid #e0e0e0;
  border-top-color: #003399;
  border-right-color: #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(0, 51, 153, 0.2);
}

@keyframes giro {
  to { transform: rotate(360deg); }
}

.card-sin-imagen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8edf8, #d4ddf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #003399;
}

/* ===== MODAL DETALLE PRODUCTO ===== */
.modal-detalle {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-detalle.abierto {
  display: flex;
}

.modal-detalle-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

.modal-detalle-contenido {
  position: relative;
  background: #fff;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 28px 72px rgba(28, 77, 141, 0.35), 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: detalleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(28, 77, 141, 0.1);
}

@keyframes detalleIn {
  from {
    transform: translateY(40px) scale(0.92);
    opacity: 0;
    filter: blur(10px);
  }
  to   {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
}

.btn-cerrar-detalle {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-cerrar-detalle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg) scale(1.1);
}

.detalle-img-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8edf8, #d0d8f0);
  flex-shrink: 0;
  position: relative;
}

.detalle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: scaleIn 0.5s ease;
}

.detalle-sin-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #003399;
}

.detalle-info {
  padding: 24px 26px 28px;
}

.detalle-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFC700);
  color: #003399;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  animation: slideInRight 0.4s ease;
}

.detalle-info h2 {
  font-size: 1.55rem;
  color: #111;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.3;
}

.detalle-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 18px;
}

.detalle-precio {
  font-size: 1.9rem;
  font-weight: 800;
  color: #003399;
  margin: 0 0 24px;
  text-shadow: 0 2px 4px rgba(0, 51, 153, 0.1);
}

.detalle-variantes {
  gap: 10px;
  margin: 4px 0 18px;
}

.detalle-variantes h3 {
  margin: 0 0 2px;
  color: #172033;
  font-size: 1rem;
}

.detalle-variante {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #e4e8ef;
  border-radius: 14px;
  background: #fff;
  color: #172033;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.detalle-variante span {
  font-weight: 700;
}

.detalle-variante strong {
  color: #e72720;
  font-size: 1.05rem;
}

.detalle-variante:hover,
.detalle-variante.activa {
  border-color: #1C4D8D;
  background: #f4f7fc;
  transform: translateY(-1px);
}

.btn-agregar-pedido {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1C4D8D;
  color: white;
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-agregar-pedido:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 77, 141, 0.25);
}

.btn-agregar-pedido:active,
.btn-enviar-pedido:active {
  transform: translateY(1px);
}

/* ===== PEDIDO ACUMULABLE ===== */
.modal-pedido {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
}

.modal-pedido.abierto { display: block; }

.modal-pedido-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(8, 19, 38, 0.62);
}

.modal-pedido-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.2);
  animation: pedidoEntrada 0.25s ease both;
}

@keyframes pedidoEntrada {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.pedido-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #e5eaf2;
}

.pedido-header h2 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 1.35rem;
}

.pedido-header p {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
}

.btn-cerrar-pedido {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #dbe2ed;
  border-radius: 50%;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.pedido-lista {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 22px;
}

.pedido-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8edf4;
}

.pedido-item-info { min-width: 0; }

.pedido-item-info h3 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 0.96rem;
}

.pedido-item-info p {
  margin: 0 0 6px;
  color: #667085;
  font-size: 0.8rem;
}

.pedido-item-info strong {
  color: #1C4D8D;
  font-size: 0.92rem;
}

.pedido-item-acciones {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pedido-cantidad {
  display: grid;
  grid-template-columns: 34px 30px 34px;
  align-items: center;
  border: 1px solid #dbe2ed;
  border-radius: 10px;
  overflow: hidden;
}

.pedido-cantidad button {
  height: 34px;
  border: 0;
  background: #f4f7fb;
  color: #1C4D8D;
  font-size: 1.08rem;
  cursor: pointer;
}

.pedido-cantidad span {
  text-align: center;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 700;
}

.pedido-eliminar {
  width: 36px;
  height: 36px;
  border: 1px solid #f0cccc;
  border-radius: 10px;
  background: #fff;
  color: #c62828;
  cursor: pointer;
}

.pedido-resumen {
  padding: 18px 22px 22px;
  border-top: 1px solid #e5eaf2;
  background: #f8fafc;
}

.pedido-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #172033;
}

.pedido-total strong {
  color: #1C4D8D;
  font-size: 1.35rem;
}

.pedido-mesa label {
  display: block;
  margin-bottom: 7px;
  color: #172033;
  font-size: 0.88rem;
  font-weight: 700;
}

.pedido-mesa input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd5e3;
  border-radius: 11px;
  padding: 12px 14px;
  background: #fff;
  color: #172033;
  font: inherit;
  outline: none;
}

.pedido-mesa input:focus {
  border-color: #1C4D8D;
  box-shadow: 0 0 0 3px rgba(28, 77, 141, 0.12);
}

.pedido-mesa input.invalido { border-color: #c62828; }

.pedido-mesa small {
  display: block;
  min-height: 18px;
  margin: 5px 0 8px;
  color: #b42318;
  font-size: 0.76rem;
}

.btn-enviar-pedido {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: #168c45;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-vaciar-pedido {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.pedido-vacio {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  color: #667085;
}

.pedido-vacio i {
  margin-bottom: 16px;
  color: #1C4D8D;
  font-size: 2.5rem;
}

.pedido-vacio h3 {
  margin: 0 0 7px;
  color: #172033;
}

.pedido-vacio p {
  max-width: 26ch;
  margin: 0;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-img,
.skeleton-body span {
  background: linear-gradient(90deg, #e8edf3 25%, #f5f7fb 50%, #e8edf3 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.3s ease-in-out infinite;
}

.skeleton-img {
  height: 220px;
}

.skeleton-body {
  padding: 18px;
}

.skeleton-body span {
  display: block;
  height: 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.skeleton-body span:first-child {
  width: 72%;
  height: 18px;
}

.skeleton-body span:nth-child(2) {
  width: 92%;
}

.skeleton-body span:nth-child(3) {
  width: 45%;
  margin-bottom: 0;
}

.estado-vacio {
  max-width: 460px;
  margin: 22px auto 40px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(28, 77, 141, 0.10);
  border-radius: 16px;
  padding: 36px 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  animation: scaleIn 0.3s ease;
}

.estado-vacio i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef4fb;
  color: #1C4D8D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.estado-vacio h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 1.2rem;
}

.estado-vacio p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

.btn-volver-arriba {
  position: fixed;
  right: 20px;
  bottom: 338px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1C4D8D;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn-volver-arriba.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-volver-arriba:hover {
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .hero {
    height: 260px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .productos-container {
    padding: 18px 20px 36px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 220px;
  }

  .hero h2 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .categorias-container {
    padding: 10px 0 12px;
    border-bottom: 2px solid #FFD700;
  }

  .menu-buscador {
    width: calc(100% - 24px);
    margin-bottom: 10px;
    padding: 9px 12px 9px 14px;
  }

  .categorias-scroll {
    padding: 0 12px;
  }

  .cat-btn {
    padding: 9px 16px;
    font-size: 0.88rem;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }

  .card {
    border-radius: 16px;
  }

  .card-imagen {
    height: 200px;
  }

  .card-body {
    padding: 15px;
  }

  .card-body h3 {
    font-size: 1.02rem;
  }

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

  .price {
    font-size: 1.25rem;
  }

  .btn-ver {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header img {
    height: 50px;
  }

  footer {
    padding: 28px 0 20px 0;
    font-size: 0.95rem;
  }

  .pago img {
    width: 42px;
  }

  .floating-buttons {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .floating-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .floating-btn i {
    font-size: 1.7rem;
  }

  .floating-btn .tooltip {
    display: none;
  }

  .btn-volver-arriba {
    right: 16px;
    bottom: 372px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 200px;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .productos-container {
    padding: 14px 12px 32px;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .card-imagen {
    height: 140px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 0.95rem;
  }

  .card-desc {
    font-size: 0.78rem;
    margin: 0 0 8px;
  }

  .price {
    font-size: 1.1rem;
  }

  .btn-ver {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .categorias-scroll {
    padding: 0 10px;
  }

  .cat-btn {
    padding: 7px 13px;
    font-size: 0.82rem;
  }

  .categorias-container {
    padding: 9px 0 10px;
  }

  .menu-buscador input {
    font-size: 0.9rem;
  }

  header img {
    height: 40px;
  }

  header h1 {
    font-size: 1.2rem;
    margin-top: 6px;
  }

  .admin-btn {
    display: none;
  }

  footer {
    padding: 20px 0 16px 0;
    font-size: 0.88rem;
  }

  .pago {
    padding: 10px 14px;
    gap: 10px;
  }

  .pago img {
    width: 38px;
  }

  .floating-buttons {
    bottom: 12px;
    right: 12px;
    gap: 8px;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .floating-btn i {
    font-size: 1.5rem;
  }

  .floating-btn.nequi img,
  .floating-btn.bancolombia img {
    width: 28px;
    height: 28px;
  }

  .btn-volver-arriba {
    right: 12px;
    bottom: 332px;
    width: 40px;
    height: 40px;
  }

  .detalle-img-wrap {
    height: 200px;
  }

  .detalle-info {
    padding: 18px 20px 22px;
  }

  .detalle-info h2 {
    font-size: 1.4rem;
  }

  .detalle-precio {
    font-size: 1.6rem;
  }

  .modal-detalle-contenido {
    max-width: 95vw;
  }
}

@media (max-width: 360px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .hero {
    height: 170px;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  header h1 {
    font-size: 1rem;
  }

  header img {
    height: 35px;
  }

  .categorias-container {
    padding: 8px 0 9px;
  }

  .cat-btn {
    padding: 6px 11px;
    font-size: 0.75rem;
  }

  .card-imagen {
    height: 120px;
  }

  .card-body {
    padding: 10px;
  }

  .card-body h3 {
    font-size: 0.85rem;
  }

  .card-desc {
    font-size: 0.7rem;
  }

  .price {
    font-size: 0.95rem;
  }

  .btn-ver {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  footer {
    padding: 16px 0 12px 0;
    font-size: 0.8rem;
  }

  .pago {
    padding: 8px 10px;
    gap: 8px;
  }

  .pago img {
    width: 32px;
  }

  .floating-buttons {
    bottom: 8px;
    right: 8px;
    gap: 7px;
  }

  .floating-btn {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .floating-btn i {
    font-size: 1.4rem;
  }

  .floating-btn.nequi img,
  .floating-btn.bancolombia img {
    width: 25px;
    height: 25px;
  }

  .btn-volver-arriba {
    right: 8px;
    bottom: 301px;
    width: 38px;
    height: 38px;
  }

  .detalle-info {
    padding: 16px 18px 20px;
  }

  .detalle-info h2 {
    font-size: 1.2rem;
  }

  .detalle-precio {
    font-size: 1.4rem;
  }
}

@media (max-width: 420px) {
  .pedido-header,
  .pedido-lista,
  .pedido-resumen {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pedido-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .pedido-item-acciones {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-pedido-panel,
  .floating-btn.pedido.confirmado {
    animation: none;
  }
}
