:root {
    --color-bg: #f6f7fb;
    --color-surface: #ffffff;
    --color-text: #1a1f36;
    --color-muted: #5c6578;
    --color-primary: #1d4ed8;
    --color-primary-dark: #1e40af;
    --color-accent: #0ea5e9;
    --color-border: #e2e8f0;
    --color-open: #059669;
    --color-closed: #dc2626;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
    --radius: 14px;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --container: 1180px;
    --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: 1rem; left: 1rem; z-index: 9999;
    padding: .75rem 1rem; background: #000; color: #fff; clip: auto;
}

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 200;
}
.header-shell {
    display: flex; align-items: center; gap: 1.5rem;
    padding: .85rem 0;
}
.header-bar {
    display: flex; align-items: center; gap: 1rem;
    flex-shrink: 0;
}
.logo { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-text strong {
    font-family: var(--font-display); font-size: 1.05rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo-text small { color: var(--color-muted); font-size: .75rem; }

.nav-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    cursor: pointer;
    padding: 0;
    align-items: center; justify-content: center;
    color: var(--color-text);
}
.nav-icon { display: block; flex-shrink: 0; }
.nav-icon-close { display: none; }
.site-header.is-open .nav-icon-menu { display: none; }
.site-header.is-open .nav-icon-close { display: block; }
.site-header.is-open .nav-toggle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.header-panel {
    display: flex; align-items: center; gap: 1.5rem;
    flex: 1; min-width: 0;
}
.main-nav { display: flex; gap: 1rem; flex-wrap: nowrap; }
.main-nav a { color: var(--color-muted); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }
.header-search {
    display: flex; flex-direction: column; gap: .35rem;
    margin-left: auto; flex: 1 1 220px; max-width: 320px;
}
.header-search-label {
    display: none;
    font-size: .8rem; font-weight: 600;
    color: var(--color-muted); text-transform: uppercase;
    letter-spacing: .04em;
}
.header-search-row {
    display: flex; width: 100%;
}
.header-search input {
    flex: 1; border: 1px solid var(--color-border); border-right: 0;
    border-radius: 999px 0 0 999px; padding: .55rem .9rem; font: inherit; min-width: 0;
    background: var(--color-surface);
}
.header-search button {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    border: 1px solid var(--color-primary); background: var(--color-primary); color: #fff;
    border-radius: 0 999px 999px 0; padding: .55rem 1rem; cursor: pointer; font: inherit;
    font-weight: 600; white-space: nowrap;
}
.header-search button svg { flex-shrink: 0; }

@media (min-width: 961px) {
    .header-shell {
        gap: 0;
        padding: .9rem 0;
    }
    .header-bar {
        flex-shrink: 0;
        padding-right: 2rem;
        margin-right: 2rem;
        border-right: 1px solid var(--color-border);
    }
    .header-panel {
        flex: 1;
        justify-content: space-between;
        gap: 2.5rem;
        min-width: 0;
    }
    .main-nav {
        gap: 1.75rem;
        flex-shrink: 0;
    }
    .main-nav a {
        font-size: .925rem;
        padding: .35rem 0;
    }
    .header-search {
        flex: 0 1 300px;
        max-width: 300px;
        margin-left: auto;
    }
    .header-search button svg { display: none; }
}

.nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.42);
    z-index: 150;
    opacity: 0;
    transition: opacity .25s ease;
}
.nav-backdrop.is-visible {
    display: block;
    opacity: 1;
}
body.menu-open { overflow: hidden; }

