:root {
    --gestion-bg: #f4f6f9;
    --gestion-surface: #ffffff;
    --gestion-surface-soft: #f8fafc;
    --gestion-border: #e5e9ef;
    --gestion-text: #1c2430;
    --gestion-text-soft: #687386;
    --gestion-primary: #2858d8;
    --gestion-primary-dark: #1f46ae;
    --gestion-primary-soft: #edf3ff;
    --gestion-sidebar: #17202d;
    --gestion-sidebar-soft: #202b3b;
    --gestion-sidebar-text: #d9e0ea;
    --gestion-sidebar-muted: #8f9bad;
    --gestion-success: #16825d;
    --gestion-shadow:
        0 14px 35px rgba(27, 37, 55, 0.08);
    --gestion-radius: 18px;
    --gestion-sidebar-width: 270px;
    --gestion-topbar-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--gestion-text);
    background: var(--gestion-bg);
}

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

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.gestion-body {
    min-height: 100vh;
}

.gestion-app {
    min-height: 100vh;
}

.gestion-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: flex;
    width: var(--gestion-sidebar-width);
    flex-direction: column;
    background:
        linear-gradient(
            180deg,
            #182333 0%,
            var(--gestion-sidebar) 100%
        );
    color: var(--gestion-sidebar-text);
}

.gestion-sidebar__brand {
    display: flex;
    min-height: var(--gestion-topbar-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.gestion-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.gestion-brand__mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #4c79ef,
            #2858d8
        );
    font-size: 21px;
    font-weight: 800;
    box-shadow:
        0 7px 20px rgba(40, 88, 216, 0.32);
}

.gestion-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.gestion-brand__text strong {
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 0.2px;
}

.gestion-brand__text small {
    margin-top: 4px;
    color: var(--gestion-sidebar-muted);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.gestion-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 16px 8px;
    padding: 14px;
    border:
        1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, 0.035);
}

.gestion-avatar {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #557ee8,
            #2858d8
        );
    font-size: 17px;
    font-weight: 750;
}

.gestion-avatar--small {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 15px;
}

