:root {
    --alunet-primary: #86ada3;
    --alunet-primary-medium: #5f8f84;
    --alunet-primary-dark: #315b55;
    --alunet-primary-ink: #203a35;
    --alunet-primary-soft: #eef7f4;
    --alunet-mint: #397b7d;
    --alunet-mint-soft: #eaf7f7;
    --alunet-sun: #f2bb4d;
    --alunet-sun-soft: #fff6d8;
    --alunet-lavender: #7565aa;
    --alunet-lavender-soft: #f1edfb;
    --alunet-blue: var(--alunet-primary-dark);
    --alunet-blue-dark: var(--alunet-primary-dark);
    --alunet-blue-soft: var(--alunet-primary-soft);
    --alunet-sidebar: #fff3df;
    --alunet-sidebar-muted: #6c7772;
    --alunet-page: #fff9f2;
    --alunet-text: #3f4946;
    --alunet-muted: #697571;
    --alunet-border: #e2e7e2;
    --alunet-danger: #c9384f;
    --alunet-radius: 16px;
}

html,
body {
    min-height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--alunet-text);
    background: var(--alunet-page);
}

body.alunet-frontend {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

a {
    color: var(--alunet-primary-dark);
}

a:hover,
a:focus {
    color: #264a45;
}

img,
canvas,
svg,
video {
    max-width: 100%;
    height: auto;
}

a,
button,
input,
select,
textarea {
    touch-action: manipulation;
}

.alunet-public-header,
.alunet-topbar {
    min-height: 60px;
    color: var(--alunet-primary-ink);
    background: linear-gradient(110deg, #aecdc5, var(--alunet-primary));
    box-shadow: 0 4px 16px rgba(65, 103, 94, .16);
}

.alunet-public-header {
    position: sticky;
    z-index: 1030;
    top: 0;
}

.alunet-public-header .container,
.alunet-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.alunet-public-header .container {
    position: relative;
    min-height: 60px;
}

.alunet-brand,
.alunet-brand:hover,
.alunet-brand:focus {
    display: inline-flex;
    align-items: center;
    color: var(--alunet-primary-ink);
    text-decoration: none;
    font-size: 23px;
    letter-spacing: -.03em;
}

.alunet-brand::after,
.alunet-sidebar-brand::after {
    width: 9px;
    height: 9px;
    margin-left: 10px;
    border-radius: 50%;
    background: var(--alunet-sun);
    box-shadow: 11px -4px 0 #70bba7, 19px 3px 0 #a993d5;
    content: "";
}

.alunet-public-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.alunet-public-nav a:not(.btn) {
    min-height: 44px;
    padding: 12px 13px;
    color: var(--alunet-primary-ink);
    border-radius: 9px;
}

.alunet-public-nav a:hover,
.alunet-public-nav a:focus {
    text-decoration: none;
    background: rgba(255, 255, 255, .3);
}

.alunet-public-nav .btn-default {
    min-height: 40px;
    margin-left: 5px;
    padding: 9px 16px;
    color: var(--alunet-primary-dark);
    border-color: transparent;
    background: var(--alunet-sun-soft);
    font-weight: 700;
}

.alunet-public-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--alunet-primary-ink);
    background: rgba(255, 255, 255, .3);
    font-size: 20px;
}

.alunet-public-main {
    padding-top: 28px;
    padding-bottom: 42px;
}

.alunet-shell {
    min-height: 100vh;
}

.alunet-sidebar {
    position: fixed;
    z-index: 1040;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--alunet-text);
    background: var(--alunet-sidebar);
    box-shadow: 8px 0 28px rgba(110, 76, 57, .1);
    transition: transform .22s ease;
}

.alunet-sidebar-header {
    display: flex;
    align-items: center;
    min-height: 60px;
    background: var(--alunet-sun);
}

.alunet-sidebar-brand {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    min-height: 60px;
    padding: 0 20px;
    color: #3f514c;
    font-size: 23px;
    letter-spacing: -.03em;
}

