body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

#content-manager {
    margin: 20px auto;
    max-width: 1400px;
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 95vw;
    box-sizing: border-box;
    transform: scale(0.8);
    transform-origin: top left;
}

.area {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    padding: 24px;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - 160px); /* Ajusta según tu header/nav */
    overflow-y: auto;
}
.h1, h1 {
    text-align: center;
    color: #333;
    font-size: 2em;
}
.area-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.area-title {
    font-size: 1.2em;
    font-weight: bold;
    word-break: break-word;
}

.area-actions button, .subarea-actions button {
    margin-left: 5px;
    margin-bottom: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #1976d2;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.area-actions button:hover, .subarea-actions button:hover {
    background: #125ea2;
}

.subareas {
    margin-top: 10px;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subarea {
    border: 1px dashed #bbb;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f5f5f5;
    min-width: 260px;
    max-width: 100%;
    flex: 1 1 260px;
    box-sizing: border-box;
}

.subarea-content {
    margin-top: 5px;
    word-break: break-word;
}

.hidden {
    opacity: 0.5;
    background: #eee;
}

#form-container {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 95vw;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    #content-manager, #form-container {
        padding: 8px;
        max-width: 100vw;
    }
    .area {
        padding: 8px;
    }
    .subarea {
        min-width: 100px;
        padding: 6px;
    }
    h1 {
        font-size: 1.3em;
    }
}