.gestion-sidebar__profile-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.gestion-sidebar__profile-text strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gestion-sidebar__profile-text span {
    overflow: hidden;
    margin-top: 4px;
    color: var(--gestion-sidebar-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gestion-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 18px 13px;
}

.gestion-nav__item,
.gestion-logout {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    min-height: 47px;
    padding: 0 14px;
    border: 0;
    border-radius: 11px;
    color: var(--gestion-sidebar-text);
    background: transparent;
    font-size: 14px;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.gestion-nav__item:hover,
.gestion-logout:hover {
    color: #ffffff;
    background:
        rgba(255, 255, 255, 0.075);
}

.gestion-nav__item.is-active {
    color: #ffffff;
    background:
        linear-gradient(
            90deg,
            rgba(58, 101, 222, 0.36),
            rgba(58, 101, 222, 0.14)
        );
}

.gestion-nav__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.gestion-sidebar__footer {
    padding: 13px;
    border-top:
        1px solid rgba(255, 255, 255, 0.07);
}

.gestion-logout {
    color: #b8c1ce;
}

.gestion-main {
    display: flex;
    min-height: 100vh;
    margin-left: var(--gestion-sidebar-width);
    flex-direction: column;
}

.gestion-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: var(--gestion-topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    border-bottom: 1px solid var(--gestion-border);
    background:
        rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.gestion-topbar__left,
.gestion-topbar__right {
    display: flex;
    align-items: center;
}

.gestion-topbar__left {
    gap: 14px;
}

.gestion-topbar__right {
    gap: 14px;
}

.gestion-topbar__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--gestion-text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gestion-topbar__title {
    display: block;
    font-size: 16px;
}

.gestion-topbar__notification {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--gestion-border);
    border-radius: 12px;
    color: #536072;
    background: #ffffff;
    cursor: pointer;
}

.gestion-topbar__notification svg {
    width: 19px;
    height: 19px;
}

.gestion-topbar__account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.gestion-topbar__account-text {
    display: flex;
    max-width: 220px;
    flex-direction: column;
}

.gestion-topbar__account-text strong {
    font-size: 13px;
}

.gestion-topbar__account-text small {
    overflow: hidden;
    max-width: 200px;
    margin-top: 2px;
    color: var(--gestion-text-soft);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gestion-menu-button,
.gestion-sidebar__close {
    display: none;
}

.gestion-icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.gestion-content {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 32px;
}

.gestion-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.gestion-page-header__eyebrow,
.gestion-panel__eyebrow {
    color: var(--gestion-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.gestion-page-header h1 {
    margin: 8px 0 8px;
    color: #17202d;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.gestion-page-header p {
    max-width: 720px;
    margin: 0;
    color: var(--gestion-text-soft);
    font-size: 14px;
    line-height: 1.65;
}

.gestion-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.gestion-button svg {
    width: 18px;
    height: 18px;
}

.gestion-button--primary {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #3567e7,
            var(--gestion-primary)
        );
    box-shadow:
        0 8px 22px rgba(40, 88, 216, 0.22);
}

.gestion-dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gestion-card,
.gestion-panel {
    border: 1px solid var(--gestion-border);
    background: var(--gestion-surface);
    box-shadow: var(--gestion-shadow);
}

.gestion-card {
    position: relative;
    display: flex;
    min-height: 225px;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--gestion-radius);
}

.gestion-card::after {
    position: absolute;
    top: -60px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(40, 88, 216, 0.09),
            transparent 68%
        );
    content: "";
    pointer-events: none;
}

.gestion-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 13px;
    color: var(--gestion-primary);
    background: var(--gestion-primary-soft);
}

.gestion-card__icon svg {
    width: 23px;
    height: 23px;
}

.gestion-card__body {
    flex: 1;
}

.gestion-card__label {
    color: var(--gestion-text-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.gestion-card h2 {
    margin: 6px 0 8px;
    font-size: 19px;
}

.gestion-card p {
    margin: 0;
    color: var(--gestion-text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.gestion-card__action {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 20px;
    color: var(--gestion-primary);
    font-size: 12px;
    font-weight: 800;
}

.gestion-card__action--disabled {
    color: #98a2b0;
}

.gestion-dashboard-columns {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(320px, 0.75fr);
    gap: 20px;
    margin-top: 20px;
}

.gestion-panel {
    overflow: hidden;
    border-radius: var(--gestion-radius);
}

.gestion-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom:
        1px solid var(--gestion-border);
}

.gestion-panel__header h2 {
    margin: 5px 0 0;
    font-size: 18px;
}

.gestion-empty-state {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
}

.gestion-empty-state__icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: var(--gestion-primary);
    background: var(--gestion-primary-soft);
}

.gestion-empty-state__icon svg {
    width: 28px;
    height: 28px;
}

.gestion-empty-state h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.gestion-empty-state p {
    max-width: 440px;
    margin: 0;
    color: var(--gestion-text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.gestion-profile-summary {
    padding: 7px 24px;
}

.gestion-profile-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-bottom:
        1px solid var(--gestion-border);
}

.gestion-profile-summary__row:last-child {
    border-bottom: 0;
}

.gestion-profile-summary__row span {
    color: var(--gestion-text-soft);
    font-size: 12px;
}

.gestion-profile-summary__row strong {
    overflow-wrap: anywhere;
    font-size: 12px;
    text-align: right;
}

.gestion-panel__footer {
    padding: 17px 24px;
    border-top:
        1px solid var(--gestion-border);
    background: var(--gestion-surface-soft);
}

.gestion-muted {
    color: var(--gestion-text-soft);
    font-size: 11px;
    line-height: 1.5;
}

.gestion-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding: 20px 32px;
    border-top: 1px solid var(--gestion-border);
    color: var(--gestion-text-soft);
    background: #ffffff;
    font-size: 11px;
}

.gestion-sidebar-overlay {
    display: none;
}

@media (max-width: 1100px) {

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

    .gestion-dashboard-grid
    .gestion-card:last-child {
        grid-column: span 2;
    }

    .gestion-dashboard-columns {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 860px) {

    .gestion-sidebar {
        transform: translateX(-100%);
        transition: transform 220ms ease;
        box-shadow:
            18px 0 50px rgba(14, 20, 31, 0.2);
    }

    body.gestion-menu-open
    .gestion-sidebar {
        transform: translateX(0);
    }

    .gestion-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 40;
        display: block;
        visibility: hidden;
        background: rgba(15, 23, 35, 0.47);
        opacity: 0;
        transition:
            opacity 220ms ease,
            visibility 220ms ease;
    }

    body.gestion-menu-open
    .gestion-sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .gestion-main {
        margin-left: 0;
    }

    .gestion-menu-button {
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border:
            1px solid var(--gestion-border);
        border-radius: 11px;
        background: #ffffff;
    }

    .gestion-menu-button span {
        width: 17px;
        height: 2px;
        border-radius: 2px;
        background: #536072;
    }

    .gestion-sidebar__close {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        color: var(--gestion-sidebar-muted);
        font-size: 27px;
    }

    .gestion-content {
        padding: 25px 20px;
    }

    .gestion-topbar {
        padding: 0 20px;
    }

}

@media (max-width: 680px) {

    .gestion-topbar__account-text {
        display: none;
    }

    .gestion-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .gestion-button {
        align-self: flex-start;
    }

    .gestion-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .gestion-dashboard-grid
    .gestion-card:last-child {
        grid-column: auto;
    }

    .gestion-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 20px;
    }

}

@media (max-width: 460px) {

    .gestion-topbar {
        min-height: 68px;
    }

    .gestion-topbar__notification {
        display: none;
    }

    .gestion-content {
        padding: 21px 14px;
    }

    .gestion-page-header h1 {
        font-size: 27px;
    }

    .gestion-card {
        padding: 20px;
    }

    .gestion-panel__header,
    .gestion-profile-summary,
    .gestion-panel__footer {
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* =========================================================
   CARTERA DE PAGINAS
   ========================================================= */

.gestion-pages-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .gestion-pages-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .gestion-pages-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FORMULARIOS DE GESTION
   ========================================================= */

.gestion-form-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, 0.65fr);
    gap: 20px;
    align-items: start;
}

.gestion-form-panel {
    overflow: hidden;
}

.gestion-form {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 26px 24px;
}

.gestion-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.gestion-field--full {
    grid-column: 1 / -1;
}

.gestion-field label {
    margin-bottom: 8px;
    color: var(--gestion-text);
    font-size: 12px;
    font-weight: 750;
}

.gestion-field label span {
    color: #c83b4c;
}

.gestion-field input,
.gestion-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #d8dee8;
    border-radius: 11px;
    outline: none;
    color: var(--gestion-text);
    background: #ffffff;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.gestion-field input:focus,
.gestion-field select:focus {
    border-color: var(--gestion-primary);
    box-shadow:
        0 0 0 3px rgba(40, 88, 216, 0.10);
}

.gestion-field input.is-invalid,
.gestion-field select.is-invalid {
    border-color: #c83b4c;
}

.gestion-field select:disabled {
    color: #9098a5;
    background: #f3f5f8;
    cursor: not-allowed;
}

.gestion-field__help {
    margin-top: 7px;
    color: var(--gestion-text-soft);
    font-size: 11px;
    line-height: 1.45;
}

.gestion-field__error {
    margin-top: 7px;
    color: #b52e40;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.45;
}

.gestion-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    padding: 20px 24px;
    border-top: 1px solid var(--gestion-border);
    background: var(--gestion-surface-soft);
}

.gestion-button--secondary {
    border: 1px solid var(--gestion-border);
    color: #4e5968;
    background: #ffffff;
}

.gestion-form-help {
    overflow: hidden;
}

.gestion-form-help__content {
    padding: 22px 24px 26px;
}

.gestion-step {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gestion-border);
}

.gestion-step:last-child {
    border-bottom: 0;
}

.gestion-step > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    color: var(--gestion-primary);
    background: var(--gestion-primary-soft);
    font-size: 12px;
    font-weight: 800;
}

.gestion-step strong {
    font-size: 13px;
}

.gestion-step p {
    margin: 5px 0 0;
    color: var(--gestion-text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.gestion-alert {
    margin-bottom: 20px;
    padding: 14px 17px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 650;
}

.gestion-alert--success {
    border: 1px solid #c4e8da;
    color: #176b51;
    background: #eefaf5;
}

@media (max-width: 980px) {
    .gestion-form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .gestion-form {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }

    .gestion-field--full {
        grid-column: auto;
    }

    .gestion-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 18px;
    }

    .gestion-form-actions .gestion-button {
        width: 100%;
    }
}

/* =========================================================
   DETALLE DE PAGINA
   ========================================================= */

.gestion-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gestion-detail-list {
    padding: 8px 24px 20px;
}

.gestion-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gestion-border);
}

.gestion-detail-row:last-child {
    border-bottom: 0;
}

.gestion-detail-row > span {
    color: var(--gestion-text-soft);
    font-size: 12px;
}

.gestion-detail-row > strong {
    max-width: 65%;
    color: var(--gestion-text);
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}

.gestion-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.gestion-status--borrador {
    color: #665f52;
    background: #f3f0e9;
}

.gestion-status--pendiente_activacion {
    color: #805f10;
    background: #fff6d9;
}

.gestion-status--activa {
    color: #176b51;
    background: #eaf8f2;
}

.gestion-status--suspendida,
.gestion-status--baja {
    color: #a82f41;
    background: #fcecef;
}

.gestion-administration-block {
    overflow: hidden;
}

.gestion-administration-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 26px 24px;
}

.gestion-administration-empty h3 {
    margin: 0 0 7px;
    font-size: 15px;
}

