/* ============================================
   COMIDA DE BARRIO - ESTILOS PERSONALIZADOS
   Mobile First Approach
   ============================================ */

/* Variables CSS */
:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --dark-color: #2c3e50;
  --light-bg: #fafafa;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Base Styles - Mobile First */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  line-height: 1.6;
}

/* Typography Hierarchy */
h1, .h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2, .h2 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

h3, .h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

h4, .h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Navbar Customization */
.navbar-brand {
  font-size: 1.25rem;
  color: var(--dark-color) !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--dark-color) !important;
  text-decoration: none;
}

.navbar-brand i {
  font-size: 1rem;
}

.search-box-nav {
  max-width: 200px;
  font-size: 0.875rem;
}

/* Profile icon - ahora es un icono de Bootstrap */

/* Banner Hero Section */
.banner-hero {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 3rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Search Section */
.search-section {
  padding: 2rem 0;
}

.input-group-text {
  border-right: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.tag-btn {
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
}

.tag-btn:hover,
.tag-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Map Section */
.map-box {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Featured Section */
.featured-section {
  padding: 3rem 0;
}

.restaurant-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.restaurant-card .card-img-top {
  transition: transform 0.3s ease;
}

.restaurant-card:hover .card-img-top {
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Menu Page Styles */
.menu-header {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.restaurant-info h1 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.restaurant-meta {
  color: var(--text-light);
  font-size: 1rem;
}

.menu-tabs {
  border-bottom: 2px solid var(--border-color);
}

.menu-tabs .nav-link {
  color: var(--text-light);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.menu-tabs .nav-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.menu-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: none;
}

.menu-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.menu-item-info h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.menu-item-description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.price-btn {
  background-color: #f0f0f0;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.price-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.05);
}

/* Cart Page Styles */
.cart-section {
  padding: 2rem 0;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.order-item-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.order-item-quantity {
  color: var(--text-light);
  font-size: 0.875rem;
}

.order-item-restaurant {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.order-item-price {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1.125rem;
}

.payment-summary {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.payment-line {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.payment-line:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.25rem;
  padding-top: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 10px;
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.checkout-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Contact Form Styles */
.contact-section {
  padding: 3rem 0;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* History & Services Pages */
.content-section {
  padding: 3rem 0;
}

.content-section h2 {
  color: var(--dark-color);
  margin-bottom: 2rem;
}

.content-section p {
  text-align: justify;
  margin-bottom: 1.5rem;
}

.content-image {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

/* Accessibility - Contrast Ratio 4.5:1 minimum */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
  h1, .h1 {
    font-size: 2.5rem;
  }

  h2, .h2 {
    font-size: 2rem;
  }

  .banner-hero {
    padding: 4rem 0;
  }

  .menu-item-content {
    flex-direction: row;
    align-items: center;
  }

  .menu-item-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
  }

  .search-box-nav {
    max-width: 250px;
  }
}

/* Responsive Design - Desktop */
@media (min-width: 992px) {
  h1, .h1 {
    font-size: 3rem;
  }

  h2, .h2 {
    font-size: 2.5rem;
  }

  .banner-hero {
    padding: 5rem 0;
    min-height: 70vh;
  }

  .menu-item-content {
    gap: 2rem;
  }

  .menu-item-image {
    width: 400px;
    height: 250px;
  }

  .search-box-nav {
    max-width: 300px;
  }

  .container {
    max-width: 1200px;
  }
}

/* Favoritos Styles */
.favorite-btn,
.favorite-item-btn {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.favorite-btn:hover,
.favorite-item-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.favorite-btn i,
.favorite-item-btn i {
  font-size: 1.25rem;
  color: #dc3545;
  transition: all 0.3s ease;
}

.favorite-btn.active i,
.favorite-item-btn.active i {
  color: #dc3545;
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

.cursor-pointer {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cursor-pointer:hover {
  transform: scale(1.05);
}

/* Modal Styles */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-body img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Print Styles */
@media print {
  .navbar,
  .cta-section,
  footer {
    display: none;
  }
}

