/* ================= VARIABLES ================= */
:root {
  --primary-color: #ff6b81; /* Rosa Frutilla */
  --secondary-color: #70a1ff; /* Azul Cielo */
  --bg-color: #fff0f3; /* Fondo Crema Rosada */
  --text-dark: #2f3542;
  --card-radius: 16px;
}

/* ================= BASE ================= */
body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding-bottom: 80px; /* Espacio para el botón flotante */
}

.bg-pattern {
  background-image: radial-gradient(#ff6b8122 1px, transparent 1px);
  background-size: 20px 20px;
}

h1, h2, h3, .h1, .h2, .h3, .modal-title, .btn {
  font-family: 'Fredoka', sans-serif;
}

.cursor-pointer { cursor: pointer; }

/* ================= COLORES ================= */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

.btn-primary { 
  background-color: var(--primary-color); 
  border-color: var(--primary-color); 
  color: white;
}
.btn-primary:hover, .btn-primary:active {
  background-color: #ff4757;
  border-color: #ff4757;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ================= CATEGORÍAS ================= */
#categorias-container {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 5px;
  scrollbar-width: none; 
}
#categorias-container::-webkit-scrollbar { display: none; }

.cat-btn {
  white-space: nowrap;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  border: none;
  background: white;
  color: #777;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s;
}
.cat-btn.active {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 107, 129, 0.4);
}

/* ================= PRODUCTOS ================= */
.product-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.card-img-wrapper {
  height: 160px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}
.card-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover img { transform: scale(1.08); }

.price-tag {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ================= MODAL SABORES ================= */
.flavor-card {
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.2s;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}
.flavor-checkbox:checked + .flavor-card {
    border-color: var(--primary-color);
    background-color: #fff0f3;
    color: var(--primary-color);
}
.flavor-checkbox:disabled + .flavor-card {
    opacity: 0.5;
    background-color: #f8f9fa;
    cursor: not-allowed;
    border-color: #eee;
}

/* ================= DELIVERY CARDS ================= */
.delivery-card {
  border: 1px solid #dee2e6;
  background-color: #fff;
  transition: all 0.2s ease;
  color: #6c757d;
  cursor: pointer;
}
.btn-check:checked + .delivery-card {
  background-color: #fff0f3;
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(255, 107, 129, 0.15);
  transform: translateY(-2px);
}
.btn-check:checked + .delivery-card .badge.bg-light {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

/* ================= ANIMACIONES ================= */
@keyframes popIn {
  0% { transform: scale(0.8) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.animate-up { animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

.hover-scale:hover { transform: scale(1.02); }