.gestion-administration-empty p {
    max-width: 720px;
    margin: 0;
    color: var(--gestion-text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.gestion-administration-ready {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
}

.gestion-administration-ready > div {
    padding: 16px;
    border: 1px solid var(--gestion-border);
    border-radius: 12px;
    background: var(--gestion-surface-soft);
}

.gestion-administration-ready span,
.gestion-administration-ready strong {
    display: block;
}

.gestion-administration-ready span {
    margin-bottom: 6px;
    color: var(--gestion-text-soft);
    font-size: 11px;
}

.gestion-administration-ready strong {
    font-size: 13px;
}

@media (max-width: 820px) {
    .gestion-detail-grid {
        grid-template-columns: 1fr;
    }

    .gestion-administration-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .gestion-administration-empty .gestion-button {
        width: 100%;
    }

    .gestion-administration-ready {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   GESTION CENCOVIL - LOGIN
   ========================================================== */

.gestion-login-body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(
            135deg,
            #eef2f7 0%,
            #f7f9fc 50%,
            #edf2f8 100%
        );
    color: var(--gestion-text);
}

.gestion-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(420px, 0.82fr)
        minmax(480px, 1.18fr);
}

.gestion-login__panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    padding: 56px 68px;
    box-sizing: border-box;
    background: #fff;
}

.gestion-login__brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 68px;
}

.gestion-login__brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            var(--gestion-primary),
            #4c78ff
        );
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    box-shadow:
        0 10px 28px
        rgba(50, 92, 220, .22);
}

.gestion-login__brand > div {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.gestion-login__brand strong {
    font-size: 21px;
    letter-spacing: -.02em;
}

.gestion-login__brand span:not(
    .gestion-login__brand-mark
) {
    margin-top: 4px;
    color: var(--gestion-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gestion-login__heading {
    margin-bottom: 31px;
}

.gestion-login__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--gestion-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gestion-login__heading h1 {
    margin: 0;
    max-width: 410px;
    color: var(--gestion-text);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.gestion-login__heading p {
    max-width: 430px;
    margin: 16px 0 0;
    color: var(--gestion-muted);
    font-size: 15px;
    line-height: 1.65;
}

.gestion-login__form {
    display: grid;
    gap: 21px;
}

.gestion-login__field label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--gestion-text);
    font-size: 13px;
    font-weight: 700;
}

.gestion-login__control {
    position: relative;
}

.gestion-login__control input {
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    padding:
        0 50px
        0 48px;
    border:
        1px solid
        var(--gestion-border);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--gestion-text);
    font: inherit;
    font-size: 15px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.gestion-login__control input::placeholder {
    color: #a3adbb;
}

.gestion-login__control input:focus {
    border-color: var(--gestion-primary);
    box-shadow:
        0 0 0 4px
        rgba(63, 100, 224, .10);
}

.gestion-login__control-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 17px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #8995a7;
    pointer-events: none;
}

.gestion-login__control-icon svg,
.gestion-login__password-toggle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.gestion-login__password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 38px;
    height: 38px;
    padding: 9px;
    border: 0;
    border-radius: 9px;
    transform: translateY(-50%);
    background: transparent;
    color: #8995a7;
    cursor: pointer;
}

.gestion-login__password-toggle:hover {
    background: #f2f5f9;
    color: var(--gestion-primary);
}

.gestion-login__submit {
    min-height: 55px;
    margin-top: 5px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            var(--gestion-primary),
            #4b72ec
        );
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 12px 30px
        rgba(55, 91, 205, .22);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.gestion-login__submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 34px
        rgba(55, 91, 205, .28);
}

.gestion-login__submit svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.gestion-login__security {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: #8a95a5;
    font-size: 12px;
    line-height: 1.5;
}

.gestion-login__security svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: #7890b4;
}

.gestion-login__error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 13px 15px;
    border:
        1px solid
        #f2c7c7;
    border-radius: 11px;
    background: #fff5f5;
    color: #a43b3b;
    font-size: 13px;
    line-height: 1.45;
}

.gestion-login__error-icon {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d95555;
    color: #fff;
    font-weight: 900;
}

.gestion-login__visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(95, 132, 244, .28),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(49, 195, 166, .12),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #111a27 0%,
            #182536 48%,
            #202f43 100%
        );
    color: #fff;
}

.gestion-login__visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.gestion-login__visual-label {
    display: inline-flex;
    padding: 7px 12px;
    border:
        1px solid
        rgba(255, 255, 255, .16);
    border-radius: 999px;
    background:
        rgba(255, 255, 255, .06);
    color: #bfcce0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.gestion-login__visual h2 {
    max-width: 610px;
    margin: 27px 0 0;
    font-size: clamp(42px, 5vw, 70px);
    line-height: .99;
    letter-spacing: -.055em;
    font-weight: 500;
}

.gestion-login__visual h2 strong {
    display: block;
    color: #7fa0ff;
    font-weight: 800;
}

.gestion-login__visual-content > p {
    max-width: 520px;
    margin: 27px 0 0;
    color: #aebbd0;
    font-size: 17px;
    line-height: 1.7;
}

.gestion-login__visual-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.gestion-login__visual-features > div {
    min-height: 115px;
    padding: 20px;
    border:
        1px solid
        rgba(255, 255, 255, .09);
    border-radius: 15px;
    background:
        rgba(255, 255, 255, .045);
    backdrop-filter: blur(8px);
}

.gestion-login__visual-features span {
    color: #7898f7;
    font-size: 11px;
    font-weight: 900;
}

.gestion-login__visual-features p {
    margin: 18px 0 0;
    color: #e4eaf3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.gestion-login__visual-decoration {
    position: absolute;
    right: -170px;
    bottom: -170px;
    width: 470px;
    height: 470px;
    border:
        1px solid
        rgba(255, 255, 255, .05);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, .018),
        0 0 0 140px rgba(255, 255, 255, .012);
}

.gestion-logout-form {
    width: 100%;
}


/* Confirmación de cierre de sesión */

.gestion-logout-dialog {
    width: min(430px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
}

.gestion-logout-dialog::backdrop {
    background: rgba(13, 20, 30, .62);
    backdrop-filter: blur(3px);
}

.gestion-logout-dialog__card {
    padding: 29px;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, .25);
}

.gestion-logout-dialog__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #eef3ff;
    color: var(--gestion-primary);
}

.gestion-logout-dialog__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.gestion-logout-dialog h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -.02em;
}

.gestion-logout-dialog p {
    margin: 10px 0 0;
    color: var(--gestion-muted);
    font-size: 14px;
    line-height: 1.55;
}