.alunet-sidebar-brand:hover,
.alunet-sidebar-brand:focus {
    color: #3f514c;
    text-decoration: none;
}

.alunet-sidebar-brand::after {
    background: var(--alunet-primary);
    box-shadow: 11px -4px 0 var(--alunet-mint), 19px 3px 0 var(--alunet-lavender);
}

.alunet-sidebar-close {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #3f514c;
    background: rgba(255, 255, 255, .42);
    font-size: 18px;
}

.alunet-tenant-card {
    padding: 17px 20px;
    border-bottom: 1px solid rgba(126, 88, 69, .12);
    background: rgba(255, 255, 255, .3);
}

.alunet-tenant-card small {
    display: block;
    margin-bottom: 5px;
    color: var(--alunet-sidebar-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.alunet-tenant-card small i {
    margin-right: 4px;
    color: var(--alunet-primary);
}

.alunet-tenant-card strong {
    display: block;
    line-height: 1.35;
}

.alunet-menu-title {
    margin: 0;
    padding: 18px 20px 8px;
    color: #63766f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.alunet-general-menu,
.alunet-general-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.alunet-general-menu {
    padding-bottom: 18px;
}

.alunet-general-menu>li>a,
.alunet-general-menu .alunet-submenu a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 20px;
    color: #4f5e59;
    text-decoration: none;
    line-height: 1.3;
}

.alunet-general-menu a:hover,
.alunet-general-menu a:focus,
.alunet-general-menu li.active>a {
    color: var(--alunet-primary-dark);
    outline: 0;
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 4px 0 0 var(--alunet-primary);
}

.alunet-general-menu>li>a>i:first-child {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: -3px 2px -3px 0;
    place-items: center;
    border-radius: 10px;
    color: var(--alunet-primary-dark);
    background: var(--alunet-primary-soft);
}

.alunet-general-menu>li:nth-child(2n)>a>i:first-child {
    color: var(--alunet-mint);
    background: var(--alunet-mint-soft);
}

.alunet-general-menu>li:nth-child(3n)>a>i:first-child {
    color: var(--alunet-lavender);
    background: var(--alunet-lavender-soft);
}

.alunet-general-menu>li:nth-child(4n)>a>i:first-child {
    color: #8c6414;
    background: var(--alunet-sun-soft);
}

.alunet-general-menu .alunet-submenu {
    display: none;
}

.alunet-general-menu li.active>.alunet-submenu,
.alunet-general-menu li.is-open>.alunet-submenu {
    display: block;
}

.alunet-general-menu li.is-closed>.alunet-submenu {
    display: none;
}

.alunet-general-menu .alunet-submenu a {
    min-height: 44px;
    padding-left: 38px;
    color: #60706b;
    font-size: 13px;
}

.alunet-general-menu .alunet-submenu .alunet-submenu a {
    padding-left: 55px;
    background: rgba(255, 255, 255, .32);
}

.alunet-general-menu .badge {
    margin-left: auto;
}

.alunet-general-menu .badge-danger {
    background: var(--alunet-danger);
}

.alunet-menu-chevron {
    margin-left: auto;
    padding: 10px;
    margin-top: -10px;
    margin-right: -8px;
    margin-bottom: -10px;
    transition: transform .18s ease;
}

.alunet-general-menu .badge+.alunet-menu-chevron {
    margin-left: 3px;
}

.alunet-has-submenu.active>a .alunet-menu-chevron,
.alunet-has-submenu.is-open>a .alunet-menu-chevron {
    transform: rotate(180deg);
}

.alunet-has-submenu.is-closed>a .alunet-menu-chevron {
    transform: none;
}

.alunet-main {
    min-height: 100vh;
    margin-left: 280px;
}

.alunet-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    padding: 0 24px;
}

.alunet-topbar-context {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.alunet-area-badge {
    display: inline-flex;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    color: #5a3c22;
    align-items: center;
    gap: 6px;
    background: var(--alunet-sun);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}

.alunet-area-badge i {
    color: var(--alunet-primary-dark);
}

.alunet-sidebar-toggle {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--alunet-primary-ink);
    background: rgba(255, 255, 255, .3);
    font-size: 20px;
}

.alunet-topbar-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.alunet-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.alunet-user-actions a,
.alunet-user-actions .btn-link {
    color: var(--alunet-primary-ink);
}

.alunet-user-name,
.alunet-user-actions .btn-link {
    min-height: 44px;
    padding: 12px 8px;
}

.alunet-user-actions .alunet-management-link {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(39, 70, 63, .24);
    border-radius: 10px;
    color: var(--alunet-primary-ink);
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .25);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.alunet-user-actions .alunet-management-link:hover,
.alunet-user-actions .alunet-management-link:focus {
    border-color: rgba(39, 70, 63, .42);
    color: var(--alunet-primary-ink);
    outline: 0;
    background: rgba(255, 255, 255, .4);
    text-decoration: none;
    transform: translateY(-1px);
}

.alunet-logout-form {
    margin: 0;
}

.alunet-content {
    padding: 24px;
    background-image:
        radial-gradient(circle at 7% 8%, rgba(242, 187, 77, .13), transparent 23rem),
        radial-gradient(circle at 94% 14%, rgba(88, 174, 151, .12), transparent 24rem);
}

.alunet-content-inner {
    min-width: 0;
    min-height: calc(100vh - 132px);
    padding: 24px;
    border: 1px solid var(--alunet-border);
    border-top: 4px solid var(--alunet-sun);
    border-radius: var(--alunet-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(91, 62, 48, .06);
}

.alunet-content-inner> :first-child,
.alunet-public-main> :first-child {
    margin-top: 0;
}

.alunet-footer {
    padding: 16px 24px;
    color: var(--alunet-muted);
    text-align: center;
}

.alunet-sidebar-backdrop,
.alunet-mobile-nav {
    display: none;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 8px 0;
    background: transparent;
}

.alunet-page-heading {
    margin: 0 0 22px;
}

.alunet-page-heading h1 {
    margin: 0 0 7px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.alunet-page-heading h1::after {
    display: block;
    width: 46px;
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--alunet-primary), var(--alunet-sun));
    content: "";
}

.alunet-page-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--alunet-muted);
    font-size: 16px;
    line-height: 1.55;
}

