﻿/* ============================================================
   Guia Caninde - Estilos Principais
   Cores e identidade visual preservadas do original Next.js
   ============================================================ */

@import url("/assets/css/social-float-v2.css?v=20260722-social-orbits-2");

:root {
    --primary:       #6B21A8;   /* roxo escuro principal */
    --primary-light: #7C3AED;   /* roxo medio */
    --primary-bg:    #F3E8FF;   /* fundo roxo suave */
    --accent:        #10B981;   /* verde cadastrar */
    --accent-dark:   #059669;
    --text:          #1F2937;
    --text-light:    #6B7280;
    --border:        #E5E7EB;
    --bg:            #F9FAFB;
    --white:         #FFFFFF;
    --danger:        #EF4444;
    --warning:       #F59E0B;
    --success:       #10B981;
    --radius:        0.75rem;
    --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.5;
}

input,
button,
select,
textarea {
    font: inherit;
}

/* ---- NAVBAR ---- */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 1.5rem;
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
}
.navbar-brand img,
.navbar-brand svg {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    list-style: none;
}
@media (min-width: 769px) {
    .navbar-links-left { margin-left: 1.5rem; margin-right: auto; }
    .navbar-links-center { margin-left: auto; margin-right: auto; }
    .navbar-links-right { margin-left: auto; margin-right: 0; }
}
.menu-position-editor { display: grid; gap: .55rem; margin: .75rem 0 1rem; }
.menu-position-row { display: grid; grid-template-columns: 28px 34px minmax(0,1fr) 38px 38px; gap: .55rem; align-items: center; padding: .7rem; border: 1px solid rgba(148,163,184,.25); border-radius: .85rem; background: #fff; }
.menu-position-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-weight: 900; }
.menu-position-icon { display: grid; place-items: center; color: #6d28d9; }
.menu-position-label { min-width: 0; display: grid; gap: .1rem; }
.menu-position-label small { color: var(--text-light); }
.menu-position-row button { width: 36px; height: 36px; border: 0; border-radius: .65rem; background: #f3f0ff; color: #5b21b6; font-size: 1.05rem; font-weight: 900; cursor: pointer; }
.menu-position-row button:disabled { opacity: .3; cursor: default; }
.menu-advanced-config summary { cursor: pointer; color: #6d28d9; font-weight: 800; margin: .5rem 0; }
.navbar-links a {
    text-decoration: none;
    color: var(--text);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    transition: color .2s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }
.btn-cadastrar {
    background: var(--accent);
    color: var(--white) !important;
    padding: .5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .875rem !important;
    transition: background .2s !important;
}
.btn-cadastrar:hover { background: var(--accent-dark) !important; }
.btn-instalar {
    background: var(--primary);
    color: var(--white);
    padding: .4rem .85rem;
    border-radius: var(--radius);
    font-size: .8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: background .2s;
    text-decoration: none;
}
.btn-instalar:hover { background: var(--primary-light); }
.pwa-install-mobile {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 5.5rem;
    z-index: 120;
    border: none;
    border-radius: 999px;
    padding: .9rem 1.15rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 52%, #6D28D9 100%);
    color: #FFFFFF;
    font-size: .9rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    box-shadow: 0 18px 40px rgba(124, 58, 237, .28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pwa-install-mobile svg {
    width: 18px;
    height: 18px;
}
.pwa-install-mobile:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 22px 46px rgba(124, 58, 237, .34);
    filter: saturate(1.04);
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 55%, #F0FDF4 100%);
    padding: 4.5rem 1.5rem;
}
.hero-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: center;
    gap: 3rem;
}
.hero-copy { max-width: 640px; }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(90deg, #7C3AED, #16A34A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-search {
    background: linear-gradient(90deg, #8B5CF6, #7C3AED);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 20px 45px rgba(15,23,42,.10);
}
.btn-hero-search:hover { transform: translateY(-4px); box-shadow: 0 28px 56px rgba(15,23,42,.16); }
.btn-hero-cadastrar {
    background: linear-gradient(90deg, #22C55E, #16A34A);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 20px 45px rgba(15,23,42,.10);
}
.btn-hero-cadastrar:hover { transform: translateY(-4px); box-shadow: 0 28px 56px rgba(15,23,42,.16); }
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 32rem;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}
.hero-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.hero-logo-dark {
    display: block;
    opacity: 0;
    visibility: hidden;
}

/* ---- MAPA DE EMPRESAS ---- */
.map-page-shell {
    width: min(100% - 2rem, 1280px);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.map-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}
.map-page-kicker {
    display: inline-flex;
    margin-bottom: .45rem;
    color: #6d28d9;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.map-page-header h1 { margin: 0 0 .35rem; font-size: clamp(2rem, 5vw, 3.25rem); color: var(--text-dark); }
.map-page-header p { margin: 0; color: var(--text-light); }
.map-page-stats {
    flex: 0 0 auto;
    padding: .65rem .9rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: .82rem;
    font-weight: 800;
}
.map-toolbar {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .8rem;
}
.map-search {
    flex: 1;
    min-width: 220px;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 0 .95rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.map-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-dark); font: inherit; }
.map-tool-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 1rem;
    background: #fff;
    color: #5b21b6;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
    cursor: pointer;
}
.map-stage { position: relative; min-height: 620px; overflow: hidden; border-radius: 1.7rem; background: #e2e8f0; box-shadow: 0 28px 70px rgba(15,23,42,.16); }
.companies-map { width: 100%; height: 620px; }
.map-zoom-controls {
    position: absolute;
    z-index: 5;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    grid-template-columns: 48px 44px 48px;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 35px rgba(15,23,42,.22);
}
.map-zoom-controls button, .map-zoom-controls span { min-height: 46px; display: grid; place-items: center; border: 0; background: transparent; color: #3b176c; font-size: 1.4rem; font-weight: 850; }
.map-zoom-controls button { cursor: pointer; }
.map-zoom-controls span { font-size: .75rem; background: #f5f3ff; }
.map-loading { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; justify-items: center; gap: .45rem; padding: 2rem; text-align: center; background: rgba(248,250,252,.88); backdrop-filter: blur(8px); }
.map-loading[hidden] { display: none; }
.map-loading small { color: var(--text-light); }
.map-loading-spinner { width: 38px; height: 38px; border: 4px solid #ddd6fe; border-top-color: #7c3aed; border-radius: 999px; animation: mapSpin .8s linear infinite; }
@keyframes mapSpin { to { transform: rotate(360deg); } }
.company-map-marker { position: relative; width: 58px; height: 58px; padding: 4px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(76,29,149,.3); cursor: pointer; }
.company-map-marker::after { content: ""; position: absolute; left: 23px; bottom: -8px; border: 7px solid transparent; border-top-color: #fff; }
.company-map-marker img { width: 50px; height: 50px; object-fit: cover; border-radius: 999px; }
.company-map-marker span { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: 150px; overflow: hidden; padding: .3rem .5rem; border-radius: .55rem; background: rgba(49,22,86,.92); color: #fff; font-size: .68rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.company-leaflet-marker { border: 0; background: transparent; }
.company-leaflet-marker .company-map-marker { display: block; }
.companies-map .leaflet-control-attribution { font-size: 10px; }
.companies-map .leaflet-popup-content-wrapper { border-radius: 1.1rem; box-shadow: 0 18px 50px rgba(15,23,42,.18); }
.companies-map .leaflet-popup-content { margin: 14px; }
.companies-map .leaflet-tile { max-width: none !important; }
.map-info-card { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: .75rem; width: min(280px, 72vw); color: #172033; }
.map-info-card img { width: 58px; height: 58px; object-fit: cover; border-radius: 1rem; }
.map-info-card div { display: grid; gap: .2rem; }
.map-info-card span, .map-info-card small { color: #64748b; }
.map-info-card a { margin-top: .25rem; color: #6d28d9; font-weight: 800; text-decoration: none; }
.map-company-list { display: flex; gap: .7rem; margin-top: 1rem; padding: .2rem 0 .8rem; overflow-x: auto; scrollbar-width: thin; }
.map-company-chip { flex: 0 0 250px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: .7rem; padding: .7rem; border: 0; border-radius: 1rem; background: #fff; text-align: left; box-shadow: 0 12px 28px rgba(15,23,42,.07); cursor: pointer; }
.map-company-chip img { width: 48px; height: 48px; object-fit: cover; border-radius: .85rem; }
.map-company-chip span { min-width: 0; display: grid; gap: .18rem; }
.map-company-chip strong, .map-company-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-company-chip small { color: var(--text-light); }
.map-stage:fullscreen { width: 100vw; height: 100vh; border-radius: 0; background: #e8eef3; }
.map-stage:fullscreen .companies-map { width: 100%; height: 100%; min-height: 100vh; }
.map-stage-fullscreen-fallback { position: fixed !important; inset: 0; z-index: 99999; width: 100vw; height: 100vh; border-radius: 0 !important; }
.map-stage-fullscreen-fallback .companies-map { height: 100vh; }
.admin-check-row { display: flex; align-items: center; gap: .65rem; margin: .75rem 0; font-weight: 700; color: var(--text-main); }
.admin-check-row input { width: 18px; height: 18px; accent-color: #6d28d9; }

@media (max-width: 768px) {
    .map-page-shell { width: 100%; padding: 1rem .75rem calc(2rem + var(--mobile-bottom-nav-space, 100px)); }
    .map-page-header { display: grid; gap: .75rem; margin-bottom: .9rem; }
    .map-page-header h1 { font-size: 2rem; }
    .map-page-header p { font-size: .9rem; line-height: 1.45; }
    .map-page-stats { justify-self: start; }
    .map-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
    .map-search { grid-column: 1 / -1; min-width: 0; }
    .map-tool-btn { min-width: 0; padding: 0 .55rem; font-size: .78rem; }
    .map-stage { min-height: calc(100dvh - 330px); border-radius: 1.35rem; }
    .companies-map { height: calc(100dvh - 330px); min-height: 430px; }
    .map-zoom-controls { right: .7rem; bottom: .7rem; grid-template-columns: 46px 40px 46px; }
    .company-map-marker span { display: none; }
    .map-company-chip { flex-basis: 220px; }
}

.home-company-alert-section {
    padding: 0 1.5rem 1.25rem;
    margin-top: -1.35rem;
}
.home-company-alert-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 1.5rem;
    border: 1px solid rgba(148,163,184,.14);
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.98));
    box-shadow: 0 20px 45px rgba(15,23,42,.08);
    padding: 1rem 1.1rem;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-company-alert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 56px rgba(15,23,42,.12);
    border-color: rgba(124,58,237,.18);
}
.home-company-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .85rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(124,58,237,.12), rgba(34,197,94,.10));
    color: #6d28d9;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.home-company-alert-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}
.home-company-alert-logo {
    width: 72px;
    height: 72px;
    border-radius: 1.2rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ff, #ecfeff);
    border: 1px solid rgba(148,163,184,.16);
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-company-alert-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-company-alert-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #6d28d9;
}
.home-company-alert-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.home-company-alert-copy strong {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}
.home-company-alert-copy span {
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.home-company-alert-meta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #6d28d9;
    font-weight: 800;
    white-space: nowrap;
}
.home-company-alert-meta svg {
    width: 18px;
    height: 18px;
}
.home-company-alert-dots {
    display: flex;
    gap: .4rem;
    margin-top: .9rem;
}
.home-company-alert-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.35);
    transition: transform .2s ease, background .2s ease;
}
.home-company-alert-dots span.active {
    background: linear-gradient(90deg, #7c3aed, #16a34a);
    transform: scale(1.15);
}

/* ---- CONTADOR REAL DE EMPRESAS ---- */
.home-community-stats {
    width: min(1180px, calc(100% - 3rem));
    margin: 1.15rem auto 0;
    min-height: 122px;
}
.home-community-stats-loading {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: var(--text-light);
    font-weight: 700;
}
.home-community-stats-loading span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.35);
    animation: homeCommunityPulse 1.5s infinite;
}
.home-community-stats-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
    min-height: 122px;
    padding: 1.35rem 1.65rem;
    border-radius: 2rem;
    border: 1px solid rgba(124,58,237,.12);
    background:
      radial-gradient(circle at 12% 25%, rgba(124,58,237,.16), transparent 28%),
      radial-gradient(circle at 92% 70%, rgba(34,197,94,.18), transparent 30%),
      linear-gradient(118deg, rgba(250,248,255,.98), rgba(244,253,249,.98));
    box-shadow: 0 24px 55px rgba(57,36,92,.10);
    opacity: 0;
    transform: translateY(22px) scale(.985);
    transition: opacity .55s ease, transform .65s cubic-bezier(.2,.8,.2,1);
}
.home-community-stats-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,.55) 42%, transparent 68%);
    transform: translateX(-120%);
    animation: homeCommunityShimmer 6s ease-in-out infinite 1.4s;
}
.home-community-stats-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.home-community-stats-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 1.55rem;
    color: #fff;
    background: linear-gradient(145deg, #7c3aed, #4f46e5 54%, #16a34a);
    box-shadow: 0 18px 34px rgba(109,40,217,.24);
    animation: homeCommunityFloat 3.6s ease-in-out infinite;
}
.home-community-stats-copy { position: relative; z-index: 2; min-width: 0; }
.home-community-stats-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .45rem;
    color: #6d28d9;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.home-community-stats-kicker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,.13);
    animation: homeCommunityPulse 1.7s infinite;
}
.home-community-stats-copy p {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(1.16rem, 2vw, 1.58rem);
    font-weight: 650;
    line-height: 1.38;
}
.home-community-stats-copy p strong {
    display: inline-block;
    margin: 0 .12em;
    color: #6d28d9;
    font-size: 1.55em;
    font-weight: 950;
    line-height: .8;
    letter-spacing: -.04em;
    text-shadow: 0 8px 20px rgba(109,40,217,.16);
    transform-origin: center bottom;
}
.home-community-stats-copy p strong.is-complete { animation: homeCommunityPop .48s ease; }
.home-community-stats-copy p b { color: #0f766e; font-weight: 900; }
.home-community-stats-copy p a {
    display: inline-flex;
    align-items: center;
    margin-left: .2rem;
    color: #fff;
    text-decoration: none;
    font-size: .72em;
    font-weight: 900;
    padding: .48rem .82rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    box-shadow: 0 10px 22px rgba(79,70,229,.20);
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-community-stats-copy p a:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(79,70,229,.28); }
.home-community-stats-copy small { display: block; margin-top: .52rem; color: var(--text-light); font-size: .82rem; }
.home-community-stats-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: .55; }
.home-community-stats-orb-one { width: 90px; height: 90px; top: -42px; right: 18%; background: rgba(124,58,237,.14); }
.home-community-stats-orb-two { width: 125px; height: 125px; right: -45px; bottom: -70px; background: rgba(34,197,94,.17); }
html.dark .home-community-stats-card {
    border-color: rgba(167,139,250,.18);
    background: linear-gradient(118deg, rgba(38,29,57,.96), rgba(20,53,47,.94));
    box-shadow: 0 24px 55px rgba(2,6,23,.25);
}
html.dark .home-community-stats-kicker { color: #c4b5fd; }
html.dark .home-community-stats-copy p b { color: #6ee7b7; }
@keyframes homeCommunityPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.30); } 50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
@keyframes homeCommunityFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes homeCommunityShimmer { 0%,55% { transform: translateX(-120%); } 80%,100% { transform: translateX(120%); } }
@keyframes homeCommunityPop { 0% { transform: scale(.82); } 55% { transform: scale(1.14); } 100% { transform: scale(1); } }

@media (max-width: 768px) {
    .home-community-stats { width: calc(100% - 1.4rem); margin-top: .8rem; min-height: 0; }
    .home-community-stats-card { grid-template-columns: 52px minmax(0,1fr); gap: .82rem; min-height: 0; padding: 1rem; border-radius: 1.4rem; }
    .home-community-stats-icon { width: 50px; height: 50px; border-radius: 1.05rem; }
    .home-community-stats-icon svg { width: 24px; height: 24px; }
    .home-community-stats-kicker { margin-bottom: .35rem; font-size: .62rem; letter-spacing: .06em; }
    .home-community-stats-copy p { font-size: 1rem; line-height: 1.48; }
    .home-community-stats-copy p strong { font-size: 1.7em; }
    .home-community-stats-copy p a { margin: .45rem 0 0; padding: .4rem .72rem; font-size: .76rem; }
    .home-community-stats-copy small { font-size: .7rem; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
    .home-community-stats-card,
    .home-community-stats-card::after,
    .home-community-stats-icon,
    .home-community-stats-kicker i { animation: none !important; transition: none !important; }
    .home-community-stats-card { opacity: 1; transform: none; }
}

/* ---- COMO FUNCIONA ---- */
.como-funciona {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5.25rem 1.5rem 6.75rem;
    background:
        radial-gradient(circle at 8% 18%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 30%),
        radial-gradient(circle at 92% 80%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32%),
        linear-gradient(180deg, #ffffff, #f8fafc 58%, #ffffff);
}
.como-funciona::before,
.como-funciona::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}
.como-funciona::before {
    width: 280px;
    height: 280px;
    left: -160px;
    top: 12%;
    border: 42px solid color-mix(in srgb, var(--primary) 8%, transparent);
}
.como-funciona::after {
    width: 220px;
    height: 220px;
    right: -105px;
    bottom: 2%;
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.como-funciona-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
}
.como-funciona-header {
    max-width: 720px;
    margin: 0 auto 2.35rem;
    text-align: center;
}
.como-funciona-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    padding: .46rem .82rem;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, #ffffff);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.como-funciona h2 {
    margin: 0;
    font-size: clamp(2.15rem, 4.5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.02;
    background: linear-gradient(90deg, #7C3AED, #16A34A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.como-funciona-header > p {
    max-width: 620px;
    margin: 1rem auto 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.65;
}
.cards-como {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}
.card-como {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0,1fr);
    align-items: center;
    gap: 1.15rem;
    min-width: 0;
    overflow: hidden;
    padding: 1.65rem;
    background: var(--white);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
    border-radius: 1.75rem;
    box-shadow: 0 24px 54px rgba(15,23,42,.08);
    text-align: left;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.card-como::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}
.card-como::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -74px;
    bottom: -88px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 7%, transparent);
    pointer-events: none;
}
.card-como:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
    box-shadow: 0 30px 64px color-mix(in srgb, var(--primary) 15%, rgba(15,23,42,.08));
}
.card-como-step {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    color: color-mix(in srgb, var(--primary) 32%, #94a3b8);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
}
.card-como .icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    border-radius: 1.45rem;
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 14%, #ffffff), color-mix(in srgb, var(--accent) 15%, #ffffff));
    color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 15px 28px color-mix(in srgb, var(--primary) 16%, transparent);
    transform: rotate(-3deg);
    transition: transform .24s ease;
}
.card-como:hover .icon { transform: rotate(0) scale(1.06); }
.card-como .icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    right: 9px;
    top: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent);
}
.card-como .icon svg { width: 31px; height: 31px; color: currentColor; stroke-width: 2.15; }
.card-como-secondary .icon { color: var(--accent-dark); }
.card-como-copy { min-width: 0; }
.card-como-kicker {
    display: block;
    margin-bottom: .3rem;
    color: var(--text-light);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.card-como h3 {
    margin: 0 2.4rem .45rem 0;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.3;
}
.card-como p {
    margin: 0;
    color: var(--text-light);
    font-size: .91rem;
    line-height: 1.62;
}
.como-funciona-footer {
    display: grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items: center;
    gap: .9rem;
    margin-top: 1.15rem;
    padding: 1rem 1.05rem 1rem 1.2rem;
    border: 1px solid color-mix(in srgb, var(--primary) 13%, var(--border));
    border-radius: 1.35rem;
    background: rgba(255,255,255,.84);
    box-shadow: 0 18px 42px rgba(15,23,42,.06);
    backdrop-filter: blur(14px);
}
.como-funciona-footer-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 20%, transparent);
}
.como-funciona-footer div { display: grid; gap: .15rem; min-width: 0; }
.como-funciona-footer strong { color: var(--text); font-size: .9rem; }
.como-funciona-footer span { color: var(--text-light); font-size: .79rem; }
.como-funciona-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .7rem 1rem;
    border-radius: .95rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 13px 26px color-mix(in srgb, var(--primary) 20%, transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}
