/* Página pública /modulo/{id} — Unio Studio */

.mkt-modulo-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
    background: linear-gradient(165deg, #f0f4fb 0%, #e8eef8 45%, #f8fafd 100%);
    color: #0f172a;
}

.mkt-modulo-page__header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 32px);
    border-bottom: 1px solid rgba(75, 114, 190, 0.14);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.mkt-modulo-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #4b72be;
    text-decoration: none;
    white-space: nowrap;
}

.mkt-modulo-page__back:hover {
    color: #3d5f9f;
}

.mkt-modulo-page__header .mkt-brand {
    justify-self: center;
    text-decoration: none;
}

.mkt-modulo-page__header .mkt-btn {
    justify-self: end;
    white-space: nowrap;
}

.mkt-modulo-page__main {
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 24px) 56px;
}

.mkt-modulo-page .mkt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mkt-modulo-page .mkt-btn--glow {
    background: linear-gradient(135deg, #4b72be 0%, #3d61a8 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(75, 114, 190, 0.35);
}

.mkt-modulo-page .mkt-btn--glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(75, 114, 190, 0.42);
}

.mkt-modulo-page .mkt-btn--sm {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 10px;
}

.mkt-studio-info--page {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(75, 114, 190, 0.16);
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

.mkt-studio-info.mkt-studio-info--page {
    padding: clamp(20px, 4vw, 32px);
}

.mkt-studio-info--page .mkt-studio-info__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.mkt-studio-info--page .mkt-studio-info__brand {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}

.mkt-studio-info--page .mkt-studio-info__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b72be;
}

.mkt-studio-info--page .mkt-studio-info__title {
    font-family: 'Sora', 'Nunito', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.mkt-studio-info--page .mkt-studio-info__desc {
    margin: 8px 0 0;
    font-size: 15px;
    color: #4d5f76;
    line-height: 1.5;
}

.mkt-studio-info--page .mkt-studio-info__thumb {
    width: 128px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.mkt-studio-info--page .mkt-studio-info__summary {
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 18px;
}

.mkt-studio-info--page .mkt-studio-info__highlights {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.mkt-studio-info--page .mkt-studio-info__highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #334155;
}

.mkt-studio-info--page .mkt-studio-info__highlights i {
    color: #4b72be;
    margin-top: 3px;
}

.mkt-studio-info--page .mkt-studio-info__kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.mkt-studio-info--page .mkt-studio-info__kpi {
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafd 0%, #f1f5fb 100%);
    border: 1px solid rgba(75, 114, 190, 0.12);
    text-align: center;
}

.mkt-studio-info--page .mkt-studio-info__kpi strong {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a6e;
}

.mkt-studio-info--page .mkt-studio-info__kpi span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mkt-studio-info--page .mkt-studio-info__cta {
    margin-bottom: 8px;
}

.mkt-studio-info--page .mkt-studio-info__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(20px, 3vw, 32px);
    margin-top: 8px;
}

.mkt-studio-info--page .mkt-studio-info__feed {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafd 0%, #f1f5fb 100%);
    border: 1px solid rgba(75, 114, 190, 0.12);
    align-self: start;
    position: sticky;
    top: 88px;
}

.mkt-studio-info--page .mkt-studio-info__feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mkt-studio-info--page .mkt-studio-info__feed-head h2 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mkt-studio-info--page .mkt-studio-info__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    animation: mkt-modulo-pulse 2s ease infinite;
}

@keyframes mkt-modulo-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.mkt-studio-info--page .mkt-studio-info__feed-meta {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.mkt-studio-info--page .mkt-studio-info__activities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.mkt-modulo-news-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(75, 114, 190, 0.1);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mkt-modulo-news-item:hover {
    border-color: rgba(75, 114, 190, 0.28);
    box-shadow: 0 6px 18px rgba(75, 114, 190, 0.1);
}

.mkt-modulo-news-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(75, 114, 190, 0.1);
    color: #4b72be;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.mkt-modulo-news-item__body {
    min-width: 0;
}

.mkt-modulo-news-item__link {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #1e293b;
    text-decoration: none;
}

.mkt-modulo-news-item__link:hover {
    color: #4b72be;
}

.mkt-modulo-news-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.mkt-modulo-news-empty {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed rgba(75, 114, 190, 0.2);
}

.mkt-modulo-engage {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(75, 114, 190, 0.12);
}

.mkt-modulo-engage__title {
    margin: 0 0 16px;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.mkt-modulo-engage__actions {
    margin-bottom: 18px;
}

.mkt-modulo-like {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(75, 114, 190, 0.25);
    background: #fff;
    color: #4b72be;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mkt-modulo-like.is-liked,
.mkt-modulo-like:hover {
    background: linear-gradient(135deg, #4b72be 0%, #3d61a8 100%);
    border-color: #4b72be;
    color: #fff;
    transform: translateY(-1px);
}

.mkt-modulo-comment-form {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.mkt-modulo-comment-form input,
.mkt-modulo-comment-form textarea {
    width: 100%;
    border: 1px solid rgba(75, 114, 190, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    background: #f8fafd;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mkt-modulo-comment-form input:focus,
.mkt-modulo-comment-form textarea:focus {
    outline: none;
    border-color: #4b72be;
    box-shadow: 0 0 0 3px rgba(75, 114, 190, 0.15);
    background: #fff;
}

.mkt-modulo-comment-form textarea {
    resize: vertical;
    min-height: 96px;
}

.mkt-modulo-comment-form .mkt-btn {
    justify-self: start;
}

.mkt-modulo-comments {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.mkt-modulo-comment {
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafd 0%, #f1f5fb 100%);
    border: 1px solid rgba(75, 114, 190, 0.1);
}

.mkt-modulo-comment strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1e3a6e;
    margin-bottom: 6px;
}

.mkt-modulo-comment p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.mkt-modulo-comment time {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.mkt-modulo-comments__empty {
    font-size: 13px;
    color: #64748b;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafd;
    border: 1px dashed rgba(75, 114, 190, 0.18);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .mkt-modulo-page__header {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "back btn"
            "logo logo";
    }

    .mkt-modulo-page__back { grid-area: back; }
    .mkt-modulo-page__header .mkt-brand { grid-area: logo; justify-self: center; margin-top: 8px; }
    .mkt-modulo-page__header .mkt-btn { grid-area: btn; }

    .mkt-studio-info--page .mkt-studio-info__grid {
        grid-template-columns: 1fr;
    }

    .mkt-studio-info--page .mkt-studio-info__feed {
        position: static;
    }

    .mkt-studio-info--page .mkt-studio-info__kpis {
        grid-template-columns: 1fr;
    }
}
