:root {
    --page: #f5f1ea;
    --surface: #ffffff;
    --surface-2: #fbf8f3;
    --ink: #162033;
    --ink-2: #263449;
    --muted: #697386;
    --line: #e5ded3;
    --line-2: #efe8dc;
    --brand: #1f3d35;
    --brand-2: #2f5f4f;
    --gold: #b88945;
    --gold-soft: #f2e2c9;
    --green-soft: #e7f0ec;
    --danger-soft: #fff4ef;
    --shadow: 0 22px 70px rgba(22, 32, 51, .10);
    --shadow-soft: 0 12px 38px rgba(22, 32, 51, .075);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 15px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(184, 137, 69, .16), transparent 28rem),
        radial-gradient(circle at 92% 6%, rgba(47, 95, 79, .14), transparent 28rem),
        linear-gradient(180deg, #fbf7ef 0%, var(--page) 42rem);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(229, 222, 211, .9);
    box-shadow: 0 10px 34px rgba(22, 32, 51, .045);
    backdrop-filter: blur(18px);
}
.top-strip {
    border-bottom: 1px solid var(--line-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.top-strip .wrap {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.top-strip span { display: inline-flex; align-items: center; gap: 7px; }
.top-strip span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }
.nav-wrap {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto minmax(320px, 560px) auto;
    align-items: center;
    gap: 24px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    min-width: 0;
}
.logo:hover { color: var(--ink); }
.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #132721);
    color: #fff;
    font-weight: 900;
    letter-spacing: -.08em;
    box-shadow: 0 14px 28px rgba(31, 61, 53, .24);
}
.logo-text { display: grid; line-height: 1.05; }
.logo-text strong {
    font-size: 16px;
    max-width: 270px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logo-text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 16px; font-size: 14px; font-weight: 800; }
.main-nav a { color: var(--ink-2); }
.main-nav a:hover { color: var(--brand-2); }
.search-form, .hero-search, .claim-form { width: 100%; }
.search-form { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 10px 24px rgba(22, 32, 51, .05); }
.search-form::before { content: "⌕"; color: var(--gold); font-size: 20px; margin-left: 10px; line-height: 1; }
.search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 10px 4px;
    color: var(--ink);
}
.search-form button,
.hero-search button,
.claim-form button,
.primary-btn,
.secondary-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(31, 61, 53, .20);
    white-space: nowrap;
}
.search-form button:hover,
.hero-search button:hover,
.claim-form button:hover,
.primary-btn:hover { background: var(--brand-2); color: #fff; }
.secondary-btn { background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
.secondary-btn:hover { color: var(--brand-2); border-color: var(--gold-soft); background: var(--surface-2); }
.main-content { min-height: 68vh; padding-bottom: 78px; }

/* Home */
.hero {
    padding: 54px 0 24px;
}
.hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(22, 32, 51, .92), rgba(31, 61, 53, .92)),
        radial-gradient(circle at 85% 12%, rgba(184, 137, 69, .38), transparent 24rem);
    color: #fff;
    box-shadow: var(--shadow);
    padding: clamp(34px, 6vw, 76px);
}
.hero-shell::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    bottom: -210px;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,.055);
    pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 880px; }
