/**
 * Hotel Premium Room Service - Estilos Elegantes
 * Diseño lujo con espacios blancos generosos y tipografía premium
 */

:root {
  --color-primary: #2c3e50;
  --color-primary-light: #34495e;
  --color-accent: #d4af37;
  --color-success: #27ae60;
  --color-danger: #e74c3c;
  --color-light: #f8f9fa;
  --color-lighter: #ecf0f1;
  --color-dark: #2c3e50;
  --color-muted: #7f8c8d;
  --color-border: #e0e0e0;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-hard: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: var(--color-light);
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--color-primary);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Navbar */
.navbar {
  background: white !important;
  box-shadow: var(--shadow-soft);
  border-bottom: 3px solid var(--color-accent);
  padding: 1rem 0 !important;
}

.navbar-brand {
  color: var(--color-primary) !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--color-primary) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.nav-link:hover {
  color: var(--color-accent) !important;
  transform: translateY(-2px);
}

/* Sidebar Habitación */
#sidebarHabitacion {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#sidebarHabitacion h5 {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.alert {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  background: #fafbfc;
}

/* Contenedor Principal */
#mainContainer {
  background: var(--color-light);
}

/* Menu Container */
#menuContainer {
  background: white;
  padding: 2rem !important;
}

/* Categorías Nav */
.nav-pills .nav-link {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
  border-radius: 25px;
  padding: 0.5rem 1.25rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-pills .nav-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(212, 175, 55, 0.08);
}

.nav-pills .nav-link.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* Grid de Platos */
.plato-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plato-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.plato-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.plato-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plato-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.plato-card-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plato-card-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-accent);
  margin-top: auto;
}

/* Carrito */
#carritoItems {
  background: white;
  border-radius: 8px;
  padding: 1rem;
}

.carrito-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.carrito-item:hover {
  box-shadow: var(--shadow-soft);
}

.carrito-item-info {
  flex: 1;
}

.carrito-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.carrito-item-qty {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.carrito-item-price {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.05rem;
  margin-right: 0.5rem;
}

.carrito-item-remove {
  background: none;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.carrito-item-remove:hover {
  transform: scale(1.2);
  color: #c0392b;
}

/* Resumen */
.resumen-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-lighter);
}

.resumen-item:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-accent);
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 2px solid var(--color-accent);
}

/* Botones */
.btn-primary {
  background: var(--color-accent) !important;
  border: none;
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
  background: #c9a227 !important;
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-outline-secondary {
  border: 2px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  border-color: var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Form Controls */
.form-control, .form-select {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-hard);
}

.modal-header {
  border-bottom: 1px solid var(--color-lighter);
  padding: 1.5rem;
}

.modal-header h5 {
  color: var(--color-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--color-lighter);
  padding: 1rem;
}

/* Alertas */
.alert {
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.alert-info {
  background: rgba(0, 123, 255, 0.05);
  border-color: rgba(0, 123, 255, 0.2);
  color: #0056b3;
}

.alert-success {
  background: rgba(39, 174, 96, 0.05);
  border-color: rgba(39, 174, 96, 0.2);
  color: #1e5a2a;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.05);
  border-color: rgba(231, 76, 60, 0.2);
  color: #b71c1c;
}

/* Badge */
.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 20px;
}

.badge.bg-danger {
  background: var(--color-danger) !important;
}

.badge.bg-success {
  background: var(--color-success) !important;
}

/* Clases de Utilidad */
.text-gold {
  color: var(--color-accent) !important;
}

.text-muted {
  color: var(--color-muted) !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.loading {
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-lighter);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c9a227;
}

/* Responsive */
@media (max-width: 991px) {
  .col-lg-3, .col-lg-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  #sidebarHabitacion {
    border-right: none !important;
    border-bottom: 1px solid var(--color-border);
    min-height: auto !important;
  }

  #menuContainer {
    border-top: 1px solid var(--color-border);
  }

  #carritoSidebar {
    border-top: 1px solid var(--color-border);
    height: auto !important;
  }

  .plato-card img {
    height: 150px;
  }

  .nav-link {
    margin-left: 0;
    margin-right: 0.5rem;
  }
}

@media (max-width: 576px) {
  .plato-card img {
    height: 120px;
  }

  .plato-card-body {
    padding: 0.75rem;
  }

  .navbar {
    padding: 0.5rem 0 !important;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* Animaciones */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* ============================================
   PANTALLA DE BIENVENIDA (WELCOME SCREEN)
   ============================================ */

.hotel-welcome {
  background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
  padding: 40px 20px;
  min-height: 100vh;
}

.welcome-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 0.6s ease;
}

.welcome-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.welcome-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  color: var(--color-accent);
  margin: 10px 0 0 0;
  font-weight: 300;
  letter-spacing: 2px;
}

/* Info Cards */
.info-card {
  background: white;
  border-radius: 12px;
  padding: 35px 25px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.info-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: inline-block;
}