.alunet-auth-card,
.alunet-info-card,
.alunet-profile-panel {
    max-width: 520px;
    margin: 20px auto;
    padding: 28px;
    border: 1px solid var(--alunet-border);
    border-radius: var(--alunet-radius);
    background: #fff;
    box-shadow: 0 12px 32px rgba(91, 62, 48, .08);
}

.alunet-hero {
    max-width: 760px;
    margin: 54px auto;
    padding: 48px 32px;
    border: 1px solid var(--alunet-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 12%, rgba(242, 187, 77, .3), transparent 11rem),
        linear-gradient(145deg, #fff 0%, var(--alunet-primary-soft) 100%);
    box-shadow: 0 16px 40px rgba(91, 62, 48, .09);
}

.alunet-hero-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 20px;
    color: var(--alunet-primary-ink);
    background: linear-gradient(145deg, #b6d3cc, var(--alunet-primary));
    font-size: 30px;
    box-shadow: 0 10px 22px rgba(71, 119, 111, .24);
}

.alunet-hero h1 {
    margin: 0 0 12px;
    font-size: 36px;
    letter-spacing: -.03em;
}

.alunet-hero p {
    margin-bottom: 24px;
    color: var(--alunet-muted);
    font-size: 18px;
}

.alunet-auth-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 16px;
    color: var(--alunet-blue);
    background: var(--alunet-blue-soft);
    font-size: 24px;
}

.alunet-auth-card h1,
.alunet-auth-card .alunet-auth-intro {
    text-align: center;
}

.alunet-auth-card h1 {
    margin: 0 0 8px;
    font-size: 27px;
}

