* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.header .logo {
    width: 80px;
    margin-right: 20px;
}

.header .title {
    text-align: center;
}

.header .title h1 {
    font-size: 24px;
    font-weight: bold;
}

.header .title h2 {
    font-size: 20px;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.level {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.box {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px;
    border-radius: 8px;
    width: 220px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.box .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.box ul {
    list-style: none;
    text-align: left;
}

.box ul li {
    margin-bottom: 5px;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer {
    margin-top: 20px;
}

.footer p {
    font-size: 14px;
}

/* Líneas de conexión */
.level-1 .box::before,
.level-2 .box::before,
.level-3 .box::before,
.level-4 .box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 1px;
    height: 20px;
    background-color: #000;
}

.level-1 .box:first-child::after,
.level-2 .box:first-child::after,
.level-3 .box:first-child::after,
.level-4 .box:first-child::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 50%;
    height: 1px;
    background-color: #000;
}

.level-1 .box:last-child::after,
.level-2 .box:last-child::after,
.level-3 .box:last-child::after,
.level-4 .box:last-child::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 50%;
    height: 1px;
    background-color: #000;
}

.level-1 .box:nth-child(2)::after,
.level-2 .box:nth-child(2)::after,
.level-3 .box:nth-child(2)::after,
.level-4 .box:nth-child(2)::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
}
