:root {
    --permear-blue: #0e5a8a;
    --permear-teal: #00a8a8;
    --permear-green: #3e8e41;
    --permear-graphite: #3d4a57;
    --permear-ink: #20303b;
    --permear-soft: #f5f8fa;
    --permear-line: rgba(61, 74, 87, 0.16);
    --permear-white: #ffffff;
}

.permear-page {
    color: var(--permear-graphite);
    background: var(--permear-white);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.permear-page *,
.permear-page *::before,
.permear-page *::after {
    box-sizing: border-box;
}

body:has(.permear-page) .site-header,
body:has(.permear-page) #masthead,
body:has(.permear-page) .main-header-bar,
body:has(.permear-page) .ast-primary-header-bar,
body:has(.permear-page) .wp-site-blocks > header,
body:has(.permear-page) header.wp-block-template-part,
body:has(.permear-page) .wp-block-site-title,
body:has(.permear-page) .wp-block-site-tagline,
body.permear-public-page .site-header,
body.permear-public-page #masthead,
body.permear-public-page .main-header-bar,
body.permear-public-page .ast-primary-header-bar,
body.permear-public-page .wp-site-blocks > header,
body.permear-public-page header.wp-block-template-part,
body.permear-public-page .wp-block-site-title,
body.permear-public-page .wp-block-site-tagline {
    display: none !important;
}

body:has(.permear-page) .site-content,
body:has(.permear-page) .entry-content,
body:has(.permear-page) .wp-site-blocks,
body.permear-public-page .site-content,
body.permear-public-page .entry-content,
body.permear-public-page .wp-site-blocks {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.permear-container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.permear-nav {
    position: relative;
    z-index: 4;
    border-bottom: 1px solid var(--permear-line);
    background: rgba(255, 255, 255, 0.96);
}

.permear-nav__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.permear-nav .permear-logo {
    margin-bottom: 0;
}

.permear-nav .permear-logo__image {
    width: 34px;
    height: 46px;
}

.permear-nav .permear-logo strong {
    font-size: 1.05rem;
}

.permear-nav .permear-logo small {
    display: none;
}

.permear-nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.permear-nav__links a {
    color: var(--permear-graphite);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.permear-nav__links a:hover,
.permear-nav__links a:focus {
    color: var(--permear-blue);
}

.permear-hero,
.permear-page-hero {
    padding: clamp(64px, 9vw, 118px) 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fa 58%, #e7f4f2 100%);
}

.permear-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
}

.permear-logo {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--permear-ink);
}

.permear-logo__image {
    width: 50px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(14, 90, 138, 0.16));
}

.permear-logo strong {
    display: block;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0;
    line-height: 1;
}

.permear-logo small {
    display: block;
    margin-top: 5px;
    color: var(--permear-graphite);
    font-size: 0.82rem;
    line-height: 1.3;
}

.permear-kicker {
    margin: 0 0 12px;
    color: var(--permear-teal);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.permear-page h1,
.permear-page h2,
.permear-page h3 {
    color: var(--permear-ink);
    font-family: Montserrat, Inter, system-ui, sans-serif;
    letter-spacing: 0;
}

.permear-page h1 {
    max-width: 860px;
    margin: 0 0 20px;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 1.03;
}

.permear-page h2 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.12;
}

.permear-page h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.25;
}

.permear-page p {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.75;
}

.permear-hero__content > p,
.permear-page-hero p,
.permear-section__head p,
.permear-split > p,
.permear-split > div > p {
    max-width: 780px;
}

.permear-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.permear-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--permear-blue);
    border-radius: 6px;
    background: var(--permear-blue);
    color: #fff;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.permear-button:hover,
.permear-button:focus {
    color: #fff;
    background: #0b4c75;
    box-shadow: 0 10px 24px rgba(14, 90, 138, 0.18);
    transform: translateY(-1px);
}

.permear-button--ghost {
    background: transparent;
    color: var(--permear-blue);
}

.permear-button--ghost:hover,
.permear-button--ghost:focus {
    color: #fff;
}

.permear-button--light {
    border-color: #fff;
    background: #fff;
    color: var(--permear-blue);
}

.permear-button--light:hover,
.permear-button--light:focus {
    background: var(--permear-soft);
    color: var(--permear-blue);
}

.permear-system {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(14, 90, 138, 0.14);
    border-left: 5px solid var(--permear-teal);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 60px rgba(14, 90, 138, 0.12);
    padding: clamp(24px, 4vw, 38px);
}

.permear-hero-side {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.permear-permi-hero {
    overflow: hidden;
    max-height: 480px;
    margin: 0;
    border: 1px solid rgba(14, 90, 138, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(14, 90, 138, 0.12);
}

.permear-permi-hero img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center top;
}

.permear-system span,
.permear-system strong {
    display: block;
    color: var(--permear-ink);
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
}

.permear-system i {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--permear-blue), var(--permear-teal), var(--permear-green));
}