/* Breadcrumb */
.breadcrumb { padding: .75rem 0 0; font-size: .875rem; color: var(--color-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .35rem; color: #94a3b8; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0ea5e9 100%);
    color: #fff; padding: 3rem 0 2.5rem;
}
.hero-inner { display: grid; gap: 1.5rem; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15; margin: .25rem 0 .75rem;
}
.eyebrow {
    text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
    font-weight: 600; opacity: .85; margin: 0;
}
.lead { font-size: 1.125rem; opacity: .95; max-width: 60ch; margin: 0 0 1.25rem; }
.hero-search {
    display: flex; max-width: 560px; gap: 0;
}
.hero-search input {
    flex: 1; border: 0; border-radius: 999px 0 0 999px; padding: .9rem 1.1rem; font: inherit;
}
.hero-search button {
    border: 0; background: #0f172a; color: #fff; border-radius: 0 999px 999px 0;
    padding: .9rem 1.35rem; font-weight: 600; cursor: pointer; font: inherit;
}
.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .85rem;
    align-items: center;
}
.hero-near {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #ffcb74;
    color: #0f172a;
    border: 0;
    padding: .85rem 1.45rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none;
}
.hero-near svg { flex-shrink: 0; color: #0f172a; }
.hero-near:hover,
.hero-near:focus {
    text-decoration: none;
    color: #0f172a;
    background: #ffcb74;
}
.btn.hero-near { font-weight: 500; }
.stats-bar {
    display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.stats-bar div {
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
    border-radius: 12px; padding: .75rem 1.1rem; min-width: 110px;
}
.stats-bar strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.stats-bar span { font-size: .85rem; opacity: .9; }

/* Layout */
.layout-with-sidebar {
    display: grid;
    gap: 2rem;
    padding: 2rem 0 3rem;
    align-items: start;
}
.layout-with-sidebar:has(.sidebar) {
    grid-template-columns: 1fr 300px;
}
.layout-with-sidebar:not(:has(.sidebar)) .listing-grid {
    grid-template-columns: repeat(3, 1fr);
}
.main-column { min-width: 0; }
.sidebar { position: sticky; top: 5.5rem; }

/* Cards */
.listing-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-link { color: inherit; display: block; text-decoration: none; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-image { aspect-ratio: 16/10; overflow: hidden; background: #e2e8f0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image--empty { background: linear-gradient(135deg, #dbeafe, #e0e7ff); }
.card-body { padding: 1rem 1.1rem 1.15rem; }
.card-title { font-size: 1.05rem; margin: 0 0 .35rem; line-height: 1.35; }
.card-rating {
    display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
    margin: 0 0 .4rem; font-size: .82rem; color: var(--color-muted);
}
.card-rating strong { color: var(--color-text); font-weight: 600; }
.card-meta { display: flex; gap: .5rem; flex-wrap: wrap; color: var(--color-muted); font-size: .875rem; margin: 0 0 .35rem; }
.card-distance {
    font-weight: 700;
    color: var(--color-primary);
}
.card-meta span:not(:last-child)::after { content: "·"; margin-left: .5rem; }
.card-address, .card-phone { margin: .25rem 0 0; font-size: .875rem; color: var(--color-muted); }
.badge {
    display: inline-block; font-size: .75rem; font-weight: 600;
    padding: .2rem .55rem; border-radius: 999px; margin-top: .5rem;
}
.badge-open { background: #d1fae5; color: var(--color-open); }
.badge-closed { background: #fee2e2; color: var(--color-closed); }
.badge-lg { font-size: .85rem; padding: .35rem .75rem; }

/* Province grid */
.province-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem; padding-bottom: 3rem;
}
.province-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 1.1rem; color: inherit;
    display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow-sm);
}
.province-card:hover { border-color: var(--color-primary); text-decoration: none; }
.province-card span { color: var(--color-muted); font-size: .875rem; }

/* Detail page */
.detail-page { padding: 1.5rem 0 3rem; }
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-areas:
        "header image"
        "main   aside";
    gap: 2rem;
    align-items: start;
}
.detail-grid-header { grid-area: header; min-width: 0; }
.detail-grid-image {
    grid-area: image;
}
.detail-grid-main { grid-area: main; min-width: 0; }
.detail-grid-aside { grid-area: aside; min-width: 0; }
.detail-grid:not(:has(.detail-grid-image)) {
    grid-template-areas:
        "header aside"
        "main   aside";
}
.detail-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: .25rem 0 .5rem; line-height: 1.2;
}
.detail-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .55rem .75rem;
    margin: 0 0 .65rem;
}
.detail-rating-score {
    font-size: .92rem;
    color: var(--color-muted);
}
.detail-rating-score strong {
    color: var(--color-text);
    font-weight: 700;
}
.detail-rating-link {
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}
.detail-rating-link:hover {
    text-decoration: underline;
}
.detail-rating-empty .detail-rating-score {
    font-style: italic;
}
.detail-location { color: var(--color-muted); margin: 0 0 .75rem; }
.detail-info-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem; margin: 1.5rem 0;
}
.info-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 1rem 1.1rem;
}
.info-card h2 { font-size: .95rem; margin: 0 0 .5rem; color: var(--color-muted); }
.hours-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; }
.hours-table th, .hours-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
.hours-table th { width: 35%; color: var(--color-muted); font-weight: 500; }
.detail-image { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); margin: 0; }
.detail-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.map-embed iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }
.editorial-block, .content-block, .faq-section, .sidebar-block, .static-page .prose {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); padding: 1.25rem 1.35rem; margin: 1.25rem 0;
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.5rem 0 .5rem;
}
.listing-sort {
    margin: 0 0 1.25rem;
}
.listing-sort-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem 1rem;
    flex-wrap: wrap;
    padding: .9rem 1.15rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.listing-sort-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
}
.listing-sort-select-wrap {
    position: relative;
    flex: 1 1 100%;
    min-width: 0;
}
.listing-sort-select {
    width: 100%;
    padding: .72rem 2.75rem .72rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font: inherit;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.listing-sort-select:hover {
    border-color: #c7d2fe;
    background: #fff;
}
.listing-sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .14);
}
.listing-sort-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.05rem;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
@media (min-width: 560px) {
    .listing-sort-inner {
        justify-content: flex-end;
    }
    .listing-sort-select-wrap {
        flex: 0 0 auto;
        width: min(100%, 240px);
    }
}
.intro-text { color: var(--color-muted); }

