/* Design system — site institucional MOMSYS */

.inst-body {
    margin: 0;
    font-family: var(--font, 'Poppins', system-ui, sans-serif);
    font-size: 17px;
    background: var(--background-color, #f4f6fb);
    color: var(--text-color, #1a1d26);
    line-height: 1.65;
}

.inst-body *,
.inst-body *::before,
.inst-body *::after {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.inst-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.inst-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--background-color, #fff) 90%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 12%, #ddd);
}

.inst-header__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.inst-brand img {
    max-height: 46px;
    width: auto;
    border-radius: 8px;
}

.inst-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 20%, #ccc);
    border-radius: 10px;
    background: var(--sidebar-bg, #fff);
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
}

.inst-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inst-nav__link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.inst-nav__link:hover,
.inst-nav__link.is-active {
    opacity: 1;
    color: var(--primary-color, #2563eb);
    background: color-mix(in srgb, var(--primary-color, #2563eb) 8%, transparent);
}

.inst-nav__cta {
    margin-left: 8px;
}

/* Buttons */
.inst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.inst-btn:hover {
    transform: translateY(-1px);
}

.inst-btn--primary {
    background: var(--primary-color, #2563eb);
    color: var(--headerbar-color, #fff);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color, #2563eb) 32%, transparent);
}

.inst-btn--ghost {
    background: transparent;
    border-color: color-mix(in srgb, var(--primary-color, #2563eb) 35%, #ccc);
    color: var(--primary-color, #2563eb);
}

.inst-btn--lg {
    padding: 15px 26px;
    font-size: 17px;
}

/* Main layout */
.inst-main {
    flex: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 56px;
}

.inst-section {
    padding: 48px 0;
}

.inst-section--tight {
    padding: 32px 0;
}

.inst-section__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.inst-section__lead {
    margin: 0 0 32px;
    max-width: 640px;
    font-size: 1.15rem;
    opacity: 0.88;
    line-height: 1.65;
}

.inst-section__title--center,
.inst-section__lead--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Hero */
.inst-hero {
    text-align: center;
    padding: 56px 12px 64px;
}

.inst-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    background: color-mix(in srgb, var(--primary-color, #2563eb) 12%, #fff);
    color: var(--primary-color, #2563eb);
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 22%, transparent);
}

.inst-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.inst-hero__lead {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.88;
}

.inst-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.inst-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.inst-stat {
    padding: 20px 16px;
    border-radius: 14px;
    background: var(--sidebar-bg, #fff);
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 10%, #e5e7eb);
}

.inst-stat strong {
    display: block;
    font-size: 1.85rem;
    color: var(--primary-color, #2563eb);
    line-height: 1.1;
    margin-bottom: 4px;
}

.inst-stat span {
    font-size: 15px;
    opacity: 0.75;
}

/* Grid & cards */
.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.inst-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inst-card {
    background: var(--sidebar-bg, #fff);
    border-radius: 16px;
    padding: 26px 24px;
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 10%, #e5e7eb);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--primary-color, #2563eb) 6%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inst-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--primary-color, #2563eb) 12%, transparent);
}

.inst-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    margin-bottom: 16px;
    background: color-mix(in srgb, var(--primary-color, #2563eb) 12%, #fff);
    color: var(--primary-color, #2563eb);
}

.inst-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.inst-card p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
}

.inst-card__tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: color-mix(in srgb, var(--primary-color, #2563eb) 10%, #eee);
    color: var(--primary-color, #2563eb);
}

.inst-card__link {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color, #2563eb);
    text-decoration: none;
}

.inst-card__link:hover {
    text-decoration: underline;
}

/* Product cards (larger) */
.inst-product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.inst-product__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.inst-product h3 {
    margin: 0;
    font-size: 1.35rem;
}

/* CTA band */
.inst-cta {
    text-align: center;
    padding: 48px 28px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary-color, #2563eb) 14%, #fff),
        color-mix(in srgb, var(--primary-color, #2563eb) 5%, #fff)
    );
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 18%, transparent);
}

.inst-cta h2 {
    margin: 0 0 12px;
    font-size: 1.85rem;
}

.inst-cta p {
    max-width: 520px;
    margin: 0 auto 24px;
    font-size: 1.1rem;
    opacity: 0.88;
}

/* About page */
.inst-mvv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.inst-mvv__item {
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--sidebar-bg, #fff);
    border-left: 4px solid var(--primary-color, #2563eb);
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 10%, #e5e7eb);
    border-left-width: 4px;
}

.inst-mvv__item h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.inst-mvv__item p {
    font-size: 16px;
    line-height: 1.65;
}

.inst-timeline {
    border-left: 2px solid color-mix(in srgb, var(--primary-color, #2563eb) 25%, #ddd);
    padding-left: 28px;
    margin-left: 8px;
}

.inst-timeline__item {
    position: relative;
    padding-bottom: 28px;
}

.inst-timeline__item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color, #2563eb) 20%, #fff);
}

.inst-timeline__item h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.inst-timeline__item p {
    margin: 0;
    font-size: 16px;
    opacity: 0.85;
}

/* Solutions */
.inst-solution {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 24px;
    border-radius: 16px;
    background: var(--sidebar-bg, #fff);
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 10%, #e5e7eb);
    margin-bottom: 16px;
}

.inst-solution__num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--primary-color, #2563eb) 12%, #fff);
    color: var(--primary-color, #2563eb);
}

.inst-solution h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.inst-solution p {
    margin: 0;
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
}

/* Contact */
.inst-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.inst-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inst-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.inst-contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color, #2563eb) 12%, #fff);
    color: var(--primary-color, #2563eb);
    flex-shrink: 0;
}

.inst-contact-item h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.inst-contact-item p,
.inst-contact-item a {
    margin: 0;
    font-size: 16px;
    opacity: 0.88;
    color: inherit;
    text-decoration: none;
}

.inst-contact-item a:hover {
    color: var(--primary-color, #2563eb);
}

.inst-form {
    padding: 28px;
    border-radius: 16px;
    background: var(--sidebar-bg, #fff);
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 10%, #e5e7eb);
}

.inst-form h3 {
    margin: 0 0 20px;
    font-size: 1.35rem;
}

.inst-form__row {
    margin-bottom: 16px;
}

.inst-form__row label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.inst-form__row input,
.inst-form__row select,
.inst-form__row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 15%, #ccc);
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    background: var(--background-color, #fff);
    color: inherit;
}

.inst-form__row textarea {
    min-height: 120px;
    resize: vertical;
}

.inst-form__note {
    margin: 12px 0 0;
    font-size: 14px;
    opacity: 0.65;
}

.inst-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

/* Footer */
.inst-footer {
    margin-top: auto;
    border-top: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 10%, #ddd);
    background: color-mix(in srgb, var(--primary-color, #2563eb) 4%, var(--background-color, #f4f6fb));
}

.inst-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px 28px;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 32px;
}

.inst-footer__brand img {
    max-height: 40px;
    margin-bottom: 14px;
}

.inst-footer__brand p {
    margin: 0;
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 320px;
}

.inst-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.inst-footer__col h4 {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.inst-footer__col a {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.inst-footer__col a:hover {
    color: var(--primary-color, #2563eb);
    opacity: 1;
}

.inst-footer__bottom {
    text-align: center;
    padding: 16px 20px 24px;
    font-size: 15px;
    opacity: 0.65;
    border-top: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 8%, #ddd);
}

/* Page hero (inner pages) */
.inst-page-hero {
    padding: 40px 0 32px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 10%, #ddd);
    margin-bottom: 16px;
}

.inst-page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    letter-spacing: -0.02em;
}

.inst-page-hero p {
    margin: 0;
    max-width: 600px;
    font-size: 1.15rem;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
    .inst-footer__inner {
        grid-template-columns: 1fr;
    }

    .inst-footer__cols {
        grid-template-columns: 1fr 1fr;
    }

    .inst-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .inst-nav-toggle {
        display: flex;
    }

    .inst-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        background: var(--sidebar-bg, #fff);
        border-bottom: 1px solid color-mix(in srgb, var(--primary-color, #2563eb) 12%, #ddd);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .inst-nav.is-open {
        display: flex;
    }

    .inst-header {
        position: relative;
    }

    .inst-header__inner {
        position: relative;
        flex-wrap: wrap;
    }

    .inst-nav__link {
        padding: 12px 14px;
    }

    .inst-nav__cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    .inst-hero {
        padding-top: 32px;
    }

    .inst-footer__cols {
        grid-template-columns: 1fr;
    }
}