.gestion-logout-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.gestion-logout-dialog__actions button {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.gestion-logout-dialog__cancel {
    border:
        1px solid
        var(--gestion-border);
    background: #fff;
    color: var(--gestion-text);
}

.gestion-logout-dialog__confirm {
    border: 0;
    background: var(--gestion-primary);
    color: #fff;
}


@media (max-width: 980px) {

    .gestion-login {
        grid-template-columns: 1fr;
    }

    .gestion-login__panel {
        max-width: 600px;
        min-height: 100vh;
        padding: 45px 38px;
    }

    .gestion-login__visual {
        display: none;
    }

}


@media (max-width: 520px) {

    .gestion-login__panel {
        padding: 34px 22px;
    }

    .gestion-login__brand {
        margin-bottom: 48px;
    }

    .gestion-login__heading h1 {
        font-size: 31px;
    }

    .gestion-logout-dialog__actions {
        flex-direction: column-reverse;
    }

    .gestion-logout-dialog__actions button {
        width: 100%;
    }

}


/* ==========================================================
   ADMINISTRADOR PRINCIPAL DE PAGINA
   ========================================================== */

.gestion-admin-create {
    display: grid;
    gap: 24px;
}

.gestion-admin-create__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gestion-admin-create__card,
.gestion-admin-create__action {
    border: 1px solid var(--gestion-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--gestion-shadow);
}

.gestion-admin-create__card {
    padding: 25px;
}

.gestion-admin-create__card-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.gestion-admin-create__card-heading h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.02em;
}

.gestion-admin-create__card-heading p {
    margin: 7px 0 0;
    color: var(--gestion-muted);
    font-size: 13px;
    line-height: 1.55;
}

.gestion-admin-create__step {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #edf2ff;
    color: var(--gestion-primary);
    font-size: 11px;
    font-weight: 900;
}

.gestion-admin-create__data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 23px 0 0;
}

.gestion-admin-create__data > div {
    padding: 15px;
    border-radius: 12px;
    background: #f7f9fc;
}

.gestion-admin-create__data dt {
    color: var(--gestion-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gestion-admin-create__data dd {
    margin: 6px 0 0;
    color: var(--gestion-text);
    font-size: 14px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.gestion-admin-create__features {
    display: grid;
    gap: 12px;
    margin-top: 23px;
}

.gestion-admin-create__features > div {
    position: relative;
    padding: 15px 15px 15px 42px;
    border-radius: 12px;
    background: #f7f9fc;
}

.gestion-admin-create__features > div::before {
    content: "✓";
    position: absolute;
    top: 16px;
    left: 16px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5f6ee;
    color: #198754;
    font-size: 11px;
    font-weight: 900;
}

.gestion-admin-create__features strong,
.gestion-admin-create__features span {
    display: block;
}

.gestion-admin-create__features strong {
    font-size: 13px;
}

.gestion-admin-create__features span {
    margin-top: 4px;
    color: var(--gestion-muted);
    font-size: 12px;
    line-height: 1.5;
}

.gestion-admin-create__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 25px;
}

.gestion-admin-create__action strong {
    display: block;
    font-size: 14px;
}

.gestion-admin-create__action p {
    margin: 5px 0 0;
    color: var(--gestion-muted);
    font-size: 12px;
    line-height: 1.5;
}

.gestion-admin-create__action form {
    flex: 0 0 auto;
}

.gestion-admin-create__notice {
    padding: 18px 20px;
    border: 1px solid #b9ddc9;
    border-radius: 14px;
    background: #f0faf4;
    color: #246b43;
    font-size: 14px;
    font-weight: 700;
}


@media (max-width: 900px) {

    .gestion-admin-create__grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .gestion-admin-create__data {
        grid-template-columns: 1fr;
    }

    .gestion-admin-create__action {
        align-items: stretch;
        flex-direction: column;
    }

    .gestion-admin-create__action form,
    .gestion-admin-create__action button {
        width: 100%;
    }

}


/* ==========================================================
   GESTION CENCOVIL V2
   SHELL EMPRESARIAL
   ========================================================== */

.gestion-body--empresa .gestion-sidebar {
    background:
        linear-gradient(
            180deg,
            #17202d 0%,
            #1a2636 100%
        );
}

.gestion-business-badge {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid
        rgba(40, 88, 216, 0.16);
    border-radius: 999px;
    color: var(--gestion-primary);
    background: var(--gestion-primary-soft);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.gestion-card__status {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gestion-text-soft);
    background: #f2f5f9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.gestion-business-summary {
    margin-top: 22px;
    padding: 24px;
    border-radius: var(--gestion-radius);
}

.gestion-business-summary p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--gestion-text-soft);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .gestion-business-badge {
        align-self: flex-start;
    }
}

/* ==========================================================
   Gestión Cencovil - Mi negocio
   ========================================================== */

.empresa-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.empresa-page-header h1 {
    margin: 6px 0 8px;
}

.empresa-page-header p {
    max-width: 720px;
    margin: 0;
    color: var(--gestion-text-muted, #64748b);
    line-height: 1.65;
}

.empresa-page-header__status {
    flex: 0 0 auto;
}

.empresa-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: .82rem;
    font-weight: 700;
}

.empresa-business-form {
    display: grid;
    gap: 22px;
}

.empresa-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
}

.gestion-field textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font: inherit;
    line-height: 1.55;
    resize: vertical;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.gestion-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, .12);
}

.gestion-field textarea.is-invalid {
    border-color: #dc2626;
}

.empresa-form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, .05);
}

.empresa-form-submit > div {
    display: grid;
    gap: 4px;
}

.empresa-form-submit strong {
    color: #172033;
}

.empresa-form-submit span {
    color: #64748b;
    font-size: .88rem;
}

@media (max-width: 760px) {
    .empresa-page-header {
        flex-direction: column;
    }

    .empresa-form-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .empresa-form-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .empresa-form-submit .gestion-button {
        width: 100%;
        justify-content: center;
    }
}



/* ==========================================================
   MI_NEGOCIO_LAYOUT_AMPLIO_20_4J4I6AN3

   Mi negocio aprovecha el espacio disponible del área
   empresarial sin alterar las reglas responsive existentes.
   ========================================================== */

.empresa-business-form {
    width: 100%;
    max-width: none;
}

.empresa-business-form__fieldset {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.empresa-business-form .gestion-form-panel {
    width: 100%;
    max-width: none;
}

.empresa-business-form .empresa-media-grid {
    width: 100%;
}

@media (min-width: 1100px) {
    .empresa-business-form .empresa-media-grid {
        grid-template-columns:
            repeat(2, minmax(320px, 1fr));
    }
}

/* ==========================================================
   Gestion V2 - Mi negocio / identidad visual
   ========================================================== */

.empresa-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.empresa-media-card {
    overflow: hidden;
    border: 1px solid var(--gestion-border, #dfe5ec);
    border-radius: 18px;
    background: #fff;
}

.empresa-media-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #f5f7fa,
            #edf1f5
        );
}

.empresa-media-card__preview--logo {
    min-height: 220px;
}

.empresa-media-card__preview--portada {
    min-height: 220px;
}

.empresa-media-card__preview img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.empresa-media-card__preview--portada img {
    object-fit: cover;
}

