:root {
    --mipyme-navy: #173b56;
    --mipyme-blue: #2a6ea6;
    --mipyme-amber: #d89121;
    --mipyme-cyan: #2e8ca0;
    --mipyme-bg: #f2f6f9;
    --mipyme-paper: #ffffff;
    --mipyme-text: #173247;
    --mipyme-muted: #5b6f7f;
    --mipyme-shadow: 0 16px 36px rgba(20, 54, 78, 0.14);
    --mipyme-radius-lg: 22px;
    --mipyme-radius-md: 14px;
}

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

body.mipyme-sector-page {
    margin: 0;
    min-height: 100vh;
    padding-top: 84px;
    font-family: "Montserrat", sans-serif;
    color: var(--mipyme-text);
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(42, 110, 166, 0.13),
            transparent 40%
        ),
        radial-gradient(
            circle at 86% 14%,
            rgba(216, 145, 33, 0.15),
            transparent 35%
        ),
        linear-gradient(160deg, #edf4f8 0%, #fdf8ee 55%, #eff6f2 100%);
    -webkit-font-smoothing: antialiased;
}

.floating-band-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
}

.floating-band-logo {
    width: auto;
    height: 44px;
    display: block;
}

.mipyme-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 20px 60px;
}

.mipyme-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            125deg,
            rgba(23, 59, 86, 0.95) 0%,
            rgba(42, 110, 166, 0.9) 55%,
            rgba(216, 145, 33, 0.88) 100%
        ),
        url("/images/salamanca.jpg") center center/cover no-repeat;
    color: #f5fbff;
    border-radius: 26px;
    padding: 34px clamp(18px, 3vw, 42px);
    box-shadow: var(--mipyme-shadow);
}

.mipyme-hero::before,
.mipyme-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.mipyme-hero::before {
    width: 250px;
    height: 250px;
    right: -72px;
    top: -124px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.32) 0%,
        rgba(255, 255, 255, 0) 70%
    );
}

.mipyme-hero::after {
    width: 270px;
    height: 270px;
    left: -88px;
    bottom: -150px;
    background: radial-gradient(
        circle,
        rgba(46, 140, 160, 0.36) 0%,
        rgba(46, 140, 160, 0) 72%
    );
}

.mipyme-kicker,
.mipyme-hero h1,
.mipyme-hero-copy,
.mipyme-actions,
.mipyme-stat-grid {
    position: relative;
    z-index: 1;
}

.mipyme-kicker {
    margin: 0;
    font-size: 0.84rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 8px 14px;
}

.mipyme-kicker i {
    font-size: 1rem;
}

.mipyme-hero h1 {
    margin: 14px 0 8px;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.78rem, 3.05vw, 2.62rem);
    line-height: 1.15;
    text-wrap: balance;
}

.mipyme-hero-copy {
    max-width: 780px;
    margin: 0;
    font-size: clamp(1rem, 1.45vw, 1.08rem);
    line-height: 1.58;
    color: rgba(244, 251, 255, 0.96);
    text-wrap: pretty;
}

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

.mipyme-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background-color 0.24s ease;
}

.mipyme-action:active {
    transform: scale(0.96);
}

.mipyme-action.primary {
    background: #ffffff;
    color: #154666;
    box-shadow: 0 12px 26px rgba(11, 31, 46, 0.25);
}

.mipyme-action.secondary {
    border: 1px solid rgba(255, 255, 255, 0.58);
    color: #f5fbff;
    background: rgba(255, 255, 255, 0.09);
}

.mipyme-action:hover {
    transform: translateY(-2px);
}

.mipyme-action.primary:hover {
    box-shadow: 0 16px 29px rgba(11, 31, 46, 0.3);
}

.mipyme-action.secondary:hover {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(11, 31, 46, 0.25);
}