.near-me-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    max-width: 520px;
    box-shadow: var(--shadow-sm);
}
.near-me-hint {
    margin: 0 0 1rem;
    color: var(--color-muted);
    font-size: .95rem;
    line-height: 1.55;
}
#near-me-error { margin-top: 1rem; }

/* FAQ */
.faq-item { border-top: 1px solid var(--color-border); padding: .75rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: .5rem 0 0; color: var(--color-muted); }

/* Sidebar */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .35rem 0; border-bottom: 1px solid var(--color-border); }
.link-list a { color: inherit; display: flex; justify-content: space-between; gap: .5rem; }
.link-list span { color: var(--color-muted); font-size: .875rem; }
.sidebar-block h2 { font-size: 1rem; margin: 0 0 .75rem; }

/* Buttons */
.btn {
    display: inline-block; padding: .65rem 1.1rem; border-radius: 999px;
    font-weight: 600; border: 1px solid transparent; cursor: pointer; font: inherit;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.text-center { text-align: center; }

/* Ads */
.ad-slot, .ad-placeholder {
    min-height: 90px; margin: 1rem 0; display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 8px;
    color: #94a3b8; font-size: .8rem;
}
.ad-sidebar { min-height: 250px; }

/* Static / prose */
.prose h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--color-muted); }
.contact-form { display: grid; gap: .75rem; max-width: 520px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: .65rem .85rem; border: 1px solid var(--color-border);
    border-radius: 8px; font: inherit;
}
.disclaimer { font-size: .875rem; color: var(--color-muted); }
.empty-state { padding: 2rem; text-align: center; color: var(--color-muted); }

/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    padding: 1.5rem 0;
}
.pagination a { font-weight: 600; }

/* Footer */
.site-footer {
    background: #0f172a; color: #cbd5e1; margin-top: 2rem; padding: 2.5rem 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-grid h3 { color: #fff; font-size: .95rem; margin: 0 0 .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .35rem 0; }
.footer-grid a { color: #cbd5e1; }
.footer-eeat { font-size: .85rem; margin-top: .75rem; }
.footer-bottom {
    border-top: 1px solid #1e293b; margin-top: 2rem; padding: 1rem 0 1.5rem;
    font-size: .875rem; color: #94a3b8;
}

@media (max-width: 960px) {
    .layout-with-sidebar:has(.sidebar), .footer-grid { grid-template-columns: 1fr; }
    .layout-with-sidebar:not(:has(.sidebar)) .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "image"
            "main"
            "aside";
        gap: 1.25rem;
    }
    .detail-grid-image {
        position: static;
        margin-bottom: .25rem;
    }
    .detail-grid:not(:has(.detail-grid-image)) {
        grid-template-areas:
            "header"
            "main"
            "aside";
    }
    .sidebar { position: static; }

    .site-header { position: sticky; }
    .header-shell { display: block; padding: 0; position: relative; }
    .header-bar {
        padding: .85rem 0;
        justify-content: space-between;
    }
    .logo { flex: 1; }
    .nav-toggle { display: flex; }

    .header-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-height, 62px);
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height .28s ease, opacity .22s ease, visibility .22s;
        pointer-events: none;
        z-index: 201;
    }
    .site-header.is-open .header-panel {
        max-height: 80vh;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        overflow-y: auto;
    }

    .main-nav {
        flex-direction: column;
        gap: .5rem;
    }
    .main-nav a {
        display: block;
        padding: .85rem 1rem;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        background: var(--color-bg);
        color: var(--color-text);
        font-size: 1rem;
        font-weight: 600;
        white-space: normal;
    }
    .main-nav a:hover,
    .main-nav a:focus {
        background: #eef2ff;
        border-color: #c7d2fe;
        color: var(--color-primary);
        text-decoration: none;
    }

    .header-search {
        margin: 0;
        max-width: none;
        width: 100%;
        padding: .85rem;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 14px;
        gap: .5rem;
    }
    .header-search-label { display: block; }
    .header-search-row {
        flex-direction: column;
        gap: .5rem;
    }
    .header-search input {
        width: 100%;
        border: 1px solid var(--color-border);
        border-radius: 10px;
        padding: .85rem 1rem;
        font-size: 16px;
        background: #fff;
    }
    .header-search button {
        width: 100%;
        border-radius: 10px;
        padding: .85rem 1rem;
        font-size: 1rem;
        border: none;
    }
    .header-search button span { display: inline; }
}

