:root {
    --ink: #202124;
    --muted: #646970;
    --line: #dfe4ea;
    --paper: #ffffff;
    --soft: #f5f7fa;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --accent: #e11d48;
    --gold: #f59e0b;
    --blue: #2563eb;
    --violet: #7c3aed;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.dark {
    --ink: #f4f7fb;
    --muted: #a8b3c7;
    --line: #253244;
    --paper: #121a27;
    --soft: #0b1020;
    --brand: #2dd4bf;
    --brand-dark: #5eead4;
    --accent: #fb7185;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.admin-header {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
}

.nav {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-links a,
.btn,
button {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    font-weight: 700;
}

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

.btn.danger,
button.danger {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.hero {
    min-height: 560px;
    color: white;
    background:
        linear-gradient(90deg, rgba(5, 15, 26, .86) 0%, rgba(5, 15, 26, .58) 48%, rgba(5, 15, 26, .22) 100%),
        var(--hero-image, none) center/cover;
    display: grid;
    align-items: center;
    padding: 86px 0 96px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 86px);
    line-height: .95;
    margin: 0 0 12px;
    max-width: 820px;
}

.hero p {
    max-width: 700px;
    font-size: 20px;
    margin: 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d1fae5;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-actions,
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-stats {
    max-width: 760px;
}

.stat-pill {
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    padding: 12px 14px;
    backdrop-filter: blur(12px);
}

.stat-pill strong {
    display: block;
    font-size: 24px;
}

.search-panel {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
}

.search-panel .container {
    margin-top: -38px;
}

.search-shell {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
    padding: 14px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 10px;
}

.filters-4 {
    grid-template-columns: 1fr 210px 210px auto;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    min-height: 42px;
    padding: 10px 12px;
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.section {
    padding: 34px 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.card:hover {
    transform: translateY(-2px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

.card-media {
    aspect-ratio: 16 / 10;
    background: #d8dee6;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 16px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
}

.badge.hot {
    background: #fff7ed;
    color: #9a3412;
}

.category-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 18px 0 0;
}

.category-chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    padding: 8px 12px;
    font-weight: 800;
}

.featured-band {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.premium-card {
    position: relative;
    min-height: 360px;
    display: grid;
    align-items: end;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .72)), var(--premium-image, none) center/cover;
}

.premium-card .card-body {
    background: linear-gradient(transparent, rgba(0, 0, 0, .3));
}

.editorial-panel {
    background: #101827;
    color: white;
    border-radius: var(--radius);
    padding: 26px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: center;
}

.editorial-panel p {
    color: #cbd5e1;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0;
}

.price strong {
    color: var(--accent);
    font-size: 24px;
}

.price del {
    color: var(--muted);
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.whatsapp {
    width: 100%;
    margin-top: 12px;
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

.admin-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    padding: 24px 0;
}

.sidebar,
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sidebar {
    padding: 12px;
    height: max-content;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-weight: 700;
}

.sidebar a:hover {
    background: var(--soft);
}

.panel {
    padding: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--soft);
    font-size: 13px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-box {
    width: min(420px, 100%);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 14px;
}

.sponsor-strip {
    background: #101827;
    color: white;
    padding: 12px 0;
}

.sponsor-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.sponsor-row a {
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius);
    padding: 7px 10px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.business-hero {
    min-height: 440px;
}

.map-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.theme-toggle {
    min-height: 38px;
}

@media print {
    .site-header,
    .actions,
    .search-panel {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .search-form,
    .filters-4,
    .admin-layout,
    .form-grid,
    .detail-layout,
    .editorial-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 520px;
        padding: 70px 0 88px;
    }

    .grid,
    .magazine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .stat-pill {
        min-width: calc(50% - 8px);
    }

    .grid,
    .magazine-grid {
        grid-template-columns: 1fr;
    }
}


/* Premium 2026 UI refinements */
:root {
    --radius: 18px;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, .12);
    --shadow-hover: 0 28px 80px rgba(15, 23, 42, .18);
}
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-header, .admin-header { box-shadow: 0 8px 28px rgba(15, 23, 42, .06); }
.brand { letter-spacing: -.03em; }
.btn, button, .nav-links a { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover, button:hover, .nav-links a:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,42,.1); }
.hero { min-height: 620px; border-bottom-left-radius: 34px; border-bottom-right-radius: 34px; overflow: hidden; }
.hero h1 { letter-spacing: -.07em; text-wrap: balance; }
.hero p { text-wrap: pretty; }
.search-shell, .panel, .card, .editorial-panel, .login-box { border-radius: 22px; box-shadow: var(--shadow-soft); }
.card { position: relative; transition: transform .24s ease, box-shadow .24s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-media { width: 100%; height: 230px; object-fit: cover; background: #e5e7eb; }
.card-body { padding: 18px; }
.card h3 { margin: 10px 0 8px; font-size: 21px; letter-spacing: -.025em; }
.whatsapp, .btn.whatsapp { background: #16a34a; border-color: #16a34a; color: #fff; }
.badge { border-radius: 999px; padding: 6px 10px; background: color-mix(in srgb, var(--brand) 12%, var(--paper)); color: var(--brand-dark); font-weight: 800; font-size: 12px; display: inline-flex; }
.badge.hot { background: linear-gradient(135deg, #f59e0b, #e11d48); color: #fff; }
.category-rail { display:flex; gap:10px; overflow:auto; padding-top:12px; scrollbar-width: thin; }
.category-chip { white-space:nowrap; border:1px solid var(--line); border-radius:999px; padding:9px 14px; background:var(--soft); font-weight:700; }
.sponsor-row { display:flex; align-items:center; gap:12px; overflow:auto; padding:12px 0; }
.sponsor-row a { background:var(--paper); border:1px solid var(--line); border-radius:999px; padding:8px 13px; white-space:nowrap; }
.gallery, .premium-carousel { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; }
.gallery img, .premium-carousel > * { scroll-snap-align:start; border-radius:18px; min-width:min(80vw, 360px); height:260px; object-fit:cover; box-shadow:var(--shadow-soft); }
.skeleton { position: relative; overflow: hidden; background: color-mix(in srgb, var(--line) 55%, transparent); min-height: 180px; border-radius: 18px; }
.skeleton::after { content:""; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation:skeleton 1.2s infinite; }
@keyframes skeleton { 100% { transform:translateX(100%); } }
.table-wrap { overflow:auto; border-radius:18px; border:1px solid var(--line); background:var(--paper); }
table { width:100%; border-collapse:collapse; }
th, td { padding:12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid .full { grid-column:1/-1; }
.admin-layout { display:grid; grid-template-columns:245px 1fr; gap:22px; padding-top:24px; }
.sidebar { position:sticky; top:86px; align-self:start; display:grid; gap:8px; background:var(--paper); border:1px solid var(--line); border-radius:20px; padding:12px; box-shadow:var(--shadow-soft); }
.sidebar a { padding:10px 12px; border-radius:12px; font-weight:750; }
.sidebar a:hover { background:var(--soft); }
@media (max-width: 920px) {
    .grid, .magazine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filters-4, .search-form { grid-template-columns:1fr; }
    .admin-layout { grid-template-columns:1fr; }
    .sidebar { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .container { width:min(100% - 22px, 1180px); }
    .nav { align-items:flex-start; flex-direction:column; padding:12px 0; }
    .nav-links { width:100%; overflow:auto; flex-wrap:nowrap; padding-bottom:4px; }
    .hero { min-height:560px; padding:64px 0 84px; border-radius:0 0 24px 24px; }
    .grid, .magazine-grid { grid-template-columns:1fr; }
    .card-media { height:220px; }
    .form-grid { grid-template-columns:1fr; }
    .sidebar { grid-template-columns:1fr; }
}
.inline-form { display:inline-flex; margin:0; padding:0; }
.inline-form button { cursor:pointer; }