.alunet-auth-intro,
.alunet-auth-help {
    color: var(--alunet-muted);
    line-height: 1.5;
}

.alunet-auth-intro {
    margin-bottom: 24px;
}

.alunet-auth-help {
    margin: 4px 0 20px;
    text-align: center;
}

.alunet-auth-card .btn-primary,
.alunet-contact-card .btn-primary,
.alunet-mobile-full {
    width: 100%;
    min-height: 46px;
    font-weight: 600;
}

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

.alunet-feature-card {
    padding: 22px;
    border: 1px solid var(--alunet-border);
    border-radius: var(--alunet-radius);
    background: #fff;
}

.alunet-feature-card:nth-child(2n) {
    border-color: #cde8df;
    background: var(--alunet-mint-soft);
}

.alunet-feature-card:nth-child(3n) {
    border-color: #ded5f3;
    background: var(--alunet-lavender-soft);
}

.alunet-feature-card i {
    margin-bottom: 13px;
    color: var(--alunet-blue);
    font-size: 24px;
}

.alunet-feature-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.alunet-feature-card p {
    margin: 0;
    color: var(--alunet-muted);
    line-height: 1.5;
}

.alunet-empty-state {
    padding: 42px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--alunet-radius);
    color: var(--alunet-muted);
    background: #f8fafc;
    text-align: center;
}

.alunet-empty-state>i {
    margin-bottom: 12px;
    color: var(--alunet-blue);
    font-size: 32px;
}

.alunet-empty-state h2 {
    margin: 0 0 7px;
    color: var(--alunet-text);
    font-size: 21px;
}

.alunet-empty-state p {
    margin: 0;
}

.alunet-normativa-modal {
    padding-right: 0 !important;
}

.alunet-normativa-modal .modal-dialog {
    width: 430px;
    max-width: calc(100% - 28px);
    margin: 7vh auto 24px;
}

.alunet-normativa-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.alunet-normativa-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(39, 70, 63, .2);
    border-radius: 50%;
    color: var(--alunet-primary-ink);
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .28);
    font-size: 16px;
    transition: background .18s ease, transform .18s ease;
}

.alunet-normativa-close:hover,
.alunet-normativa-close:focus {
    color: var(--alunet-primary-ink);
    outline: 0;
    background: rgba(255, 255, 255, .5);
    transform: scale(1.04);
}

.alunet-normativa-hero {
    padding: 30px 62px 25px 26px;
    color: var(--alunet-primary-ink);
    background: linear-gradient(135deg, #b6d3cc 0%, var(--alunet-primary) 64%, #9bc1b7 100%);
}

.alunet-normativa-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .16);
    font-size: 25px;
}