@media (max-width: 480px) {
    .logo-text strong { font-size: .95rem; }
    .header-bar { padding: .65rem 0; }
}

/* Reseñas */
.reviews-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) + 2px);
    padding: 1.5rem 1.5rem 1.65rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}
.reviews-header { margin-bottom: 1.35rem; }
.reviews-eyebrow {
    margin: 0 0 .35rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.reviews-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    margin: 0 0 .45rem;
    line-height: 1.25;
}
.reviews-intro {
    margin: 0;
    color: var(--color-muted);
    font-size: .95rem;
    max-width: 52ch;
}
.reviews-scoreboard {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.35rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #dbeafe;
    border-radius: var(--radius);
}
.reviews-score-main {
    display: flex;
    align-items: baseline;
    gap: .2rem;
    min-width: 5.5rem;
}
.reviews-score-value {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3rem);
    line-height: 1;
    font-weight: 700;
    color: var(--color-text);
}
.reviews-score-max {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-muted);
}
.reviews-score-meta p {
    margin: .45rem 0 0;
    color: var(--color-muted);
    font-size: .9rem;
}
.reviews-score-meta strong { color: var(--color-text); }
.reviews-empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.35rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
}
.reviews-empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto .75rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: #f59e0b;
    font-size: 1.35rem;
    border: 1px solid #fed7aa;
}
.reviews-empty-state p { margin: 0; }
.reviews-empty-state p strong { display: block; margin-bottom: .25rem; font-size: 1.05rem; }
.reviews-empty-hint { margin-top: .35rem !important; color: var(--color-muted); font-size: .9rem; }
.reviews-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: .85rem;
}
.review-card {
    display: flex;
    gap: .9rem;
    padding: 1rem 1.05rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.review-avatar {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--color-primary);
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}
.review-card-body { flex: 1; min-width: 0; }
.review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .5rem;
}
.review-card-author {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.review-card-author strong { font-size: .98rem; }
.review-card-top time {
    flex-shrink: 0;
    color: var(--color-muted);
    font-size: .82rem;
    white-space: nowrap;
}
.review-quote {
    margin: 0;
    padding: .75rem .9rem;
    background: #f8fafc;
    border-left: 3px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    color: var(--color-text);
    font-size: .95rem;
    line-height: 1.55;
}
.review-no-comment {
    margin: 0;
    font-size: .88rem;
    color: var(--color-muted);
    font-style: italic;
}
.review-alert {
    padding: .8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: .92rem;
    font-weight: 500;
}
.review-alert-ok { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.review-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.review-form-panel {
    margin-top: .25rem;
    padding: 1.25rem 1.2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.review-form-intro { margin-bottom: 1.1rem; }
.review-form-intro h3 {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
    font-family: var(--font-display);
}
.review-form-intro p {
    margin: 0;
    color: var(--color-muted);
    font-size: .92rem;
}
.review-form {
    display: grid;
    gap: 1rem;
}
.review-form-field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .45rem;
}
.label-optional {
    font-weight: 500;
    color: var(--color-muted);
}
.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: .72rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font: inherit;
    background: var(--color-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.star-input-wrap {
    padding: .65rem .85rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.review-form-disclaimer { margin: 0; }
.review-submit-btn { justify-self: start; }
.hp-field {
    position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.stars { display: inline-flex; gap: .15rem; line-height: 1; }
.stars-lg .star { font-size: 1.65rem; }
.stars-md .star { font-size: 1.15rem; }
.stars-sm .star { font-size: .95rem; }
.star-full { color: #f59e0b; }
.star-half { color: #f59e0b; opacity: .55; }
.star-empty { color: #d1d5db; }
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: .25rem;
}
.star-input-label { cursor: pointer; }
.star-input-label input { position: absolute; opacity: 0; pointer-events: none; }
.star-input-label span {
    font-size: 2.15rem;
    color: #d1d5db;
    transition: color .15s, transform .15s;
}
.star-input-label:hover span { transform: scale(1.08); }
.star-input-label.is-active span,
.star-input-label:hover span,
.star-input-label:hover ~ .star-input-label span {
    color: #f59e0b;
}
@media (max-width: 560px) {
    .layout-with-sidebar:not(:has(.sidebar)) .listing-grid {
        grid-template-columns: 1fr;
    }
    .reviews-section { padding: 1.2rem 1rem 1.35rem; }
    .reviews-scoreboard { flex-direction: column; align-items: flex-start; }
    .review-card { padding: .9rem; }
    .review-card-top { flex-direction: column; gap: .35rem; }
    .review-submit-btn { width: 100%; text-align: center; }
}

.review-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.review-modal[hidden] { display: none; }
.review-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .55);
}
.review-modal-dialog {
    position: relative; z-index: 1;
    width: min(100%, 380px);
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
    padding: 1.35rem 1.5rem;
}
.review-modal-dialog h4 { margin: 0 0 .5rem; }
.review-modal-dialog p { margin: 0 0 .75rem; }
.review-math-question {
    font-size: 1.35rem; text-align: center;
    margin: .5rem 0 1rem !important;
}
.review-math-input {
    width: 100%; padding: .75rem 1rem;
    border: 1px solid var(--color-border); border-radius: 10px;
    font: inherit; font-size: 1.1rem; text-align: center;
}
.review-modal-error {
    margin: .65rem 0 0; color: #991b1b; font-size: .9rem;
}
.review-modal-actions {
    display: flex; gap: .65rem; margin-top: 1.1rem;
}
.review-modal-actions .btn { flex: 1; }
body.review-modal-open { overflow: hidden; }

/* Aviso contenido erróneo */
.correction-report-bar {
    display: flex;
    justify-content: flex-end;
    margin: -.25rem 0 1.35rem;
}
.correction-report {
    margin: 0;
    max-width: 100%;
}
.correction-trigger {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.correction-trigger:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.correction-alert {
    margin-bottom: .65rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    font-size: .88rem;
    text-align: left;
}
.correction-alert-ok { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.correction-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.correction-modal {
    position: fixed; inset: 0; z-index: 2100;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    text-align: left;
}
.correction-modal[hidden] { display: none; }
.correction-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, .55);
}
.correction-modal-dialog {
    position: relative; z-index: 1;
    width: min(100%, 480px);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
    padding: 1.35rem 1.5rem 1.5rem;
}
.correction-modal-close {
    position: absolute; top: .65rem; right: .75rem;
    border: 0; background: none; font-size: 1.6rem; line-height: 1;
    color: var(--color-muted); cursor: pointer;
}
.correction-modal-dialog h3 {
    margin: 0 0 .45rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    padding-right: 1.5rem;
}
.correction-step-intro {
    margin: 0 0 1rem;
    color: var(--color-muted);
    font-size: .92rem;
}
.correction-issues {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
}
.correction-issue {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    align-items: center;
    column-gap: .8rem;
    padding: .85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.correction-issue:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.correction-issue:has(input:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #bfdbfe;
}
.correction-issue-input {
    grid-column: 1;
    grid-row: 1;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.correction-issue-box {
    grid-column: 1;
    grid-row: 1;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.correction-issue-box::after {
    content: "";
    width: .35rem;
    height: .6rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    margin-top: -.12rem;
    transition: transform .12s ease;
}
.correction-issue-input:checked + .correction-issue-box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.correction-issue-input:checked + .correction-issue-box::after {
    transform: rotate(45deg) scale(1);
}
.correction-issue-input:focus-visible + .correction-issue-box {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.correction-issue-text {
    grid-column: 2;
    font-size: .94rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--color-text);
}
.correction-form > label:not(.correction-issue) {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin: .75rem 0 .4rem;
}
.correction-form input,
.correction-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font: inherit;
    background: var(--color-bg);
}
.correction-form input:focus,
.correction-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.correction-math-question {
    font-size: 1.35rem;
    text-align: center;
    margin: .5rem 0 1rem;
}
.correction-math-input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font: inherit;
    font-size: 1.1rem;
    text-align: center;
}
.correction-step-error {
    margin: 0 0 .75rem;
    color: #991b1b;
    font-size: .88rem;
}
.correction-modal-actions {
    display: flex;
    gap: .65rem;
    margin-top: 1.1rem;
}
.correction-modal-actions .btn { flex: 1; }
body.correction-modal-open { overflow: hidden; }