.empresa-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    width: 100%;
    padding: 1rem;
    color: #7a8795;
    font-weight: 700;
    text-align: center;
}

.empresa-media-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
    padding: 1rem 1.1rem 1.15rem;
}

.empresa-media-card__body strong {
    font-size: 1rem;
}

.empresa-media-card__body span {
    color: #697586;
    font-size: .88rem;
    line-height: 1.45;
}

.empresa-media-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 760px) {
    .empresa-media-grid {
        grid-template-columns: 1fr;
    }

    .empresa-media-card__preview,
    .empresa-media-card__preview img,
    .empresa-media-placeholder {
        min-height: 190px;
        height: 190px;
    }
}


/* ==========================================================
   MI ADMINISTRACION - EQUIPO
   ========================================================== */

.gestion-equipo {
    display: grid;
    gap: 24px;
}

.gestion-equipo__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.gestion-equipo__header-actions {
    flex: 0 0 auto;
}

.gestion-equipo__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gestion-equipo-stat {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--gestion-border);
    border-radius: 18px;
    background: var(--gestion-surface);
    box-shadow: var(--gestion-shadow-sm);
}

.gestion-equipo-stat__value {
    display: block;
    margin-bottom: 4px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--gestion-text);
}

.gestion-equipo-stat__label {
    display: block;
    font-size: 14px;
    color: var(--gestion-text-muted);
}

.gestion-equipo__panel {
    padding: 0;
    overflow: hidden;
}

.gestion-equipo__panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid var(--gestion-border);
}

.gestion-equipo__panel-heading h2 {
    margin: 0 0 5px;
    font-size: 19px;
}

.gestion-equipo__panel-heading p {
    margin: 0;
    color: var(--gestion-text-muted);
}

.gestion-equipo__list {
    display: grid;
}

.gestion-equipo-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--gestion-border);
}

.gestion-equipo-member:last-child {
    border-bottom: 0;
}

.gestion-equipo-member__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.gestion-equipo-member__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--gestion-primary-soft);
    color: var(--gestion-primary);
    font-size: 19px;
    font-weight: 800;
}

.gestion-equipo-member__person {
    min-width: 0;
}

.gestion-equipo-member__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.gestion-equipo-member__name-row h3 {
    margin: 0;
    font-size: 16px;
}

.gestion-equipo-member__principal {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gestion-primary-soft);
    color: var(--gestion-primary);
    font-size: 11px;
    font-weight: 800;
}

.gestion-equipo-member__metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 5px;
    font-size: 13px;
    color: var(--gestion-text-muted);
}

.gestion-equipo-member__access {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 0 0 auto;
}

.gestion-equipo-member__role {
    display: grid;
    gap: 2px;
    text-align: right;
}

.gestion-equipo-member__role span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gestion-text-muted);
}

.gestion-equipo-member__role strong {
    font-size: 13px;
}

.gestion-equipo-member__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.gestion-equipo-member__status--activo {
    background: #e9f8ef;
    color: #237a45;
}

.gestion-equipo-member__status--pendiente {
    background: #fff5df;
    color: #96660c;
}

.gestion-equipo-member__status--suspendido,
.gestion-equipo-member__status--baja {
    background: #f5ecec;
    color: #9a4141;
}

.gestion-equipo__empty {
    padding: 44px 26px;
    text-align: center;
}

.gestion-equipo__empty h3 {
    margin: 0 0 7px;
}

.gestion-equipo__empty p {
    margin: 0;
    color: var(--gestion-text-muted);
}

.gestion-equipo__notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--gestion-border);
    border-radius: 16px;
    background: var(--gestion-surface);
}

.gestion-equipo__notice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gestion-primary-soft);
    color: var(--gestion-primary);
    font-weight: 900;
}

.gestion-equipo__notice strong {
    display: block;
    margin-bottom: 3px;
}

.gestion-equipo__notice p {
    margin: 0;
    color: var(--gestion-text-muted);
}

@media (max-width: 900px) {
    .gestion-equipo__summary {
        grid-template-columns: 1fr;
    }

    .gestion-equipo-member {
        align-items: flex-start;
        flex-direction: column;
    }

    .gestion-equipo-member__access {
        width: 100%;
        justify-content: space-between;
    }

    .gestion-equipo-member__role {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .gestion-equipo__header {
        flex-direction: column;
    }

    .gestion-equipo__header-actions {
        width: 100%;
    }

    .gestion-equipo__header-actions .gestion-button {
        width: 100%;
    }

    .gestion-equipo-member {
        padding: 20px;
    }

    .gestion-equipo__panel-heading {
        padding: 20px;
    }

    .gestion-equipo-member__metadata {
        display: grid;
        gap: 3px;
    }
}

/* ============================================================
   EQUIPO - NUEVO MIEMBRO
   ============================================================ */

.gestion-equipo-nuevo__panel {
    margin-bottom: 24px;
}

.gestion-equipo-nuevo__panel > h2,
.gestion-equipo-nuevo__panel > p,
.gestion-equipo-nuevo__panel > form {
    margin-left: 28px;
    margin-right: 28px;
}

.gestion-equipo-nuevo__panel > h2 {
    margin-top: 28px;
    margin-bottom: 8px;
}

.gestion-equipo-nuevo__panel > h2 + p {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--gestion-text-soft);
    line-height: 1.6;
}

.gestion-equipo-nuevo__panel > form {
    margin-top: 0;
    margin-bottom: 28px;
}

.gestion-equipo-nuevo__panel .gestion-field {
    margin-bottom: 22px;
}

.gestion-equipo-nuevo__panel
.gestion-field > input[type="text"],
.gestion-equipo-nuevo__panel
.gestion-field > select {
    max-width: 520px;
}

.gestion-equipo-nuevo__actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    margin-top: 24px;
}

.gestion-equipo-nuevo__panel
.gestion-equipo-member {
    margin: 22px 28px 28px;
}

.gestion-equipo-nuevo__permiso {
    display: block;
    position: relative;
    padding: 14px 14px 14px 38px;
    border-bottom: 1px solid var(--gestion-border);
    cursor: pointer;
    line-height: 1.4;
}

.gestion-equipo-nuevo__permiso:first-of-type {
    margin-top: 8px;
    border-top: 1px solid var(--gestion-border);
}

.gestion-equipo-nuevo__permiso input[type="checkbox"] {
    position: absolute;
    top: 17px;
    left: 12px;
    margin: 0;
}

.gestion-equipo-nuevo__permiso strong {
    display: block;
    color: var(--gestion-text);
}

.gestion-equipo-nuevo__permiso small {
    display: block;
    margin-top: 4px;
    color: var(--gestion-text-soft);
    line-height: 1.5;
}

.gestion-equipo-nuevo__panel
.gestion-alert {
    margin-top: 24px;
}

