/* GUÍA GOURMET AEHT - Diseño Minimalista y Limpio */

:root {
    --primary: #2C8BCC;
    --button: #FCA311;
    --dark: #000000;
    --light: #f9f9f9;
    --white: #ffffff;
    --text: #000000;
    --text-light: #666666;
    --border: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================== SUPPORT BANNER ==================== */
.support-banner {
    background: var(--light);
    padding: 2rem;
    text-align: center;
}

.support-text {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.support-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-logos img {
    max-height: 50px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.support-logos img:hover {
    opacity: 1;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.dropdown { position: relative; }

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: var(--light);
    color: var(--primary);
}

/* ==================== HERO ==================== */
.hero {
    background: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.8rem;
    color: var(--button);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-search, .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary, .btn-search {
    background: var(--button);
    color: var(--white);
}

.btn-primary:hover, .btn-search:hover {
    background: #ff9600;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--button);
    color: var(--white);
}

/* ==================== FILTROS ==================== */
.filtros {
    background: var(--light);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.filtros-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: flex-end;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
}

.filtro-grupo label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
}

.filtro-grupo select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text);
}

.filtro-grupo select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(44, 139, 204, 0.1);
}

/* ==================== MAPA ==================== */
.seccion-mapa {
    background: var(--light);
    padding: 3rem 2rem;
}

.seccion-mapa h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.mapa-principal {
    width: 100%;
    height: 500px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

/* ==================== SECCIONES ==================== */
section {
    padding: 3rem 2rem;
}

section h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.seccion-restaurantes {
    background: var(--white);
}

/* ==================== GRID RESTAURANTES ==================== */
.restaurantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.restaurante-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.restaurante-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.restaurante-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--light);
    cursor: pointer;
}

.restaurante-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.restaurante-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.categoria {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ubicacion {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.descripcion {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.restaurante-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.restaurante-card-footer a {
    color: var(--button);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.restaurante-card-footer a:hover {
    color: #ff9600;
}

.badge {
    display: inline-block;
    background: var(--button);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== PAGINACION ==================== */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.paginacion a, .paginacion .activo {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.paginacion a:hover {
    background: var(--button);
    color: var(--white);
    border-color: var(--button);
}

.paginacion .activo {
    background: var(--button);
    color: var(--white);
    border-color: var(--button);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--button);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--button);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--button);
    text-decoration: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar-menu { gap: 1rem; font-size: 0.9rem; }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .restaurantes-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
    .support-logos { gap: 1rem; }
    .support-logos img { max-height: 40px; }
}

@media (max-width: 480px) {
    .restaurantes-grid { grid-template-columns: 1fr; }
    .navbar-menu { gap: 0.5rem; }
    .filtros-row { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.loading, .error { padding: 2rem; text-align: center; color: var(--text-light); }
.error { color: var(--dark); }