.eyebrow, .section-head span, .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--gold);
    font-weight: 950;
}
.eyebrow::before, .section-head span::before, .kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .8; }
.hero h1 {
    margin: 12px 0 16px;
    max-width: 780px;
    font-size: clamp(40px, 7vw, 84px);
    line-height: .96;
    letter-spacing: -.06em;
}
.hero p {
    color: rgba(255,255,255,.78);
    max-width: 690px;
    font-size: clamp(17px, 2vw, 21px);
    margin: 0 0 28px;
}
.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 780px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 46px rgba(0,0,0,.22);
}
.hero-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 14px 18px;
    color: var(--ink);
    font-size: 16px;
}
.hero-search button { padding: 14px 24px; background: var(--gold); box-shadow: 0 14px 26px rgba(184, 137, 69, .28); }
.hero-search button:hover { background: #a77839; }
.quick-links { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; color: rgba(255,255,255,.70); font-size: 14px; }
.quick-links a {
    color: #fff;
    background: rgba(255,255,255,.105);
    border: 1px solid rgba(255,255,255,.16);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 850;
}
.quick-links a:hover { background: rgba(255,255,255,.18); }
.stats-bar { margin-top: -24px; position: relative; z-index: 3; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.stat-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}
.stat-card strong { display: block; font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.stat-card span { display: block; margin-top: 8px; color: var(--muted); font-weight: 850; }
.discovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }
.panel-list, .content-card, .side-card, .page-hero, .business-card, .claim-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.panel-list { padding: clamp(22px, 3vw, 32px); }
.section-block { margin-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2, .page-hero h1 { margin: 5px 0 0; line-height: 1.08; letter-spacing: -.04em; color: var(--ink); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { margin: 0; color: var(--muted); max-width: 520px; }
.lista-tags { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lista-tags a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    padding: 10px 12px 10px 14px;
    color: var(--ink-2);
    font-weight: 850;
}
.lista-tags a::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); flex: 0 0 auto; }
.lista-tags a span { margin-left: auto; color: var(--muted); font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.lista-tags a:hover { transform: translateY(-1px); border-color: var(--gold-soft); background: #fff; box-shadow: 0 12px 20px rgba(22,32,51,.055); }

/* Listados */
.resultados-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 900;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
}
.resultados-info::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--brand-2); }
.grid-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.business-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.business-card:hover { transform: translateY(-5px); border-color: var(--gold-soft); box-shadow: var(--shadow); }
.card-media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, #ddd5c7, #f7f2e9); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .38s ease, filter .38s ease; }
.business-card:hover .card-media img { transform: scale(1.055); filter: saturate(1.05) contrast(1.04); }
.image-effect { position: relative; }
.image-effect::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,32,51,0) 45%, rgba(22,32,51,.36)); pointer-events: none; }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #ded6ca, #faf6ef); }
.img-placeholder::before { content: "Unternehmen"; color: rgba(22,32,51,.35); font-weight: 950; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.rating-pill {
    position: absolute;
    right: 13px;
    bottom: 13px;
    z-index: 2;
    background: rgba(255,255,255,.94);
    color: #8b5b19;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.card-content { padding: 17px 18px 18px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.badge-categoria {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    background: var(--green-soft);
    color: var(--brand);
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 950;
}
.badge-categoria.big { font-size: 12px; padding: 7px 12px; }
.city-mini { color: var(--muted); font-size: 12px; font-weight: 850; white-space: nowrap; }
.card-content h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.card-content h3 a { color: var(--ink); }
.card-content h3 a:hover { color: var(--brand-2); }
.card-direccion { min-height: 42px; font-size: 13px; color: var(--muted); margin: 0 0 15px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 13px; }
.card-rating { color: #8b5b19; font-size: 13px; font-weight: 900; }
.details-link { color: var(--brand); font-size: 13px; font-weight: 950; }
.paginacion { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 38px; font-size: 14px; flex-wrap: wrap; }
.paginacion a, .pagina-actual { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; font-weight: 850; box-shadow: 0 8px 18px rgba(22,32,51,.05); }
.sin-resultados { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; color: var(--muted); font-weight: 800; }

/* Páginas interiores */
.page-hero { padding: clamp(26px, 4vw, 42px); margin-top: 34px; }
.page-hero.small { margin-top: 30px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.page-hero p { color: var(--muted); margin: 10px 0 0; font-weight: 700; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 800; }
.breadcrumbs a { color: var(--brand-2); }

/* Ficha */
.ficha-detalle { padding-top: 32px; }
.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 24px;
    margin-bottom: 24px;
}
.profile-intro {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--ink), var(--brand));
    color: #fff;
    padding: clamp(30px, 5vw, 54px);
    box-shadow: var(--shadow);
}
.profile-intro::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; border: 62px solid rgba(255,255,255,.055); }
.profile-intro > * { position: relative; z-index: 1; }
.profile-intro h1 { margin: 14px 0 12px; font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.055em; }
.intro-line { color: rgba(255,255,255,.78); font-size: 17px; max-width: 720px; }
.rating-grande { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; color: #fff; font-size: 22px; font-weight: 950; }
.rating-grande span { color: rgba(255,255,255,.68); font-size: 14px; font-weight: 800; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.profile-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.profile-media { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; min-height: 100%; }
.main-photo, .side-photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #ddd5c7; box-shadow: var(--shadow-soft); min-height: 360px; }
.main-photo img, .side-photo img, .galeria-imagenes img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-photo figcaption { position: absolute; left: 13px; bottom: 13px; z-index: 2; color: #fff; background: rgba(22,32,51,.72); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 950; backdrop-filter: blur(8px); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.detail-main { display: grid; gap: 20px; }
.content-card, .side-card { padding: clamp(22px, 3vw, 30px); }
.content-card h2, .side-card h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.16; letter-spacing: -.035em; }
.content-card p:first-child { margin-top: 0; }
.content-card p:last-child { margin-bottom: 0; }
.descripcion { font-size: 16px; }
.side-card { position: sticky; top: 112px; }
.datos-contacto h2 { margin-bottom: 6px; }
.contact-note { color: var(--muted); margin: 0 0 18px; font-size: 14px; font-weight: 700; }
.contact-row { display: grid; gap: 5px; border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 14px; }
.contact-row span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 950; }
.contact-row a, .contact-row strong { color: var(--ink); font-weight: 900; overflow-wrap: anywhere; }
.sidebar-cta { display: grid; gap: 10px; margin-top: 18px; }
.hours-box table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 12px; }
.hours-box td, .hours-box th { border-bottom: 1px solid var(--line-2); padding: 10px 8px; text-align: left; }
/* Galería de imágenes: 3 columnas centradas, miniaturas cuadradas hasta 250x250 */
.galeria-imagenes {
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 250px));
    gap: 14px;
    align-items: start;
    justify-content: center;
}
.gallery-item {
    display: block;
    justify-self: center;
    position: relative;
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #e2dacd, #f5efe6);
    box-shadow: 0 10px 28px rgba(22, 32, 51, .10);
    isolation: isolate;
}
.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22,32,51,0) 52%, rgba(22,32,51,.13));
    opacity: .55;
    pointer-events: none;
}
.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: inherit !important;
    transition: transform .24s ease, filter .24s ease;
}
.gallery-item:hover img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.03);
}