@media (max-width: 768px) {

    .gestion-equipo-nuevo__panel {
        margin-bottom: 18px;
    }

    .gestion-equipo-nuevo__panel > h2,
    .gestion-equipo-nuevo__panel > p,
    .gestion-equipo-nuevo__panel > form {
        margin-left: 20px;
        margin-right: 20px;
    }

    .gestion-equipo-nuevo__panel > h2 {
        margin-top: 22px;
    }

    .gestion-equipo-nuevo__panel > form {
        margin-bottom: 22px;
    }

    .gestion-equipo-nuevo__panel
    .gestion-equipo-member {
        margin: 18px 20px 22px;
    }

    .gestion-equipo-nuevo__panel
    .gestion-field > input[type="text"],
    .gestion-equipo-nuevo__panel
    .gestion-field > select {
        max-width: none;
    }

    .gestion-equipo-nuevo__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gestion-equipo-nuevo__actions
    .gestion-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   EQUIPO - NUEVO MIEMBRO / PANEL ESTRUCTURADO
   ============================================================ */

.gestion-equipo-nuevo__panel-header {
    padding: 26px 28px 20px;
    border-bottom: 1px solid var(--gestion-border);
}

.gestion-equipo-nuevo__panel-header h2 {
    margin: 0 0 8px;
}

.gestion-equipo-nuevo__panel-header p {
    margin: 0;
    color: var(--gestion-text-soft);
    line-height: 1.6;
}

.gestion-equipo-nuevo__panel-body {
    padding: 26px 28px 28px;
}

.gestion-equipo-nuevo__panel-body form {
    margin: 0;
}

.gestion-equipo-nuevo__panel-body .gestion-field {
    max-width: 620px;
    margin: 0;
}

.gestion-equipo-nuevo__panel-body
.gestion-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.gestion-equipo-nuevo__panel-body
.gestion-equipo-nuevo__actions {
    justify-content: flex-start;
    margin-top: 22px;
}

@media (max-width: 768px) {

    .gestion-equipo-nuevo__panel-header {
        padding: 22px 20px 18px;
    }

    .gestion-equipo-nuevo__panel-body {
        padding: 22px 20px;
    }

    .gestion-equipo-nuevo__panel-body
    .gestion-field {
        max-width: none;
    }
}

/* ============================================================
   EQUIPO - NUEVO MIEMBRO / TIPO DE ACCESO
   ============================================================ */

.gestion-equipo-nuevo__nivel {
    max-width: 620px;
}

.gestion-equipo-nuevo__nivel .gestion-field {
    max-width: none;
}

.gestion-equipo-nuevo__permisos {
    margin-top: 30px;
}

.gestion-equipo-nuevo__permisos-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.gestion-equipo-nuevo__permisos-heading h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.gestion-equipo-nuevo__permisos-heading p {
    margin: 0;
    color: var(--gestion-text-soft);
    font-size: .9rem;
    line-height: 1.5;
}

.gestion-equipo-nuevo__permisos-heading > span {
    flex: 0 0 auto;
    color: var(--gestion-text-soft);
    font-size: .82rem;
    font-weight: 700;
}

.gestion-equipo-nuevo__permisos-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gestion-equipo-nuevo__permiso-card {
    display: flex;
    position: relative;
    min-height: 88px;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid var(--gestion-border);
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.gestion-equipo-nuevo__permiso-card:hover {
    border-color: #b8c6e8;
    background: #fbfcff;
    box-shadow:
        0 5px 16px rgba(34, 61, 116, .06);
}

.gestion-equipo-nuevo__permiso-copy {
    display: block;
    min-width: 0;
}

.gestion-equipo-nuevo__permiso-copy strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gestion-text);
    font-size: .92rem;
    line-height: 1.35;
}

.gestion-equipo-nuevo__permiso-copy small {
    display: block;
    margin: 0;
    color: var(--gestion-text-soft);
    font-size: .82rem;
    line-height: 1.45;
}

/*
 * Importante:
 * anulamos expresamente .gestion-field input,
 * para que el checkbox no herede width:100%,
 * min-height:46px, padding ni el aspecto de
 * un campo de texto.
 */
.gestion-equipo-nuevo__permiso-card
input[type="checkbox"] {
    appearance: auto;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    box-sizing: border-box;
    margin: 2px 0 0;
    padding: 0;
    border: initial;
    border-radius: 0;
    background: initial;
    box-shadow: none;
    accent-color: var(--gestion-primary);
    cursor: pointer;
}

.gestion-equipo-nuevo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--gestion-border);
}

.gestion-equipo-nuevo__footer
.gestion-alert {
    flex: 1 1 auto;
    margin: 0;
}

.gestion-equipo-nuevo__footer
.gestion-equipo-nuevo__actions {
    flex: 0 0 auto;
    margin: 0;
}

@media (max-width: 900px) {

    .gestion-equipo-nuevo__permisos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .gestion-equipo-nuevo__permisos-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .gestion-equipo-nuevo__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .gestion-equipo-nuevo__footer
    .gestion-equipo-nuevo__actions {
        width: 100%;
    }

    .gestion-equipo-nuevo__footer
    .gestion-button {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   EQUIPO - EDICION DE MIEMBRO
   ============================================================ */

.gestion-equipo-editar__panel {
    overflow: hidden;
}

.gestion-equipo-editar__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 28px;
    border-bottom: 1px solid var(--gestion-border);
}

.gestion-equipo-editar__identity h2 {
    margin: 4px 0 0;
    font-size: 20px;
}

.gestion-equipo-editar__form {
    padding: 28px;
}

.gestion-equipo-editar__form > .gestion-field {
    max-width: 560px;
    margin-bottom: 30px;
}

.gestion-equipo-editar__form select {
    width: 100%;
}

.gestion-equipo-editar__permissions {
    display: grid;
    gap: 18px;
}

.gestion-equipo-editar__section-title h2 {
    margin: 0 0 6px;
}

.gestion-equipo-editar__section-title p {
    margin: 0;
    color: var(--gestion-text-muted);
}

.gestion-equipo-editar__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--gestion-border);
    border-radius: 16px;
    overflow: hidden;
}

.gestion-equipo-editar__group legend {
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid var(--gestion-border);
    background: var(--gestion-surface-soft);
    font-weight: 800;
}

.gestion-equipo-editar__group
.gestion-equipo-nuevo__permiso:last-child {
    border-bottom: 0;
}

@media (max-width: 640px) {
    .gestion-equipo-editar__identity,
    .gestion-equipo-editar__form {
        padding: 20px;
    }

    .gestion-equipo-editar
    .gestion-equipo-nuevo__actions {
        flex-direction: column-reverse;
    }

    .gestion-equipo-editar
    .gestion-equipo-nuevo__actions
    .gestion-button {
        width: 100%;
    }
}


/* ============================================================
   EQUIPO - ACCIONES DE MIEMBRO
   ============================================================ */

.gestion-equipo-member__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.gestion-equipo-member__action-form {
    display: inline-flex;
    margin: 0;
}

