/* styles-responsive.css - Estilos mejorados para mobile-first */

/* ===== VARIABLES CSS ===== */
:root {
  
  --gray-dark: #6c757d;
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
  --border-radius: 15px;
  --border-radius-sm: 8px;
}

/* ===== ESTILOS GENERALES ===== */
body {
  font-family: "mr-eaves-xl-sans-narrow", sans-serif;
  overflow-x: hidden;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
#header-lc-logo {
  max-width: 150px;
  height: auto;
}

.navbar-nav .nav-item .nav-link {
  font-size: 18px;
}

/* ===== BOTONES FLOTANTES ===== */
.mobile-cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: none;
  color: white;
  font-size: 24px;
  display: none; /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-cart-button:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

.home-icon-fixed {
  position: fixed;
  top: 85px;
  left: 20px;
  z-index: 999;
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.home-icon-fixed a {
  color: white;
  font-size: 24px;
  text-decoration: none;
}

.home-icon-fixed:hover {
  transform: scale(1.1);
  background-color: var(--primary-dark);
}



/* ===== BANNERS ===== */
.banner-section {
  margin: 10px 0;
}

.banner-item {
  padding: 5px;
}

.banner-item img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-light);
}

/* ===== CAROUSEL ===== */
.carousel-container {
  margin: 20px 0;
}

.carousel-inner {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== SECCIÓN DE PEDIDO ===== */
.order-banner {
  position: relative;
  margin: 20px auto;
  max-width: 650px;
  text-align: center;
}

.order-banner img {
  width: 100%;
  height: auto;
}

.order-text {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: bold;
  margin-top: 15px;
  line-height: 1.3;
}

/* ===== CARDS DE PRODUCTOS ===== */
.products-grid {
  gap: 20px;
}

.product-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}

.product-card .card-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-card .card-text {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.4;
}

/* ===== FORMULARIOS DE PRODUCTOS ===== */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.quantity-input {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  padding: 8px !important;
  text-align: center !important;
  border-radius: var(--border-radius-sm);
  border: 2px solid #dee2e6;
  font-size: 14px;
}

.quantity-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 103, 27, 0.25);
}

.add-to-cart-btn {
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: rgb(3, 86, 36);
  transform: translateY(-1px);
}

/* ===== MODALES ===== */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-medium);
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
  font-weight: bold;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  padding: 15px 20px;
}

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

/* Tablets */
@media (max-width: 992px) {
  .order-text {
    font-size: 20px;
  }
  
  .product-card .card-img-top {
    height: 180px;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  /* Mostrar botón flotante del carrito */
  .mobile-cart-button {
    display: flex !important;
  }
  
  /* Ajustar botón de home */
  .home-icon-fixed {
    width: 45px;
    height: 45px;
    top: 75px;
    left: 15px;
  }
  
  .home-icon-fixed a {
    font-size: 20px;
  }
  
  /* Ajustar WhatsApp button */
  
  
  /* Banners responsivos */
  .banner-section {
    margin: 15px 0;
  }
  
  /* Texto de pedido */
  .order-text {
    font-size: 18px;
    padding: 0 15px;
  }
  
  /* Grid de productos */
  .products-grid {
    gap: 15px;
  }
  
  .product-card .card-img-top {
    height: 160px;
  }
  
  .product-card .card-body {
    padding: 15px;
  }
  
  .product-card .card-footer {
    padding: 15px;
  }
  
  /* Formulario de productos en móvil */
  .product-form {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  .quantity-input {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 6px !important;
  }
  
  .add-to-cart-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Modales en móvil */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .modal-body {
    padding: 15px;
  }
  
  /* Carousel responsive */
  .carousel-item img {
    max-height: 250px;
    object-fit: cover;
  }
}

/* Mobile Small */
@media (max-width: 576px) {
  /* Container ajustado */
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Banners apilados verticalmente */
  .banner-section .row {
    flex-direction: column;
  }
  
  .banner-item {
    margin-bottom: 10px;
  }
  
  /* Texto de pedido más pequeño */
  .order-text {
    font-size: 16px;
    line-height: 1.2;
  }
  
  /* Cards de productos optimizadas */
  .product-card .card-img-top {
    height: 140px;
  }
  
  .product-card .card-title {
    font-size: 1.1rem;
  }
  
  .product-card .card-text {
    font-size: 0.85rem;
  }
  
  /* Botones más compactos */
  .mobile-cart-button {
    width: 55px;
    height: 55px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
  
  .add-to-cart-btn {
    font-size: 26px;
    width: 50%;
    padding: 6px 8px;
  }
  
  /* Inputs de cantidad más pequeños */
  .quantity-input {
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
  }
}

/* ===== UTILIDADES ===== */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-light) !important;
}

.rounded-custom {
  border-radius: var(--border-radius) !important;
}

/* ===== FIXES PARA BOOTSTRAP ===== */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none !important; 
  margin: 0 !important; 
}

input[type="number"] {
  -moz-appearance: textfield !important;
  width: 25% !important;
}

/* Footer personalizado */
#footer {
  background: var(--primary-color) !important;
}

/* Ajustes del navbar para móvil */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
}