.como-funciona-footer a:hover { transform: translateY(-2px); box-shadow: 0 17px 30px color-mix(in srgb, var(--primary) 27%, transparent); }

/* ---- CONTAINER GERAL ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.page-section { padding: 2.5rem 1.5rem; }

/* ---- CATEGORIAS ---- */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}
.search-bar {
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: .75rem 1rem .75rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
    background: var(--white);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar .search-icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 18px;
    height: 18px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: box-shadow .2s, border-color .2s;
    cursor: pointer;
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.category-card .cat-icon {
    width: 52px;
    height: 52px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.6) 18%, transparent 19%),
        linear-gradient(135deg, rgba(139, 92, 246, .16) 0%, rgba(99, 102, 241, .12) 42%, rgba(34, 197, 94, .14) 100%);
    border: 1px solid rgba(124, 58, 237, .12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 24px rgba(15, 23, 42, .06);
}
.category-card .cat-icon svg {
    width: 26px;
    height: 26px;
    color: #6D28D9;
    filter: drop-shadow(0 4px 10px rgba(109, 40, 217, .18));
}
.category-card .cat-name {
    font-weight: 700;
    font-size: .98rem;
    color: var(--text);
    line-height: 1.3;
}
.category-card .cat-count {
    font-size: .82rem;
    color: #475569;
    font-weight: 600;
}
.public-category-group{border:1px solid var(--border);border-radius:1.15rem;background:var(--white);box-shadow:0 10px 28px rgba(15,23,42,.06);overflow:hidden;align-self:start}.public-category-head{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.75rem;border:0;background:transparent;text-align:left;cursor:pointer;color:var(--text)}.public-category-head:hover{background:rgba(79,70,229,.04)}.public-category-copy{display:grid;gap:.18rem}.public-category-copy strong{font-size:.9rem}.public-category-copy small{font-size:.72rem;color:var(--text-light)}.public-category-chevron{font-size:1.35rem;color:var(--primary);transition:.2s}.public-category-group.is-open .public-category-chevron{transform:rotate(180deg)}.public-subcategory-menu{display:none;padding:.45rem;border-top:1px solid var(--border);background:rgba(248,250,252,.8)}.public-category-group.is-open .public-subcategory-menu{display:grid;gap:.35rem}.public-subcategory-menu a{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem .75rem;border-radius:.75rem;color:var(--text);text-decoration:none;font-size:.82rem;font-weight:700}.public-subcategory-menu a:hover{background:#fff;color:var(--primary)}.public-subcategory-menu a small{color:var(--text-light);font-weight:500;white-space:nowrap}.public-subcategory-all{color:var(--primary)!important;background:rgba(79,70,229,.07)}.public-no-subcategory{padding:.75rem;color:var(--text-light);font-size:.8rem}
.public-category-direct{text-decoration:none}
.public-category-chevron{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,rgba(109,40,217,.12),rgba(34,197,94,.12));box-shadow:0 7px 18px rgba(79,70,229,.12);transition:transform .32s cubic-bezier(.2,.8,.2,1),background .2s,box-shadow .2s}.public-category-chevron svg{width:20px;height:20px;fill:none;stroke:var(--primary);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .32s cubic-bezier(.2,.8,.2,1)}.public-category-head:hover .public-category-chevron{background:linear-gradient(135deg,rgba(109,40,217,.2),rgba(34,197,94,.18));box-shadow:0 9px 22px rgba(79,70,229,.2)}.public-category-head:active .public-category-chevron{transform:scale(.9)}.public-category-group.is-open .public-category-chevron{transform:rotate(180deg);background:linear-gradient(135deg,var(--primary),#7c3aed)}.public-category-group.is-open .public-category-chevron svg{stroke:#fff}.public-category-group.is-open .public-subcategory-menu{animation:categoryMenuOpen .25s ease both}@keyframes categoryMenuOpen{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* ---- BUSCA / LISTA EMPRESAS ---- */
.busca-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.busca-header h1 { font-size: 1.5rem; font-weight: 700; }
.search-full {
    display: flex;
    gap: .75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    width: 100%;
}
.search-full input {
    flex: 1;
    min-width: 200px;
    width: 100%;
    padding: .7rem 1rem .7rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    outline: none;
}
.search-full input:focus { border-color: var(--primary); }
.search-full-wrap { position: relative; flex: 1 1 100%; min-width: 0; width: 100%; }
.search-full-wrap .search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
}
.search-sort-wrap {
    width: 220px;
    max-width: 100%;
}
.search-sort-wrap select {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
}
.ranking-panel {
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(34, 197, 94, .08));
}
.ranking-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ranking-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.ranking-kicker {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .2rem;
}
.ranking-header h2 {
    font-size: 1.2rem;
    line-height: 1.2;
}
.ranking-help {
    color: var(--text-light);
    font-size: .9rem;
}
.ranking-nav {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.ranking-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .86);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.ranking-nav-btn svg {
    width: 18px;
    height: 18px;
}
.ranking-nav-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, .28);
    box-shadow: 0 10px 20px rgba(124, 58, 237, .10);
}
.ranking-nav-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.ranking-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: .25rem;
}
.ranking-carousel::-webkit-scrollbar {
    display: none;
}
.ranking-card {
    display: flex;
    gap: .9rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, .9);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    min-width: 0;
}
.ranking-card:hover {
    border-color: rgba(124, 58, 237, .3);
    box-shadow: var(--shadow-md);
}
.ranking-position {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #7C3AED, #22C55E);
    color: #FFF;
    font-weight: 800;
    flex-shrink: 0;
}
.ranking-logo .company-logo,
.ranking-logo .company-logo-placeholder {
    width: 54px;
    height: 54px;
}
.ranking-copy {
    min-width: 0;
}
.ranking-copy strong,
.ranking-copy span {
    display: block;
}
.ranking-copy strong {
    margin-bottom: .15rem;
}
.ranking-copy span {
    color: var(--text-light);
    font-size: .84rem;
    margin-bottom: .35rem;
}
.ranking-stars .company-stars {
    margin-bottom: 0;
}
.companies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.company-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: box-shadow .2s;
    min-width: 0;
    overflow: hidden;
}
.company-card:hover { box-shadow: var(--shadow-md); }
.company-card-main {
    display: flex;
    flex-shrink: 0;
    text-decoration: none;
}
.company-logo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
}
.company-logo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}
.company-info { flex: 1; min-width: 0; }
.company-name { font-weight: 700; font-size: 1rem; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.company-link:hover {
    color: var(--primary);
}
.company-category { font-size: .8rem; color: var(--text-light); margin-bottom: .4rem; }
.company-stars { display: flex; align-items: center; gap: .3rem; margin-bottom: .4rem; }
.company-stars-inline {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    margin-bottom: 0;
}
.rating-score-inline {
    font-size: 1rem;
    line-height: 1;
    color: var(--text);
    margin-right: .1rem;
}
.star { color: #FBBF24; font-size: .95rem; }
.star-empty { color: #D1D5DB; font-size: .95rem; }
.rating-count { font-size: .8rem; color: var(--text-light); }
.company-address { font-size: .8rem; color: var(--text-light); display: flex; align-items: center; gap: .25rem; margin-bottom: .75rem; }
.company-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #16A34A 100%);
    color: var(--white);
    border: none;
    padding: .6rem 1rem;
    border-radius: var(--radius);
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(37, 211, 102, .22);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(37, 211, 102, .28);
    filter: saturate(1.03);
}
.btn-whatsapp svg {
    width: 15px;
    height: 15px;
}
.btn-share {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    padding: .45rem .85rem;
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
    transition: border-color .2s;
}
.btn-share:hover { border-color: var(--primary); color: var(--primary); }

/* ---- PAGINA EMPRESA ---- */
.company-page-shell {
    padding: 2rem 1rem 3rem;
    background: radial-gradient(circle at top, rgba(139, 92, 246, .08), rgba(34, 197, 94, .04) 42%, transparent 72%);
}
.company-page-card {
    max-width: 980px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .10);
    padding: 1rem;
}
.company-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    color: #475569;
    font-size: .9rem;
    padding: .35rem .25rem 1rem;
}
.company-back-link svg {
    width: 16px;
    height: 16px;
}
.company-hero-band {
    height: 126px;
    border-radius: 1.2rem 1.2rem 0 0;
    background: linear-gradient(90deg, #9333EA 0%, #6366F1 45%, #22C55E 100%);
}
.company-profile {
    margin-top: -46px;
    padding: 0 1rem 1rem;
}
.company-profile-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.company-profile-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 1rem;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .85rem;
}
.company-profile-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: .85rem;
}
.company-profile-main {
    display: flex;
    flex: 1;
    min-width: 0;
}
.company-profile-copy {
    flex: 1;
    min-width: 280px;
}
.company-profile-copy h1 {
    font-size: clamp(1.9rem, 4vw, 2.35rem);
    line-height: 1.05;
    margin-bottom: .35rem;
    color: var(--text);
}
.company-profile-category {
    color: #475569;
    margin-bottom: .55rem;
    font-size: .95rem;
}
.company-profile-description {
    color: #243247;
    max-width: 620px;
    margin-bottom: .85rem;
}
.company-profile-rating {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #475569;
    font-size: .9rem;
}
.company-profile-rating .company-stars {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
}
.company-profile-rating .rating-count {
    margin-left: .2rem;
}
.company-profile-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 360px;
}
.btn-share-whatsapp {
    background: #DCFCE7;
    color: #15803D;
    border-color: transparent;
}
.btn-share-whatsapp:hover {
    border-color: #86EFAC;
    color: #166534;
}
.company-section-card {
    margin: 1.5rem 0;
    background: #F8FAFC;
    border: 1px solid #EEF2FF;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}
.company-section-heading {
    font-weight: 700;
    margin-bottom: .85rem;
}
.company-location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.company-location-copy span {
    display: block;
    font-size: .82rem;
    color: #64748B;
    margin-bottom: .2rem;
}
.company-location-copy strong {
    font-size: .95rem;
    line-height: 1.55;
    color: #182132;
}
.company-map-link {
    text-decoration: none;
    color: #6D28D9;
    font-weight: 600;
    white-space: nowrap;
}
.company-primary-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: linear-gradient(135deg, #25D366 0%, #1FB857 52%, #169C46 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    margin: 1rem 0 1.25rem;
    box-shadow: 0 18px 40px rgba(37, 211, 102, .28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.company-primary-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 211, 102, .34);
    filter: saturate(1.04);
}
.company-primary-whatsapp svg {
    width: 20px;
    height: 20px;
}
.company-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}
.company-social-link {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: .95rem 1rem;
    text-decoration: none;
    color: var(--text);
    background: var(--white);
}
.company-social-link span {
    display: block;
    font-size: .82rem;
    color: #64748B;
    margin-bottom: .15rem;
}
.company-social-link strong {
    font-size: .95rem;
    color: #182132;
}
.company-social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.company-rating-help {
    color: #64748B;
    margin-bottom: .9rem;
}
.rating-form-card {
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 1rem;
    background: var(--white);
    padding: 1rem;
}
.rating-form-card.is-rated {
    opacity: .92;
}
.rating-star-input {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(.32rem, 1.6vw, .55rem);
    flex-wrap: nowrap;
    margin-bottom: .9rem;
    width: 100%;
    overflow: visible;
}
.rating-star-btn {
    width: clamp(40px, 13.2vw, 48px);
    height: clamp(40px, 13.2vw, 48px);
    flex: 0 0 clamp(40px, 13.2vw, 48px);
    border-radius: .9rem;
    border: 1px solid var(--border);
    background: var(--white);
    color: #CBD5E1;
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: 1;
    cursor: pointer;
    transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.rating-star-btn:hover,
.rating-star-btn.is-active {
    transform: translateY(-1px);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, .45);
    background: rgba(245, 158, 11, .08);
}
.rating-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.rating-form-footer span {
    color: #64748B;
    font-size: .9rem;
}
.rating-submit-btn {
    width: auto;
    margin-top: 0;
    min-width: 220px;
}
.rating-summary-inline {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    padding: .15rem 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}
.rating-summary-inline-score {
    font-size: 1rem;
    line-height: 1;
    color: var(--text);
    font-weight: 700;
}
.rating-summary-inline-stars {
    display: inline-flex;
    align-items: center;
    gap: .12rem;
    font-size: .92rem;
}
.rating-summary-inline-count {
    color: #475569;
    font-weight: 500;
    font-size: .92rem;
}
.rating-empty {
    color: #64748B;
    margin-top: .75rem;
}