.claim-box { background: linear-gradient(135deg, #fff, var(--danger-soft)); }
.claim-form { display: grid; gap: 14px; margin-top: 16px; }
.claim-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 900; }
.claim-form input, .claim-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
}
.claim-form input:focus, .claim-form textarea:focus, .hero-search input:focus, .search-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,137,69,.12); }
.claim-form textarea { resize: vertical; }
.success-message { background: #e8f7ed; border: 1px solid #a8dfb9; color: #1f6d37; border-radius: 14px; padding: 12px 14px; font-weight: 850; }
.hp-field { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); padding: 38px 0 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.footer-grid strong { color: var(--ink); font-size: 17px; }
.footer-grid p { margin: 8px 0 0; max-width: 620px; }
.footer-grid nav { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 850; }
.copyright { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13px; }

@media (max-width: 1020px) {
    .nav-wrap { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
    .main-nav { justify-content: flex-start; }
    .profile-hero, .detail-layout { grid-template-columns: 1fr; }
    .profile-media { min-height: 360px; }
    .side-card { position: static; }
}
@media (max-width: 820px) {
    .top-strip { display: none; }
    .hero { padding-top: 28px; }
    .hero-shell { border-radius: 26px; }
    .hero-search { grid-template-columns: 1fr; border-radius: 24px; }
    .hero-search button { border-radius: 16px; }
    .stats-grid, .discovery-grid { grid-template-columns: 1fr; }
    .section-head { display: block; }
    .section-head p { margin-top: 8px; }
    .profile-media { grid-template-columns: 1fr; }
    .main-photo, .side-photo { min-height: 260px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; justify-content: center; }
    .gallery-item { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1 / 1; border-radius: 14px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .logo-mark { width: 42px; height: 42px; border-radius: 14px; }
    .logo-text strong { max-width: 220px; }
    .search-form { border-radius: 18px; align-items: stretch; display: grid; grid-template-columns: 1fr; padding: 8px; }
    .search-form::before { display: none; }
    .search-form button { border-radius: 14px; }
    .lista-tags { grid-template-columns: 1fr; }
    .grid-fichas { grid-template-columns: 1fr; }
    .profile-actions { display: grid; }
    .profile-actions a { width: 100%; }
}

/* Patch: header normal, no fijo */
.site-header {
    position: static !important;
    top: auto !important;
    z-index: 10;
}

/* Buscador robusto */
.search-page-hero {
    margin-top: 34px;
    margin-bottom: 22px;
}
.search-panel {
    background: linear-gradient(135deg, rgba(31,61,53,.98), rgba(22,32,51,.94));
    border-radius: var(--radius-xl);
    padding: 34px;
    color: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.search-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(184,137,69,.22);
}
.search-panel h1,
.search-panel p,
.search-panel form { position: relative; z-index: 1; }
.search-panel h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 56px); line-height: .96; letter-spacing: -.05em; }
.search-panel p { margin: 0 0 22px; max-width: 760px; color: rgba(255,255,255,.78); font-weight: 650; }
.search-advanced {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(150px, .8fr) auto;
    gap: 10px;
    align-items: end;
}
.search-advanced label { display: grid; gap: 6px; color: rgba(255,255,255,.74); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.search-advanced input,
.search-advanced select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 14px 14px;
    outline: none;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.search-advanced button {
    border: 0;
    border-radius: 16px;
    padding: 15px 22px;
    font-weight: 950;
    color: var(--brand);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0,0,0,.16);
}
.search-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom: 18px; }
.search-summary p { margin:0; color:var(--muted); font-weight: 700; }
.search-suggestions { display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px; }
.search-suggestions a { background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 12px; font-weight:850; color:var(--ink-2); box-shadow:0 8px 20px rgba(22,32,51,.04); }
.search-suggestions a:hover { color: var(--brand); transform: translateY(-1px); }
.sin-resultados { background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px; color:var(--muted); font-weight:750; }