.permear-band {
    padding: clamp(50px, 7vw, 78px) 0;
    background: var(--permear-soft);
}

.permear-band--blue {
    background: #e8f3f8;
}

.permear-section,
.permear-observatorio-preview {
    padding: clamp(56px, 8vw, 92px) 0;
}

.permear-section__head {
    max-width: 820px;
    margin-bottom: 32px;
}

.permear-split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: start;
}

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

.permear-feature-grid article {
    min-height: 190px;
    border: 1px solid var(--permear-line);
    border-top: 4px solid var(--permear-teal);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
}

.permear-feature-grid article:nth-child(3n + 2) {
    border-top-color: var(--permear-blue);
}

.permear-feature-grid article:nth-child(3n) {
    border-top-color: var(--permear-green);
}

.permear-feature-grid p {
    font-size: 0.96rem;
    line-height: 1.65;
}

.permear-statement {
    padding: clamp(58px, 8vw, 90px) 0;
    background: linear-gradient(135deg, var(--permear-blue), #0b6f83 55%, var(--permear-green));
    color: #fff;
}

.permear-statement .permear-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.permear-statement p {
    max-width: 780px;
    color: #fff;
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
}

.permear-observatorio-preview {
    background: #fff;
}

.permear-mascot {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
}

.permear-mascot figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--permear-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(14, 90, 138, 0.1);
}

.permear-mascot img {
    display: block;
    width: 100%;
    height: auto;
}

.permear-chat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: flex;
    width: min(240px, calc(100vw - 36px));
    min-height: 72px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(14, 90, 138, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(14, 90, 138, 0.22);
    color: var(--permear-ink);
    padding: 10px 12px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.permear-chat img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 25% 46%;
}

.permear-chat strong,
.permear-chat small {
    display: block;
}

.permear-chat strong {
    color: var(--permear-blue);
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-weight: 800;
}

.permear-chat small {
    color: var(--permear-graphite);
    font-size: 0.82rem;
}

.permear-chat:hover,
.permear-chat:focus {
    color: var(--permear-ink);
    box-shadow: 0 20px 50px rgba(14, 90, 138, 0.26);
    transform: translateY(-2px);
}

.permear-empty-map {
    display: grid;
    min-height: 380px;
    align-content: center;
    justify-items: center;
    border: 1px solid rgba(61, 74, 87, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(14, 90, 138, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(14, 90, 138, 0.08) 1px, transparent 1px),
        #fff;
    background-size: 36px 36px;
    text-align: center;
}

.permear-empty-map span {
    color: var(--permear-blue);
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.permear-empty-map small {
    max-width: 430px;
    margin-top: 8px;
    color: var(--permear-graphite);
    font-size: 0.94rem;
    line-height: 1.6;
}

.permear-prose {
    max-width: 860px;
    padding: clamp(56px, 8vw, 92px) 0;
}

.permear-prose p {
    margin-bottom: 20px;
    font-size: 1.12rem;
}

.permear-signature {
    margin-top: 36px;
    color: var(--permear-blue);
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.55rem !important;
    font-weight: 800;
}

.permear-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
    gap: clamp(28px, 6vw, 70px);
    padding: clamp(56px, 8vw, 92px) 0;
    align-items: start;
}

.permear-contact__box {
    display: grid;
    gap: 10px;
    min-height: 220px;
    align-content: center;
    border: 1px dashed rgba(14, 90, 138, 0.35);
    border-radius: 8px;
    background: var(--permear-soft);
    padding: 28px;
}

.permear-contact__box strong {
    color: var(--permear-ink);
    font-family: Montserrat, Inter, system-ui, sans-serif;
    font-size: 1.2rem;
}

@media (max-width: 960px) {
    .permear-hero__grid,
    .permear-split,
    .permear-contact,
    .permear-mascot,
    .permear-statement .permear-container {
        grid-template-columns: 1fr;
    }

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

    .permear-nav__inner {
        display: grid;
        justify-items: start;
        padding: 14px 0;
    }

    .permear-nav__links {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .permear-container {
        width: min(100% - 28px, 1120px);
    }

    .permear-actions,
    .permear-feature-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .permear-logo {
        align-items: flex-start;
    }

    .permear-logo__image {
        width: 40px;
        height: 54px;
    }

    .permear-nav__links {
        gap: 8px 12px;
    }

    .permear-nav__links a {
        font-size: 0.86rem;
    }

    .permear-chat {
        width: 74px;
        min-height: 74px;
        justify-content: center;
        border-radius: 50%;
        padding: 8px;
    }

    .permear-chat span {
        display: none;
    }
}