/* ---- CADASTRO ---- */
.cadastro-form {
    max-width: 640px;
    margin: 0 auto;
}
.cadastro-form h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.char-count { font-size: .78rem; color: var(--text-light); text-align: right; margin-top: .25rem; }
.logo-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s;
    background: var(--bg);
}
.logo-upload:hover { border-color: var(--primary); }
.logo-upload p { font-size: .9rem; color: var(--text-light); margin-top: .5rem; }
.logo-help {
    display: block;
    margin-top: .35rem;
    color: var(--text-light);
    font-size: .78rem;
}
.logo-file-name {
    margin-top: .5rem;
    font-size: .78rem;
    color: var(--text-light);
    word-break: break-word;
}
.btn-submit {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: .85rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    margin-top: .5rem;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.btn-secondary {
    width: auto;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    padding: .85rem 1rem;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* ---- LOGIN EMPRESA ---- */
.login-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--bg);
}
.login-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.login-card .icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.login-card h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: .4rem; }
.login-card p { font-size: .9rem; color: var(--text-light); margin-bottom: 1.75rem; }
.divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--text-light); font-size: .85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-voltar {
    width: 100%;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    padding: .65rem;
    border-radius: var(--radius);
    font-size: .95rem;
    cursor: pointer;
    transition: border-color .2s;
    text-decoration: none;
    display: block;
    text-align: center;
}
.btn-voltar:hover { border-color: var(--primary); color: var(--primary); }

