/* ================================
   Layout principal profesional
================================ */

/*.app-shell {
    display: flex;
    min-height: 100vh;
    background: #f3f4f6;
}

.app-sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    min-height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.5rem;
}

.app-content {
    padding: 1.5rem;
}*/

/* ================================
   Layout general independiente
================================ */

.app-layout {
    min-height: 100vh;
    display: flex;
    background: #f3f4f6;
}

.app-layout-sidebar {
    width: 280px;
    min-width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 1000;
}

.app-layout-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-layout-topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

.app-topbar-title {
    font-weight: 600;
    color: #374151;
}

.app-topbar-user {
    display: flex;
    align-items: center;
}

.app-layout-content {
    padding: 1.5rem;
    flex: 1;
}

/* ================================
   Sidebar profesional Capilla App
================================ */

/*.sidebar-menu {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.sidebar-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f9fafb;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
}

.sidebar-title {
    line-height: 1.2;
}

.institution-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.institution-subtitle {
    font-size: 0.78rem;
    color: #d1d5db;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.8rem 0 1rem 0;
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.sidebar-user-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-user-roles {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-top: 0.2rem;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 1rem 0 0.4rem 0.2rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease-in-out;
}

    .sidebar-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .sidebar-link.active {
        background: #2563eb;
        color: #ffffff;
    }

.sidebar-icon {
    width: 22px;
    display: inline-flex;
    justify-content: center;
}

.disabled-link {
    opacity: 0.55;
    pointer-events: none;
}

.sidebar-coming-soon {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-logout {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

    .sidebar-logout:hover {
        background: rgba(239, 68, 68, 0.25);
        color: #ffffff;
    }
*/

/* ================================
   Sidebar
================================ */

.sidebar-menu {
    height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.8rem 0 1rem 0;
}

.sidebar-user {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.sidebar-user-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-user-roles {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-top: 0.2rem;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 1rem 0 0.4rem 0.2rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease-in-out;
}

    .sidebar-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .sidebar-link.active {
        background: #2563eb;
        color: #ffffff;
    }

.sidebar-icon {
    width: 22px;
    display: inline-flex;
    justify-content: center;
}

.sidebar-coming-soon {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-logout {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

    .sidebar-logout:hover {
        background: rgba(239, 68, 68, 0.25);
        color: #ffffff;
    }

/* ================================
   Marca institucional
================================ */

.institution-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.institution-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f9fafb;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    flex-shrink: 0;
}

.institution-brand-text {
    min-width: 0;
}

.institution-brand-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    white-space: normal;
}

.institution-brand-subtitle {
    font-size: 0.78rem;
    color: #d1d5db;
    margin-top: 0.15rem;
}

.institution-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.public-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 60%);
    border-radius: 18px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.public-hero-content {
    max-width: 900px;
}

.public-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1f2937;
}

.public-hero .lead {
    font-size: 1.15rem;
    color: #4b5563;
    margin-top: 1rem;
}

.public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.public-section {
    margin-bottom: 2rem;
}

.public-donation-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 1.5rem;
}

.adbtech-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
}