/* Guia Restaurant — Design System v3
 * Navy + Gold, diferenciado de 50 Best
 * Layout: listado lineal con filtros dropdown
 */

:root {
    /* Core */
    --navy:        #1B365D;
    --navy-dark:   #0F2440;
    --navy-light:  #2A4A7F;
    --gold:        #D4A843;
    --gold-light:  #E8CA6E;

    /* Surfaces */
    --bg:          #F7F5F0;
    --bg-alt:      #EDE9DF;
    --surface:     #FFFFFF;
    --dark-surface:#1B2130;

    /* Text */
    --text:        #1B1B1B;
    --text-light:  #6B7280;
    --text-inverse:#FFFFFF;

    /* Borders */
    --border:      #D8D3C8;
    --border-light:#EAE6DC;

    /* Radius */
    --radius:      8px;
    --radius-lg:   12px;

    /* Typography */
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display:'Playfair Display', Georgia, 'Times New Roman', serif;
    --max-width:   1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background: var(--surface);
    padding: 12px 0;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--border-light);
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: var(--navy); }

/* ============================================================
   HERO — diferenciado de 50 Best: más claro, con foto de fondo
   ============================================================ */
.hero {
    background: linear-gradient(160deg, #1a2d47 0%, #1B365D 50%, #1e4068 100%);
    color: var(--text-inverse);
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}
.hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.75;
    margin-bottom: 32px;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-box {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    position: relative;
}
.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 0.95rem;
    outline: none;
    color: var(--text);
    font-family: var(--font-sans);
}
.search-input::placeholder { color: #9CA3AF; }
.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    padding: 16px 32px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-sans);
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-primary:hover { background: var(--gold-light); }

/* ============================================================
   FILTER BAR — dropdowns
   ============================================================ */
.filter-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}
.filter-bar .container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}
.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 140px;
    transition: border-color 0.2s;
}
.filter-select:focus { outline: none; border-color: var(--navy); }
.filter-clear {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    margin-left: auto;
}
.filter-clear:hover { color: var(--navy); }

/* ============================================================
   FEATURED
   ============================================================ */
.featured-section { padding: 40px 0 16px; }
.featured-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 20px;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.featured-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
}
.featured-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.featured-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.featured-placeholder {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
}
.featured-card .cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 14px 2px;
}
.featured-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    padding: 2px 14px;
}
.featured-card .loc {
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 2px 14px 14px;
}
@media (max-width: 768px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card h3 { font-size: 0.95rem; }
}

/* ============================================================
   RESULTS (listado lineal)
   ============================================================ */
.results-section { padding: 32px 0 48px; }

.results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.results-count {
    font-size: 0.95rem;
    color: var(--text-light);
}
.results-count strong { color: var(--text); }

/* Linear card */
.result-card {
    display: flex;
    gap: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, border-color 0.2s;
    margin-bottom: 12px;
    align-items: center;
}
.result-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: var(--border);
}
.result-img {
    width: 100px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-alt);
}
.result-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--navy);
    font-weight: 700;
    background: linear-gradient(135deg, #E8E3D8, #D8D3C8);
}
.result-info { flex: 1; min-width: 0; }
.result-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}
.result-cat {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.result-loc {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}
.result-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0.4;
}
.result-card:hover .result-arrow { opacity: 0.8; color: var(--navy); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.page-link {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.page-link:hover, .page-link.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
}
.no-results h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-section {
    padding: 48px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}
.featured-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.featured-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 22px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .featured-grid { grid-template-columns: 1fr; } }

.featured-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s;
}
.featured-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.featured-card .cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.featured-card h3 { font-size: 1rem; margin-bottom: 2px; }
.featured-card .loc { font-size: 0.82rem; color: var(--text-light); }

/* ============================================================
   RESTAURANT DETAIL v3
   ============================================================ */
.restaurant-detail { padding: 32px 0 48px; }

/* Hero */
.resto-hero {
    display: flex;
    gap: 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 0;
    overflow: hidden;
    margin-bottom: 32px;
    align-items: stretch;
    min-height: 220px;
}
.resto-image {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}
.resto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.resto-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    padding: 20px;
}
.resto-hero-info {
    padding: 28px 28px 28px 0;
    flex: 1;
    min-width: 0;
}
.resto-hero-info .cat {
    color: var(--navy);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
    margin-bottom: 4px;
}
.resto-hero-info h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}
.resto-hero-info .subcat {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.resto-hero-info .loc {
    color: var(--navy-light);
    font-weight: 500;
    font-size: 0.95rem;
}
.resto-hero-info .addr {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-top: 8px;
}

/* Grid layout */
.resto-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 768px) {
    .resto-grid { grid-template-columns: 1fr; }
    .resto-hero { flex-direction: column; }
    .resto-image { width: 100%; height: 200px; }
    .resto-hero-info { padding: 20px; }
}

/* Contact rows */
.contact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.contact-value {
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-all;
}

/* Censored / blurred */
.contact-row.censored .contact-value.blurred {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}
.contact-row.censored {
    position: relative;
}

/* Map */
.map-card {
    margin-top: 0;
}
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    height: 280px !important;
}
.map-link {
    margin-top: 10px;
    font-size: 0.85rem;
}
.map-link a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}
.map-link a:hover { text-decoration: underline; }

/* Sidebar */
.resto-sidebar .info-card {
    position: sticky;
    top: 80px;
}

/* Summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--text-light); }
.summary-row strong { color: var(--text); font-weight: 600; }

.no-data {
    color: var(--text-light);
    font-style: italic;
    padding: 12px 0;
}

/* Override old */
.back-link { display: none; }
.restaurant-header { display: none; }
.info-cards { display: block; }

/* ============================================================
   Shared card styles
   ============================================================ */
.info-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.info-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 18px;
    color: var(--navy-dark);
}
.extended {
    background: linear-gradient(135deg, #FAF8F2, #FDFBF7);
    border-color: var(--gold);
}
.register-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.input {
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}
.input:focus { outline: none; border-color: var(--navy); }
.small { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; }
.success { color: #2D8B4E; font-weight: 500; }
.quota {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 8px;
}
.footer p { font-size: 0.85rem; margin-bottom: 6px; }
.footer h4 {
    color: var(--text-inverse);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; line-height: 2; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .hero { padding: 48px 0 40px; }
    .hero h1 { font-size: 1.8rem; }
    .search-box { flex-direction: column; }
    .search-input { border-radius: var(--radius) var(--radius) 0 0; }
    .btn-primary { border-radius: 0 0 var(--radius) var(--radius); width: 100%; }
    .filter-bar .container { flex-direction: column; align-items: stretch; }
    .filter-select { width: 100%; }
    .restaurant-header { flex-direction: column; text-align: center; }
    .result-card { flex-direction: column; align-items: flex-start; }
    .result-img { width: 100%; height: 140px; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}