/* ---- ADMIN ---- */
.admin-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-subtitle {
    color: #64748B;
    margin-top: .35rem;
}
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}
.admin-actions .btn-submit,
.admin-actions .btn-voltar {
    width: auto;
    margin-top: 0;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.35rem;
    box-shadow: var(--shadow);
}
.admin-card h2 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.company-dashboard-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.company-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.company-dashboard-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .45rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--primary);
}
.company-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.company-dashboard-actions .btn-voltar,
.company-dashboard-actions .btn-secondary {
    width: auto;
    margin-top: 0;
}
.company-dashboard-logout {
    min-width: 120px;
}
.company-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.company-stat-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(34, 197, 94, .08));
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.15rem;
    box-shadow: var(--shadow);
}
.company-stat-card span {
    display: block;
    color: #526377;
    font-size: .85rem;
    margin-bottom: .35rem;
}
.company-stat-card strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: .35rem;
}
.company-stat-card small {
    color: #526377;
    font-size: .82rem;
}
.company-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.company-logo-preview-box {
    margin-top: .75rem;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #64748B;
    font-size: .82rem;
}
.company-logo-preview-box img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.company-dashboard-hint {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: 1rem;
    background: var(--primary-bg);
    color: var(--text);
    font-size: .9rem;
}
.company-dashboard-hint a {
    color: #6D28D9;
    word-break: break-all;
}
.company-rating-bars {
    display: grid;
    gap: .85rem;
}
.company-rating-bar-row {
    display: grid;
    grid-template-columns: 36px 1fr 34px;
    align-items: center;
    gap: .75rem;
}
.company-rating-bar-row span,
.company-rating-bar-row strong {
    font-size: .88rem;
}
.company-rating-bar-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .16);
    overflow: hidden;
}
.company-rating-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8B5CF6, #22C55E);
}
.company-dashboard-ratings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}
.company-dashboard-rating-summary {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.company-dashboard-rating-summary strong {
    font-size: 1rem;
    line-height: 1;
}
.company-dashboard-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: .12rem;
    font-size: .92rem;
}
.company-dashboard-rating-summary span {
    color: #475569;
    font-weight: 500;
}
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 600;
    color: #334155;
}
.checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.company-bio-toggle {
    margin-top: .5rem;
}
.bio-link-editor {
    display: grid;
    gap: .8rem;
}
.bio-link-row {
    display: grid;
    grid-template-columns: auto 1.1fr 1.6fr .9fr auto;
    gap: .75rem;
    align-items: center;
}
.bio-link-drag {
    border: 1px dashed var(--border);
    background: rgba(139, 92, 246, .06);
    color: var(--primary);
    border-radius: .9rem;
    padding: .82rem .7rem;
    cursor: grab;
    font-weight: 800;
    letter-spacing: .08em;
}
.bio-link-row.is-dragging {
    opacity: .6;
}
.bio-link-remove,
.bio-link-add {
    white-space: nowrap;
}
.bio-link-remove {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: .9rem;
    padding: .82rem 1rem;
    font-weight: 700;
    cursor: pointer;
}
.bio-link-remove:hover {
    border-color: rgba(239, 68, 68, .35);
    color: #dc2626;
}
.company-bio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .75rem;
}
.admin-help {
    color: #64748B;
    font-size: .85rem;
    margin-bottom: .8rem;
}
.code-input {
    min-height: 240px !important;
    font-family: Consolas, "Courier New", monospace;
    font-size: .85rem;
}