.adsense-block {
    width: 100%;
    margin: 0 0 18px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    border: 1px dashed rgba(184,137,69,.35);
    overflow: hidden;
}
.adsense-before-company { margin-bottom: 18px; }

.impressum-content { font-size: 16px; }
.impressum-content h1,
.impressum-content h2,
.impressum-content h3 { line-height: 1.12; }
.impressum-content a { font-weight: 800; }

@media (max-width: 980px) {
    .search-advanced { grid-template-columns: 1fr 1fr; }
    .search-advanced .full-field { grid-column: 1 / -1; }
    .search-advanced button { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .search-panel { padding: 24px 18px; border-radius: 22px; }
    .search-advanced { grid-template-columns: 1fr; }
    .search-summary { align-items:flex-start; flex-direction:column; }
    .nav-wrap { min-height: auto; }
    .top-strip { display: none; }
}

@media (max-width: 390px) {
    .gallery-grid { grid-template-columns: minmax(0, 250px); }
    .gallery-item { max-width: 250px; }
}

/* Patch: galería con zoom interno, sin abrir URLs externas */
.gallery-item {
    border: 0 !important;
    padding: 0 !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: zoom-in;
    text-align: inherit;
}
.gallery-zoom-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(22, 32, 51, .74);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}
.gallery-item:hover .gallery-zoom-hint,
.gallery-item:focus-visible .gallery-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}
.gallery-item:focus-visible {
    outline: 3px solid rgba(184,137,69,.52);
    outline-offset: 3px;
}
body.lightbox-open {
    overflow: hidden;
}
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 46px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 16, 25, .78);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}
.image-lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(920px, 94vw);
    max-height: 88vh;
    border-radius: 22px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    transform: scale(.965);
    transition: transform .2s ease;
}
.image-lightbox.is-open .image-lightbox__figure {
    transform: scale(1);
}
.image-lightbox__figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(920px, 94vw);
    max-height: 88vh;
    object-fit: contain;
}
.image-lightbox__close {
    position: fixed;
    right: clamp(16px, 3vw, 34px);
    top: clamp(16px, 3vw, 34px);
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #162033;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 38px rgba(0,0,0,.24);
}
.image-lightbox__close:hover {
    transform: scale(1.04);
}
@media (max-width: 640px) {
    .gallery-zoom-hint { opacity: 1; transform: none; font-size: 10px; min-height: 24px; padding: 0 8px; }
    .image-lightbox { padding: 14px; }
    .image-lightbox__figure,
    .image-lightbox__figure img { max-width: 94vw; max-height: 82vh; }
    .image-lightbox__close { width: 42px; height: 42px; font-size: 28px; }
}