.gestion-button--danger {
    border-color: #dc2626;
    background: #ffffff;
    color: #b91c1c;
}

.gestion-button--danger:hover {
    border-color: #b91c1c;
    background: #fef2f2;
    color: #991b1b;
}

.gestion-equipo-member__actions
.gestion-button--small {
    min-height: 34px;
    padding: 7px 13px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .gestion-equipo-member__actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .gestion-equipo-member__actions {
        width: 100%;
        margin-left: 0;
    }

    .gestion-equipo-member__actions
    .gestion-button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   EQUIPO - FEEDBACK DE OPERACIONES
   ============================================================ */

.gestion-equipo-feedback {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(24, 121, 78, 0.2);
    border-radius: 14px;
    background: rgba(24, 121, 78, 0.08);
    box-sizing: border-box;
}

.gestion-equipo-feedback__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(24, 121, 78, 0.14);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.gestion-equipo-feedback__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.gestion-equipo-feedback__content strong {
    font-size: 0.92rem;
    font-weight: 750;
}

.gestion-equipo-feedback__content span {
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .gestion-equipo-feedback {
        gap: 0.7rem;
        padding: 0.9rem;
        border-radius: 12px;
    }

    .gestion-equipo-feedback__icon {
        flex-basis: 1.8rem;
        width: 1.8rem;
        height: 1.8rem;
    }
}

/* ==========================================================
   COMPONENTE: BOTONES EMPRESARIALES
   ========================================================== */

.business-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    min-height: 42px;
    padding: 0.65rem 1rem;

    border: 1px solid transparent;
    border-radius: 10px;

    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.business-button:hover {
    text-decoration: none;
}

.business-button:focus-visible {
    outline: 3px solid rgba(40, 88, 216, 0.22);
    outline-offset: 2px;
}

/*
 * Acción principal.
 */
.business-button-primary {
    color: #ffffff;
    background: var(--gestion-primary);
    border-color: var(--gestion-primary);
}

.business-button-primary:hover {
    color: #ffffff;
    background: var(--gestion-primary-dark);
    border-color: var(--gestion-primary-dark);
}

/*
 * Acción secundaria.
 *
 * Debe distinguirse claramente del texto normal sin competir
 * visualmente con una acción principal.
 */
.business-button-secondary {
    color: var(--gestion-primary-dark);
    background: var(--gestion-primary-soft);
    border-color: rgba(40, 88, 216, 0.24);
}

.business-button-secondary:hover {
    color: #ffffff;
    background: var(--gestion-primary);
    border-color: var(--gestion-primary);
    box-shadow: 0 6px 16px rgba(40, 88, 216, 0.16);
}

.business-button-secondary:active {
    transform: translateY(1px);
}

/*
 * Estados deshabilitados comunes a enlaces y botones.
 */
.business-button:disabled,
.business-button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================
 * CATEGORIAS_LAYOUT_28_2E20
 * Categorías compactas y edición bajo demanda
 * ========================================================== */

.gestion-categorias__header {
    margin-bottom: 24px;
}

.gestion-categorias__panel {
    overflow: hidden;
    margin-bottom: 24px;
}

.gestion-categorias__form {
    display: block;
}

.gestion-categorias__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(180px, .42fr);
    gap: 20px;
    padding: 24px;
}

.gestion-categorias__grid .gestion-field--full {
    grid-column: 1 / -1;
}

.gestion-categorias__check {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0 0 4px;
    cursor: pointer;
}

.gestion-field
.gestion-categorias__check
input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    display: inline-block;
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 0 !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0 !important;
    border: initial !important;
    border-radius: 0 !important;
    background: initial !important;
    box-shadow: none !important;
    accent-color: var(--gestion-primary);
    cursor: pointer;
}

.gestion-categorias__actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    padding: 18px 24px;
    border-top: 1px solid var(--gestion-border);
    background: var(--gestion-surface-soft);
}

.gestion-categorias__actions .gestion-button {
    width: auto;
    min-width: 150px;
}

.gestion-categorias__listado
.gestion-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.gestion-categorias__total {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--gestion-primary);
    background: var(--gestion-primary-soft);
    font-size: 12px;
    font-weight: 750;
}

.gestion-categorias__items {
    display: grid;
    gap: 10px;
    padding: 20px 24px 24px;
}

.gestion-categorias__item {
    overflow: hidden;
    border: 1px solid var(--gestion-border);
    border-radius: 13px;
    background: #ffffff;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.gestion-categorias__item[open] {
    border-color: #c8d4ef;
    box-shadow:
        0 8px 24px rgba(35, 55, 95, .06);
}

.gestion-categorias__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 72px;
    padding: 13px 17px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.gestion-categorias__summary::-webkit-details-marker {
    display: none;
}

.gestion-categorias__summary::marker {
    content: "";
}

.gestion-categorias__summary:hover {
    background: #fbfcff;
}

.gestion-categorias__summary-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.gestion-categorias__summary-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--gestion-primary);
    background: var(--gestion-primary-soft);
    font-size: 13px;
    font-weight: 800;
}