/* ---- BOTOES SOCIAIS FLUTUANTES ---- */
.floating-social-dock {
    position: fixed;
    right: 1.25rem;
    bottom: 5.25rem;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem .85rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 24px 52px rgba(15, 23, 42, .16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    width: 58px;
    height: 58px;
    background: radial-gradient(circle at 30% 30%, #4AF58A 0%, #25D366 55%, #18B955 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(37, 211, 102, .35);
    z-index: 999;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    animation: whatsappVibrate 2.4s ease-in-out infinite;
}
.floating-social-btn {
    position: static !important;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
    overflow: hidden;
    animation: floatingSocialBob 3.2s ease-in-out infinite;
}
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(37, 211, 102, .32);
    border-radius: inherit;
    animation: whatsappPulse 2.4s ease-out infinite;
}
.floating-social-btn::after {
    display: none;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 18px 34px rgba(37, 211, 102, .45);
}
.floating-social-btn:hover {
    transform: translateY(-4px) scale(1.16);
    box-shadow: 0 22px 38px rgba(15, 23, 42, .24);
    filter: saturate(1.08);
}
.whatsapp-float svg {
    width: 33px;
    height: 33px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .12));
}
.floating-social-btn svg {
    width: 30px;
    height: 30px;
}
.floating-social-btn.is-instagram {
    background: linear-gradient(135deg, #f58529 0%, #feda77 18%, #dd2a7b 52%, #8134af 78%, #515bd4 100%);
    animation-delay: 0s;
}
.floating-social-btn.is-whatsapp {
    background: radial-gradient(circle at 30% 30%, #4AF58A 0%, #25D366 55%, #18B955 100%);
    animation-delay: .5s;
}
@keyframes floatingSocialBob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.01); }
}
@keyframes whatsappVibrate {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    4% { transform: translate3d(-1px, 0, 0) rotate(-5deg); }
    8% { transform: translate3d(1px, 0, 0) rotate(5deg); }
    12% { transform: translate3d(-1px, 0, 0) rotate(-4deg); }
    16% { transform: translate3d(1px, 0, 0) rotate(4deg); }
    20% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes whatsappPulse {
    0% { transform: scale(.92); opacity: 0; }
    18% { opacity: .55; }
    52% { transform: scale(1.16); opacity: 0; }
    100% { transform: scale(1.16); opacity: 0; }
}

/* ---- DARK MODE TOGGLE ---- */
.dark-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: background .2s;
}
.dark-toggle svg { width: 20px; height: 20px; color: var(--text-light); }
/* ---- TOAST ---- */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.toast {
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
    color: var(--white);
    font-size: .9rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: slideIn .3s ease;
    max-width: 340px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger);  }
.toast.info    { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
    padding: .45rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s;
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-light); }
.empty-state svg { width: 64px; height: 64px; margin-bottom: 1rem; opacity: .4; }
.empty-state p { font-size: 1rem; }

/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text-light);
}
.legal-footer-inner{max-width:1180px;margin:0 auto;display:grid;gap:1.25rem}.legal-footer-brand{display:grid;gap:.25rem}.legal-footer-brand strong{font-size:1.15rem;color:var(--text)}.legal-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.legal-footer-card{display:grid;grid-template-columns:auto 1fr;gap:.15rem .65rem;align-items:center;padding:1rem;text-align:left;border:1px solid var(--border);border-radius:1rem;background:var(--white);color:var(--text)!important;text-decoration:none!important;box-shadow:0 10px 25px rgba(15,23,42,.06);transition:.2s}.legal-footer-card:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:0 14px 32px rgba(79,70,229,.12)}.legal-footer-card span{grid-row:1/3;font-size:1.35rem}.legal-footer-card strong{font-size:.9rem}.legal-footer-card small{color:var(--text-light);font-weight:500}.legal-footer-contact{display:flex;justify-content:center;flex-wrap:wrap;gap:.7rem 1.2rem}.legal-footer-contact a{color:var(--primary);font-weight:700;text-decoration:none}.legal-footer-contact a:hover{text-decoration:underline}.legal-footer-inner p{margin:.25rem 0 0;line-height:1.6}@media(max-width:700px){footer{padding:1.5rem 1rem 6.5rem}.legal-footer-links{grid-template-columns:1fr}.legal-footer-contact{flex-direction:column;gap:.65rem}}