/* Patch: reclamaciones sin URL editable, CTAs menos agresivos, mapa y relacionadas */
.compact-actions .secondary-btn {
    background: rgba(255,255,255,.10);
    color: #fff;
    border-color: rgba(255,255,255,.20);
    box-shadow: none;
}
.compact-actions .secondary-btn:hover {
    background: rgba(255,255,255,.17);
    color: #fff;
    border-color: rgba(255,255,255,.32);
}
.claim-url-row {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(255,255,255,.66);
}
.claim-url-row span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 850;
}
.claim-url-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.muted-cta {
    border-top: 1px solid var(--line-2);
    padding-top: 14px;
}
.text-link-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 850;
}
.text-link-cta:hover {
    background: #fff;
    color: var(--brand);
    border-color: var(--gold-soft);
}
.map-card {
    margin-top: 16px;
    border-top: 1px solid var(--line-2);
    padding-top: 16px;
}
.map-card iframe {
    width: 100%;
    height: 230px;
    display: block;
    border: 0;
    border-radius: 16px;
    background: var(--surface-2);
    box-shadow: 0 10px 26px rgba(22, 32, 51, .08);
}
.map-card a {
    display: inline-flex;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 900;
    color: var(--brand);
}
.related-section {
    margin-top: 44px;
}
.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
@media (max-width: 560px) {
    .compact-actions { display: flex; }
    .compact-actions a { width: auto; }
    .map-card iframe { height: 210px; }
}


/* Patch responsive polish: header móvil, ficha y relacionadas */
@media (min-width: 1021px) {
    .related-section .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1060px;
    }
    .related-section .business-card {
        min-width: 0;
    }
}

@media (max-width: 1020px) {
    .site-header {
        background: rgba(255,255,255,.97) !important;
        box-shadow: 0 8px 24px rgba(22,32,51,.045);
    }
    .nav-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 10px;
    }
    .logo {
        align-self: flex-start;
    }
    .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        padding: 6px 1px 2px;
        border-top: 1px solid var(--line-2);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav a {
        flex: 0 0 auto;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(31,61,53,.065);
        color: var(--ink-2);
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
    }
    .main-nav a:hover {
        background: rgba(31,61,53,.12);
        color: var(--brand);
    }
    .side-card {
        position: static !important;
    }
}