.mipyme-stat-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mipyme-stat-card {
    border-radius: var(--mipyme-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    backdrop-filter: blur(4px);
}

.mipyme-stat-card strong {
    font-family: "Sora", sans-serif;
    display: block;
    font-size: clamp(1.38rem, 2.5vw, 1.75rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mipyme-stat-card span {
    display: block;
    margin-top: 6px;
    font-size: 0.84rem;
    color: rgba(248, 254, 255, 0.93);
}

.mipyme-info-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mipyme-info-strip article {
    border-radius: var(--mipyme-radius-md);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(42, 110, 166, 0.18);
    box-shadow: 0 10px 24px rgba(24, 67, 95, 0.1);
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mipyme-info-strip i {
    color: var(--mipyme-blue);
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 2px;
}

.mipyme-info-strip p {
    margin: 0;
    font-size: 0.91rem;
    line-height: 1.42;
    color: #2f475a;
}

.mipyme-grid-section {
    margin-top: 30px;
}

.mipyme-section-head {
    max-width: 820px;
}

.mipyme-section-head h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.4rem, 2.45vw, 1.95rem);
    color: #123751;
    text-wrap: balance;
}

.mipyme-section-head p {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #3d5568;
    line-height: 1.56;
    text-wrap: pretty;
}

.mipyme-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mipyme-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--mipyme-radius-lg);
    background: var(--mipyme-paper);
    border: 1px solid rgba(30, 92, 131, 0.16);
    box-shadow: 0 14px 34px rgba(22, 57, 82, 0.11);
    padding: 18px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.mipyme-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--mipyme-blue),
        var(--mipyme-amber),
        var(--mipyme-cyan)
    );
}

.mipyme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(22, 57, 82, 0.16);
}

.mipyme-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.mipyme-card-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        rgba(42, 110, 166, 0.16),
        rgba(216, 145, 33, 0.2)
    );
    color: #12486d;
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mipyme-card-head h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    color: #153b54;
    text-wrap: balance;
}

.mipyme-card-head p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--mipyme-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mipyme-card-head > i {
    font-size: 1.4rem;
    color: var(--mipyme-amber);
}

.mipyme-link {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f5f8b;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.mipyme-link:hover {
    color: #184f74;
    border-color: rgba(24, 79, 116, 0.36);
}

.mipyme-card h4 {
    margin: 14px 0 8px;
    font-family: "Sora", sans-serif;
    font-size: 0.98rem;
    color: #143a53;
}

.mipyme-support-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.mipyme-support-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #2f4a5c;
    line-height: 1.42;
    font-size: 0.92rem;
}

.mipyme-support-list i {
    color: #2a6ea6;
    font-size: 0.98rem;
    margin-top: 2px;
}

.mipyme-observation {
    margin: 12px 0 0;
    padding: 11px 12px;
    border-radius: 12px;
    background: #f1f7fb;
    border: 1px solid rgba(42, 110, 166, 0.18);
    color: #2a4a5e;
    font-size: 0.9rem;
    line-height: 1.44;
}

.mipyme-observation strong {
    color: #163f5a;
}

.mipyme-extra {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mipyme-extra-card {
    border-radius: var(--mipyme-radius-md);
    border: 1px solid rgba(42, 110, 166, 0.16);
    background: linear-gradient(160deg, #ffffff 0%, #eef7fc 100%);
    box-shadow: 0 12px 28px rgba(22, 57, 82, 0.1);
    padding: 18px;
}

.mipyme-extra-card h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.02rem;
    color: #134465;
    display: flex;
    align-items: center;
    gap: 8px;
    text-wrap: balance;
}

.mipyme-extra-card ul,
.mipyme-extra-card ol {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #345b75;
    font-size: 0.93rem;
    line-height: 1.58;
}

.mipyme-extra-card li + li {
    margin-top: 7px;
}

.site-footer-band {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mipyme-footer-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
}

.mipyme-footer-inner p {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.mipyme-footer-inner a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.mipyme-footer-inner a:hover {
    background: rgba(255, 255, 255, 0.16);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
    transition-delay: calc(var(--reveal-order, 0) * 45ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 980px) {
    .mipyme-stat-grid,
    .mipyme-info-strip,
    .mipyme-grid,
    .mipyme-extra {
        grid-template-columns: 1fr;
    }

    .mipyme-main {
        padding-top: 18px;
    }

    .mipyme-card {
        padding: 16px;
    }
}

@media (max-width: 720px) {
    body.mipyme-sector-page {
        padding-top: 92px;
    }

    .floating-band-inner {
        padding: 0 10px;
    }

    .floating-band-logo {
        height: 38px;
    }

    .mipyme-main {
        padding: 16px 14px 44px;
    }

    .mipyme-hero {
        border-radius: 20px;
        padding: 24px 16px;
    }

    .mipyme-actions {
        gap: 10px;
    }

    .mipyme-action {
        width: 100%;
    }

    .mipyme-card-head {
        grid-template-columns: auto 1fr;
    }

    .mipyme-card-head > i {
        display: none;
    }

    .mipyme-footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