/* Rodapé jurídico compacto no desktop: informa sem competir com o conteúdo. */
@media (min-width: 701px) {
    #site-footer {
        padding: 1.15rem 1.5rem 1.25rem;
        background: linear-gradient(180deg, rgba(248,250,252,.35), rgba(255,255,255,.92));
    }
    #site-footer .legal-footer-inner {
        max-width: 1080px;
        gap: .62rem;
    }
    #site-footer .legal-footer-brand {
        display: flex;
        align-items: baseline;
        justify-content: center;
        flex-wrap: wrap;
        gap: .25rem .6rem;
    }
    #site-footer .legal-footer-brand strong {
        font-size: .9rem;
    }
    #site-footer .legal-footer-brand span {
        font-size: .72rem;
    }
    #site-footer .legal-footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: .42rem;
    }
    #site-footer .legal-footer-card {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        width: auto;
        padding: .48rem .7rem;
        border-color: rgba(148,163,184,.26);
        border-radius: .72rem;
        background: rgba(255,255,255,.72);
        box-shadow: none;
    }
    #site-footer .legal-footer-card:hover {
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--primary) 38%, transparent);
        background: rgba(255,255,255,.96);
        box-shadow: 0 7px 18px rgba(15,23,42,.06);
    }
    #site-footer .legal-footer-card span {
        grid-row: auto;
        font-size: .9rem;
        line-height: 1;
    }
    #site-footer .legal-footer-card strong {
        font-size: .72rem;
        font-weight: 750;
    }
    #site-footer .legal-footer-card small {
        display: none;
    }
    #site-footer .legal-footer-contact {
        gap: .35rem 1rem;
        font-size: .7rem;
    }
    #site-footer .legal-footer-inner > p {
        margin: 0;
        font-size: .67rem;
        line-height: 1.45;
    }
    body .pwa-install-mobile {
        left: 1.1rem;
        right: auto;
        bottom: 1rem;
        transform: none;
        padding: .65rem .9rem;
        font-size: .75rem;
        box-shadow: 0 12px 28px rgba(124,58,237,.22);
    }
    body .pwa-install-mobile:hover {
        transform: translateY(-2px);
    }
}

/* Instalação do app no mobile: sempre central, acima da navegação e visível. */
@keyframes pwa-install-mobile-pulse {
    0%, 100% {
        box-shadow: 0 14px 30px rgba(109, 40, 217, .28), 0 0 0 0 rgba(139, 92, 246, .22);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 18px 38px rgba(109, 40, 217, .38), 0 0 0 9px rgba(139, 92, 246, 0);
        filter: brightness(1.08);
    }
}

@keyframes pwa-install-mobile-shine {
    0%, 62% { left: -42%; }
    100% { left: 125%; }
}

@media (max-width: 980px) {
    html body .pwa-install-mobile {
        left: 50% !important;
        right: auto !important;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
        width: auto;
        min-width: 148px;
        max-width: calc(100vw - 1.5rem);
        padding: .72rem 1.05rem;
        border-radius: 999px;
        transform: translateX(-50%) !important;
        z-index: 175;
        overflow: hidden;
        isolation: isolate;
        animation: pwa-install-mobile-pulse 2.4s ease-in-out infinite;
    }
    html body .pwa-install-mobile::after {
        content: "";
        position: absolute;
        top: -60%;
        left: -42%;
        width: 28%;
        height: 220%;
        z-index: -1;
        transform: rotate(18deg);
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
        animation: pwa-install-mobile-shine 3.4s ease-in-out infinite;
        pointer-events: none;
    }
    html body .pwa-install-mobile:hover {
        transform: translateX(-50%) translateY(-2px) !important;
    }
    html body .pwa-install-mobile:active {
        transform: translateX(-50%) scale(.97) !important;
    }
}