@media (max-width: 760px) {
    body {
        background:
            radial-gradient(circle at 0% 0%, rgba(184,137,69,.13), transparent 20rem),
            radial-gradient(circle at 100% 7%, rgba(47,95,79,.12), transparent 20rem),
            linear-gradient(180deg, #fbf7ef 0%, var(--page) 34rem);
    }
    .main-content {
        padding-bottom: 52px;
    }
    .ficha-detalle {
        padding-top: 14px;
    }
    .breadcrumbs {
        margin: 0 0 14px;
        font-size: 12px;
        line-height: 1.35;
    }
    .profile-hero {
        gap: 14px;
        margin-bottom: 18px;
    }
    .profile-intro {
        border-radius: 26px;
        padding: 28px 24px;
        box-shadow: 0 16px 42px rgba(22,32,51,.12);
    }
    .profile-intro::after {
        width: 250px;
        height: 250px;
        right: -110px;
        top: -94px;
        border-width: 48px;
    }
    .profile-intro h1 {
        margin-top: 12px;
        margin-bottom: 10px;
        font-size: clamp(31px, 10vw, 44px);
        line-height: 1.02;
        letter-spacing: -.05em;
    }
    .intro-line {
        font-size: 15px;
        line-height: 1.55;
        max-width: 100%;
    }
    .rating-grande {
        font-size: 18px;
        margin-top: 12px;
    }
    .rating-grande span {
        font-size: 12px;
    }
    .profile-actions {
        margin-top: 18px;
        gap: 8px;
    }
    .profile-actions a {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 13px;
    }
    .profile-media {
        min-height: 0;
        gap: 10px;
    }
    .main-photo,
    .side-photo {
        min-height: 220px;
        border-radius: 22px;
    }
    .content-card,
    .side-card {
        border-radius: 20px;
        padding: 20px 18px;
    }
    .content-card h2,
    .side-card h2 {
        font-size: 21px;
    }
    .detail-main {
        gap: 16px;
    }
    .map-card iframe {
        height: 235px;
    }
    .related-section {
        margin-top: 34px;
    }
    .related-section .section-head {
        margin-bottom: 16px;
    }
    .related-section .section-head h2 {
        font-size: clamp(26px, 8vw, 34px);
    }
}

@media (max-width: 640px) {
    .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }
    .logo-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        box-shadow: 0 10px 22px rgba(31, 61, 53, .18);
    }
    .logo-text strong {
        max-width: calc(100vw - 96px);
        font-size: 18px;
        letter-spacing: -.025em;
    }
    .logo-text small {
        font-size: 12px;
    }
    .search-form {
        display: flex !important;
        align-items: center !important;
        gap: 5px;
        padding: 5px !important;
        border-radius: 18px !important;
        box-shadow: 0 8px 22px rgba(22, 32, 51, .055) !important;
        background: rgba(255,255,255,.98);
    }
    .search-form::before { display: none !important; }
    .search-form input {
        min-height: 42px;
        padding: 9px 8px 9px 12px !important;
        font-size: 14px;
    }
    .search-form button {
        min-height: 42px;
        min-width: 86px;
        padding: 0 13px !important;
        border-radius: 13px !important;
        font-size: 14px;
        box-shadow: none;
    }
    .main-nav {
        padding-bottom: 4px;
    }
    .ficha-detalle {
        padding-top: 12px;
    }
    .claim-form button {
        min-height: 44px;
    }
    .related-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .footer-grid nav {
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .wrap {
        padding-left: 12px;
        padding-right: 12px;
    }
    .nav-wrap {
        padding-top: 10px;
        padding-bottom: 8px;
        gap: 8px;
    }
    .logo-text strong {
        font-size: 17px;
    }
    .search-form input {
        font-size: 13px;
    }
    .search-form button {
        min-width: 78px;
        font-size: 13px;
    }
    .main-nav a {
        font-size: 12px;
        padding: 7px 9px;
    }
    .profile-intro {
        padding: 26px 21px;
        border-radius: 24px;
    }
    .profile-intro h1 {
        font-size: clamp(30px, 12vw, 40px);
    }
    .intro-line {
        font-size: 14px;
    }
    .badge-categoria.big {
        font-size: 11px;
        padding: 6px 10px;
    }
}