.info-card h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.info-text {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.info-district,
.info-time {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.info-district i,
.info-time i {
  margin-right: 5px;
  color: var(--color-accent);
}

/* Phone Link */
.phone-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.phone-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Map Card */
.map-card {
  padding: 0 !important;
  overflow: hidden;
  border: none;
}

.map-card iframe {
  border-radius: 12px;
  display: block;
  width: 100%;
}

/* Call-to-Action Card */
.cta-card {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 40px 30px;
}

.cta-card h4 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-card .btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-card .btn:hover:not(:disabled) {
  background: #e6c100;
  transform: scale(1.02);
}

.cta-card .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* QR Alert */
.alert-info {
  background: #e3f2fd !important;
  border: 2px solid var(--color-accent) !important;
  color: var(--color-primary) !important;
  border-radius: 12px;
  padding: 20px;
}

.alert-info .alert-heading {
  color: var(--color-accent);
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.alert-info .alert-heading i {
  margin-right: 10px;
}

.alert-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Toast Notifications */
.toast-notification {
  background: white;
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-medium);
  animation: slideInRight 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
  min-width: 300px;
}

.toast-notification.success {
  border-left-color: var(--color-success);
}

.toast-notification.error {
  border-left-color: var(--color-danger);
}

.toast-notification.warning {
  border-left-color: #f39c12;
}

.toast-notification.info {
  border-left-color: var(--color-accent);
}

.toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-message {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.toast-close {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: var(--color-primary);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.toast-notification.removing {
  animation: slideOutRight 0.3s ease-out forwards;
}

/* ========== PRODUCT CARDS & MENU STYLES ========== */

/* Sidebar Categorías */
.categoria-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 10px !important;
  padding-right: 10px !important;
  font-size: 0.95rem;
}

.categoria-btn:hover {
  color: var(--color-primary);
  background: var(--color-lighter);
  border-left-color: var(--color-accent);
}

.categoria-btn.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-lighter);
  border-left-color: var(--color-accent);
}

/* Grid de Productos */
.producto-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hard);
  border-color: var(--color-accent);
}

.producto-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-lighter) 0%, var(--color-light) 100%);
  position: relative;
  overflow: hidden;
}

.producto-img:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1));
  opacity: 0;
}

.producto-card:hover .producto-img:after {
  opacity: 1;
}

.producto-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.producto-badge.new {
  background: linear-gradient(135deg, var(--color-accent), #f39c12);
}

.producto-badge.hot {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.producto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.producto-titulo {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-primary);
  line-height: 1.3;
  min-height: 2.6em;
}

.producto-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.producto-rating .stars {
  color: #f39c12;
}

.producto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.producto-precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-success);
}

.btn-agregar-card {
  background: var(--color-accent);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-agregar-card:hover {
  background: #b8860b;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Filtros */
.filtro-precio {
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filtro-precio.active {
  background-color: var(--color-accent) !important;
  color: white !important;
  border-color: var(--color-accent) !important;
}

/* Búsqueda */
#searchInput {
  font-size: 0.95rem;
  padding: 10px 12px !important;
}

#searchInput:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
  border-color: var(--color-accent) !important;
}

/* Carrito Items */
.carrito-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--color-light);
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid var(--color-accent);
  transition: all 0.3s ease;
  align-items: center;
}

.carrito-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.carrito-item-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.carrito-item-info {
  flex: 1;
  min-width: 0;
}

.carrito-item-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carrito-item-cantidad {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.carrito-item-precio {
  font-weight: 700;
  color: var(--color-success);
  font-size: 0.95rem;
  white-space: nowrap;
}

.carrito-item-remove {
  background: none;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.carrito-item-remove:hover {
  color: #c0392b;
  transform: scale(1.2);
}

.carrito-scroll {
  scroll-behavior: smooth;
}

.carrito-scroll::-webkit-scrollbar {
  width: 6px;
}

.carrito-scroll::-webkit-scrollbar-track {
  background: var(--color-lighter);
  border-radius: 10px;
}

.carrito-scroll::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 10px;
}

.carrito-scroll::-webkit-scrollbar-thumb:hover {
  background: #b8860b;
}

/* Modal mejorado */
.modal-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-hard);
}

/* Responsive */
@media (max-width: 1200px) {
  #mainContainer .row .col-xl-2 {
    display: none;
  }

  #mainContainer .row .col-xl-7 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #mainContainer .row .col-xl-3 {
    flex: 0 0 100%;
    max-width: 100%;
    position: static !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .welcome-title {
    font-size: 2rem;
  }

  .welcome-subtitle {
    font-size: 1rem;
  }

  .info-card {
    padding: 25px 20px;
  }

  .info-card h3 {
    font-size: 1.2rem;
  }

  .info-text {
    font-size: 1rem;
  }

  .toast-notification {
    max-width: 90vw;
    min-width: auto;
  }

  #platosGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .producto-card {
    border-radius: 8px;
  }

  .producto-img {
    height: 150px;
  }
}