@media (max-width: 768px) {
    html body .pwa-install-mobile {
        bottom: calc(var(--mobile-bottom-nav-space, 112px) + .72rem) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .pwa-install-mobile,
    html body .pwa-install-mobile::after {
        animation: none !important;
    }
}

.dark body,
html.dark body {
    background: #182132;
    color: #F8FAFC;
}
html.dark .navbar,
html.dark .card-como,
html.dark .login-card,
html.dark .company-card,
html.dark .category-card,
html.dark .dark-toggle {
    background: #253042;
    border-color: rgba(148, 163, 184, .12);
}
html.dark .floating-social-dock {
    background: rgba(24, 33, 50, .86);
    border-color: rgba(148, 163, 184, .14);
    box-shadow: 0 24px 52px rgba(2, 6, 23, .34);
}
html.dark .hero,
html.dark .como-funciona {
    background: #182132;
}
html.dark .navbar-brand,
html.dark .company-name,
html.dark .page-title,
html.dark .login-card h1,
html.dark .card-como p,
html.dark .buscar-title {
    color: #F8FAFC;
}
html.dark .category-card .cat-name {
    color: #F8FAFC;
}
html.dark .category-card .cat-count {
    color: #CBD5E1;
}
html.dark .category-card .cat-icon {
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 18%, transparent 19%),
        linear-gradient(135deg, rgba(139, 92, 246, .22) 0%, rgba(79, 70, 229, .18) 40%, rgba(34, 197, 94, .18) 100%);
    border-color: rgba(167, 139, 250, .18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 28px rgba(2, 6, 23, .24);
}
html.dark .category-card .cat-icon svg {
    color: #E9D5FF;
}
html.dark .hero h1,
html.dark .como-funciona h2 {
    background: linear-gradient(90deg, #9333EA 0%, #22C55E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
html.dark .navbar-links a,
html.dark .company-category,
html.dark .company-address,
html.dark .hero p,
html.dark .login-card p,
html.dark .footer,
html.dark footer,
html.dark .empty-state,
html.dark .page-btn,
html.dark .cat-count {
    color: #CBD5E1;
}
html.dark footer {
    border-top-color: transparent;
    color: #A8B6C9;
}
html.dark .navbar-links a:hover,
html.dark .navbar-links a.active {
    color: #F8FAFC;
}
html.dark .btn-cadastrar,
html.dark .btn-instalar,
.pwa-install-mobile,
html.dark .btn-hero-search,
html.dark .btn-hero-cadastrar,
html.dark .btn-whatsapp {
    color: #FFFFFF !important;
}
html.dark .pwa-install-mobile {
    background: linear-gradient(90deg, #9333EA, #7C3AED);
    box-shadow: 0 18px 40px rgba(91, 33, 182, .35);
}
html.dark .page-btn,
html.dark .btn-share,
html.dark .btn-voltar,
html.dark .search-sort-wrap select,
html.dark .search-bar input,
html.dark .search-full input,
html.dark .form-group input,
html.dark .form-group select,
html.dark .form-group textarea {
    background: #182132;
    color: #F8FAFC;
    border-color: rgba(148, 163, 184, .22);
}
html.dark .search-bar input::placeholder,
html.dark .search-full input::placeholder {
    color: #94A3B8;
}
html.dark .btn-share,
html.dark .btn-voltar,
html.dark .page-btn {
    background: #182132;
}
html.dark .btn-secondary,
html.dark .admin-card {
    background: #253042;
    border-color: rgba(148, 163, 184, .12);
    color: #F8FAFC;
}
html.dark .company-stat-card {
    background: linear-gradient(135deg, rgba(91, 33, 182, .24), rgba(22, 163, 74, .18));
    border-color: rgba(148, 163, 184, .14);
}
html.dark .admin-subtitle,
html.dark .admin-help {
    color: #D6E2F3;
}
html.dark .company-dashboard-hint,
html.dark .company-dashboard-rating-item {
    background: #1E293B;
    border-color: rgba(148, 163, 184, .14);
    color: #F8FAFC;
}
html.dark .company-stat-card span,
html.dark .company-stat-card small,
html.dark .company-dashboard-rating-item small,
html.dark .company-logo-preview-box {
    color: #D6E2F3;
}
html.dark .form-group label,
html.dark .checkbox-inline {
    color: #E5EEF8;
}
html.dark .company-dashboard-hint a {
    color: #C4B5FD;
}
html.dark .company-dashboard-rating-summary span {
    color: #D6E2F3;
}
html.dark .company-rating-bar-track {
    background: rgba(148, 163, 184, .2);
}
html.dark .company-page-card,
html.dark .company-profile-logo-wrap,
html.dark .company-social-link,
html.dark .rating-form-card,
html.dark .ranking-card {
    background: #253042;
    border-color: rgba(148, 163, 184, .14);
    color: #F8FAFC;
}
html.dark .rating-score-inline,
html.dark .rating-summary-inline-score,
html.dark .company-dashboard-rating-summary strong {
    color: #F8FAFC;
}
html.dark .ranking-nav-btn {
    background: #182132;
    border-color: rgba(148, 163, 184, .22);
    color: #F8FAFC;
}
html.dark .company-page-shell {
    background: radial-gradient(circle at top, rgba(147, 51, 234, .18), rgba(34, 197, 94, .10) 42%, transparent 72%);
}
html.dark .company-section-card {
    background: #1E293B;
    border-color: rgba(148, 163, 184, .14);
}
html.dark .company-back-link,
html.dark .company-profile-category,
html.dark .company-profile-rating,
html.dark .company-location-copy span,
html.dark .company-social-link span,
html.dark .ranking-copy span,
html.dark .ranking-help,
html.dark .company-rating-help,
html.dark .rating-form-footer span,
html.dark .logo-help,
html.dark .logo-file-name {
    color: #CBD5E1;
}
html.dark .company-profile-description,
html.dark .company-location-copy strong,
html.dark .company-map-link,
html.dark .company-social-link strong,
html.dark .company-link {
    color: #F8FAFC;
}
html.dark .company-page-card .company-profile-copy h1,
html.dark .company-page-card .company-section-heading,
html.dark .company-page-card .company-primary-whatsapp,
html.dark .company-page-card .btn-share {
    color: #F8FAFC;
}
html.dark .company-page-card .company-primary-whatsapp {
    box-shadow: 0 20px 42px rgba(34, 197, 94, .24);
}
html.dark .company-page-card .btn-share {
    background: #182132;
    border-color: rgba(148, 163, 184, .24);
}
html.dark .company-page-card .btn-share svg,
html.dark .company-page-card .company-back-link svg {
    color: #CBD5E1;
}
html.dark .company-map-link:hover,
html.dark .company-link:hover,
html.dark .company-social-link:hover {
    color: #C084FC;
}
html.dark .bio-link-remove {
    border-color: rgba(148, 163, 184, .22);
    color: #E5EEF8;
}
html.dark .bio-link-drag {
    border-color: rgba(148, 163, 184, .22);
    background: rgba(139, 92, 246, .12);
    color: #C4B5FD;
}
html.dark .bio-link-remove:hover {
    border-color: rgba(248, 113, 113, .45);
    color: #FCA5A5;
}
html.dark .ranking-panel {
    background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(34, 197, 94, .14));
    border-color: rgba(148, 163, 184, .14);
}
html.dark .rating-star-btn {
    background: #182132;
    border-color: rgba(148, 163, 184, .22);
    color: #64748B;
}
html.dark .rating-star-btn:hover,
html.dark .rating-star-btn.is-active {
    color: #FBBF24;
    border-color: rgba(251, 191, 36, .42);
    background: rgba(251, 191, 36, .08);
}
html.dark .company-section-heading {
    color: #F8FAFC;
}
html.dark .btn-share-whatsapp {
    background: rgba(34, 197, 94, .18);
    color: #BBF7D0;
}
html.dark .btn-share-whatsapp:hover {
    border-color: rgba(134, 239, 172, .4);
    color: #DCFCE7;
}
html.dark .empty-state svg,
html.dark .dark-toggle svg {
    color: #A8B6C9;
}
html.dark .hero-logo-light {
    opacity: 0;
    visibility: hidden;
}
html.dark .hero-logo-dark {
    display: block !important;
    opacity: 1;
    visibility: visible;
}
html.dark .card-como .icon { background: rgba(88, 28, 135, .4); }
html.dark .card-como:nth-child(2) .icon { background: rgba(22, 163, 74, .18); }
html.dark .card-como p strong { color: #C084FC; }
html.dark .como-funciona-header > p,
html.dark .card-como-kicker,
html.dark .card-como p,
html.dark .como-funciona-footer span { color: #CBD5E1; }
html.dark .card-como h3,
html.dark .como-funciona-footer strong { color: #F8FAFC; }
html.dark .como-funciona-footer {
    background: rgba(37,48,66,.86);
    border-color: rgba(148,163,184,.14);
}

/* ---- RESPONSIVO ---- */
@media (max-width: 768px) {
    body {
        padding-bottom: 6.5rem;
    }
    .container,
    .page-section {
        padding-left: clamp(.9rem, 3vw, 1.15rem);
        padding-right: clamp(.9rem, 3vw, 1.15rem);
    }
    .navbar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        padding: .55rem .9rem calc(.55rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(229, 231, 235, .92);
        border-bottom: none;
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, .08);
        display: flex;
        justify-content: center;
    }
    .company-dashboard-header {
        flex-direction: column;
    }
    .company-dashboard-actions {
        width: 100%;
    }
    .company-dashboard-actions .btn-voltar,
    .company-dashboard-actions .btn-secondary {
        width: 100%;
    }
    .company-dashboard-stats,
    .company-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .bio-link-row {
        grid-template-columns: 1fr;
    }
    .navbar-inner {
        height: auto;
        min-height: 0;
        gap: 0;
        justify-content: center;
        max-width: 460px;
        width: 100%;
        margin: 0 auto;
    }
    .navbar-brand {
        display: none;
    }
    .navbar-links {
        width: min(100%, 380px);
        display: grid;
        grid-template-columns: repeat(5, minmax(44px, 1fr));
        justify-content: center;
        place-items: center;
        flex-wrap: nowrap;
        gap: .3rem;
        margin-left: 0;
        min-width: 0;
    }
    .navbar-links li {
        min-width: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .navbar-links a {
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 999px;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        min-width: 0;
    }
    .navbar-links a:hover,
    .navbar-links a.active,
    .navbar-links a.btn-cadastrar {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
    .navbar-links a .navbar-link-label {
        display: none;
    }
    .navbar-link-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .navbar-link-icon svg {
        display: block;
        width: 1.15rem;
        height: 1.15rem;
    }
    .navbar-links .btn-cadastrar {
        padding: .8rem .55rem;
    }
    .dark-toggle {
        bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px));
        right: 1rem;
        width: 48px;
        height: 48px;
        z-index: 121;
    }
    .whatsapp-float {
        right: 1rem;
        bottom: 11.25rem;
    }
    .floating-social-dock {
        right: .8rem;
        bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
        gap: .85rem;
        padding: .85rem .72rem;
        border-radius: 1.8rem;
    }
    .floating-social-btn {
        width: 52px;
        height: 52px;
    }
    .hero {
        padding: 1.45rem 0 1.55rem;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: .85rem;
    }
    .hero-copy {
        max-width: 100%;
        order: 2;
    }
    .home-company-alert-section {
        padding: 0 1rem 1rem;
        margin-top: -1rem;
    }
    .home-company-alert-main {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    .home-company-alert-meta {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
    .hero-logo {
        order: 1;
        max-width: 18.5rem;
        aspect-ratio: 16 / 7;
        width: min(88vw, 18.5rem);
        margin: 0 auto -.1rem;
    }
    .hero-logo img {
        padding: .15rem .35rem;
    }
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.08;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }
    .btn-hero-search,
    .btn-hero-cadastrar {
        width: 100%;
        padding: 1rem 1.25rem;
        border-radius: 1rem;
        max-width: 100%;
    }
    .home-company-alert-card {
        padding: .95rem;
    }
    .home-company-alert-copy strong {
        font-size: 1rem;
    }
    .home-company-alert-copy span {
        font-size: .9rem;
    }
    .como-funciona {
        padding: 4rem 1rem 7rem;
    }
    .como-funciona h2 {
        margin-bottom: 0;
    }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .companies-grid { grid-template-columns: 1fr; }
    .ranking-header {
        align-items: stretch;
    }
    .ranking-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .ranking-carousel { grid-auto-columns: 86%; }
    .search-full,
    .search-full-wrap,
    .search-full input,
    .search-sort-wrap {
        width: 100%;
        min-width: 0;
    }
    .cards-como {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .card-como {
        padding: 1.4rem;
        border-radius: 1.4rem;
    }
    .como-funciona-footer { grid-template-columns:auto minmax(0,1fr); }
    .como-funciona-footer a { grid-column:1 / -1; width:100%; }
    .company-card,
    .category-card,
    .cadastro-form,
    .login-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .company-card {
        padding: .95rem;
        border-radius: 1rem;
    }
    .company-actions {
        flex-wrap: wrap;
        width: 100%;
    }
    .company-actions .btn-whatsapp {
        flex: 1 1 100%;
        min-height: 44px;
    }
    .company-actions .btn-share {
        flex: 1 1 auto;
    }
    .company-address {
        word-break: break-word;
    }
    .rating-form-card {
        padding: .9rem;
    }
    .rating-star-input {
        justify-content: space-between;
        gap: .28rem;
    }
    .rating-star-btn {
        width: clamp(38px, 13vw, 46px);
        height: clamp(38px, 13vw, 46px);
        flex-basis: clamp(38px, 13vw, 46px);
        border-radius: 999px;
    }
    .company-page-shell {
        padding: 1.25rem .25rem 2.5rem;
    }
    .company-page-card {
        padding: .85rem;
        border-radius: 1rem;
    }
    .company-hero-band {
        height: 102px;
        border-radius: .95rem .95rem 0 0;
    }
    .company-profile {
        padding: 0 .25rem .5rem;
    }
    .company-profile-grid {
        gap: 1rem;
    }
    .company-profile-copy,
    .company-profile-actions {
        min-width: 0;
        width: 100%;
    }
    .company-profile-actions {
        justify-content: stretch;
    }
    .company-profile-actions .btn-share,
    .company-profile-actions .btn-share-whatsapp,
    .company-map-link,
    .company-social-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .company-location-row {
        align-items: stretch;
    }
    .company-primary-whatsapp {
        position: sticky;
        bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
        z-index: 25;
        margin: .85rem 0 1rem;
        min-height: 56px;
        border-radius: 1.1rem;
    }
    .company-social-grid {
        grid-template-columns: 1fr;
    }
    .rating-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .rating-submit-btn {
        width: 100%;
        min-width: 0;
    }
    .rating-summary-inline,
    .company-dashboard-rating-summary {
        align-items: flex-start;
    }
    .form-row { grid-template-columns: 1fr; }
    .admin-header,
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .navbar-links .btn-instalar { display: none; }
    .pwa-install-mobile {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(82vw, 320px);
        bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
        border-radius: 1.05rem;
    }
    .pwa-install-mobile:hover {
        transform: translateX(-50%) translateY(-2px);
    }
}
@media (max-width: 480px) {
    .container,
    .page-section {
        padding-left: .75rem;
        padding-right: .75rem;
    }
    .navbar {
        padding: .45rem .75rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-links {
        width: min(100%, 340px);
        margin: 0 auto;
        gap: .2rem;
    }
    .navbar-links a {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 999px;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        min-width: 0;
    }
    .navbar-links a .navbar-link-label { display: none; }
    .btn-cadastrar {
        padding: .65rem .85rem;
    }
    .hero {
        padding: 1.15rem 0 1.35rem;
    }
    .home-company-alert-section {
        padding: 0 .75rem .85rem;
        margin-top: -.75rem;
    }
    .home-company-alert-main {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: .85rem;
    }
    .home-company-alert-logo {
        width: 56px;
        height: 56px;
        border-radius: 1rem;
    }
    .home-company-alert-meta {
        font-size: .85rem;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero-logo {
        max-width: 16.25rem;
        width: min(86vw, 16.25rem);
        aspect-ratio: 16 / 7;
        margin-bottom: -.15rem;
    }
    .hero-logo img {
        padding: 0 .25rem;
    }
    .como-funciona {
        padding: 3.25rem .75rem 7.25rem;
    }
    .card-como {
        grid-template-columns:58px minmax(0,1fr);
        gap:.9rem;
        padding:1.15rem;
        border-radius:1.2rem;
    }
    .card-como .icon { width:56px;height:56px;border-radius:1.15rem; }
    .card-como .icon svg { width:25px;height:25px; }
    .card-como h3 { margin-right:1.8rem;font-size:1rem; }
    .card-como p { font-size:.84rem;line-height:1.55; }
    .como-funciona-header { margin-bottom:1.6rem; }
    .como-funciona-header > p { font-size:.9rem; }
    .como-funciona-eyebrow { font-size:.64rem; }
    .como-funciona-footer { padding:.9rem; }
    .company-card,
    .category-card,
    .login-card,
    .cadastro-form {
        border-radius: 1rem;
    }
    .category-card {
        padding: 1.15rem 1rem;
        gap: .85rem;
    }
    .company-card {
        gap: .75rem;
    }
    .company-logo,
    .company-logo-placeholder {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    .category-card .cat-name {
        font-size: 1rem;
    }
    .category-card .cat-count {
        font-size: .86rem;
    }
    .company-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.35;
    }
    .categories-grid { grid-template-columns: 1fr; }
    .pwa-install-mobile {
        left: 50%;
        right: auto;
        width: min(calc(100vw - 1.5rem), 340px);
        bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
        justify-content: center;
        border-radius: 1rem;
    }
    .pwa-install-mobile:hover {
        transform: translateX(-50%) translateY(-2px);
    }
    .whatsapp-float {
        right: .75rem;
        bottom: 10.75rem;
    }
    .floating-social-dock {
        right: .65rem;
        bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
        gap: .7rem;
        padding: .72rem .6rem;
    }
    .floating-social-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width:700px){
  #site-footer{padding:1.1rem .7rem 5.8rem}
  #site-footer .legal-footer-inner{gap:.8rem}
  #site-footer .legal-footer-brand{gap:.05rem}
  #site-footer .legal-footer-brand strong{font-size:.95rem}
  #site-footer .legal-footer-brand span{font-size:.72rem}
  #site-footer .legal-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.42rem}
  #site-footer .legal-footer-card{min-height:72px;padding:.55rem .3rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.28rem;text-align:center;border-radius:.8rem;box-shadow:0 7px 18px rgba(15,23,42,.05)}
  #site-footer .legal-footer-card span{font-size:1rem;line-height:1}
  #site-footer .legal-footer-card strong{font-size:.67rem;line-height:1.2}
  #site-footer .legal-footer-card small{display:none}
  #site-footer .legal-footer-contact{display:flex;flex-direction:row;justify-content:center;gap:.35rem .75rem;font-size:.7rem}
  #site-footer .legal-footer-inner>p{max-width:360px;margin:0 auto;font-size:.65rem;line-height:1.45}
}

/* Crédito de criação no rodapé */
#site-footer .legal-footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  width:100%;
  margin:.08rem auto 0;
}
#site-footer .legal-footer-copyright{
  flex:1 1 auto;
  margin:0;
  text-align:left;
  color:var(--text-light);
  font-size:.67rem;
  line-height:1.5;
}
#site-footer .legal-footer-credit{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.42rem;
  padding:.24rem .46rem .24rem .3rem;
  border:1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius:999px;
  background:color-mix(in srgb, var(--white) 82%, transparent);
  color:var(--text-light);
  text-decoration:none;
  font-size:.65rem;
  line-height:1;
  white-space:nowrap;
  opacity:.82;
  transition:opacity .2s ease, transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#site-footer .legal-footer-credit img{
  display:block;
  width:26px;
  height:26px;
  object-fit:contain;
  border-radius:50%;
}
#site-footer .legal-footer-credit strong{
  color:var(--text);
  font-weight:800;
}
#site-footer .legal-footer-credit:hover,
#site-footer .legal-footer-credit:focus-visible{
  opacity:1;
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--primary) 32%, var(--border));
  box-shadow:0 7px 18px rgba(15,23,42,.07);
}
#site-footer .legal-footer-credit:focus-visible{
  outline:2px solid var(--primary);
  outline-offset:2px;
}
@media(max-width:700px){
  #site-footer .legal-footer-bottom{
    flex-direction:column;
    justify-content:center;
    gap:.58rem;
    margin-top:.08rem;
  }
  #site-footer .legal-footer-copyright{
    max-width:360px;
    margin:0 auto;
    text-align:center;
    font-size:.65rem;
  }
  #site-footer .legal-footer-credit{
    align-self:center;
    font-size:.64rem;
  }
}
