@charset "utf-8";

/* =====================
    RESET BÁSICO Y FUENTES
    ===================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }

/* =====================
    NAVBAR / HEADER
    ===================== */
.navbar { background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 1000; }
.navbar-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 15px 20px; width: 100%; }
.logo img { height: 50px; flex-shrink: 0; }
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 32px; height: 26px; background: none; border: none; cursor: pointer; z-index: 2001; }
.menu-toggle span { display: block; height: 4px; width: 100%; background: #002d72; border-radius: 2px; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(8px, -6px); }
.nav-links { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.nav-links a { text-decoration: none; color: #333; font-size: 16px; font-weight: 600; padding: 14px 18px; display: flex; align-items: center; gap: 8px; transition: background 0.2s ease, color 0.2s ease; border-radius: 8px; }
.nav-links a:hover { background: #ffcc00; color: #002d72; }

/* =====================
    TITULAR PARALAJE
    ===================== */
.titulo-paralaje { background: url("https://ecuapixel.com/restaurantes/img/fondo-restaurantes-general.jpg") no-repeat center center / cover; background-attachment: fixed; height: 40vh; display: flex; justify-content: center; align-items: center; text-align: center; color: #fff; position: relative; }
.contenido-titulo { background: rgba(0, 0, 0, 0.5); padding: 30px; border-radius: 12px; max-width: 800px; }
.contenido-titulo h1 { font-size: 2.5rem; }

/* =====================
    TÍTULOS DE SECCIÓN
    ===================== */
.section-title { text-align: center; font-size: 1.8rem; color: #333; margin: 40px 0 20px; }

/* =====================
    CARRUSEL DE CATEGORÍAS
    ===================== */
.carousel-container { position: relative; max-width: 1200px; margin: 0 auto; }
.carousel-track { display: flex; overflow-x: auto; gap: 15px; /* <-- AJUSTE REALIZADO AQUÍ */ padding: 10px 20px; flex-wrap: nowrap; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { cursor: pointer; text-align: center; flex-shrink: 0; width: 85px; }
.carousel-img { width: 80px; height: 80px; border-radius: 50%; background-size: cover; background-position: center; margin: 0 auto 10px; border: 3px solid #eee; transition: transform 0.2s ease, border-color 0.2s ease; }
.carousel-item:hover .carousel-img { transform: scale(1.05); border-color: #ffcc00; }
.carousel-item h3 { font-size: 0.9rem; color: #333; font-weight: 600; }

.carousel-container::before, .carousel-container::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30px; z-index: 2; pointer-events: none; }
.carousel-container::before { left: 0; background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent); }
.carousel-container::after { right: 0; background: linear-gradient(to left, rgba(255, 255, 255, 1), transparent); }

/* =====================
    FILTROS Y BÚSQUEDA
    ===================== */
.filtros-container { padding: 20px; background-color: #f9f9f9; border-top: 1px solid #eee; }
.search-bar-container { position: relative; margin-bottom: 15px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.search-bar-container .fa-search { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #aaa; }
#search-input { width: 100%; padding: 12px 15px 12px 40px; font-size: 1rem; border-radius: 25px; border: 1px solid #ddd; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
#search-input:focus { border-color: #002d72; box-shadow: 0 0 5px rgba(0, 45, 114, 0.2); }
.filtros-rapidos-container { max-width: 1200px; margin: 0 auto; }
.filtros-rapidos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn-filtro { display: flex; align-items: center; padding: 8px 15px; background: #fff; color: #333; border: 1px solid #ddd; border-radius: 20px; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease; cursor: pointer; flex-shrink: 0; }
.btn-filtro i { margin-right: 5px; }
.btn-filtro:hover { background: #f0f0f0; border-color: #ccc; }
.btn-filtro.active { background: #002d72; color: #fff; border-color: #002d72; font-weight: bold; }

/* =====================
    GRID Y TARJETAS DE RESTAURANTES
    ===================== */
.locales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 20px; max-width: 1200px; margin: 0 auto; justify-content: center; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); text-align: center; max-width: 100%; }
.local-card { display: flex; flex-direction: column; text-align: left; padding: 20px; height: 100%; text-decoration: none; color: #333; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.local-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); transform: translateY(-3px); }
.local-card h3 { margin-bottom: 5px; font-size: 1.4rem; }
.local-card.cerrado { opacity: 0.6; background-color: #f5f5f5; }
.rating { color: #ffcc00; font-size: 1.1rem; margin-bottom: 10px; }
.promo-tag { display: inline-block; background-color: #ff0000; color: #fff; font-size: 0.75rem; font-weight: bold; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.logistics-info { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.descripcion { font-size: 0.95rem; color: #555; margin-bottom: 15px; flex-grow: 1; }
.botones { margin-top: auto; gap: 8px; display: flex; justify-content: flex-start; }
.btn { display: inline-block; padding: 8px 12px; background: #002d72; color: #fff; border-radius: 6px; text-decoration: none; font-size: 0.9rem; transition: background 0.2s ease; border: none; cursor: pointer; text-align: center; }
.btn:hover { background: #ffcc00; color: #002d72; }
.btn.whatsapp { background: #25d366; }
.btn.whatsapp:hover { background: #128c4a; }
.no-results-message { text-align: center; padding: 40px 20px; font-size: 1.2rem; color: #777; }

/* =====================
    FOOTER
    ===================== */
footer { background-color: #333; color: #fff; padding: 40px 20px; margin-top: 20px; }
.footer-main { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-around; }
.footer-col { flex: 1 1 250px; margin-bottom: 20px; text-align: center; }
.footer-col img { max-width: 250px; margin: 0 auto 10px; }
.whatsapp-link { font-weight: bold; color: #25d366; display: inline-block; text-decoration: none; font-size: 16px; }
.whatsapp-link i { margin-right: 5px; }
.footer-social h4 { font-size: 18px; margin-bottom: 15px; color: #ffcc00; }
.social-icons { display: flex; justify-content: center; gap: 15px; }
.social-icons a { color: #fff; font-size: 24px; transition: color 0.3s; }
.social-icons a:hover { color: #ffcc00; }
.footer-legal { max-width: 1200px; margin: 0 auto; border-top: 1px solid #444; text-align: center; padding-top: 15px; margin-top: 15px; font-size: 13px; }

/* =====================
    DISEÑO RESPONSIVE
    ===================== */
@media (max-width: 767px) {
    .menu-toggle { display: flex; }
    .nav-links { position: absolute; top: 100%; right: 0; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); flex-direction: column; width: 100%; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
    .nav-links.active { max-height: 500px; }
    .locales-grid { grid-template-columns: 1fr; }
    .filtros-rapidos { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; -ms-overflow-style: none; scrollbar-width: none; }
    .filtros-rapidos::-webkit-scrollbar { display: none; }
}