.alunet-normativa-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--alunet-primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.alunet-normativa-hero h2 {
    margin: 0;
    color: var(--alunet-primary-ink);
    font-size: 24px;
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.alunet-normativa-modal .modal-body {
    padding: 23px 26px 15px;
    color: var(--alunet-text);
}

.alunet-normativa-modal .modal-body>p:first-child {
    margin: 0 0 17px;
    color: #475467;
    font-size: 15px;
    line-height: 1.55;
}

.alunet-normativa-documento {
    display: flex;
    min-width: 0;
    padding: 14px;
    border: 1px solid #f0d9dd;
    border-radius: 14px;
    align-items: center;
    gap: 12px;
    background: var(--alunet-primary-soft);
}

.alunet-normativa-documento>i {
    flex: 0 0 auto;
    color: var(--alunet-blue);
    font-size: 25px;
}

.alunet-normativa-documento span {
    min-width: 0;
}

.alunet-normativa-documento small,
.alunet-normativa-documento strong {
    display: block;
}

.alunet-normativa-documento small {
    margin-bottom: 2px;
    color: var(--alunet-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.alunet-normativa-documento strong {
    overflow: hidden;
    color: #263238;
    font-size: 15px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.alunet-normativa-help {
    display: flex;
    margin: 15px 0 0 !important;
    color: #667085 !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.alunet-normativa-help i {
    margin-top: 2px;
    color: #f59e0b;
}

.alunet-normativa-modal .modal-footer {
    display: flex;
    padding: 10px 26px 26px;
    border: 0;
    gap: 10px;
    text-align: left;
}

.alunet-normativa-modal .modal-footer .btn {
    min-height: 46px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 11px;
    font-weight: 700;
}

.alunet-normativa-primary {
    flex: 1;
    color: #fff;
    border-color: var(--alunet-blue);
    background: var(--alunet-blue);
    box-shadow: 0 8px 20px rgba(71, 119, 111, .22);
}

.alunet-normativa-primary:hover,
.alunet-normativa-primary:focus {
    color: #fff;
    border-color: var(--alunet-blue-dark);
    background: var(--alunet-blue-dark);
}

.alunet-normativa-secondary {
    color: #475467;
    border-color: #d0d5dd;
    background: #fff;
}

.alunet-normativa-secondary:hover,
.alunet-normativa-secondary:focus {
    color: #344054;
    border-color: #98a2b3;
    background: #f8fafc;
}

.modal-backdrop.in {
    opacity: .58;
}

.alunet-contact-card {
    max-width: 720px;
}

.alunet-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alunet-captcha-row img {
    flex: 0 0 auto;
    border: 1px solid var(--alunet-border) !important;
    border-radius: 8px;
}

.alunet-captcha-row input {
    min-width: 0;
}

.alunet-profile-panel {
    max-width: none;
    margin-top: 0;
}

.alunet-profile-summary {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.alunet-profile-avatar {
    text-align: center;
}

.alunet-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.alunet-profile-panel .table {
    margin-bottom: 0;
}

.alunet-profile-page {
    max-width: 1180px;
    margin: 0 auto;
}

.alunet-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 24px;
    overflow: hidden;
    border-radius: 18px;
    color: var(--alunet-primary-ink);
    background: linear-gradient(135deg, #b6d3cc, var(--alunet-primary));
    box-shadow: 0 12px 28px rgba(71, 119, 111, .2);
}

.alunet-profile-hero-icon {
    display: grid;
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    font-size: 34px;
}

.alunet-profile-hero-copy {
    flex: 1;
    min-width: 0;
}

.alunet-profile-hero-copy>span {
    display: block;
    margin-bottom: 3px;
    color: rgba(39, 70, 63, .72);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.alunet-profile-hero h1 {
    margin: 0 0 3px;
    overflow: hidden;
    color: var(--alunet-primary-ink);
    font-size: 27px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alunet-profile-hero p {
    margin: 0;
    overflow: hidden;
    color: rgba(39, 70, 63, .78);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alunet-profile-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.alunet-profile-shortcuts a {
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid rgba(39, 70, 63, .2);
    border-radius: 10px;
    color: var(--alunet-primary-ink);
    background: rgba(255, 255, 255, .24);
    text-decoration: none;
}

.alunet-profile-shortcuts a:hover,
.alunet-profile-shortcuts a:focus {
    color: var(--alunet-primary-ink);
    background: rgba(255, 255, 255, .42);
}

.alunet-profile-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr);
    gap: 18px;
    align-items: start;
}

.alunet-settings-card {
    min-width: 0;
    padding: 24px;
    scroll-margin-top: 82px;
    border: 1px solid var(--alunet-border);
    border-radius: var(--alunet-radius);
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}

.alunet-settings-card-wide {
    grid-row: span 2;
}

.alunet-settings-card:target {
    border-color: rgba(71, 119, 111, .55);
    box-shadow: 0 0 0 4px rgba(71, 119, 111, .1);
}

.alunet-settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--alunet-border);
}

.alunet-settings-card-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--alunet-blue);
    background: var(--alunet-blue-soft);
    font-size: 18px;
}

.alunet-settings-card-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.alunet-settings-card-header p {
    margin: 0;
    color: var(--alunet-muted);
    line-height: 1.45;
}

.alunet-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.alunet-optional-fields {
    margin: 4px 0 20px;
    padding: 12px 14px 0;
    border: 1px solid var(--alunet-border);
    border-radius: 10px;
    background: #fafbfd;
}

.alunet-optional-fields summary {
    min-height: 34px;
    color: var(--alunet-blue-dark);
    cursor: pointer;
    font-weight: 600;
}

.alunet-optional-fields[open] summary {
    margin-bottom: 10px;
}

.alunet-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.alunet-settings-actions .btn {
    min-height: 44px;
    padding-right: 18px;
    padding-left: 18px;
    font-weight: 600;
}

.alunet-settings-card .alunet-avatar-editor {
    display: block;
    margin: 0;
}

.alunet-settings-card .alunet-avatar-editor::before,
.alunet-settings-card .alunet-avatar-editor::after {
    display: none;
}

.alunet-settings-card .alunet-avatar-preview,
.alunet-settings-card .alunet-avatar-upload {
    float: none;
    width: 100%;
    padding: 0;
}

.alunet-settings-card .alunet-avatar-preview {
    margin-bottom: 20px;
    text-align: center;
}

.alunet-settings-card .alunet-avatar-preview .img-thumbnail {
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
}

.alunet-avatar-help {
    margin-bottom: 14px;
    color: var(--alunet-muted);
    line-height: 1.45;
}

.alunet-avatar-upload input[type="file"] {
    height: auto;
    min-height: 46px;
    padding: 10px;
    font-size: 14px;
}

.alunet-file-picker {
    position: relative;
    display: flex;
    min-height: 48px;
    overflow: hidden;
    align-items: center;
    border: 1px solid #ccd5e0;
    border-radius: 9px;
    background: #fff;
}

.alunet-file-picker:focus-within {
    border-color: var(--alunet-blue);
    box-shadow: 0 0 0 3px rgba(71, 119, 111, .12);
}

.alunet-file-input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.alunet-file-picker-button {
    display: flex;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--alunet-blue-dark);
    align-items: center;
    gap: 7px;
    background: var(--alunet-blue-soft);
    font-weight: 600;
    white-space: nowrap;
}

.alunet-file-picker-name {
    min-width: 0;
    padding: 8px 10px;
    overflow: hidden;
    color: var(--alunet-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alunet-settings-card .alunet-avatar-upload .btn-primary {
    width: 100%;
    min-height: 44px;
    font-weight: 600;
}

@media (max-width: 1120px) {
    .alunet-profile-settings-grid {
        grid-template-columns: 1fr;
    }

    .alunet-settings-card-wide {
        grid-row: auto;
    }
}

.alunet-profile-tabs>.nav-tabs,
.users-frontend-profile-update>.nav-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.alunet-profile-tabs>.nav-tabs>li,
.users-frontend-profile-update>.nav-tabs>li {
    float: none;
    display: inline-block;
}

.form-control {
    min-height: 42px;
    border-color: #ccd5e0;
    border-radius: 8px;
    box-shadow: none;
}

textarea.form-control {
    min-height: 120px;
}

.form-control:focus {
    border-color: var(--alunet-blue);
    box-shadow: 0 0 0 3px rgba(71, 119, 111, .12);
}

.btn {
    border-radius: 10px;
}

.btn-primary,
.btn-primary:active,
.btn-primary.active,
.open>.dropdown-toggle.btn-primary {
    color: #fff;
    border-color: var(--alunet-primary-dark);
    background: var(--alunet-primary-dark);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active:hover,
.open>.dropdown-toggle.btn-primary:hover {
    color: #fff;
    border-color: var(--alunet-primary-dark);
    background: var(--alunet-primary-dark);
}

.alunet-content-inner .box.box-primary,
.alunet-content-inner .nav-tabs-custom>.nav-tabs>li.active {
    border-top-color: var(--alunet-primary);
}

.alunet-content-inner .panel-primary {
    border-color: var(--alunet-primary);
}

.alunet-content-inner .panel-primary>.panel-heading,
.alunet-content-inner .label-primary,
.alunet-content-inner .progress-bar-primary,
.alunet-content-inner .pagination>.active>a,
.alunet-content-inner .pagination>.active>a:hover,
.alunet-content-inner .pagination>.active>a:focus {
    border-color: var(--alunet-primary);
    background-color: var(--alunet-primary);
}

.table-responsive {
    margin-bottom: 0;
    border: 0;
}

.alunet-content-inner .fc,
.alunet-content-inner .grid-view,
.alunet-content-inner .table-responsive,
.alunet-content-inner .panel,
.alunet-content-inner .box {
    max-width: 100%;
}

.alunet-calendar-page {
    max-width: 1180px;
    margin: 0 auto;
}

.alunet-document-viewer {
    overflow: hidden;
    border: 1px solid var(--alunet-border);
    border-radius: var(--alunet-radius);
    background: var(--alunet-primary-soft);
    box-shadow: 0 8px 24px rgba(91, 62, 48, .06);
}

.alunet-document-viewer iframe {
    display: block;
    width: 100%;
    min-height: 720px;
    border: 0;
    background: #fff;
}

@media (max-width: 991px) {
    body.alunet-sidebar-open {
        overflow: hidden;
    }

    .alunet-sidebar {
        width: min(320px, 90vw);
        transform: translateX(-105%);
        box-shadow: 12px 0 35px rgba(15, 23, 42, .28);
    }

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

    .alunet-sidebar-close,
    .alunet-sidebar-toggle {
        display: inline-block;
    }

    .alunet-sidebar-backdrop {
        position: fixed;
        z-index: 1035;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        opacity: 0;
        background: rgba(15, 23, 42, .5);
        transition: opacity .2s ease;
    }

    body.alunet-sidebar-open .alunet-sidebar-backdrop {
        display: block;
        opacity: 1;
    }

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

    .alunet-content {
        padding: 18px;
    }

    .alunet-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }

    .alunet-public-header .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .alunet-public-nav-toggle {
        display: inline-block;
    }

    .alunet-public-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: 12px;
        display: none;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--alunet-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    }

    body.alunet-public-nav-open .alunet-public-nav {
        display: flex;
        flex-direction: column;
    }

    .alunet-public-nav a:not(.btn) {
        color: var(--alunet-text);
    }

    .alunet-public-nav a:hover,
    .alunet-public-nav a:focus {
        background: var(--alunet-blue-soft);
    }

    .alunet-public-nav .btn-default {
        margin: 4px 0 0;
        color: #fff;
        border-color: var(--alunet-primary-dark);
        background: var(--alunet-primary-dark);
    }

    .alunet-public-main {
        width: 100%;
        padding: 18px 12px 30px;
    }

    .alunet-topbar {
        min-height: 56px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .alunet-topbar-title {
        flex: 1;
        font-size: 15px;
    }

    .alunet-area-badge {
        display: none;
    }

    .alunet-user-actions {
        display: none;
    }

    .alunet-content {
        padding: 10px;
    }

    .alunet-content-inner {
        min-height: calc(100vh - 135px);
        padding: 14px;
        border-radius: 12px;
        box-shadow: none;
    }

    .alunet-content-inner h1,
    .alunet-public-main h1 {
        font-size: 25px;
    }

    .alunet-document-viewer iframe {
        min-height: calc(100vh - 220px);
    }

    .alunet-normativa-modal .modal-dialog {
        width: auto;
        max-width: none;
        margin: 18px 12px calc(82px + env(safe-area-inset-bottom));
    }

    .alunet-normativa-modal .modal-content {
        border-radius: 18px;
    }

    .alunet-normativa-hero {
        padding: 24px 54px 21px 20px;
    }

    .alunet-normativa-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
        border-radius: 14px;
        font-size: 22px;
    }

    .alunet-normativa-hero h2 {
        font-size: 21px;
    }

    .alunet-normativa-modal .modal-body {
        max-height: calc(100vh - 310px);
        padding: 19px 20px 13px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .alunet-normativa-modal .modal-footer {
        flex-direction: column;
        padding: 9px 20px 20px;
    }

    .alunet-normativa-modal .modal-footer .btn {
        width: 100%;
    }

    .alunet-footer {
        display: none;
    }

    .alunet-mobile-nav {
        position: fixed;
        z-index: 1030;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: calc(66px + env(safe-area-inset-bottom));
        padding: 5px 4px env(safe-area-inset-bottom);
        border-top: 1px solid var(--alunet-border);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
    }

    .alunet-mobile-nav.has-management {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .alunet-mobile-nav>a,
    .alunet-mobile-menu-button,
    .alunet-mobile-logout-button {
        display: flex;
        min-width: 0;
        min-height: 56px;
        padding: 6px 2px;
        border: 0;
        color: #52606d;
        background: transparent;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 11px;
        line-height: 1.1;
        text-decoration: none;
    }

    .alunet-mobile-nav i {
        color: var(--alunet-blue);
        font-size: 19px;
    }

    .alunet-mobile-logout,
    .alunet-mobile-logout-button {
        width: 100%;
        margin: 0;
    }

    .alunet-auth-card,
    .alunet-info-card,
    .alunet-profile-panel {
        margin: 0;
        padding: 20px 16px;
        border-radius: 12px;
        box-shadow: none;
    }

    .alunet-hero {
        margin: 12px 0;
        padding: 32px 18px;
        border-radius: 14px;
        box-shadow: none;
    }

    .alunet-hero h1 {
        font-size: 28px;
    }

    .alunet-hero .btn {
        width: 100%;
    }

    .alunet-auth-card h1 {
        font-size: 24px;
    }

    .alunet-page-heading {
        margin-bottom: 18px;
    }

    .alunet-page-heading h1 {
        font-size: 25px;
    }

    .alunet-profile-summary {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .alunet-profile-hero {
        align-items: flex-start;
        margin-bottom: 12px;
        padding: 18px 14px;
        flex-wrap: wrap;
        border-radius: 12px;
    }

    .alunet-profile-hero-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 27px;
    }

    .alunet-profile-hero h1 {
        font-size: 21px;
    }

    .alunet-profile-shortcuts {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .alunet-profile-shortcuts a {
        display: flex;
        min-width: 0;
        padding: 9px 4px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .alunet-profile-settings-grid {
        gap: 10px;
    }

    .alunet-settings-card {
        padding: 17px 14px;
        scroll-margin-top: 68px;
        border-radius: 11px;
        box-shadow: none;
    }

    .alunet-settings-card-header {
        margin-bottom: 17px;
        padding-bottom: 14px;
    }

    .alunet-settings-card-header h2 {
        font-size: 19px;
    }

    .alunet-settings-card-header p {
        font-size: 13px;
    }

    .alunet-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .alunet-settings-actions,
    .alunet-settings-actions .btn {
        width: 100%;
    }

    .alunet-settings-actions .btn {
        min-height: 46px;
    }

    .alunet-file-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .alunet-file-picker-button {
        justify-content: center;
    }

    .alunet-file-picker-name {
        padding: 9px 10px;
        text-align: center;
    }

    .alunet-profile-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .alunet-profile-actions .btn {
        min-height: 44px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .form-control {
        min-height: 46px;
        font-size: 16px;
    }

    .btn,
    button,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
    }

    .alunet-captcha-row {
        align-items: stretch;
        flex-direction: column;
    }

    .breadcrumb {
        margin-bottom: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body .container {
        width: auto;
        padding: 0;
    }
}

@media (max-width: 420px) {
    .alunet-content {
        padding: 6px;
    }

    .alunet-content-inner {
        padding: 12px;
        border-right: 0;
        border-left: 0;
        border-radius: 8px;
    }

    .alunet-public-main {
        padding-right: 8px;
        padding-left: 8px;
    }
}