.gestion-categorias__summary-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.gestion-categorias__summary-copy strong {
    overflow: hidden;
    color: var(--gestion-text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gestion-categorias__summary-copy span {
    overflow: hidden;
    max-width: 620px;
    color: var(--gestion-text-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gestion-categorias__summary-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.gestion-categorias__orden {
    color: var(--gestion-text-soft);
    font-size: 11px;
}

.gestion-categorias__orden strong {
    margin-left: 3px;
    color: var(--gestion-text);
}

.gestion-categorias__estado {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.gestion-categorias__estado.is-visible {
    color: #176b51;
    background: #eefaf5;
}

.gestion-categorias__estado.is-hidden {
    color: #67707e;
    background: #f0f2f5;
}

.gestion-categorias__editar {
    color: var(--gestion-primary);
    font-size: 11px;
    font-weight: 750;
}

.gestion-categorias__chevron {
    display: inline-block;
    color: #8290a5;
    font-size: 23px;
    line-height: 1;
    transition: transform 160ms ease;
}

.gestion-categorias__item[open]
.gestion-categorias__chevron {
    transform: rotate(90deg);
}

.gestion-categorias__detalle {
    border-top: 1px solid var(--gestion-border);
}

.gestion-categorias__detalle
.gestion-categorias__grid {
    padding: 22px 24px;
}

.gestion-categorias__danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 24px;
    border-top: 1px solid var(--gestion-border);
    background: #fff;
}

.gestion-categorias__danger > div {
    display: grid;
    gap: 3px;
}

.gestion-categorias__danger strong {
    color: #313b49;
    font-size: 12px;
}

.gestion-categorias__danger span {
    color: var(--gestion-text-soft);
    font-size: 11px;
}

.gestion-categorias__danger
.gestion-button {
    width: auto;
}

@media (max-width: 820px) {

    .gestion-categorias__grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .gestion-categorias__grid
    .gestion-field--full {
        grid-column: auto;
    }

    .gestion-categorias__summary {
        align-items: flex-start;
    }

    .gestion-categorias__summary-meta {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {

    .gestion-categorias__items {
        padding: 16px;
    }

    .gestion-categorias__summary {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .gestion-categorias__summary-meta {
        justify-content: flex-start;
        padding-left: 51px;
    }

    .gestion-categorias__actions,
    .gestion-categorias__danger {
        align-items: stretch;
        flex-direction: column;
        padding-left: 18px;
        padding-right: 18px;
    }

    .gestion-categorias__actions
    .gestion-button,
    .gestion-categorias__danger
    .gestion-button {
        width: 100%;
        justify-content: center;
    }

    .gestion-categorias__listado
    .gestion-panel__header {
        flex-direction: column;
    }
}

/* ==========================================================
 * CATEGORIAS_IMAGENES_28_2F4B
 * Imágenes del catálogo de tienda física
 * ========================================================== */

.gestion-categorias__summary-icon {
    overflow: hidden;
}

.gestion-categorias__summary-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gestion-categorias__summary-icon span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.gestion-categorias__upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 16px 18px;
    border: 1px dashed #c8d2e2;
    border-radius: 12px;
    background: #fbfcff;
}

.gestion-categorias__upload-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 11px;
    color: var(--gestion-primary);
    background: var(--gestion-primary-soft);
    font-size: 24px;
    font-weight: 500;
}

.gestion-categorias__upload > div:nth-child(2) {
    display: grid;
    flex: 1 1 auto;
    gap: 3px;
}

.gestion-categorias__upload strong {
    color: var(--gestion-text);
    font-size: 13px;
}

.gestion-categorias__upload span {
    color: var(--gestion-text-soft);
    font-size: 11px;
}

.gestion-categorias__upload input[type="file"] {
    width: auto;
    max-width: 340px;
    min-height: 0;
    padding: 8px;
    background: #ffffff;
}

.gestion-categorias__imagen-editor {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--gestion-border);
    border-radius: 12px;
    background: #fbfcff;
}

.gestion-categorias__imagen-actual {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    overflow: hidden;
    border: 1px solid var(--gestion-border);
    border-radius: 12px;
    background: var(--gestion-primary-soft);
}

.gestion-categorias__imagen-actual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gestion-categorias__imagen-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--gestion-primary);
    font-size: 24px;
    font-weight: 800;
}

.gestion-categorias__imagen-controles {
    display: grid;
    flex: 1 1 auto;
    gap: 9px;
    min-width: 0;
}

.gestion-categorias__imagen-controles input[type="file"] {
    width: 100%;
    min-height: 0;
    padding: 8px;
    background: #ffffff;
}

.gestion-categorias__imagen-controles > span {
    color: var(--gestion-text-soft);
    font-size: 11px;
}

.gestion-categorias__imagen-controles
.gestion-categorias__check {
    margin-top: 4px;
}

@media (max-width: 640px) {

    .gestion-categorias__upload,
    .gestion-categorias__imagen-editor {
        align-items: stretch;
        flex-direction: column;
    }

    .gestion-categorias__upload input[type="file"] {
        width: 100%;
        max-width: none;
    }

    .gestion-categorias__imagen-actual {
        width: 76px;
        height: 76px;
    }
}

/* ==========================================================
 * CATEGORIAS_UPLOAD_ALINEADO_28_2F4D
 * Selector próximo al contenido, igual que en edición
 * ========================================================== */

.gestion-categorias__upload {
    display: grid;

    grid-template-columns:
        42px
        minmax(260px, 430px)
        minmax(280px, 420px);

    justify-content: start;
    align-items: center;

    gap: 16px;
}

.gestion-categorias__upload-icon {
    grid-column: 1;
}

.gestion-categorias__upload > div:nth-child(2) {
    grid-column: 2;
    min-width: 0;
}

.gestion-categorias__upload input[type="file"] {
    grid-column: 3;

    justify-self: start;

    width: 100%;
    max-width: 420px;
}

/*
 * En pantallas intermedias el selector baja a una segunda
 * línea en lugar de desplazarse hacia la derecha.
 */
@media (max-width: 1050px) {

    .gestion-categorias__upload {
        grid-template-columns:
            42px
            minmax(0, 1fr);
    }

    .gestion-categorias__upload input[type="file"] {
        grid-column: 2;
        justify-self: start;
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 640px) {

    .gestion-categorias__upload {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .gestion-categorias__upload input[type="file"] {
        width: 100%;
        max-width: none;
    }
}

/* ==========================================================
 * GESTION_ALERTAS_GLOBALES_28_3F3C
 * Sistema visual transversal de avisos de gestion.cevi.es
 *
 * success = operación correcta
 * error   = error o validación fallida
 * warning = advertencia
 * info    = información
 * ========================================================== */

.gestion-alert {
    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    width: 100%;
    margin: 18px 0;
    padding: 16px 18px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;

    box-sizing: border-box;
}

.gestion-alert::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    font-size: 17px;
    line-height: 1;
    font-weight: 800;
}

/* ÉXITO */

.gestion-alert--success,
.gestion-alert--ok {
    color: #12623f;
    background: #ecf9f2;
    border-color: #72d3a3;
}

.gestion-alert--success::before,
.gestion-alert--ok::before {
    content: "✓";

    color: #ffffff;
    background: #18a866;
}

/* ERROR */

.gestion-alert--error,
.gestion-alert--danger {
    color: #a51625;
    background: #fff0f2;
    border-color: #ef7d89;
}

.gestion-alert--error::before,
.gestion-alert--danger::before {
    content: "!";

    color: #ffffff;
    background: #df2638;
}

/* ADVERTENCIA */

.gestion-alert--warning {
    color: #805b09;
    background: #fff8df;
    border-color: #e6c45e;
}

.gestion-alert--warning::before {
    content: "!";

    color: #ffffff;
    background: #c89013;
}

/* INFORMACIÓN */

.gestion-alert--info {
    color: #245a9a;
    background: #eef6ff;
    border-color: #8dbbed;
}

.gestion-alert--info::before {
    content: "i";

    color: #ffffff;
    background: #397fd0;
}

/*
 * Permite utilizar estructura enriquecida más adelante:
 *
 * <div class="gestion-alert gestion-alert--success">
 *     <div class="gestion-alert__content">
 *         <strong>...</strong>
 *         <span>...</span>
 *     </div>
 * </div>
 */

.gestion-alert__content {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.gestion-alert__content strong {
    color: inherit;
    font-size: 14px;
    font-weight: 750;
}

.gestion-alert__content span,
.gestion-alert__content p {
    margin: 0;

    color: inherit;
    font-weight: 500;
}

/* Responsive */

@media (max-width: 640px) {

    .gestion-alert {
        gap: 11px;
        padding: 14px;
    }

    .gestion-alert::before {
        flex-basis: 26px;

        width: 26px;
        height: 26px;

        font-size: 15px;
    }
}
