/* =================================================
   ESTILOS GENERALES - LLUEVE CAFÉ
   ================================================= */
/* === Estilos generales === */
body {
  background-color: #faf6f2;
  font-family: 'Merriweather', serif;
  color: #4a3f35;
}

/* Marca y logo */
.navbar-brand {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #e5d4b8 !important;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}
.logo-redondo {
  width: 60px;   /* nuevo ancho */
  height: 60px;  /* nueva altura */
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 10px rgba(229, 212, 184, 0.7);
  object-fit: cover;
}


/* === Navbar de categos=== */
.nav-pills .nav-link.active {
  background-color: #bd803a95 !important; /* verde */
  color: white !important;
  
}
/* Cuando pasas el mouse por encima */
.nav-pills .nav-link:hover {
  background-color: #f0ecec; /* Un gris más oscuro */
  color: #000 !important; /* Asegura que no se ponga azul */
}


/* === Navbar === */
.custom-navbar {
  background-color: #fffaf6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-redondo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #4a3f35;
}

.nav-link {
  color: #4a3f35;
  transition: 0.3s;
  border-radius: 8px;
  padding: 8px 14px;
}

/* =================================================
   BARRA DE CATEGORÍAS (Sticky Nav)
   ================================================= */
.nav-scroll {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 35px;
    position: sticky;
    top: 75px; 
    z-index: 1000;
    border: 1px solid #eee;
}

/* Scroll horizontal invisible para móviles */
#menu-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 8px;
}

#menu-nav::-webkit-scrollbar {
    display: none;
}

.nav-pills .nav-link {
    white-space: nowrap;
    color: #6c757d;
    font-weight: 500;
    border-radius: 10px;
    padding: 10px 18px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-pills .nav-link.active {
    background-color: #b2744c !important; /* Tu café distintivo */
    color: white !important;
    box-shadow: 0 4px 10px rgba(178, 116, 76, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f0ecec;
    color: #000 !important;
}

/* =================================================
   TARJETAS DEL MENÚ (Cards)
   ================================================= */
.card {
    border: none;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.img-container {
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 15px; 
    margin-bottom: 10px;
}

.menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.card:hover .menu-img {
    transform: scale(1.1);
}

.card-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #222;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

/* AJUSTE: Letra de costos más pequeña y equilibrada */
.card-text {
    font-size: 0.95rem; /* Tamaño reducido para el texto "Orden:" */
    font-weight: 600;
    color: #b2744c;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* El precio numérico apenas un poco más destacado que el texto */
.card-text span:last-child {
    font-size: 1.05rem;
    font-weight: 700;
}

/* =================================================
   SECCIONES Y TÍTULOS
   ================================================= */
.section-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #4a3f35;
    text-align: center;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background-color: #b2744c;
    display: block;
    margin: 12px auto;
    border-radius: 10px;
}

/* =================================================
   FOOTER
   ================================================= */
.footer-custom {
    background-color: #4a3f35;
    color: #fff;
    margin-top: 50px;
}

.footer-link {
    color: #e6c7a2;
    text-decoration: none;
}

/* =================================================
   RESPONSIVO (Móviles)
   ================================================= */
@media (max-width: 576px) {
    .img-container {
        height: 140px;
    }
    
  .card-title { font-size: 0.9rem; }
    
   .card-text { font-size: 0.85rem; }

    .nav-pills .nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    body {
        padding-top: 70px;
    }

    
}

@media (max-width: 376px) {
    .img-container {
        height: 125px;
    }
}

/* =================================================
   AJUSTE PARA COMPUTADORA (GRID DE TARJETAS)
   ================================================= */
@media (min-width: 992px) {
    /* Contenedor de las tarjetas */
    .row { 
        display: grid;
        /* Crea columnas de máximo 300px que se ajustan solas */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px; /* Espacio entre tarjetas */
        justify-content: center;
        display: flex; /* Mantiene compatibilidad con Bootstrap */
        flex-wrap: wrap;
    }

    .col-md-4, .col-lg-3 { /* O las clases que uses en tu HTML */
        flex: 0 0 300px; /* Tamaño fijo para que no se estiren */
        max-width: 300px;
    }

    .img-container {
        height: 200px; /* Un poco más altas para que luzcan en PC */
    }

       .card-text { font-size: 1.20rem; }

}